/* Journey docs
   Restrained on purpose: a site redesign should be able to restyle this by
   changing the tokens below, not by rewriting pages. */

:root {
  --brand:      #F55722;
  --brand-ink:  #c9400f;
  --ink:        #17120f;
  --body:       #4a4340;
  --muted:      #7a716d;
  --faint:      #9b918c;
  --line:       #e8e3e0;
  --line-soft:  #f1edeb;
  --bg:         #ffffff;
  --bg-soft:    #fbf9f8;
  --code-bg:    #f7f4f2;
  --code-ink:   #2d2420;
  --sel:        rgba(245,87,34,.10);

  --sidebar-w: 248px;
  --toc-w:     196px;
  --measure:   692px;
  --r:         10px;

  --sans: "Inter var", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f7f4f2; --body: #c9c1bd; --muted: #948b86; --faint: #6f6762;
    --line: #2b2522; --line-soft: #231e1b; --bg: #141110; --bg-soft: #1a1615;
    --code-bg: #1f1a18; --code-ink: #e8e2de;
    --brand: #ff7a4d; --brand-ink: #ff9470; --sel: rgba(255,122,77,.12);
  }
}
:root[data-theme="dark"] {
  --ink: #f7f4f2; --body: #c9c1bd; --muted: #948b86; --faint: #6f6762;
  --line: #2b2522; --line-soft: #231e1b; --bg: #141110; --bg-soft: #1a1615;
  --code-bg: #1f1a18; --code-ink: #e8e2de;
  --brand: #ff7a4d; --brand-ink: #ff9470; --sel: rgba(255,122,77,.12);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

::selection { background: var(--sel); }

/* ====================== shell ====================== */

.layout { display: grid; grid-template-columns: var(--sidebar-w) minmax(0,1fr); min-height: 100vh; }

.sidebar {
  border-right: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 22px 14px 48px;
}
.sidebar-inner { position: sticky; top: 22px; }

.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; padding: 0 8px; }
.brand img { height: 19px; width: auto; display: block; }
.brand .logo-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .logo-dark  { display: none; }
  :root:not([data-theme="light"]) .brand .logo-light { display: block; }
}
:root[data-theme="dark"] .brand .logo-dark  { display: none; }
:root[data-theme="dark"] .brand .logo-light { display: block; }
.brand-tag {
  font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--faint); padding: 2px 6px; border: 1px solid var(--line);
  border-radius: 20px; line-height: 1.5;
}

.nav { margin-top: 26px; }
.nav-group + .nav-group { margin-top: 20px; }
.nav-title {
  font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--faint); margin: 0 0 7px 8px;
}
.nav a {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 8px; margin-bottom: 1px;
  color: var(--body); text-decoration: none;
  border-radius: 7px; font-size: 14px; line-height: 1.45;
  transition: background .12s ease, color .12s ease;
}
.nav a:hover { background: var(--sel); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--sel); color: var(--brand-ink); font-weight: 600; }
.nav svg { width: 15px; height: 15px; flex: none; stroke-width: 1.7; opacity: .75; }
.nav a[aria-current="page"] svg { opacity: 1; }

/* ====================== content ====================== */

.content { display: grid; grid-template-columns: minmax(0,1fr) var(--toc-w); gap: 48px; padding: 44px 44px 110px; }
.page { max-width: var(--measure); min-width: 0; }

.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-ink); margin: 0 0 10px;
}

h1, h2, h3 { color: var(--ink); letter-spacing: -.021em; }
h1 { font-size: 38px; line-height: 1.15; margin: 0 0 12px; font-weight: 700; }
h2 {
  font-size: 22px; line-height: 1.3; font-weight: 650;
  margin: 52px 0 16px; padding-top: 26px; border-top: 1px solid var(--line-soft);
  scroll-margin-top: 20px;
}
h2:first-of-type { border-top: none; padding-top: 0; margin-top: 38px; }
h3 { font-size: 16px; line-height: 1.4; font-weight: 650; margin: 30px 0 9px; }

.lede { font-size: 18.5px; line-height: 1.6; color: var(--muted); margin: 0 0 22px; font-weight: 400; }
p { margin: 0 0 16px; }
strong { color: var(--ink); font-weight: 620; }

a { color: var(--brand-ink); text-decoration-thickness: 1px; text-underline-offset: 2.5px; }
a:hover { text-decoration-thickness: 2px; }

ul, ol { margin: 0 0 16px; padding-left: 21px; }
li { margin-bottom: 7px; }
li::marker { color: var(--faint); }

/* ====================== code ====================== */

code {
  font-family: var(--mono); font-size: .875em;
  background: var(--code-bg); color: var(--code-ink);
  padding: .14em .38em; border-radius: 4px;
  border: 1px solid var(--line-soft);
}
pre {
  background: var(--code-bg); border: 1px solid var(--line);
  border-radius: var(--r); padding: 15px 17px; overflow-x: auto; margin: 0 0 18px;
}
pre code { background: none; border: none; padding: 0; font-size: 13.5px; line-height: 1.65; }

/* The thing a reader types to Claude. The most repeated element on the site,
   so it gets a label and a copy button rather than looking like code. */
