/* pembroke.dev — one screen, dark, a corgi on watch. No inline styles anywhere: the site ships a strict CSP. */

:root {
  --nose: #15171B;
  --char: #1F2227;
  --sable: #D97B3F;
  --rust: #A8501F;
  --fawn: #EBB681;
  --cream: #F4EADB;
  --biscuit: #A79B8A;
  --blaze: #FFF8EC;
  --sans: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/sora-latin-800.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-500.woff2") format("woff2");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--nose);
  color: var(--cream);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  font-family: var(--sans);
  line-height: 1.45;
  background: radial-gradient(90% 80% at 82% -10%, #2b231d 0%, rgba(43, 35, 29, 0) 60%) var(--nose);
}

h1,
p {
  margin: 0;
}

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.6vw 4.2vw 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1vw;
}

.brand-mark {
  display: block;
  width: clamp(20px, 3.2vw, 46px);
  height: clamp(20px, 3.2vw, 46px);
}

.wordmark {
  font-weight: 800;
  letter-spacing: 0.24em;
  font-size: clamp(0.85rem, 1.5vw, 1.25rem);
}

.status {
  display: flex;
  align-items: center;
  gap: 0.7vw;
  margin: 0;
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.22em;
  font-size: clamp(0.62rem, 0.95vw, 0.85rem);
  color: var(--biscuit);
}

.dot {
  flex: none;
  width: max(0.8vw, 6px);
  height: max(0.8vw, 6px);
  border-radius: 50%;
  background: var(--sable);
  box-shadow: 0 0 0 max(0.5vw, 4px) rgba(217, 123, 63, 0.25);
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  padding: 0 4.2vw;
}

.eyebrow {
  margin-bottom: 2.4vw;
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: clamp(0.7rem, 1.02vw, 0.95rem);
  color: var(--sable);
}

.redact {
  display: inline-block;
  width: 9vw;
  height: 1vw;
  min-height: 8px;
  border-radius: 0.25vw;
  background: var(--sable);
  vertical-align: baseline;
}

.headline {
  margin-bottom: 2.6vw;
  font-weight: 800;
  font-size: clamp(2.75rem, 6.6vw, 7.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.subline {
  max-width: 36ch;
  font-size: clamp(1rem, 1.75vw, 1.6rem);
  color: var(--biscuit);
}

.art {
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.5vw;
  container-type: size;
}

.scope {
  display: block;
  width: min(40vw, 88cqh);
  height: auto;
  aspect-ratio: 1;
}

/* ---------- footer ---------- */

.site-footer {
  padding: 0 4.2vw 2vw;
  font-size: clamp(0.68rem, 1.05vw, 0.95rem);
  color: rgba(244, 234, 219, 0.42);
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

a:focus {
  outline: 2px solid var(--sable);
  outline-offset: 4px;
}

/* ---------- phone ---------- */

@media (max-width: 760px) {
  body {
    background: radial-gradient(120% 42% at 50% 66%, #2b231d 0%, rgba(43, 35, 29, 0) 68%) var(--nose);
  }

  .site-header {
    padding: 8vw 7vw 0;
  }

  .brand {
    gap: 2.6vw;
  }

  .brand-mark {
    width: clamp(20px, 7.6vw, 34px);
    height: clamp(20px, 7.6vw, 34px);
  }

  .wordmark {
    letter-spacing: 0.22em;
    font-size: clamp(0.9rem, 3.4vw, 1.1rem);
  }

  .status {
    letter-spacing: 0.18em;
    gap: 1.8vw;
    font-size: clamp(0.62rem, 2.2vw, 0.8rem);
  }

  .dot {
    width: max(1.9vw, 6px);
    height: max(1.9vw, 6px);
  }

  .hero {
    grid-template-columns: 1fr;
    align-content: start;
    padding: 16vw 7vw 0;
  }

  .eyebrow {
    letter-spacing: 0.16em;
    white-space: nowrap;
    margin-bottom: 5.4vw;
    font-size: clamp(0.7rem, 2.45vw, 0.9rem);
  }

  .redact {
    width: 12vw;
    height: 2.3vw;
    border-radius: 0.6vw;
  }

  .headline {
    margin-bottom: 6vw;
    font-size: clamp(2.75rem, 12.4vw, 5.5rem);
  }

  .subline {
    font-size: clamp(1rem, 4vw, 1.25rem);
  }

  .art {
    height: auto;
    margin-top: 6vw;
    gap: 2vw;
    container-type: inline-size;
  }

  .scope {
    width: 86vw;
  }

  .site-footer {
    padding: 0 7vw 6.5vw;
    font-size: clamp(0.68rem, 2.6vw, 0.85rem);
  }
}

/* ---------- motion (skipped entirely for visitors who ask for less) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .sweep {
    transform-box: view-box;
    transform-origin: 120px 120px;
    animation: sweep 12s linear infinite;
  }

  .dot {
    animation: pulse 2.4s ease-out infinite;
  }

  #pupils {
    transition: transform 140ms ease-out;
  }
}

@keyframes sweep {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(217, 123, 63, 0.5);
  }

  70%,
  100% {
    box-shadow: 0 0 0 0.55em rgba(217, 123, 63, 0);
  }
}
