/* Sleekit's website: one hand-written stylesheet (design/SITE.md section 4).
   Borrowed from the app's DESIGN.md: one dark theme, one accent, flat fills,
   no shadows, no gradients. Every colour is a token on :root. The pages carry
   no inline styles (the Content-Security-Policy refuses them), so the layout of
   design/site-reference/ lives here. */

/* ---------- fonts (self-hosted, SIL Open Font License; see fonts/) ---------- */

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-400-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-400-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens (SITE.md section 4) ---------- */

:root {
  --ground: #0B0806;
  --surface: #1A120D;
  --line: #2A1F17;
  --line-strong: #806650;
  --cream: #F1E7D3;
  --muted: #B5A68C;
  --ember: #E8742A;
  --serif: "Instrument Serif", Georgia, serif; /* the wordmark, Home's headings, role names, numerals */
  --display: "Fraunces", Georgia, serif; /* the guides' headings, as in the app */
  --text: "Atkinson Hyperlegible", system-ui, sans-serif; /* everything you read or tap */
  color-scheme: dark;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
/* design/site-reference/ sizes these boxes by their content, padding on top, and
   its rows wrap where that puts them. */
.card, .role, .toc, .boxed .split__text { box-sizing: content-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; } /* jump links glide, unless motion is reduced */
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--cream);
  font: 400 1.125rem/1.5 var(--text);
}
.home { line-height: 1.45; }
h1, h2, h3, h4, p, figure, ol, ul { margin: 0; }
h1, h2, h3, h4 { font-weight: 400; overflow-wrap: anywhere; } /* a long word wraps rather than scrolls, at 200% text */
a { color: var(--cream); }
a:hover { color: var(--ember); }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; }
img, video { display: block; max-width: 100%; }
svg { flex: none; }

/* The column: 1120px of content at most, and 24px each side. */
.wrap { width: 100%; max-width: calc(1120px + 2 * 24px); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---------- header and footer (SITE.md section 3) ---------- */

.site-header { background: var(--ground); border-bottom: 1px solid var(--line); }
/* It stays at the top while the page scrolls, on any screen tall enough to
   spare it: zoomed in far on a laptop, a header that never moved would cover
   most of the page. */
@media (min-height: 30em) {
  .site-header { position: sticky; top: 0; z-index: 5; }
  /* A jump link's heading lands below it: the header is the wordmark, then the
     links on two rows ... */
  html { scroll-padding-top: 11rem; }
}
@media (min-height: 30em) and (min-width: 24em) {
  html { scroll-padding-top: 8rem; } /* ... or on one row under the wordmark ... */
}
@media (min-height: 30em) and (min-width: 36em) {
  html { scroll-padding-top: 5.5rem; } /* ... or everything on one row. */
}
.bar {
  display: flex;
  flex-wrap: wrap; /* the links wrap under the wordmark on a narrow screen */
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 1.125rem; height: 1.5rem; color: var(--ember); }
.wordmark { font: 400 2rem/1 var(--serif); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 1.0625rem; }
/* On a 390px phone the three links share one row under the wordmark, whichever
   is bold: 10px each side, where the reference's 12px wrapped them on one page. */
.site-nav a {
  padding: 0.625rem 0.625rem 0.4375rem;
  border-bottom: 3px solid transparent; /* the current page's link fills it in ember */
  text-decoration: none;
}
.site-nav a[aria-current="page"] { font-weight: 700; border-bottom-color: var(--ember); }
.site-nav .play {
  margin-left: 4px;
  padding: 0.625rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--ember);
  color: var(--ground);
  font-weight: 700;
}
.site-nav .play:hover { color: var(--ground); }

.site-footer { border-top: 1px solid var(--line); }
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 28px;
  font-size: 1rem;
  color: var(--muted);
}
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--ember); }
.footer a[aria-current="page"] { font-weight: 700; color: var(--cream); }

/* ---------- shared pieces ---------- */

.eyebrow {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
}
.lede { font-size: 1.25rem; color: var(--muted); }
.muted { color: var(--muted); }
.note { font-size: 1rem; color: var(--muted); }
.strong-link { align-self: flex-start; padding: 8px 0; font-weight: 700; }
.link-bold { font-weight: 700; }