.ask { position: relative; margin: 0 0 18px; }
.ask-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 7px;
}
.ask-label svg { width: 13px; height: 13px; stroke-width: 2; }
.ask-body {
  background: var(--code-bg); border: 1px solid var(--line);
  border-left: 2.5px solid var(--brand);
  border-radius: var(--r); padding: 14px 46px 14px 16px;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.65;
  color: var(--code-ink); white-space: pre-wrap; word-break: break-word;
}
.copy {
  position: absolute; top: 28px; right: 9px;
  background: var(--bg); border: 1px solid var(--line); color: var(--muted);
  border-radius: 6px; width: 27px; height: 27px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .13s ease, color .13s ease;
}
.ask:hover .copy, .copy:focus-visible { opacity: 1; }
.copy:hover { color: var(--brand-ink); border-color: var(--brand); }
.copy svg { width: 13px; height: 13px; stroke-width: 1.9; }
.copy.done { color: var(--brand-ink); border-color: var(--brand); opacity: 1; }

/* ====================== blocks ====================== */

.note {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-left: 2.5px solid var(--brand);
  border-radius: var(--r); padding: 14px 17px; margin: 0 0 24px; font-size: 14.5px;
}
.note p:last-child { margin-bottom: 0; }
.note-title { display: block; color: var(--ink); font-weight: 650; margin-bottom: 3px; }

table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 13px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
thead th, tr:first-child th {
  color: var(--faint); font-weight: 650; font-size: 10.5px;
  text-transform: uppercase; letter-spacing: .08em; border-bottom-color: var(--line);
}
tbody tr:last-child td, tr:last-child td { border-bottom: none; }
td code { font-size: 12.8px; }

/* figures — the point of the site: show the product */
figure { margin: 0 0 26px; }
figure img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-soft);
}
figcaption { font-size: 13.5px; color: var(--muted); margin-top: 9px; line-height: 1.55; }

/* Two shots side by side: a pitch is a sequence, so one frame cannot show
   what it is. The pair is allowed to run wider than the text column. */
.shot-pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin: 26px 0 12px;
  /* Extends to the RIGHT only. The sidebar is a fixed grid column, so a
     negative left margin slides underneath it rather than into free space;
     the room to grow is the gutter beside the "on this page" rail. */
  width: calc(100% + 240px);
  max-width: calc(100vw - var(--sidebar-w) - 88px);
}
.shot-cell { margin: 0; min-width: 0; }
.shot-cell img { width: 100%; }
.shot-cell figcaption {
  font-size: 12.5px; color: var(--faint); margin-top: 7px;
  font-weight: 550; letter-spacing: .01em;
}
.pair-caption { font-size: 13.5px; color: var(--muted); margin: 0 0 26px; line-height: 1.55; }

@media (max-width: 1560px) {
  .shot-pair { width: calc(100% + 140px); }
}
@media (max-width: 1320px) {
  .shot-pair { width: 100%; max-width: 100%; margin-top: 22px; }
}
@media (max-width: 760px) {
  .shot-pair { grid-template-columns: 1fr; gap: 18px; }
}

.shot-placeholder {
  border: 1px dashed var(--line); border-radius: var(--r);
  background: var(--bg-soft); padding: 38px 20px; text-align: center;
  color: var(--faint); font-size: 13.5px;
}

/* numbered steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 22px; }
.steps > li { counter-increment: s; position: relative; padding-left: 40px; margin-bottom: 26px; }
.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 650;
  display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.steps > li::after {
  content: ""; position: absolute; left: 12.5px; top: 32px; bottom: -22px;
  width: 1px; background: var(--line);
}
.steps > li:last-child::after { display: none; }
.steps h3 { margin: 1px 0 7px; }

/* next-page cards */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin: 26px 0 8px; }
.card {
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 15px 17px; text-decoration: none; display: block; background: var(--bg);
  transition: border-color .13s ease, transform .13s ease;
}
.card:hover { border-color: var(--brand); transform: translateY(-1px); }
.card h3 { margin: 0 0 3px; font-size: 15px; color: var(--ink); }
.card p { margin: 0; font-size: 13.8px; color: var(--muted); line-height: 1.55; }

.faq { margin-bottom: 24px; }
.faq > p:first-child { margin-bottom: 5px; }

footer { margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }

/* ====================== on this page ====================== */

.toc { font-size: 13.2px; }
.toc-inner { position: sticky; top: 44px; }
.toc-title {
  font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--faint); margin: 0 0 9px;
}
.toc a {
  display: block; padding: 4.5px 0 4.5px 11px;
  color: var(--muted); text-decoration: none;
  border-left: 1.5px solid var(--line); line-height: 1.45;
}
.toc a:hover { color: var(--ink); border-left-color: var(--faint); }
.toc a.active { color: var(--brand-ink); border-left-color: var(--brand); font-weight: 550; }

/* ====================== responsive ====================== */

.menu-btn { display: none; }

@media (max-width: 1180px) {
  .content { grid-template-columns: minmax(0,1fr); }
  .toc { display: none; }
}

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { border-right: none; border-bottom: 1px solid var(--line); padding: 13px 16px; position: relative; }
  .sidebar-inner { position: static; }
  .nav { display: none; margin-top: 15px; }
  .nav.open { display: block; }
  .menu-btn {
    display: flex; align-items: center; gap: 6px;
    position: absolute; top: 13px; right: 16px;
    background: var(--bg); border: 1px solid var(--line); color: var(--body);
    border-radius: 7px; padding: 5px 11px; font-size: 13.5px; cursor: pointer;
    font-family: var(--sans); font-weight: 550;
  }
  .content { padding: 26px 16px 72px; }
  h1 { font-size: 29px; }
  h2 { font-size: 20px; margin-top: 40px; }
  .lede { font-size: 17px; }
  .cards { grid-template-columns: 1fr; }
}
