/* ====================================================================
   ø modular — anticipation page
   Cool aluminium palette · monome restraint · pure static, no build.
   ==================================================================== */

/* --- Self-hosted display font ---------------------------------------
   Drop a licensed .woff2 into /fonts and update the src + family name.
   Until then the page renders with the system grotesque fallback below.
   The @font-face is intentionally a placeholder; if the file is absent
   the browser simply uses the fallback (no error, no layout shift). */
@font-face {
  font-family: "Söhne";
  src: url("fonts/display.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #EDEFF1;
  --ink: #16181B;
  --muted: #767B82;
  --hairline: #BFC3C7;

  --font-display: "Söhne", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Menlo", Consolas, monospace;

  --measure: 64rem;        /* page max-width */
  --gutter: clamp(1.5rem, 5vw, 4.5rem);
  --motion: 600ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16181B;
    --ink: #EDEFF1;
    --muted: #8B9098;
    --hairline: #33373C;
  }
}

/* --- Reset / base ---------------------------------------------------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--ink); color: var(--paper); }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 1px;
}

/* --- Page shell: header / hero / footer, full viewport height -------- */
.page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.5rem) var(--gutter) clamp(1.5rem, 3vw, 2.5rem);
  max-width: var(--measure);
  margin: 0 auto;
}

/* --- Header / lockup ------------------------------------------------- */
.site-header {
  padding-bottom: clamp(1rem, 2vw, 1.5rem);
  border-bottom: 1px solid var(--hairline);
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}

.lockup__mark {
  display: inline-flex;
  width: 1.7rem;
  height: 1.7rem;
  color: var(--ink);
  flex-shrink: 0;
}
.lockup__mark svg { width: 100%; height: 100%; display: block; }

.lockup__word {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

/* --- Hero ------------------------------------------------------------ */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(2.5rem, 8vh, 6rem) 0;
  max-width: 38ch;
}

.hero__headline {
  margin: 0;
  font-weight: 400;
  font-size: clamp(2.25rem, 7vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.hero__context {
  margin: clamp(1.75rem, 4vw, 2.75rem) 0 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* --- Notify form ----------------------------------------------------- */
.notify {
  margin-top: clamp(2rem, 5vw, 3rem);
  width: 100%;
  max-width: 26rem;
}

.notify__label {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.notify__field {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  transition: border-color var(--motion) ease;
}
.notify__field:focus-within { border-color: var(--ink); }

.notify__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1rem;
}
.notify__input::placeholder { color: var(--muted); }
.notify__input:focus { outline: none; }

.notify__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--hairline);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  padding: 0 1.1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--motion) ease, color var(--motion) ease;
}
.notify__submit:hover { background: var(--ink); color: var(--paper); }
.notify__submit:active { transform: translateY(0.5px); }
.notify__arrow { transition: transform var(--motion) ease; }
.notify__submit:hover .notify__arrow { transform: translateX(2px); }

.notify__status {
  margin: 0.85rem 0 0;
  min-height: 1.2em;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* Submitted state: collapse the field, leave only the status line. */
.notify.is-done .notify__field { display: none; }
.notify.is-done .notify__status { color: var(--ink); }

/* --- Footer ---------------------------------------------------------- */
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: clamp(1rem, 2vw, 1.5rem);
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* --- Responsive: collapse lockup to the mark only ------------------- */
@media (max-width: 28rem) {
  .lockup__word { display: none; }
  .site-footer { flex-direction: column; gap: 0.35rem; }
}

/* --- Motion: subtle, one-time, fully reduced-motion aware ----------- */
@media (prefers-reduced-motion: no-preference) {
  /* content fade-up */
  .page[data-load] > * {
    opacity: 0;
    transform: translateY(8px);
    animation: rise 800ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  .page[data-load] > .site-header { animation-delay: 60ms; }
  .page[data-load] > .hero        { animation-delay: 160ms; }
  .page[data-load] > .site-footer { animation-delay: 280ms; }

  @keyframes rise {
    to { opacity: 1; transform: none; }
  }

  /* the slash draws itself once */
  .mark__slash {
    stroke-dasharray: 70;
    stroke-dashoffset: 70;
    animation: draw 900ms cubic-bezier(0.4, 0, 0.1, 1) 300ms forwards;
  }
  @keyframes draw {
    to { stroke-dashoffset: 0; }
  }
}
