/* Night Shift Scarlet: shared styles for the hand-written root pages
   (index.html, support.html, privacy-policy-pulseu.html).
   Tokens, nav, footer, buttons and the title band live here so the three
   pages cannot drift. Page-specific rules stay inline in each page.
   Generated event and hub pages use web/index.css, not this file. */

:root {
  --night: #0F0A0B;
  --ember: #1C1214;
  --line: #2E1B1E;
  --oxblood: #5C0A1E;
  --scarlet: #CC0033;
  --signal: #FF3355;
  --bone: #F6ECEA;
  --muted-dark: #B39C9F;
  --paper: #FAF6F4;
  --ink: #1E1416;
  --muted-light: #5E5153;
  --rule-light: #E8DEDB;
  --link-light: #B0002C;
  --past: #5A4448;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--night);
  color: var(--bone);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, figure { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); font-weight: 400; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 64px; }
.eyebrow { font-size: 14px; letter-spacing: 0.16em; color: var(--signal); font-weight: 700; }
.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;
}

/* Wordmark */
.wordmark {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--bone);
  text-decoration: none;
  line-height: 1;
}
.wordmark em { color: var(--signal); }

/* Nav */
.site-nav { background: var(--night); border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.site-nav .wrap { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.site-nav .links { display: flex; align-items: center; gap: 28px; }
.site-nav .links a:not(.pill) {
  font-size: 15px; font-weight: 500; color: var(--muted-dark);
  text-decoration: none; padding: 10px 4px;
}
.site-nav .links a:not(.pill):hover,
.site-nav .links a[aria-current="page"] { color: var(--bone); }
.pill {
  display: inline-flex; align-items: center; height: 44px; padding: 0 20px;
  border-radius: 999px; background: var(--scarlet); color: #FFFFFF;
  font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.pill:hover { background: color-mix(in srgb, var(--scarlet) 88%, var(--night)); }

.menu { display: none; }
.menu summary {
  list-style: none; width: 44px; height: 44px; display: flex;
  align-items: center; justify-content: center; cursor: pointer; color: var(--bone);
}
.menu summary::-webkit-details-marker { display: none; }
.menu .panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--night); border-bottom: 1px solid var(--line);
  padding: 8px 20px 20px; display: flex; flex-direction: column;
}
.menu .panel a {
  min-height: 44px; display: flex; align-items: center; font-size: 17px;
  font-weight: 500; color: var(--bone); text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.menu .panel a.pill { margin-top: 16px; justify-content: center; border-bottom: 0; height: 50px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 28px; border-radius: 999px;
  background: var(--scarlet); color: #FFFFFF; font-size: 17px; font-weight: 700;
  text-decoration: none; white-space: nowrap; border: 1px solid var(--scarlet);
}
.btn:hover { background: color-mix(in srgb, var(--scarlet) 88%, var(--night)); border-color: transparent; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--bone); font-weight: 500; padding: 0 26px; }
.btn.ghost:hover { border-color: var(--muted-dark); }

/* Dark title band (privacy, support) */
.band { position: relative; overflow: hidden; background: var(--night); padding: 80px 0 72px; }
.band-line { position: absolute; left: 0; right: 0; bottom: 0; opacity: 0.55; pointer-events: none; }
.band-line svg { width: 100%; height: auto; min-width: 900px; }
.band .inner { position: relative; max-width: 900px; display: flex; flex-direction: column; gap: 16px; }
.band .kicker { font-family: var(--mono); font-size: 14px; color: var(--signal); }
.band h1 { font-family: var(--serif); font-weight: 400; font-size: 96px; line-height: 0.98; color: var(--bone); }
.band .lede { font-size: 21px; line-height: 1.5; color: var(--muted-dark); max-width: 720px; }

/* Light reading area */
.paper { background: var(--paper); color: var(--ink); }
.paper a { color: var(--link-light); }

/* Footer */
.site-footer { background: var(--night); border-top: 1px solid var(--line); }
.site-footer .wrap {
  padding-top: 48px; padding-bottom: 48px; display: flex;
  justify-content: space-between; align-items: flex-start; gap: 40px;
}
.site-footer .about { display: flex; flex-direction: column; gap: 10px; }
.site-footer .wordmark { font-size: 28px; }
.site-footer .about p { font-size: 14px; color: var(--muted-dark); max-width: 420px; line-height: 1.5; }
.site-footer .cols { display: flex; gap: 64px; }
.site-footer .col { display: flex; flex-direction: column; gap: 10px; }
.site-footer .col span { font-size: 12px; letter-spacing: 0.14em; color: var(--muted-dark); font-weight: 700; }
.site-footer .col a { color: var(--bone); text-decoration: none; font-size: 15px; }
.site-footer .col a:hover { color: var(--signal); }

@media (max-width: 900px) {
  .site-nav .links { display: none; }
  .menu { display: block; }
  .band h1 { font-size: 64px; }
}

@media (max-width: 700px) {
  .site-footer .wrap { flex-direction: column; gap: 32px; }
  .site-footer .cols { gap: 40px; flex-wrap: wrap; }
  .site-footer .col a { min-height: 44px; display: flex; align-items: center; }
  .site-footer .col { gap: 0; }
  .site-footer .col span { margin-bottom: 4px; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .site-nav .wrap { height: 64px; }
  .wordmark { font-size: 22px; }
  .btn { width: 100%; }
  .band { padding: 48px 0 56px; }
  .band h1 { font-size: 52px; }
  .band .lede { font-size: 17px; }
  .band .kicker { font-size: 12px; }
}
