/* levirock.com
   Red Seal palette (cream, ink, red, gold), Manrope throughout. Headlines use Manrope ExtraBold in capitals
   until the Novelin licence is confirmed (tools/fonts/novelin-font-face.css).
   Flat colour, thin rules, no shadows, 2px radius. See README.md before changing tokens. */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/Manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #FFF9EC;
  --cream-2: #F6EEDB;
  --rule: #E3D7BD;
  --rule-strong: #B9AC8E;
  --ink: #1A1A1A;
  --ink-2: #4A4540;
  --red: #A31600;
  --red-dark: #7E1100;
  --gold: #DAA520;
  --gold-ink: #8C6B0E;
  --night-rule: #3A3631;
  --night-text: #D8CDB3;
  --night-muted: #BFB49A;

  --display: "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 24px;
  --section: 104px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-dark); text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.night :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute;
  left: 8px;
  top: -64px;
  z-index: 10;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 14px;
  font-weight: 700;
}
.skip:focus { top: 8px; color: var(--cream); }

/* ---------- Type ---------- */

.label {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 18px;
}
.label .num { color: var(--red); margin-right: 0.9em; }
.label .sep { margin: 0 0.6em; }
.panel .label { color: var(--ink-2); }
.panel .label .num { color: var(--red); }
.night .label { color: var(--gold); }
.night .label .num { color: var(--cream); }

.display {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.04;
  letter-spacing: 0.005em;
  margin: 0;
  text-wrap: balance;
}
.display .accent { display: block; color: var(--red); }
h1.display { font-size: clamp(2rem, 6.3vw, 4.75rem); line-height: 1; }
h2.display { font-size: clamp(1.55rem, 3vw, 2.4rem); }
h2.display-xl { font-size: clamp(1.9rem, 4.6vw, 3.6rem); }
h2.display + p, h2.display + .quote { margin-top: 24px; }
.nowrap { white-space: nowrap; }

.lede { font-size: 1.25rem; line-height: 1.55; max-width: 34em; margin: 0 0 32px; }
.big { font-size: 1.25rem; line-height: 1.55; }
.small { font-size: 0.875rem; color: var(--ink-2); }

.prose p { max-width: 36em; }

.tbd {
  background: var(--gold);
  color: var(--ink);
  padding: 0 0.35em;
  border-radius: 2px;
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 800;
  font-size: 0.8125rem;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 17px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
}
.btn-red { background: var(--red); color: var(--cream); }
.btn-red:hover { background: var(--red-dark); color: var(--cream); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--cream); }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream:hover { background: var(--gold); color: var(--ink); }
.btn-sm { padding: 12px 16px; font-size: 0.75rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.link-strong { font-weight: 700; color: var(--ink); }
.link-strong:hover { color: var(--red); }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }

/* ---------- Header and footer ---------- */

.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  min-height: 76px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.wordmark {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  margin: 0;
}
.wordmark:hover { color: var(--red); text-decoration: none; }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; }
.nav a:not(.btn) { color: var(--ink); font-weight: 600; font-size: 0.9375rem; text-decoration: none; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--red); text-decoration: underline; }

.site-footer {
  background: var(--ink);
  color: var(--night-text);
  padding: 64px 0 36px;
  font-size: 0.9375rem;
}
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--gold); }
.site-footer .wordmark { color: var(--cream); display: block; margin-bottom: 14px; }
.site-footer .label { color: var(--gold); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
.footer-grid p { max-width: 26em; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--night-rule);
  color: var(--night-muted);
  font-size: 0.8125rem;
}
.footer-base p { margin: 0; }
.footer-base a { margin-left: 18px; }

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; }
.section + .section:not(.panel):not(.night) { border-top: 1px solid var(--rule); }
.panel { background: var(--cream-2); }
.night { background: var(--ink); color: var(--night-text); }
.night .display { color: var(--cream); }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 72px; align-items: start; }
.split-wide { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 72px; align-items: end; margin-bottom: 56px; }
.split-wide .prose p:last-of-type { margin-bottom: 28px; }

.note { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--rule-strong); }
.note p:last-child { font-weight: 600; margin-bottom: 0; }

/* ---------- Hero ---------- */

.hero { padding: 72px 0 var(--section); }
.hero h1 { margin-bottom: 48px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px 72px; align-items: start; }

.portrait { margin: 0; }
.portrait img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.portrait figcaption { margin-top: 12px; font-size: 0.8125rem; color: var(--ink-2); }

/* Fact row, after the meta row on the Quarter Action Sheet */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 24px;
  margin: 48px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--rule-strong);
}
.facts dt {
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 6px;
}
.panel .facts dt { color: var(--ink-2); }
.hero-grid .facts-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 6px; }
.facts dd { margin: 0; font-weight: 600; font-size: 0.9375rem; line-height: 1.4; }

/* ---------- Rooms band ---------- */

.rooms-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 40px 72px; }
.big-num {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(5rem, 11vw, 8.5rem);
  line-height: 0.85;
  color: var(--gold);
  margin: 0 0 18px;
}
.rooms-count .label { color: var(--cream); }

