/* Site layout. Colours, weights and type come from tokens.css; do not add new colour values here.
   Lamp (--color-night-accent) is never used for text: only the focus ring. See uneli-brand 02-visual/tokens/README.md. */

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

html { color-scheme: dark; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--color-night-background);
  color: var(--color-night-text);
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--color-night-accent); outline-offset: 3px; }

.secondary { color: var(--color-night-text-secondary); }

.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }

.skip-link { position: absolute; left: -999px; top: 0.5rem; }
.skip-link:focus { left: 0.5rem; background: var(--color-night-text); color: var(--color-night-background); padding: 0.5rem 0.75rem; }

/* Header */
.site-header { padding-block: 1.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand img { width: 2rem; height: auto; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: 3rem;
  padding-block: 3rem 6rem;
}
.hero-text > * + * { margin-top: 1.5rem; }
.hero-text h1 { margin-top: 1rem; max-width: 18ch; text-wrap: balance; }
.hero-text .ty-lede { max-width: 38ch; }
.stage { padding-top: 1rem; border-top: 1px solid var(--color-night-hairline); max-width: 38ch; opacity: 0.9; }
.hero-art img { width: 100%; max-height: 34rem; object-fit: contain; }

/* Button */
.button {
  display: inline-block;
  font: inherit;
  font-weight: var(--weight-medium);
  font-size: 1rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--color-night-text);
  background: var(--color-night-text);
  color: var(--color-night-background);
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--color-night-text-secondary); border-color: var(--color-night-text-secondary); color: var(--color-night-background); }
.button[disabled] { opacity: 0.6; cursor: progress; }

/* Waitlist */
.waitlist { padding-block: 4rem 6rem; }
.waitlist-panel {
  background: var(--color-night-panel);
  border-radius: 2rem;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  max-width: 44rem;
}
.waitlist-panel > * + * { margin-top: 1rem; }
.waitlist-form { display: grid; gap: 1.25rem; margin-top: 2rem; }
.field { display: grid; gap: 0.5rem; min-width: 0; }
.field input {
  font: inherit;
  font-size: 1.125rem;
  padding: 0.8rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--color-night-text-secondary);
  background: var(--color-night-background);
  color: var(--color-night-text);
  width: 100%;
  min-width: 0;
}
.field input:focus-visible { border-color: var(--color-night-accent); }
.waitlist-form .button { justify-self: start; }
.status:empty { display: none; }
.status[data-state="error"] { font-weight: var(--weight-medium); }

/* Honeypot: off-screen, not display:none, so simple bots still fill it in. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { padding-block: 2.5rem 3rem; border-top: 1px solid var(--color-night-panel); display: grid; gap: 0.4rem; }

/* Privacy notice */
.prose { padding-block: 2rem 5rem; max-width: 44rem; }
.prose h1 { margin-bottom: 1.5rem; }
.prose h2 { margin-top: 2.5rem; margin-bottom: 0.75rem; }
.prose p, .prose li { margin-top: 0.75rem; }
.prose ul { list-style: disc; padding-left: 1.25rem; }
.draft-note { border: 1px solid var(--color-night-hairline); border-radius: 0.75rem; padding: 1rem; }

@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; padding-block: 1.5rem 4rem; }
  .hero-art { order: -1; max-width: 14rem; }
}