.button {
  display: inline-block;
  padding: 1rem 1.75rem;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
}
.button--primary, .button--primary:hover { background: var(--ember); color: var(--ground); }
.button--outline { padding: calc(1rem - 1px) calc(1.75rem - 1px); border: 1px solid var(--line-strong); font-weight: 400; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

/* A still beside its words: side by side on a wide screen, stacked on a phone. */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 48px; }
.split--reverse { flex-wrap: wrap-reverse; } /* the picture first when they stack */
.split--top { align-items: flex-start; }
.split__media {
  flex: 1 1 27.5rem;
  min-width: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
}
.split__text { flex: 1 1 25rem; min-width: 0; display: flex; flex-direction: column; gap: 14px; }

.cards { display: flex; flex-wrap: wrap; gap: 16px; padding: 0; list-style: none; }
.card {
  flex: 1 1 15rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
  border-radius: 14px;
  background: var(--surface);
}
.card--outline { background: none; border: 1px solid var(--line-strong); }
.card__title { font-weight: 700; }
.card__text { font-size: 1rem; color: var(--muted); }

/* ---------- Home ---------- */

.home h1, .home h2 { font-family: var(--serif); line-height: 1; }
.home h2 { font-size: min(3rem, 1.25rem + 8vw); }
.band { border-top: 1px solid var(--line); }
.band__body { padding-top: 72px; padding-bottom: 72px; }
.stack { display: flex; flex-direction: column; gap: 32px; }

.hero__image {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center 70%;
}
.hero__text { display: flex; flex-direction: column; gap: 20px; padding-top: 40px; padding-bottom: 80px; }
.hero h1 { max-width: 980px; font-size: clamp(3rem, 7.5vw, 6.5rem); line-height: 0.98; }
.hero h1 em { color: var(--ember); }
.hero .lede { max-width: 620px; }
.hero .actions { margin-top: 8px; }

.short { gap: 40px 56px; }
.short .split__media { flex-basis: 28.75rem; }
.short .split__text { flex-basis: 23.75rem; gap: 16px; }

.preshow { gap: 24px; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 24px; }
.head-row .note { max-width: 100%; }
.video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: var(--ground);
}
.transcript summary { cursor: pointer; font-weight: 700; padding: 8px 0; }
.transcript summary:hover { color: var(--ember); }
.transcript__text { display: flex; flex-direction: column; gap: 12px; max-width: 760px; padding-top: 8px; color: var(--muted); }

.need .card { flex-basis: 13.75rem; padding: 24px; }

.steps { display: flex; flex-wrap: wrap; gap: 24px; padding: 0; list-style: none; }
.step {
  flex: 1 1 17.5rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 16px;
  border-top: 3px solid var(--line);
}
.step--first { border-top-color: var(--ember); } /* where to begin */
.step__number { font: 400 2.125rem/1 var(--serif); color: var(--muted); }
.step--first .step__number { color: var(--ember); }
.step__title { font-weight: 700; }
.step__text { font-size: 1rem; color: var(--muted); }

.banner { width: 100%; height: 420px; object-fit: cover; object-position: center 75%; }
.closing { display: flex; flex-direction: column; gap: 20px; padding-top: 40px; padding-bottom: 88px; }
.home .closing h2 { font-size: clamp(2.75rem, 6vw, 5rem); }

/* ---------- the guides: How to play, Hosting guide, Privacy ---------- */