.rooms { list-style: none; margin: 40px 0 36px; border-top: 1px solid var(--night-rule); }
.room {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr) auto;
  gap: 6px 32px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--night-rule);
}
.room-date { font-family: var(--display); font-weight: 900; font-size: 1.375rem; letter-spacing: 0.02em; color: var(--gold); text-transform: uppercase; }
.room-name { font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream); }
.room-status { font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--night-muted); white-space: nowrap; }
.coming { color: var(--night-text); max-width: 40em; }
.coming strong { color: var(--cream); }

/* The five ideas in the letter band, after the "5 plays" table on the Quarter Action Sheet */
.ideas { list-style: none; margin: 36px 0 40px; border-top: 1px solid var(--night-rule); }
.ideas li {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 5fr) minmax(0, 6fr);
  gap: 6px 28px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--night-rule);
}
.ideas .idea-num { font-family: var(--display); font-weight: 900; font-size: 1.125rem; color: var(--gold); }
.ideas .idea-name { font-family: var(--display); font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream); }
.ideas .idea-line { color: var(--night-text); font-size: 0.9375rem; }

/* Forms and small text on the dark band */
.night .field > label, .night .check, .night legend { color: var(--cream); }
.night .small, .night .hint { color: var(--night-muted); }
.night a { color: var(--gold); }
.night a:hover { color: var(--cream); }
.night .error { color: #F2B8AE; }
.night [aria-invalid="true"] { border-color: #F2B8AE; }
.form-status { color: var(--ink); }
.form-status a { color: var(--red); }

.sender { font-size: 0.75rem; color: var(--ink-2); margin: 0; }
.night .sender { color: var(--night-muted); }

.book-line { margin: 18px 0 0; font-size: 0.9375rem; }

/* Detailed schedule on /events/ (parked with the dinners, kept for when they return) */
.schedule { list-style: none; margin: 8px 0 0; border-top: 1px solid var(--night-rule); }
.event {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 12px 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--night-rule);
}
.event-date .room-date { display: block; font-size: 1.75rem; line-height: 1; }
.event-date span:last-child { display: block; margin-top: 8px; font-size: 0.8125rem; color: var(--night-muted); }
.event h3 { font-family: var(--display); font-weight: 700; font-size: 1.125rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--cream); margin: 0 0 10px; }
.event p { max-width: 40em; }
.event .who { color: var(--cream); font-weight: 600; }
.event .room-status { display: block; margin-top: 4px; white-space: normal; }

/* ---------- Lists ---------- */

.squares { list-style: none; margin: 8px 0 0; }
.squares li { position: relative; padding-left: 22px; margin-bottom: 10px; max-width: 36em; }
.squares li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--gold); }

.gets { list-style: none; border-top: 1px solid var(--rule-strong); }
.gets li { padding: 26px 0; border-bottom: 1px solid var(--rule); }
.gets h3 { font-family: var(--display); font-weight: 700; font-size: 1.0625rem; letter-spacing: 0.05em; text-transform: uppercase; margin: 0 0 8px; }
.gets p { margin: 0; max-width: 34em; }

.quote { margin: 48px 0 0; }
.quote p {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 14px;
}
.quote footer { font-weight: 700; font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-2); }

.steps { list-style: none; margin-top: 48px; border-top: 1px solid var(--rule-strong); }
.steps li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 4fr) minmax(0, 7fr);
  gap: 8px 32px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.step-num { font-family: var(--display); font-weight: 900; font-size: 2rem; line-height: 1; color: var(--red); }
.steps h3 { font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: 0.05em; text-transform: uppercase; margin: 0; }
.steps p { margin: 0; max-width: 34em; }

.qa { margin: 48px 0 0; border-top: 1px solid var(--rule-strong); }
.qa div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 72px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.qa dt { font-family: var(--display); font-weight: 700; font-size: 1.0625rem; letter-spacing: 0.04em; text-transform: uppercase; }
.qa dd { margin: 0; max-width: 34em; }

/* ---------- About ---------- */

.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px 96px; margin-top: 48px; align-items: start; }

.ledger { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ledger caption {
  text-align: left;
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-bottom: 14px;
}
.ledger th, .ledger td { padding: 14px 0; border-bottom: 1px solid var(--rule-strong); text-align: left; }
.ledger thead th { font-size: 0.75rem; font-weight: 700; color: var(--ink-2); padding-top: 0; }
.ledger thead th:last-child { text-align: right; }
.ledger tbody th { font-weight: 600; }
.ledger td { text-align: right; font-family: var(--display); font-weight: 900; font-size: 1.375rem; }
.ledger tbody tr:last-child td { color: var(--red); }
.ledger + .small { margin-top: 14px; }

.hire { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--rule-strong); max-width: 44em; }
.hire p:last-child { font-size: 1.125rem; margin: 0; }

/* One wide statement, used where a split layout would repeat the section before it */
.statement { max-width: 54rem; }
.statement h2 { margin-bottom: 28px; }
.statement .big { max-width: 36em; }

