/* The four hand-written guides (start-a-startup, muse, gta5, claude-motion).
   Apple-style, mirrors /resources.css: white canvas, system type, quiet colour. 2026-10-09 redesign.
   The navbar is styled by /resources/site-nav.css alone: nothing here touches .nav, .brand*, .nav-links or .chip. */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --ink-faint: #86868b;
  --line: #d2d2d7;
  --hair: rgba(0, 0, 0, 0.08);
  --accent: #0071e3;
  --accent-ink: #0066cc;
  --kicker: #bf4800;
  --radius: 24px;
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  --maxw: 1040px;
  --gap: clamp(14px, 1.8vw, 22px);
  --head-gap: clamp(28px, 4vw, 48px);
  /* Side padding that keeps content in a centred column while section backgrounds run edge to edge. */
  --gutter: max(clamp(20px, 5vw, 40px), calc((100vw - var(--maxw)) / 2));
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.47 var(--font);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
input:focus-visible,
.deck:focus-visible {
  border-radius: 6px;
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

p {
  margin: 0;
}

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

/* The old paper texture layer. The markup stays; it draws nothing. */
.paper {
  display: none;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 18px;
  border-radius: 980px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transform: translateY(-220%);
  transition: transform 0.16s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Page frame: every direct child of the article is a full-width band. */
main {
  margin: 0;
  padding: 0;
}

article > * {
  padding: clamp(56px, 8vw, 104px) var(--gutter);
}

/* Sections alternate white and soft grey. Cards take the opposite tone through --surface. */
article > section {
  --surface: var(--bg-soft);
  --inset: #ffffff;
  background: var(--bg);
}

article > section:nth-of-type(odd) {
  --surface: #ffffff;
  --inset: var(--bg-soft);
  background: var(--bg-soft);
}

.eyebrow,
.section-label {
  color: var(--ink-soft);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h2 {
  margin-top: 8px;
  font-size: clamp(34px, 5.4vw, 56px);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.03em;
}

.section-intro {
  max-width: 700px;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.4;
}

.aside {
  max-width: 700px;
  margin-top: 18px;
  color: var(--ink-soft);
}

.lede a,
.section-intro a,
.aside a,
.rule-list a,
.step-list a,
.video-list a,
.notes a,
.quote a {
  color: var(--accent-ink);
}

.lede a:hover,
.section-intro a:hover,
.aside a:hover,
.rule-list a:hover,
.step-list a:hover,
.video-list a:hover,
.notes a:hover,
.quote a:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  padding-top: clamp(56px, 9vw, 112px);
  padding-bottom: clamp(48px, 7vw, 88px);
}

.hero h1 {
  margin-top: 14px;
  font-size: clamp(42px, 6.2vw, 76px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero h1 em {
  color: var(--ink-soft);
  font-style: normal;
}

.lede {
  max-width: 620px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.4;
  letter-spacing: -0.012em;
}

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.jump a {
  padding: 7px 14px;
  border-radius: 980px;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 13px;
  transition: background 0.2s;
}

.jump a:hover {
  background: #e8e8ed;
}

/* A hero with no picture beside it: centred, like the hub. */
.hero-solo {
  grid-template-columns: minmax(0, 1fr);
  text-align: center;
}

.hero-solo h1 {
  font-size: clamp(42px, 7vw, 80px);
  line-height: 1.04;
}

.hero-solo .lede {
  max-width: 680px;
  margin-inline: auto;
}

.hero-solo .jump {
  justify-content: center;
}

/* Photos and loops: rounded, straight, no frame. (The class names are from the old polaroid look.) */
.hero-polaroid,
.polaroid {
  position: relative;
  margin: 0;
}

.tape {
  display: none;
}

.hero-polaroid img,
.hero-polaroid video {
  width: 100%;
  border-radius: 28px;
  background: var(--bg-soft);
  object-fit: cover;
}

.hero-polaroid figcaption {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 14px;
  text-align: center;
}

.polaroid {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface, var(--bg-soft));
}

.polaroid img,
.polaroid video {
  width: 100%;
  background: var(--bg-soft);
  object-fit: cover;
}

.polaroid figcaption {
  padding: 16px 22px 20px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: var(--head-gap);
}

.board .polaroid img {
  aspect-ratio: 4 / 5;
}

.board .polaroid.wide {
  display: flex;
  flex-direction: column;
  grid-column: span 2;
}

.board .polaroid.wide img {
  flex: 1 1 0;
  height: 0;
  min-height: 0;
  aspect-ratio: auto;
}

/* Big numbers */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin: var(--head-gap) 0 0;
  padding: 0;
  list-style: none;
}

.stats li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
}

.stats strong {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.stats span {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.42;
}

/* Numbered cards. Six tracks so 3, 4, 5 and 7 cards all fill their rows. */
.rule-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--gap);
  margin: var(--head-gap) 0 0;
  padding: 0;
  list-style: none;
}

.rule-list > li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  grid-column: span 2;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
}

@media (min-width: 881px) {
  .rule-list > li:first-child:nth-last-child(4),
  .rule-list > li:first-child:nth-last-child(4) ~ li,
  .rule-list > li:first-child:nth-last-child(5) ~ li:nth-child(n + 4),
  .rule-list > li:first-child:nth-last-child(7) ~ li:nth-child(n + 4) {
    grid-column: span 3;
  }

  .prompt:first-child:nth-last-child(3),
  .prompt:first-child:nth-last-child(3) ~ .prompt {
    grid-column: span 2;
  }
}

