/* Seven to Seven — site styles. No external requests. Day: paper/ink/ember. Dark: ember on black. */
:root {
  color-scheme: light dark;
  --bg: #FBF6EE;        /* Paper */
  --surface: #F1E9DC;   /* Sand */
  --text: #1A1412;      /* Ink */
  --muted: #655C56;     /* Stone */
  --accent: #C2261A;    /* Ember */
  --on-accent: #FFFFFF;
  --deep: #6B1710;      /* Oxblood */
  --line: #DCCFBC;
  --morning: #F5A524;   /* First Light: fills only */
  --hero-text: #FBF6EE;
  --hero-sub: #D8CCBC;
  --hero-line: #3A2A20;
  --display: "Barlow Condensed", "Avenir Next Condensed", "Roboto Condensed", "Bahnschrift", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;        /* Blackout */
    --surface: #24140A;   /* Coal */
    --text: #E8912A;      /* Ember Glow */
    --muted: #C97A22;     /* near Low Ember, kept above 4.5:1 on Coal */
    --accent: #E8912A;
    --on-accent: #000000;
    --deep: #E8912A;
    --line: #6B3F10;      /* Ember Dim */
    --hero-text: #E8912A;
    --hero-sub: #C97A22;
    --hero-line: #6B3F10;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.16em; }
:focus-visible { outline: 3px solid var(--morning); outline-offset: 3px; border-radius: 4px; }
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--morning); color: #1A1412; padding: 10px 16px; font-weight: 700; border-radius: 0 0 12px 12px;
}
.skip:focus { top: 0; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: condensed;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.005em;
  margin: 0;
  text-wrap: balance;
}