.guide h1, .guide h2, .guide h3, .guide h4 { font-family: var(--display); }
.guide h1 { font-size: min(clamp(2.5rem, 5vw, 3.75rem), 1.25rem + 9vw); font-weight: 500; line-height: 1.05; }
.guide h2 { font-size: min(2.25rem, 1rem + 6vw); font-weight: 500; line-height: 1.15; }
.guide h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.guide h4 { font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.guide-main { display: flex; flex-direction: column; gap: 64px; padding-top: 56px; padding-bottom: 80px; }
.guide-main--hosting { gap: 56px; }
.intro { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 32px 56px; }
.intro__text { flex: 2 1 30rem; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.intro .lede { max-width: 640px; }
.toc { flex: 1 1 16.25rem; min-width: 0; padding: 20px 24px; border-radius: 14px; background: var(--surface); }
.toc .eyebrow { margin-bottom: 8px; }
.toc ol { display: flex; flex-direction: column; gap: 4px; padding-left: 22px; font-size: 1.0625rem; }
.page-text { display: flex; flex-direction: column; gap: 16px; max-width: 760px; } /* Privacy, 404 */
.guide-section { display: flex; flex-direction: column; gap: 24px; }
.guide-section--tight { gap: 20px; }
.guide-section--close { gap: 14px; }
.muted strong { color: var(--cream); } /* the app's own labels, in bold, so a host can match them on screen */
.measure { max-width: 720px; }
.measure-wide { max-width: 760px; }
.bullets { display: flex; flex-direction: column; gap: 6px; padding-left: 22px; }
.bullets--muted { color: var(--muted); }
.bullets--loose { gap: 10px; }

/* The roles. */
.role-cards { display: flex; flex-wrap: wrap; gap: 16px; }
.role {
  flex: 1 1 18.75rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
}
.role--sleekit { gap: 0; padding: 0; overflow: hidden; border: 2px solid var(--ember); background: var(--surface); }
.role--sleekit img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.role__body { display: flex; flex-direction: column; gap: 10px; padding: 24px 28px 28px; }
.role__name { font: 400 min(3.25rem, 1rem + 9vw)/0.95 var(--serif); overflow-wrap: anywhere; }

/* Winning: a still and its words in one outlined box. */
.boxed { flex-wrap: wrap; align-items: stretch; gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }
.boxed .split__media { flex-basis: 26.25rem; border-radius: 0; }
.boxed .split__text { flex-basis: 23.75rem; justify-content: center; padding: 32px; }

/* One night or two. */
.formats .card { flex-basis: 20rem; gap: 8px; padding: 24px 28px; }

/* The link to the other guide, at the foot of each. */
.next-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: min(310px, 100%); /* the reference's 260px of content, its padding and border */
  padding: 16px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  text-decoration: none;
}
.next-link--next { align-self: flex-end; }
.next-link--back { align-self: flex-start; }
.next-link__label { font-size: 0.9375rem; color: var(--muted); }
.next-link__title { font-size: 1.25rem; font-weight: 700; }

/* Hosting guide: the mode cards, the steps before the day, the problems. */
.modes .card { flex-basis: 20rem; gap: 8px; padding: 24px 28px; }
.checklist { display: flex; flex-direction: column; padding: 0; list-style: none; }
.checklist li { display: flex; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist__number { min-width: 28px; font: 400 2rem/1 var(--serif); color: var(--ember); }
.checklist__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.checklist__text { color: var(--muted); }
.checklist__text strong, .label { color: var(--cream); font-weight: 700; }
.problems .card { flex-basis: 15rem; }
.during { flex-basis: 26.25rem; gap: 16px; }

/* What the TV shows: a small picture of the Reveal screen (the app's DESIGN.md
   section 7), drawn in the site's tokens. */
.tv-figure { flex: 1 1 26.25rem; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.tv {
  container-type: inline-size;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 7%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.tv__eyebrow { display: flex; align-items: center; gap: 12px; }
.tv__eyebrow .eyebrow { min-width: 0; }
.tv__rule { flex: 1; border-top: 1px solid var(--line-strong); }
.tv__statement {
  font: 500 2.25rem/1.05 var(--display);
  font-size: clamp(1.25rem, 0.5rem + 6cqi, 2.25rem);
  overflow-wrap: anywhere;
}
.tv__brand { display: flex; align-items: center; gap: 6px; font: 600 0.9375rem/1 var(--display); }
.tv__brand svg { width: 0.625rem; height: 0.875rem; color: var(--ember); }
.tv-figure figcaption { font-size: 1rem; color: var(--muted); }

/* ---------- the walkthroughs (SITE.md section 5; WALKTHROUGHS.md) ---------- */

.walkthrough { display: flex; flex-direction: column; gap: 12px; }
/* A phone-shaped video: at most 360px wide, centred with its heading, and never
   taller than 85% of the screen (39vh wide), so its controls stay in view. */
.walkthrough--phone { width: min(100%, 360px, 39vh); margin: 0 auto; }
.walkthrough--phone .video { margin-top: 4px; aspect-ratio: 390 / 844; }
.walkthrough--tv { padding-top: 8px; }
.walkthrough--tv .video { margin-top: 4px; }
.chapters { display: flex; flex-direction: column; gap: 4px; padding-left: 22px; font-size: 1.0625rem; }
.walkthrough h4 { margin-top: 12px; }
