/* Store Manual — site styles. Tokens and type scale come from brand/brand-dna.md. */
@font-face { font-family: Archivo; src: url(/assets/fonts/Archivo-Variable.ttf); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(/assets/fonts/SourceSans3-Variable.ttf); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Source Code Pro"; src: url(/assets/fonts/SourceCodePro-Variable.ttf); font-weight: 200 900; font-display: swap; }

:root {
  --paper: #F8F3EA;
  --shade: #F2E9DC;
  --ink: #182327;
  --oxide: #8F2F25;
  --aubergine: #44303F;
  --brass: #E7B95F;
  --muted: #514A45;
  --rule: #E3D8C6;
  --display: Archivo, "Helvetica Neue", Arial, sans-serif;
  --body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --code: "Source Code Pro", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--body); font-size: 19px; line-height: 30px; color: var(--ink); background: var(--paper); font-variant-numeric: lining-nums tabular-nums; -webkit-font-smoothing: antialiased; }
::selection { background: var(--brass); color: var(--ink); }
img { max-width: 100%; display: block; }

/* === Header === */
.header { max-width: 1180px; margin: 0 auto; padding: 20px 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-bottom: 1px solid var(--rule); }
.header .logo { display: block; line-height: 0; }
.header .logo img { height: 38px; width: auto; }
.nav { display: flex; gap: 28px; flex-wrap: wrap; }
.nav a { color: var(--ink); font-size: 17px; line-height: 24px; font-weight: 600; text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.nav a:hover { background: none; border-bottom-color: var(--rule); }
.nav a[aria-current] { border-bottom-color: var(--oxide); }

/* === Layout: one reading column, plus a sticky rail on wide screens === */
.layout { max-width: 1180px; margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: minmax(0, 760px) 300px; gap: 72px; justify-content: space-between; }
.article { padding: 40px 0 96px; min-width: 0; }
.hub { max-width: 824px; margin: 0 auto; padding: 48px 32px 96px; }
.rail { align-self: start; position: sticky; top: 0; padding-top: 40px; max-height: 100vh; overflow-y: auto; }
.rail .rail-card { margin-top: 28px; }

.eyebrow { font-size: 14px; line-height: 18px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.crumb { font-size: 15px; line-height: 22px; color: var(--muted); margin-bottom: 22px; }
.crumb a { color: var(--muted); font-weight: 400; text-decoration: none; }
.crumb a:hover { background: none; text-decoration: underline; }
.crumb i { font-style: normal; margin: 0 4px; }
.crumb a:last-of-type { color: var(--oxide); font-weight: 600; }

/* table of contents */
.toc ol { list-style: none; border-left: 2px solid var(--rule); }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; font-size: 16px; line-height: 22px; font-weight: 400; color: var(--muted); text-decoration: none; }
.toc a:hover { background: none; color: var(--ink); }
.toc a[aria-current] { border-left-color: var(--oxide); color: var(--ink); font-weight: 600; }
.toc-mobile { display: none; background: var(--shade); padding: 14px 18px; margin-bottom: 30px; }
.toc-mobile summary { font-weight: 600; cursor: pointer; }
.toc-mobile ol { list-style: none; margin: 10px 0 0; }
.toc-mobile li { margin: 0; padding: 0; }
.toc-mobile li::before { content: none !important; }
.toc-mobile a { display: block; padding: 6px 0; font-weight: 400; color: var(--ink); text-decoration: none; }

.rail-card { background: var(--ink); color: var(--paper); padding: 24px; }
.rail-card .eyebrow { color: var(--brass); }
.rail-card b { display: block; font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 26px; }
.rail-card p { font-size: 15px; line-height: 22px; margin: 6px 0 18px; }
.rail-card .btn-magnet { font-size: 16px; line-height: 22px; padding: 12px 16px; display: block; text-align: center; }

/* === Article === */

.badge { display: inline-block; font-size: 14px; line-height: 18px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; color: #fff; background: var(--oxide); padding: 6px 12px; margin-bottom: 22px; }
h1 { font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 60px; letter-spacing: -0.02em; margin-bottom: 22px; }

.byline { display: flex; align-items: center; gap: 14px; margin: 0 0 36px; font-size: 15px; line-height: 22px; color: var(--muted); }
.byline img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.byline b { color: var(--ink); font-weight: 700; }

h2 { font-family: var(--display); font-weight: 800; font-size: 38px; line-height: 44px; letter-spacing: -0.015em; margin-top: 80px; margin-bottom: 18px; }
/* a heading that starts with a number gets it on a brass plate (see build.js) */
h2 .num { display: inline-block; font-family: var(--body); font-weight: 700; font-size: 26px; line-height: 44px; letter-spacing: 0; width: 56px; text-align: center; background: var(--brass); color: var(--ink); margin-right: 16px; vertical-align: top; }
h3 { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 34px; margin-top: 40px; margin-bottom: 12px; }
p { margin-bottom: 30px; max-width: 68ch; }
strong { font-weight: 700; }
a { color: var(--oxide); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { background: var(--shade); }
hr { border: 0; border-top: 1px solid var(--rule); margin: 56px 0; }

/* lists: our own markers */
.content ul, .content ol { list-style: none; margin: 0 0 30px; max-width: 68ch; }
.content li { position: relative; padding-left: 34px; margin-bottom: 10px; }
.content ul > li::before { content: ""; position: absolute; left: 8px; top: 12px; width: 8px; height: 8px; background: var(--oxide); }
.content ul ul { margin: 10px 0 4px; }
.content ul ul > li::before { background: transparent; border: 2px solid var(--muted); }
.content ol { counter-reset: item; }
.content ol > li { counter-increment: item; padding-left: 44px; }
.content ol > li::before { content: counter(item); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; line-height: 28px; text-align: center; font-weight: 700; font-size: 16px; background: var(--brass); color: var(--ink); }

code { font-family: var(--code); font-weight: 500; font-size: 16px; background: var(--shade); color: var(--ink); padding: 2px 6px; }
pre { background: var(--ink); color: var(--paper); padding: 20px 22px; overflow-x: auto; margin: 0 0 30px; }
pre code { background: none; color: inherit; padding: 0; }

/* blockquote: a quick-answer callout */
blockquote { border-left: 8px solid var(--oxide); padding: 4px 0 4px 20px; margin: 0 0 30px; font-size: 22px; line-height: 32px; font-weight: 600; }
blockquote p { margin: 0; }

/* comparison table */
.content table { display: block; overflow-x: auto; border-collapse: collapse; width: 100%; margin: 0 0 30px; border-top: 3px solid var(--ink); font-size: 17px; line-height: 26px; }
.content thead th { font-size: 14px; line-height: 18px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; text-align: left; padding: 12px 18px 12px 0; white-space: nowrap; }
.content td { padding: 14px 18px 14px 0; border-top: 1px solid var(--rule); vertical-align: top; }
.content td:first-child { font-weight: 700; }
.content td:nth-child(2) { font-weight: 700; white-space: nowrap; }

/* step screenshots */
.content p > img { border: 1px solid var(--rule); margin: 4px 0; }

.disclosure { font-size: 15px; line-height: 22px; color: var(--ink); background: var(--shade); padding: 10px 14px; margin-bottom: 28px; }
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; margin: 0 0 36px; background: var(--ink); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-wrapper { margin: 0 0 36px; background: var(--ink); }
.video-wrapper video { width: 100%; display: block; }

/* === Savings calculator === */
.calc-widget { background: var(--shade); border-top: 8px solid var(--oxide); padding: 32px; margin: 0 0 40px; }
.calc-title { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 34px; letter-spacing: -0.01em; margin-bottom: 6px; }
.calc-widget > p { color: var(--ink) !important; font-size: 17px !important; line-height: 26px; margin-bottom: 0 !important; }
.calc-checkboxes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 22px 0 26px; }
.calc-label { display: flex; align-items: center; gap: 12px; font-size: 17px; line-height: 24px; cursor: pointer; }
.calc-label input { appearance: none; width: 24px; height: 24px; flex: 0 0 auto; border: 2px solid var(--ink); background: var(--paper); cursor: pointer; display: grid; place-content: center; }
.calc-label input:checked { background: var(--ink); }
.calc-label input:checked::after { content: ""; width: 11px; height: 6px; border-left: 3px solid var(--paper); border-bottom: 3px solid var(--paper); transform: rotate(-45deg) translateY(-1px); }
.calc-label input:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.calc-result { background: var(--ink); color: var(--paper); padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.calc-result > div:first-child { font-size: 14px !important; line-height: 18px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; color: var(--paper) !important; }
.calc-num { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 44px; letter-spacing: -0.02em; color: var(--brass); }

/* === Lead magnets === */
.magnet { margin: 0 0 40px; }
.magnet-inline { background: var(--shade); border-left: 8px solid var(--oxide); padding: 28px 32px; }
.magnet-inline h3 { margin: 0 0 8px; }
.magnet-inline p { margin-bottom: 20px; }
.magnet-end { background: var(--ink); color: var(--paper); padding: 48px 40px; margin-top: 56px; }
.magnet-end .eyebrow { color: var(--brass); }
.magnet-end h3 { font-size: 38px; line-height: 44px; font-weight: 800; letter-spacing: -0.015em; margin: 0 0 14px; }
.magnet-end p { margin-bottom: 28px; max-width: 52ch; }
.btn-magnet { display: inline-block; background: var(--oxide); color: #fff; font-weight: 700; font-size: 19px; line-height: 24px; padding: 16px 26px; text-decoration: none; }
.btn-magnet:hover { background: var(--ink); }
.magnet-end .btn-magnet, .rail-card .btn-magnet { background: var(--brass); color: var(--ink); }
.magnet-end .btn-magnet:hover, .rail-card .btn-magnet:hover { background: var(--paper); }

/* === After the article === */
.tools { border-top: 3px solid var(--ink); padding-top: 18px; margin-top: 56px; }
.tools ul { margin-bottom: 0; }
.series { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.series a { display: block; background: var(--shade); padding: 18px 20px; color: var(--ink); font-weight: 700; text-decoration: none; }
.series a:last-child { text-align: right; }
.series a span { display: block; font-size: 14px; line-height: 18px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.related h2 { font-size: 28px; line-height: 34px; margin-top: 56px; }
.back { margin: 40px 0 0; }

/* === Hubs: lists of guides and chapters === */
.hub h2 { font-size: 28px; line-height: 34px; margin-top: 56px; }
.lede { font-size: 22px; line-height: 32px; font-weight: 600; max-width: 56ch; }
.guide-list { list-style: none; border-top: 3px solid var(--ink); counter-reset: guide; margin-bottom: 40px; }
.guide-list li { padding: 20px 0; border-bottom: 1px solid var(--rule); position: relative; }
.guide-list a { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 30px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.guide-list a:hover { background: none; text-decoration: underline; text-decoration-thickness: 3px; }
.guide-list p { margin: 6px 0 0; color: var(--muted); font-size: 17px; line-height: 26px; }
.guide-list.numbered li { counter-increment: guide; padding-left: 68px; }
.guide-list.numbered li::before { content: counter(guide, decimal-leading-zero); position: absolute; left: 0; top: 22px; width: 48px; height: 48px; line-height: 48px; text-align: center; font-weight: 700; font-size: 22px; background: var(--brass); }
.chapters { list-style: none; border-top: 3px solid var(--ink); margin-top: 40px; }
.chapters li { display: grid; grid-template-columns: 56px 1fr; gap: 0 22px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.chapters .num { font-weight: 700; font-size: 24px; line-height: 56px; height: 56px; text-align: center; background: var(--brass); }
.chapters a, .chapters b { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 32px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.chapters a:hover { background: none; text-decoration: underline; text-decoration-thickness: 3px; }
.chapters p { margin: 6px 0 6px; font-size: 17px; line-height: 26px; }
.chapters small { font-size: 14px; line-height: 18px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; color: var(--oxide); }
.chapters .soon .num { background: var(--shade); color: var(--muted); }
.chapters .soon b, .chapters .soon p { color: var(--muted); }
.chapters .soon small { color: var(--muted); }
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 36px 0 0; }
.paths a { display: block; background: var(--ink); color: var(--paper); padding: 24px 26px; text-decoration: none; }
.paths a:hover { background: var(--aubergine); }
.paths b { display: block; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 32px; }
.paths span { display: block; margin-top: 6px; font-weight: 600; color: var(--brass); font-size: 17px; line-height: 24px; }

/* video facade */
.video { margin: 0 0 36px; }
.video-facade { display: block; width: 100%; padding: 0; border: 0; background: var(--ink); cursor: pointer; position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; }
.video-facade span { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--oxide); }
.video-facade span::after { content: ""; position: absolute; left: 34px; top: 26px; border-left: 24px solid #fff; border-top: 16px solid transparent; border-bottom: 16px solid transparent; }

footer { background: var(--shade); color: var(--muted); font-size: 15px; line-height: 22px; padding: 36px 32px; text-align: center; }
footer nav { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
footer a { color: var(--ink); }
footer p { margin: 0 auto; }

/* === Narrow screens: the rail goes away; contents and the magnet move into the article === */
@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 760px); justify-content: center; }
  .rail { display: none; }
  .toc-mobile { display: block; }
}
@media (max-width: 700px) {
  body { font-size: 18px; line-height: 29px; }
  .header { padding: 14px 20px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .header .logo img { height: 30px; }
  .nav { gap: 6px 16px; }
  .nav a { font-size: 15px; line-height: 22px; padding: 2px 0; }
  .layout { padding: 0 20px; }
  .article { padding: 28px 0 72px; }
  .hub { padding: 32px 20px 72px; }
  h1 { font-size: 38px; line-height: 42px; }
  h2 { font-size: 30px; line-height: 36px; margin-top: 64px; }
  h2 .num { font-size: 22px; line-height: 36px; width: 46px; margin-right: 12px; }
  h3 { font-size: 24px; line-height: 30px; }
  blockquote, .lede { font-size: 20px; line-height: 29px; }
  .calc-widget { padding: 24px 20px; }
  .calc-checkboxes { grid-template-columns: 1fr; }
  .calc-result { flex-direction: column; align-items: flex-start; }
  .magnet-inline { padding: 22px 20px; }
  .magnet-end { padding: 40px 20px; margin-left: -20px; margin-right: -20px; }
  .magnet-end h3 { font-size: 30px; line-height: 36px; }
  .series, .paths { grid-template-columns: 1fr; }
  .series a:last-child { text-align: left; }
  .chapters li { grid-template-columns: 46px 1fr; gap: 0 16px; }
  .chapters .num { font-size: 20px; line-height: 46px; height: 46px; }
  .guide-list.numbered li { padding-left: 58px; }
  .guide-list.numbered li::before { width: 42px; height: 42px; line-height: 42px; font-size: 19px; }
}