.rule-list > li > div {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.rule-no {
  color: var(--ink-faint);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.rule-list h3 {
  font-size: 24px;
  line-height: 1.14;
}

.rule-list p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.45;
}

.rule-list .how {
  margin-top: auto;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--inset);
  color: var(--ink);
  font-size: 15px;
}

.rule-list p:has(+ .how) {
  margin-bottom: 16px;
}

.rule-list .how strong {
  font-weight: 600;
}

/* Quotes */
.quote {
  margin: var(--gap) 0 0;
  padding: 30px 32px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.022em;
  text-wrap: pretty;
}

.quote cite {
  display: block;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
}

/* Steps: a title on the left, one card of numbered rows on the right. */
.phase {
  display: grid;
  grid-template-columns: minmax(180px, 0.36fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  margin-top: var(--gap);
}

.section-intro + .phase {
  margin-top: var(--head-gap);
}

.phase-title {
  position: sticky;
  top: 84px;
  align-self: start;
  padding-top: 20px;
  font-size: clamp(24px, 2.6vw, 28px);
  line-height: 1.14;
}

.phase-title span {
  display: block;
  margin-bottom: 6px;
  color: var(--kicker);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.step-list,
.video-list {
  margin: 0;
  padding: 6px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  list-style: none;
}

.step-list li,
.video-list li {
  position: relative;
  padding: 18px 0;
  border-top: 1px solid var(--hair);
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.45;
}

.step-list li:first-child,
.video-list li:first-child {
  border-top: 0;
}

.step-list li {
  padding-left: 44px;
}

.step-list li strong,
.video-list strong {
  color: var(--ink);
  font-weight: 600;
}

.step-list li em {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 9px;
  border-radius: 980px;
  background: var(--inset);
  color: var(--ink);
  font-size: 12px;
  font-style: normal;
}

.step-list li::before {
  position: absolute;
  top: 20px;
  left: 0;
  color: var(--ink-faint);
  content: counter(list-item, decimal-leading-zero);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Timed script */
.pitch-script {
  max-width: 820px;
  margin: var(--head-gap) 0 0;
  padding: 6px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  list-style: none;
}

.pitch-script li {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--hair);
  color: var(--ink-soft);
  font-size: 16px;
}

.pitch-script li:first-child {
  border-top: 0;
}

.pitch-script strong {
  color: var(--ink);
  font-weight: 600;
}

.time {
  color: var(--ink-faint);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Two-column section: heading on the left, a card of rows on the right. (Named .video in the markup.) */
.video {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.video-copy p:last-child {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.4;
}

/* Checklist */
.check-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: var(--head-gap);
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 24px 26px 12px;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
}

/* Floated so the legend sits inside the card like a heading instead of on its edge. */
legend {
  float: left;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

fieldset label {
  display: flex;
  clear: both;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid var(--hair);
  font-size: 16px;
  line-height: 1.4;
  cursor: pointer;
}

fieldset input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

fieldset label:has(input:checked) {
  color: var(--ink-faint);
  text-decoration: line-through;
}

/* Sources */
.reading-list {
  margin: var(--head-gap) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.reading-list a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 24px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--hair);
}

.reading-list strong {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  transition: color 0.2s;
}

.reading-list em {
  color: var(--ink-soft);
  font-size: 15px;
  font-style: normal;
}

.reading-list a:hover strong {
  color: var(--accent-ink);
}

/* Closing statement: the black band */
.closing {
  display: grid;
  justify-items: center;
  padding-top: clamp(64px, 10vw, 120px);
  padding-bottom: clamp(64px, 10vw, 120px);
  background: #000;
  color: #f5f5f7;
  text-align: center;
}

.closing p {
  color: #a1a1a6;
  font-size: clamp(18px, 2vw, 21px);
}

.closing strong {
  max-width: 24ch;
  margin-top: 12px;
  font-size: clamp(30px, 4.8vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.closing .button {
  margin-top: 32px;
}

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 980px;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  font-weight: 400;
  transition: background 0.2s;
}

.button:hover {
  background: #0077ed;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 22px var(--gutter) 40px;
  color: var(--ink-soft);
  font-size: 13px;
}

footer a {
  color: var(--accent-ink);
}

footer a:hover {
  text-decoration: underline;
}

/* Copy-paste prompts: a title, when to use it, and the prompt in a quiet block of monospace. */
.prompts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 34px) var(--gap);
  margin: var(--head-gap) 0 0;
  padding: 0;
  list-style: none;
}

.prompt {
  display: flex;
  flex-direction: column;
  grid-column: span 3;
  min-width: 0;
}

.prompt h4 {
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.prompt .when {
  margin: 6px 0 14px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.4;
}

.prompt pre {
  flex: 1;
  margin: 0;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  font: 13.5px/1.6 var(--mono);
  letter-spacing: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: all;
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-polaroid {
    width: 100%;
    max-width: 420px;
  }

  .board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .board .polaroid.wide img {
    flex: none;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .phase,
  .video {
    grid-template-columns: minmax(0, 1fr);
  }

  .phase {
    gap: 14px;
    margin-top: 34px;
  }

  .phase-title {
    position: static;
    padding-top: 0;
  }

  .stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .rule-list > li {
    grid-column: span 3;
  }

  .rule-list > li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .prompt {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .rule-list > li {
    grid-column: 1 / -1;
  }

  .rule-list > li,
  .stats li,
  .quote {
    padding: 22px;
  }

  .step-list,
  .video-list,
  .pitch-script {
    padding: 4px 20px;
  }

  fieldset {
    padding: 22px 20px 10px;
  }

  .check-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .pitch-script li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  footer {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
