/*
  Holding page styles. Deliberately one plain stylesheet and ZERO JavaScript:
  this page has to survive unattended for weeks, so there is no build step to
  rot, no bundle to go stale, and the CSP can stay at default-src 'none'.

  Palette and fonts are lifted from src/index.css so the pause still looks like
  HYPD. Light values on :root, dark swapped under prefers-color-scheme - there
  is no theme toggle here because there is no script to remember one.
*/

/* Grift - brand font, used for the headline and wordmark only. */
@font-face {
  font-family: "Grift";
  src: url("/fonts/grift-extrabold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Google Sans - body text. Latin + latin-ext only; this page has no other
   scripts to serve and every extra file is one more thing to 404. */
@font-face {
  font-family: "Google Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/google-sans-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Google Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/google-sans-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f7f8f7;
  --surface: #f0f2ef;
  --card: #ffffff;
  --border: #e5e8e3;
  --border-strong: #d2d7cf;
  --text: #101410;
  --muted: #56605a;
  --dim: #98a29b;
  --brand: #01d992;
  --brand-hover: #00c684;
  /* Textual green is the DARKER one in light theme - #01d992 on white fails
     contrast, which is why the app reserves it for fills. */
  --green: #059669;
  --glow: rgba(1, 217, 146, 0.16);
  --on-brand: #0b0d0b;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d0b;
    --surface: #161a16;
    --card: #101310;
    --border: #1f241f;
    --border-strong: #2c332c;
    --text: #e8ece7;
    --muted: #a3ada4;
    --dim: #6b756c;
    --green: #01d992;
    --glow: rgba(1, 217, 146, 0.1);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg);
  /* One soft bloom behind the mark. Fixed so it doesn't slide on short
     viewports, and it is the only decoration on the page. */
  background-image: radial-gradient(
    900px 520px at 50% -10%,
    var(--glow),
    transparent 70%
  );
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  font-family: "Google Sans", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.shell {
  width: 100%;
  max-width: 560px;
  padding-block: 72px;
  text-align: center;
}

/* The mark breathes, slowly - a visual full stop rather than a spinner. */
.mark {
  width: 64px;
  height: 64px;
  display: block;
  margin: 0 auto 28px;
  border-radius: 14px;
  animation: breathe 5.5s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.82;
    transform: scale(0.965);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mark {
    animation: none;
  }
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

h1 {
  margin: 0 0 18px;
  font-family: "Grift", "Google Sans", ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  /* Grift is a display face - it wants tight tracking and tight leading at
     size, and it needs to shrink a long way on a narrow phone. */
  font-size: clamp(2.25rem, 9vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lede {
  margin: 0 auto;
  max-width: 42ch;
  font-size: 1.0625rem;
  color: var(--muted);
  text-wrap: pretty;
}

/* The page is now headline, one paragraph and one link, so the rule above the
   contact block is the only structure it has. Give it room: at this length the
   whitespace IS the design, and a cramped divider reads as an unfinished page
   rather than a deliberate one. */
.contact {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.contact-lead {
  margin: 0 0 16px;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Brand green as a fill with near-black text on top - never green text on
   green, and never #01d992 as a text colour. */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  background-color: var(--brand);
  color: var(--on-brand);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background-color: var(--brand-hover);
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

footer {
  margin-top: 44px;
}

footer p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--dim);
}

@media (max-width: 420px) {
  .shell {
    padding-block: 48px;
  }
}