/* ---------- Top band (always night) ---------- */
.night { background: #000; color: var(--hero-text); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #FF2D20; }
.brand svg { width: 58px; height: auto; display: block; }
.brand span { font-family: var(--display); font-weight: 800; font-stretch: condensed; font-size: 1.35rem; letter-spacing: 0.06em; text-transform: uppercase; }
.topnav { display: flex; gap: 4px 20px; flex-wrap: wrap; }
.topnav a { color: var(--hero-text); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 10px 0; border-bottom: 2px solid transparent; }
.topnav a:hover, .topnav a[aria-current="page"] { border-bottom-color: #F5A524; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 0; }
.hero-mark { display: block; width: min(400px, 70%); height: auto; margin: 20px 0 36px; }
.hero h1 { font-size: clamp(3.5rem, 13vw, 8rem); color: var(--hero-text); }
.hero h1 .dawn { color: #F5A524; }
.lede { font-size: clamp(1.15rem, 2.4vw, 1.45rem); line-height: 1.45; max-width: 34em; color: var(--hero-sub); margin: 28px 0 0; }
.lede strong { color: var(--hero-text); font-weight: 600; }
.soon {
  display: inline-flex; align-items: center; gap: 14px; margin: 36px 0 0;
  border: 2px solid #F5A524; border-radius: 24px; padding: 14px 22px; color: #F5A524;
}
.soon .dot { width: 12px; height: 12px; background: #F5A524; flex: none; }
.soon b { display: block; font-family: var(--display); font-stretch: condensed; font-weight: 800; text-transform: uppercase; font-size: 1.5rem; line-height: 1; letter-spacing: 0.03em; }
.soon small { display: block; font-size: 0.85rem; margin-top: 4px; color: var(--hero-sub); }

/* The night bar: 7 pm to 7 am */
.nightbar { margin: 64px 0 0; padding-bottom: 44px; }
.nightbar .bar { display: flex; height: 22px; gap: 6px; }
.nightbar .bar i { display: block; height: 100%; }
.nightbar .bar .a { flex: 44; background: #FF2D20; }
.nightbar .bar .b { flex: 6; background: #8A1C15; }
.nightbar .bar .c { flex: 20; background: #FF2D20; }
.nightbar .bar .d { flex: 5; background: #F5A524; }
.nightbar .ends { display: flex; justify-content: space-between; margin-top: 12px; font-family: var(--display); font-stretch: condensed; font-weight: 800; font-size: 1.25rem; letter-spacing: 0.05em; text-transform: uppercase; }
.nightbar .ends span:first-child { color: #FF2D20; }
.nightbar .ends span:last-child { color: #F5A524; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.eyebrow { font-family: var(--display); font-stretch: condensed; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; font-size: 1rem; color: var(--accent); margin: 0 0 14px; }
h2.big { font-size: clamp(2.4rem, 7vw, 4.25rem); }
.intro { font-size: 1.2rem; max-width: 36em; margin: 20px 0 0; }

.does { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 0; grid-template-columns: 1fr; border-top: 6px solid var(--text); }
.does li { align-content: start; padding: 28px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 3.2rem 1fr; gap: 4px 16px; }
.does .n { grid-row: 1 / span 2; font-family: var(--display); font-stretch: condensed; font-weight: 800; font-size: 2.6rem; line-height: 0.9; color: var(--accent); }
.does h3 { font-size: 1.75rem; line-height: 1.02; }
.does p { margin: 10px 0 0; grid-column: 2; color: var(--text); }
@media (min-width: 780px) {
  .does { grid-template-columns: 1fr 1fr; column-gap: 56px; }
}

/* Example night screen */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 780px) { .split { grid-template-columns: 1.05fr 0.95fr; gap: 64px; } }
.screen {
  background: #000; color: #E8912A; border-radius: 36px; padding: 30px 28px 28px; max-width: 380px; width: 100%; justify-self: center;
  border: 1px solid #6B3F10;
}
.screen .tag { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: #C97A22; margin: 0; }
.screen .time { font-family: var(--display); font-stretch: condensed; font-weight: 800; font-size: 5.2rem; line-height: 1; margin: 18px 0 6px; font-variant-numeric: tabular-nums; }
.screen .say { font-family: var(--display); font-stretch: condensed; font-weight: 800; text-transform: uppercase; font-size: 2.2rem; line-height: 1; margin: 0; }
.screen .why { margin: 8px 0 22px; color: #C97A22; font-size: 1.05rem; }
.screen .btn { display: block; text-align: center; border-radius: 24px; padding: 15px; font-weight: 700; font-size: 1.05rem; margin-top: 10px; }
.screen .fill { background: #E8912A; color: #000; }
.screen .line { border: 2px solid #B86E1E; color: #E8912A; }
.screen .wrong { color: #FF2D20; font-weight: 700; text-align: center; margin: 18px 0 0; }
.caption { font-size: 0.9rem; color: var(--muted); text-align: center; margin: 14px 0 0; }
.quiet { background: var(--surface); }
.plain { margin: 22px 0 0; padding: 0; list-style: none; }
.plain li { padding: 12px 0 12px 30px; position: relative; border-bottom: 1px solid var(--line); }
.plain li::before { content: ""; position: absolute; left: 0; top: 1.28em; width: 18px; height: 6px; background: var(--accent); }

/* Good to know */
.know { display: grid; gap: 16px; margin-top: 40px; grid-template-columns: 1fr; padding: 0; list-style: none; }
@media (min-width: 680px) { .know { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .know { grid-template-columns: 1fr 1fr 1fr; } }
.know li { background: var(--surface); border-radius: 20px; padding: 22px 22px 24px; border-top: 6px solid var(--accent); }
.know h3 { font-size: 1.45rem; line-height: 1.04; }
.know p { margin: 10px 0 0; font-size: 1rem; }

.closer { text-align: left; }
.closer p { font-size: 1.2rem; max-width: 34em; }
.links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; padding: 0; list-style: none; }
.links a { display: inline-block; text-decoration: none; font-weight: 700; padding: 14px 24px; border-radius: 24px; border: 2px solid var(--accent); color: var(--accent); }
.links a.primary { background: var(--accent); color: var(--on-accent); }
.links a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
footer { border-top: 6px solid var(--text); padding: 36px 0 56px; font-size: 0.95rem; color: var(--muted); }
footer .row { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 16px; }
footer a { color: var(--text); font-weight: 600; }
footer p { margin: 6px 0; max-width: 60em; }

/* ---------- Document pages ---------- */
.dochead { padding: 28px 0 44px; }
.dochead h1 { font-size: clamp(3rem, 11vw, 6rem); color: var(--hero-text); }
.dochead .eyebrow { color: #F5A524; }
.dochead .bar { display: flex; gap: 6px; height: 12px; margin-top: 28px; max-width: 320px; }
.dochead .bar i { display: block; }
.dochead .bar .a { flex: 8; background: #FF2D20; } .dochead .bar .d { flex: 1; background: #F5A524; }
.doc { padding: 48px 0 80px; }
.doc h2 { font-size: clamp(1.7rem, 5vw, 2.2rem); line-height: 1.04; margin: 52px 0 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.doc p, .doc li { max-width: 68ch; }
.doc p { margin: 0 0 16px; }
.doc ul { padding-left: 1.2em; margin: 0 0 16px; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--accent); }
.doc .meta { color: var(--muted); }
.doc .callout { background: var(--surface); border-left: 6px solid var(--accent); border-radius: 0 16px 16px 0; padding: 18px 20px; font-size: 1.1rem; }
.doc .draft, .doc .owner-note {
  border: 2px dashed var(--accent); border-radius: 12px; padding: 12px 16px; font-size: 0.95rem; font-weight: 600;
}
mark.ph { background: var(--morning); color: #1A1412; padding: 0 0.25em; border-radius: 3px; font-weight: 600; }

/* 404 */
.lost { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 56px 0 72px; }
.lost h1 { font-size: clamp(3.4rem, 14vw, 8rem); color: var(--hero-text); }
.lost p { color: var(--hero-sub); font-size: 1.2rem; max-width: 30em; }
.lost a.home { display: inline-block; margin-top: 12px; background: #E8912A; color: #000; font-weight: 700; padding: 14px 24px; border-radius: 24px; text-decoration: none; }

@media (max-width: 520px) {
  .wrap { padding: 0 20px; }
  section { padding: 56px 0; }
  .brand span { font-size: 1.15rem; }
  .screen .time { font-size: 4.4rem; }
}
@media print {
  .night { background: #fff; color: #000; }
  /* The mark's Paper bar is for black backgrounds; on a printed white page it becomes Ink. */
  .brand svg rect, .hero-mark rect, .lost svg rect { fill: #1A1412; }
  .topnav, .skip { display: none; }
}

/* ---------- Launch waitlist ---------- */
.notify { margin: 18px 0 0; }
.notify a { color: #F5A524; font-weight: 600; }
.waitlist .intro { margin-bottom: 28px; }
.wl-form { display: grid; gap: 20px; max-width: 520px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 2px solid var(--text); border-radius: 16px; padding: 14px 16px; min-height: 52px;
}
.field input[aria-invalid="true"] { border-color: var(--accent); border-width: 3px; }
.field-error, .form-error { color: var(--accent); font-weight: 700; margin: 8px 0 0; }
.form-error { border-left: 6px solid var(--accent); padding: 4px 0 4px 12px; margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.submit {
  font: inherit; font-weight: 700; font-size: 1.1rem; cursor: pointer; justify-self: start;
  background: var(--accent); color: var(--on-accent); border: 2px solid var(--accent);
  border-radius: 24px; padding: 14px 32px; min-height: 52px;
}
.submit:hover { text-decoration: underline; }
.submit:disabled { opacity: 0.7; cursor: progress; }
.form-ok { font-size: 1.2rem; font-weight: 600; border-left: 6px solid var(--accent); padding: 8px 0 8px 14px; margin: 0; }
.small { font-size: 0.9rem; color: var(--muted); max-width: 40em; margin: 20px 0 0; }
.small a { color: var(--text); }
@media (max-width: 520px) { .submit { width: 100%; justify-self: stretch; } }
[hidden] { display: none !important; }
.doc a.home-link { display: inline-block; margin-top: 8px; background: var(--accent); color: var(--on-accent); font-weight: 700; padding: 14px 24px; border-radius: 24px; text-decoration: none; }
