/* nyxwyn.com. Colours are the app's Night theme (design/tokens/theme.night.json),
   light and dark; type is Cormorant Garamond 600 for headings, Jost for text.
   Fonts are served from this site, never from Google, so no visitor data leaves it. */

@font-face { font-family: 'Cormorant Garamond'; font-weight: 600; font-display: swap;
  src: url(/fonts/cormorant-garamond-latin-600-normal.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: 'Cormorant Garamond'; font-weight: 600; font-display: swap;
  src: url(/fonts/cormorant-garamond-latin-ext-600-normal.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; }
@font-face { font-family: 'Jost'; font-weight: 400; font-display: swap;
  src: url(/fonts/jost-latin-400-normal.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: 'Jost'; font-weight: 400; font-display: swap;
  src: url(/fonts/jost-latin-ext-400-normal.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; }
@font-face { font-family: 'Jost'; font-weight: 500; font-display: swap;
  src: url(/fonts/jost-latin-500-normal.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: 'Jost'; font-weight: 500; font-display: swap;
  src: url(/fonts/jost-latin-ext-500-normal.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 {
  --page: #F8F4E8; --card: #FDFBF4; --raised: #FFFFFF; --tint: #EFE8D6;
  --strong: #0F1C3D; --body: #243A6B; --muted: #4C5A7E;
  --border: #E4DCC8; --border-strong: #8C8670;
  --accent: #D4A017; --on-accent: #1A2B5C; --accent-text: #7A5A05;
  --secondary: #1A2B5C; --on-secondary: #FFFFFF;
  --danger: #B63132; --success: #007F37;
  --focus: #1A2B5C; --motif: #B9AE92;
  --shadow: 0 1px 2px rgb(15 28 61 / .06), 0 4px 16px rgb(15 28 61 / .06);
  --display: 'Cormorant Garamond', Georgia, serif;
  --text: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0E1526; --card: #161F35; --raised: #1E2941; --tint: #1A2440;
    --strong: #EEF2FB; --body: #CBD6EE; --muted: #9DAACB;
    --border: #28334F; --border-strong: #5A6889;
    --accent: #E2B33C; --on-accent: #141D31; --accent-text: #E8C25C;
    --secondary: #AFC0E0; --on-secondary: #0E1526;
    --danger: #FD736D; --success: #3FC168;
    --focus: #E2B33C; --motif: #3B4A6E;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--body);
  font: 400 1.0625rem/1.65 var(--text);
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; width: 100%; margin: 0 auto; padding: 0 16px 64px; }
main.prose { max-width: 44rem; }
main.wide { max-width: 64rem; }

h1, h2, h3, .wordmark { font-family: var(--display); font-weight: 600; color: var(--strong); font-style: normal; }
h1 { font-size: clamp(2.1rem, 6vw, 2.9rem); line-height: 1.1; margin: 1.5rem 0 1rem; }
h2 { font-size: 1.65rem; line-height: 1.2; margin: 2.5rem 0 .75rem; }
h3 { font-size: 1.3rem; line-height: 1.25; margin: 2rem 0 .5rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin: .3rem 0; }
strong { color: var(--strong); font-weight: 500; }
a { color: var(--accent-text); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

.skip { position: absolute; left: 16px; top: -100px; background: var(--secondary); color: var(--on-secondary); padding: .5rem 1rem; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }

.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  max-width: 64rem; width: 100%; margin: 0 auto; padding: 16px;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--strong); }
.brand .mark { width: 30px; height: 33px; color: var(--strong); }
.wordmark { font-size: 1.7rem; letter-spacing: .04em; line-height: 1; }
.site-header nav { display: flex; gap: .25rem 1.1rem; flex-wrap: wrap; font-size: .95rem; }
.site-header nav a { color: var(--body); text-decoration: none; padding: .5rem 0; min-height: 44px; display: inline-flex; align-items: center; }
.site-header nav a:hover { color: var(--strong); text-decoration: underline; }

.site-footer { border-top: 1px solid var(--border); padding: 24px 0 40px; font-size: .9rem; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0 16px; margin: 0 auto 1rem; max-width: 64rem; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.site-footer a { color: var(--body); display: inline-block; padding: .35rem 0; }
.site-footer p { max-width: 64rem; margin: 0 auto; padding: 0 16px; }

/* Legal texts */
.table-wrap { overflow-x: auto; margin: 0 0 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .65rem .85rem; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: 0; }
th { color: var(--strong); font-weight: 500; background: var(--tint); }
mark.todo {
  background: var(--tint); color: var(--strong); border: 1px dashed var(--accent-text);
  border-radius: 4px; padding: 0 .2em;
}

/* Cards, buttons, forms */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.4rem; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: var(--on-accent); font: 500 1rem/1 var(--text); text-decoration: none;
}
.button:hover { filter: brightness(1.05); }
.button.quiet { background: transparent; color: var(--strong); border: 1px solid var(--border-strong); }
label { display: block; color: var(--strong); font-weight: 500; margin-bottom: .35rem; }
input[type=email] {
  width: 100%; min-height: 48px; padding: .6rem .9rem; font: inherit; color: var(--strong);
  background: var(--raised); border: 1px solid var(--border-strong); border-radius: 12px;
}
.check { display: flex; gap: .65rem; align-items: flex-start; font-weight: 400; color: var(--body); margin: 1rem 0; font-size: .95rem; }
.check input { width: 22px; height: 22px; margin: .15rem 0 0; flex: none; accent-color: var(--secondary); }
.fineprint { font-size: .9rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Home */
.hero { display: grid; gap: 2rem; align-items: center; padding: 1.5rem 0 1rem; }
.hero h1 { margin-top: 0; font-size: clamp(2.4rem, 8vw, 3.8rem); }
.hero .lede { font-size: 1.2rem; color: var(--body); max-width: 34rem; }
.sky { position: relative; justify-self: center; width: min(56vw, 320px); aspect-ratio: 1; color: var(--strong); }
.sky .stars { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--motif); }
.sky .mark { position: absolute; inset: 22%; width: 56%; height: 56%; color: var(--accent); }
@media (prefers-color-scheme: light) { .sky .mark { color: var(--secondary); } }
@media (min-width: 760px) { .hero { grid-template-columns: 1.4fr 1fr; padding-top: 3rem; } }
.features { display: grid; gap: 16px; margin: 2rem 0; }
@media (min-width: 760px) { .features { grid-template-columns: 1fr 1fr; } }
.features h2 { margin-top: 0; }
.features ul { padding-left: 1.2rem; margin-bottom: 0; }
.eyebrow { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); font-weight: 500; margin-bottom: .25rem; }
.waitlist { margin: 2rem 0; max-width: 40rem; }
.waitlist h2 { margin-top: 0; }
.waitlist .row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.waitlist .row .field { flex: 1 1 16rem; }
.privacy-band { margin: 3rem 0 1rem; }
.privacy-band ul { padding-left: 1.2rem; }

/* Email-link landing */
.landing { text-align: center; max-width: 30rem; margin: 3rem auto; }
.landing .mark { width: 72px; height: 78px; color: var(--strong); margin: 0 auto 1rem; display: block; }
.landing .actions { display: flex; flex-direction: column; gap: 12px; align-items: center; margin: 1.5rem 0; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: no-preference) {
  .sky .stars circle { animation: twinkle 6s ease-in-out infinite; }
  .sky .stars circle:nth-child(3n) { animation-delay: -2s; }
  .sky .stars circle:nth-child(3n+1) { animation-delay: -4s; }
}
@keyframes twinkle { 50% { opacity: .35; } }
