/* Nearly Cosmic — landing page. Brand palette + Fraunces / Martian Mono (SIL OFL). */

@font-face {
  font-family: "Fraunces NC";
  src: url("/assets/fonts/fraunces.woff2") format("woff2");
  font-weight: 380 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces NC";
  src: url("/assets/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 400 560; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Martian Mono NC";
  src: url("/assets/fonts/martian-mono.woff2") format("woff2");
  font-weight: 100 800; font-style: normal; font-display: swap;
}

:root {
  --latte: #FFF8E7;
  --night: #14110E;
  --dusk: #8EB3D6;
  --regolith: #7E786E;
  --serif: "Fraunces NC", Georgia, "Times New Roman", serif;
  --mono: "Martian Mono NC", ui-monospace, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  background: var(--latte);
  color: var(--night);
  font-family: var(--serif);
  font-weight: 420;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, p { margin: 0; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--dusk); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.page { flex: 1; display: grid; place-items: center; padding: 48px clamp(20px, 5vw, 64px); }
.hero { width: 100%; max-width: 980px; text-align: center; }

/* wordmark: Fraunces with the moon mark as the "o" */
.wordmark {
  display: inline-block;
  font-weight: 640;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.015em;
  line-height: 1;
  white-space: nowrap;
}
.wm-o {
  display: inline-block;
  width: 0.519em; height: 0.519em;
  margin: 0 0.018em;
  vertical-align: -0.008em;
}
.hero-wordmark { font-size: clamp(50px, 12.5vw, 156px); font-weight: inherit; }

.hero-line {
  margin-top: clamp(14px, 2.4vh, 24px);
  font-style: italic; font-weight: 500;
  font-variation-settings: "opsz" 144;
  font-size: clamp(21px, 2.6vw, 34px);
  opacity: 0.8;
}

/* signup */
.signup { max-width: 480px; margin: clamp(36px, 6vh, 56px) auto 0; text-align: left; }
.signup-row { display: flex; border: 1.5px solid var(--night); }
.signup-row:focus-within { outline: 2px solid var(--dusk); outline-offset: 3px; }
.signup input {
  flex: 1 1 auto; min-width: 0;
  font: inherit; font-size: 17px; color: var(--night);
  background: transparent; border: 0; border-radius: 0; padding: 15px 16px;
  -webkit-appearance: none; appearance: none;
}
.signup input::placeholder { color: var(--regolith); opacity: 1; }
.signup input:focus { outline: none; }
.btn {
  flex: 0 0 auto;
  font-family: var(--mono); font-variation-settings: "wdth" 87.5; font-weight: 600;
  font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--latte); background: var(--night);
  border: 0; border-radius: 0; padding: 0 20px; cursor: pointer;
}
.btn:hover { background: #2A2520; }
.signup-status {
  min-height: 1.6em; margin-top: 10px; text-align: center;
  font-family: var(--mono); font-variation-settings: "wdth" 87.5;
  font-size: 12px; letter-spacing: 0.04em; opacity: 0.75;
}
.signup-status[data-kind="error"] { color: #8A3B2A; opacity: 1; }
.signup-done {
  padding: 16px 0 4px; text-align: center;
  font-family: var(--mono); font-variation-settings: "wdth" 87.5;
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em;
}

.foot {
  padding: 20px; text-align: center;
  font-family: var(--mono); font-variation-settings: "wdth" 87.5;
  font-size: 11px; letter-spacing: 0.08em; color: var(--regolith);
}

@media (max-width: 440px) {
  .signup-row { flex-direction: column; }
  .btn { padding: 15px 20px; }
}