/* Brand-shoot slots. Each one names its shot in BRAND-SHOOT.md. Remove the class once a real photo goes in. */
.photo-slot {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  aspect-ratio: 4 / 5;
  padding: 22px;
  border: 1px dashed var(--rule-strong);
  background: var(--cream-2);
  color: var(--ink-2);
  font-size: 0.875rem;
  margin: 0;
}
.panel .photo-slot { background: var(--cream); }
.photo-slot strong { font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); }
.photo-slot.wide { aspect-ratio: 3 / 2; }

/* ---------- Community empty state ---------- */

.empty { border: 1px dashed var(--rule-strong); padding: 24px 26px; margin: 8px 0 48px; }
.empty p:last-child { margin: 0; color: var(--ink-2); }

/* ---------- Forms ---------- */

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .field legend { font-weight: 700; font-size: 0.9375rem; }
.field .opt { font-weight: 500; color: var(--ink-2); }
.hint { font-size: 0.8125rem; color: var(--ink-2); margin: 0; }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  padding: 13px 14px;
}
textarea { min-height: 128px; resize: vertical; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231A1A1A' stroke-width='2'/%3E%3C/svg%3E");
  background-position: right 16px center;
  background-size: 12px 8px;
  background-repeat: no-repeat;
  padding-right: 44px;
}
::placeholder { color: #6E6658; opacity: 1; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
[aria-invalid="true"] { border-color: var(--red); }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset legend { padding: 0; margin-bottom: 10px; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.check, .field > .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 0.9375rem; }
.check input { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red); }
fieldset[aria-invalid="true"] legend { color: var(--red); }

.error { color: var(--red); font-size: 0.8125rem; font-weight: 700; margin: 0; }
.error:empty { display: none; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.form-actions .small { margin: 0; }

.form-status { border: 1px solid var(--ink); padding: 26px 28px; background: var(--cream); }
.form-status h3 { font-family: var(--display); font-weight: 900; font-size: 1.25rem; text-transform: uppercase; margin: 0 0 8px; }
.form-status p:last-child { margin: 0; }
.form-status[hidden] { display: none; }
.form-status.is-error { border-color: var(--red); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-intro { margin-bottom: 36px; }

/* ---------- Legal pages ---------- */

.draft-banner { background: var(--gold); color: var(--ink); font-weight: 700; font-size: 0.875rem; padding: 12px 0; }
.draft-banner p { margin: 0; }
.legal { max-width: 46em; }
.legal h2 { font-family: var(--display); font-weight: 700; font-size: 1.125rem; letter-spacing: 0.05em; text-transform: uppercase; margin: 44px 0 12px; }
.legal ul { padding-left: 1.2em; margin-bottom: 1em; }
.legal li { margin-bottom: 6px; }

/* ---------- Narrow screens ---------- */

@media (max-width: 960px) {
  :root { --section: 80px; }
  .split, .split-wide, .hero-grid, .about-grid, .rooms-grid { grid-template-columns: minmax(0, 1fr); }
  .split-wide { align-items: start; }
  .portrait, .photo-slot { max-width: 460px; }
  .photo-slot { aspect-ratio: 3 / 2; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .rooms-count { display: flex; align-items: baseline; gap: 18px; }
  .big-num { font-size: 4.5rem; margin: 0; }
  .qa div { grid-template-columns: minmax(0, 1fr); }
  .steps li { grid-template-columns: 4rem minmax(0, 1fr); }
  .steps li p { grid-column: 2; }
  .form-intro { margin-bottom: 0; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --section: 64px; }
  body { font-size: 1rem; }
  .hero { padding-top: 48px; }
  .hero h1 { margin-bottom: 32px; }
  .lede, .big { font-size: 1.125rem; }
  .nav { gap: 6px 18px; }
  .nav a:not(.btn) { font-size: 0.875rem; }
  .room { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ideas li { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .ideas .idea-line { grid-column: 2; }
  .event { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 26px 0; }
  .form, .checks { grid-template-columns: minmax(0, 1fr); }
  .footer-base a { margin: 0 18px 0 0; }
  .steps li { grid-template-columns: 3rem minmax(0, 1fr); gap: 6px 16px; }
  .step-num { font-size: 1.5rem; }
}

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

/* ---------- Episode pages (template in tools/templates/episode.html) ---------- */

.video { position: relative; aspect-ratio: 16 / 9; margin: 40px 0 64px; background: var(--ink); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.episode-body .steps { margin-top: 28px; }
.episode-body .steps li { grid-template-columns: 4.5rem minmax(0, 1fr); }
.episode-body .steps li p { grid-column: 2; }
.episode-body .step-num { font-size: 1rem; }
.transcript { margin-top: 64px; border-top: 1px solid var(--rule-strong); padding-top: 22px; }
.transcript summary { cursor: pointer; font-weight: 700; color: var(--red); }
.transcript summary:hover { text-decoration: underline; }
.transcript .prose { margin-top: 22px; }

.legal h1 { margin-bottom: 36px; }
