:root {
  /* Brand "The open studio", light: white canvas, night-blue text, studio blue
     for action, butter yellow and pool blue as colour fields. */
  color-scheme: light;
  --bg: #fffef9;
  --panel: #ffffff;
  --panel-2: #fff9cd;
  --pool: #b9e4f4;
  --lilac: #c7baeb;
  --butter: #fff9cd;
  --night: #152654;
  --ink: #152654;
  --muted: #5b6685;
  --faint: #7a85a3;
  --line: rgba(21, 38, 84, .19);
  --blue: #2545ed;
  --accent: #2545ed;
  --blue-wash: #eef0fd;
  --accent-wash: rgba(37, 69, 237, .08);
  --serif: Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 280px;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.skip {
  position: fixed; z-index: 20; top: 8px; left: 8px; padding: 10px 14px;
  border-radius: 6px; background: var(--blue); color: var(--butter); font-weight: 750;
  text-decoration: none; transform: translateY(-150%);
}
.skip:focus { transform: none; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 4px; }

.sitehead, main { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.sitehead {
  min-height: 80px; display: flex; align-items: center; gap: 30px;
  border-bottom: 1px solid var(--line);
}
.wordmark { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; color: var(--blue); text-decoration: none; }
.wordmark > span { display: block; width: 28px; height: 28px; }
.wordmark > span svg, .wordmark > img { display: block; }
.wordmark > span svg { width: 100%; height: 100%; }
.wordmark > .wordmarksvg { display: block; width: 140px; height: auto; }
.wordmark strong { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.sitehead nav { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.sitehead nav a { color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.sitehead nav a:hover, .sitehead nav a[aria-current] { color: var(--ink); }
.sitehead nav .navcta { min-height: 42px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--blue); border-radius: 6px; background: var(--blue); color: var(--butter); }
.sitehead nav .navcta:hover { border-color: var(--night); background: var(--night); color: var(--butter); }

.hero { min-height: 610px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .7fr); align-items: center; gap: clamp(50px, 9vw, 130px); padding: 90px 0 100px; }
.eyebrow, .chapterhead > p, .shelf > header > p {
  margin: 0 0 18px; color: var(--ink); font-size: 13px; line-height: 1.3; letter-spacing: .015em;
}
h1 { max-width: 900px; margin: 0; font: 400 clamp(52px, 8.5vw, 132px)/.96 var(--serif); letter-spacing: -.06em; }
h1 em, h2 em { font-style: italic; color: var(--blue); }
.templatehero h1 { font-size: clamp(54px, 8.5vw, 120px); }
.lede { max-width: 640px; margin: 30px 0 0; color: var(--ink); font-size: clamp(17px, 2vw, 20px); line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }
.actions a { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border-radius: 6px; font-size: 14px; font-weight: 600; text-decoration: none; }
.actions .primary { background: var(--blue); color: var(--butter); }
.actions .primary:hover { background: var(--night); }
.actions .secondary { border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
.actions .secondary:hover { border-color: var(--blue); background: var(--blue-wash); }
.actions .textlink { min-height: 44px; padding-inline: 7px; color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.signal { align-self: center; padding: 28px; border: 1px solid var(--night); border-radius: 12px; background: var(--butter); color: var(--night); box-shadow: 8px 10px 0 rgba(21, 38, 84, .07); }
.signal > p { display: flex; align-items: center; gap: 9px; margin: 0 0 26px; color: var(--night); font-size: 13px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-wash); }
.signal dl { margin: 0; display: grid; gap: 18px; }
.signal dl div { display: flex; align-items: baseline; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.signal dt { min-width: 46px; color: var(--blue); font: 400 34px/1 var(--serif); letter-spacing: -.04em; }
.signal dd { margin: 0; color: var(--night); font-size: 14px; }
.catalogsignal blockquote { margin: 0 0 14px; color: var(--night); font: 400 clamp(24px, 2.6vw, 34px)/1.15 var(--serif); letter-spacing: -.03em; }
.catalogsignal small { color: var(--faint); font-size: 12px; }

.chapter, .shelf { padding: 110px 0; border-top: 1px solid var(--line); }
.chapterhead { display: grid; grid-template-columns: minmax(160px, .38fr) minmax(0, 1fr); align-items: start; gap: 30px; margin-bottom: 56px; }
.chapterhead > p { margin-top: 9px; }
h2 { margin: 0; font: 400 clamp(38px, 5.4vw, 78px)/1.02 var(--serif); letter-spacing: -.048em; }
h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
p { line-height: 1.65; }
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
code { padding: 2px 5px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); color: var(--night); font-size: .88em; }
kbd { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 3px 8px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--panel); color: var(--night); font-size: 11px; white-space: nowrap; }

.steps { list-style: none; margin: 0 0 0 calc(38% + 30px); padding: 0; }
.steps li { display: grid; grid-template-columns: 42px 1fr; gap: 18px; padding: 30px 0; border-top: 1px solid var(--line); }
.steps li > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: var(--butter); font: 400 15px var(--serif); }
.steps p, .formatgrid p, .triptych p, .twopaths p, .cards p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.triptych article:nth-child(2) p, .triptych article:nth-child(3) p { color: var(--night); }
.steps a, .twopaths a { color: var(--blue); text-underline-offset: 3px; }
.formatgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.formatgrid article { min-height: 210px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.formatgrid article > span, .twopaths article > span, .cards article > span { display: inline-flex; margin-bottom: 24px; color: var(--blue); font-size: 13px; line-height: 1.3; letter-spacing: .015em; }
.formatgrid article:hover { background: var(--butter); }

.splitstory { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, .72fr); gap: clamp(48px, 8vw, 110px); }
.splitstory .chapterhead { display: block; margin-bottom: 30px; }
.splitstory .chapterhead > p { margin-bottom: 18px; }
.bodycopy { max-width: 650px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.recovery { list-style: none; align-self: end; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.recovery li { display: grid; grid-template-columns: 70px 1fr; gap: 16px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.recovery span { color: var(--muted); font-size: 13px; line-height: 1.6; }
.recovery strong { color: var(--ink); }

.triptych { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-left: calc(18% + 30px); }
.triptych article, .twopaths article { min-height: 260px; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.triptych article:nth-child(2) { background: var(--pool); border-color: transparent; }
.triptych article:nth-child(3) { background: var(--lilac); border-color: transparent; }
.triptych .cardnum { margin: 0 0 60px; color: var(--blue); font: 400 28px/1 var(--serif); letter-spacing: -.03em; }
.twopaths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.twopaths .chapterhead { grid-column: 1 / -1; }
.twopaths article { min-height: 300px; }
.twopaths article > span { margin-bottom: 70px; }
.twopaths article > a { display: inline-flex; margin-top: 22px; color: var(--blue); font-size: 13px; font-weight: 700; }
.keys { margin: 0 0 0 calc(38% + 30px); display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.keys div { display: flex; align-items: center; gap: 18px; min-height: 70px; border-bottom: 1px solid var(--line); }
.keys div:nth-child(odd) { padding-right: 24px; border-right: 1px solid var(--line); }
.keys div:nth-child(even) { padding-left: 24px; }
.keys dt { min-width: 74px; }
.keys dd { margin: 0; color: var(--muted); font-size: 13px; }

.shelf > header { display: flex; align-items: end; gap: 30px; margin-bottom: 44px; }
.shelf > header > p { min-width: 150px; margin-bottom: 8px; }
.shelf h2 { font-size: clamp(32px, 4.5vw, 58px); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.one { grid-template-columns: minmax(280px, 520px); }
.cards article { min-height: 0; display: flex; flex-direction: column; padding: 12px 12px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); transition: border-color .2s ease-out, transform .2s ease-out; overflow: hidden; }
.cards article:hover { border-color: var(--blue); transform: translateY(-2px); }
.cards article > img { width: 100%; height: auto; aspect-ratio: 766 / 357; object-fit: cover; object-position: top center; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.cards article > span, .cards article > h3, .cards article > p, .cards article > a { margin-inline: 12px; }
.cards article > span { margin-bottom: 18px; }
.cards article > a { min-height: 44px; display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-top: auto; padding-top: 30px; color: var(--blue); font-size: 13px; font-weight: 730; text-decoration: none; }
.cards article > a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cards article > a b { font-size: 18px; font-weight: 400; }
.safetip { max-width: 720px; margin: 24px 0 0; padding-left: 16px; border-left: 2px solid var(--blue); color: var(--muted); font-size: 14px; }
.safetip strong { color: var(--ink); }

.finalcta { margin: 60px 0 120px; padding: 80px clamp(28px, 7vw, 90px); border: 0; border-radius: 12px; background: var(--blue); color: var(--butter); }
.finalcta > p { margin: 0 0 18px; color: var(--butter); font-size: 13px; letter-spacing: .015em; }
.finalcta h2, .finalcta .lede { color: var(--butter); }
.finalcta .actions .primary { background: var(--butter); color: var(--night); }
.finalcta .actions .primary:hover { background: #fffef9; }
.finalcta .actions .secondary { border-color: rgba(255, 249, 205, .6); background: transparent; color: var(--butter); }
.finalcta .actions .secondary:hover { background: rgba(255, 249, 205, .12); }
.finalcta .actions .textlink { color: var(--butter); }
.finalcta h2 { max-width: 850px; }

@media (max-width: 900px) {
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 52px; padding-block: 72px 90px; }
  .signal { width: min(100%, 560px); }
  .formatgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .triptych { margin-left: 0; }
}

@media (max-width: 680px) {
  .sitehead, main { width: min(100% - 32px, 1160px); }
  .sitehead { min-height: 70px; }
  .sitehead nav { gap: 6px; }
  .sitehead nav a { min-height: 44px; display: inline-flex; align-items: center; padding-inline: 9px; }
  .sitehead nav a[href="/privacy"] { display: none; }
  .sitehead nav .navcta { display: none; }
  h1 { font-size: clamp(46px, 14vw, 70px); }
  .hero { padding-top: 60px; }
  .chapter, .shelf { padding: 78px 0; }
  .chapterhead { display: block; margin-bottom: 38px; }
  .chapterhead > p { margin-bottom: 15px; }
  .steps, .keys { margin-left: 0; }
  .steps li { grid-template-columns: 34px 1fr; gap: 13px; }
  .formatgrid { grid-template-columns: 1fr; }
  .formatgrid article { min-height: 0; }
  .splitstory { grid-template-columns: 1fr; }
  .triptych, .twopaths, .cards, .cards.two { grid-template-columns: 1fr; }
  .triptych article, .twopaths article { min-height: 230px; }
  .twopaths .chapterhead { grid-column: auto; }
  .keys { grid-template-columns: 1fr; }
  .keys div:nth-child(odd), .keys div:nth-child(even) { padding: 0; border-right: 0; }
  .shelf > header { display: block; }
  .shelf > header > p { margin-bottom: 14px; }
  .cards article > span { margin-bottom: 18px; }
  .finalcta { margin-bottom: 80px; padding: 48px 24px; }
}

@media (max-width: 380px) {
  .wordmark > span { display: none; }
  .sitehead nav a { padding-inline: 7px; font-size: 12px; }
  .actions { align-items: stretch; flex-direction: column; }
  .actions a { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
