/* Brand teal and Public Sans per docs/design-system.md; the surfaces are a
   deep-sea palette derived from the teal. No inline styles: the CSP allows
   same-origin stylesheets only. */
@font-face {
  font-family: "Public Sans";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/public-sans-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/public-sans-latin-700.woff2") format("woff2");
}

:root {
  --bg: #eef6f5;
  --ink: #0b2b28;
  --muted: #4a6763;
  --teal: #009688;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #061e1c;
    --ink: #e3f1ef;
    --muted: #8db2ac;
    --teal: #14b8a6;
  }
}

* { box-sizing: border-box; margin: 0; }

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 clamp(16px, 5vw, 64px);
  background: var(--bg);
  color: var(--ink);
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

header, main, footer {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

header { padding: 32px 0; }

.wordmark {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--teal);
}

main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 6vw, 96px);
  padding: 24px 0 48px;
}

h1 {
  font-weight: 700;
  font-size: clamp(2.5rem, 6.4vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 9.5em;
  margin-bottom: 1.5rem;
}

.lede {
  font-size: clamp(1.125rem, 1.9vw, 1.375rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 26em;
  margin-bottom: 2.25rem;
}

.contact {
  display: inline-block;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.contact:hover { text-decoration-thickness: 3px; }
.contact:focus-visible { outline: 2px solid var(--teal); outline-offset: 6px; border-radius: 2px; }

/* The pixel mascot (14 x 12 grid, the same bitmap as the terminal version). */
.octo { width: 100%; max-width: 320px; justify-self: end; fill: var(--teal); }
.octo .lids, .octo .legs-b { visibility: hidden; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 32px;
  font-size: 0.875rem;
  color: var(--muted);
}

/* The mascot's idle loop from the terminal: legs paddle a few times on load,
   then the eyes blink now and then. Nothing moves for reduced-motion users. */
@media (prefers-reduced-motion: no-preference) {
  .octo .legs-a { animation: paddle-a 760ms steps(1) 6; }
  .octo .legs-b { animation: paddle-b 760ms steps(1) 6; }
  .octo .lids { animation: blink 5s steps(1) 2s infinite; }
}
@keyframes paddle-a { 0% { visibility: visible; } 50% { visibility: hidden; } }
@keyframes paddle-b { 0% { visibility: hidden; } 50% { visibility: visible; } }
@keyframes blink { 0% { visibility: visible; } 4% { visibility: hidden; } }

@media (max-width: 760px) {
  main { grid-template-columns: 1fr; align-content: center; }
  .octo { order: -1; max-width: 160px; justify-self: start; }
  footer { flex-direction: column; gap: 4px; }
}
