/* Draaht design system — single source of truth for the web pages.
   The email template (email/newsletter.html) mirrors these token VALUES
   inline, because email clients can't reliably load an external stylesheet. */

:root {
  /* surface */
  --bg:          #0e0e0e;
  --text:        #c8c8c8;
  --accent:      #8b1e1e;
  --hairline:    rgba(200, 200, 200, 0.08);   /* dividers, section/footer rules */
  --line:        rgba(200, 200, 200, 0.25);   /* ghost button / input border */
  --line-strong: rgba(200, 200, 200, 0.55);   /* hover / focus border */

  /* type */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Inter', sans-serif;
  --text-display: clamp(2.75rem, 11vw, 4.75rem);
  --text-hero:    clamp(4rem, 18vw, 9rem);
  --text-xl:      clamp(1.25rem, 3.5vw, 1.75rem);
  --text-base:    1rem;
  --text-caption: 0.8rem;

  /* layout */
  --measure:    640px;
  --pad-x:      1.25rem;
  --gap:        1.5rem;
  --section-y:  3rem;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--text); text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--line-strong);
  outline-offset: 3px;
}

/* ── LAYOUT ─────────────────────────────────────────────────── */
.container {
  max-width: var(--measure);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* focused-page template: content vertically centered, footer pinned bottom.
   Used by single-action pages (confirmation, ad). The home page is a
   top-anchored document instead and does not use this. */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page > main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--section-y) 0;
}

/* hairline-topped section rhythm (home document) */
section {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--hairline);
}

/* ── TYPE ROLES ─────────────────────────────────────────────── */
/* big Barlow moment — one per focused page */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-display);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #fff;
}

/* Barlow eyebrow above a content block (home sections) */
.section-label {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--gap);
}

/* quiet Inter meta line (release name, tagline) */
.caption {
  font-size: var(--text-caption);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.55;
}

/* ── BUTTONS — one base, two roles. Exactly one --primary per page. ── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  padding: 0.875rem 1.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { opacity: 0.85; }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--line-strong); }

/* quiet tertiary link (secondary action) */
.quiet-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.65;
}
.quiet-link:hover { opacity: 1; }

.link-list { list-style: none; }
.link-list li + li { margin-top: 0.65rem; }
.link-list a { font-size: var(--text-base); font-weight: 500; }

/* ── FOOTER — every page ends here ──────────────────────────── */
footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.75rem;
  opacity: 0.28;
}

/* ── A11Y ───────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
