@font-face { font-family: Atkinson; src: url(/fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Atkinson; font-weight: 700; src: url(/fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Fraunces; font-weight: 600; src: url(/fonts/fraunces-latin-600-normal.woff2) format("woff2"); font-display: swap; }

:root {
  --teal: #1f5f5b; --teal-deep: #174b48; --teal-soft: #d7e7e4;
  --cream: #fffdf8; --paper: #f6efe3; --tile: #fbf6ec; --chair: #e9dcc6;
  --orange: #d9822b; --orange-ink: #9a4a12; --orange-soft: #fbe7d3;
  --ink: #1d2b29; --ink-soft: #3f4f4c; --line: #e3d8c5;
  --on-teal: #fffdf8; --on-teal-soft: #cfe3df;
  --link: #1f5f5b; --focus: #174b48; --r: 18px; --gap: clamp(12px, 2.4vw, 22px);
  --serif: Fraunces, Georgia, serif; --sans: Atkinson, "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cream: #10211f; --paper: #172d2a; --tile: #fbf6ec; --ink: #f3eee4; --ink-soft: #c9d6d3; --line: #2c4643;
    --link: #9fd3cb; --focus: #9fd3cb; --teal: #1a5450; --teal-deep: #0f3633; --teal-soft: #22413e; --orange-ink: #f2b27a; --orange-soft: #3a2a1c;
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.1875rem/1.6 var(--sans); }
::selection { background: var(--teal); color: var(--on-teal); }
a { color: var(--link); text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.bar :focus-visible, .chart :focus-visible, .offer :focus-visible, .get :focus-visible, .site :focus-visible { outline-color: var(--on-teal); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); margin: .2em 0 .35em; }
h2 { font-size: clamp(1.45rem, 3.4vw, 1.9rem); margin: 1.8em 0 .5em; }
p, li { max-width: 68ch; }
b { font-weight: 700; }
.nw { white-space: nowrap; }
img { max-width: 100%; height: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--cream); padding: 12px 18px; border-radius: 10px; z-index: 9; }
.skip:focus { left: 12px; }

/* header band */
.bar { background: var(--teal); color: var(--on-teal); }
.bar-in { max-width: 1120px; margin: 0 auto; padding: 10px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--on-teal); text-decoration: none; font: 600 1.55rem/1 var(--serif); min-height: 48px; }
.logo .lc { fill: #d6c3a3; } .logo .lf { fill: var(--on-teal); } .logo .lp { fill: none; stroke: var(--on-teal); stroke-width: 4.4; stroke-linecap: round; stroke-linejoin: round; }
.nav { display: flex; flex-wrap: wrap; gap: 2px 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--on-teal); text-decoration: none; font-weight: 700; font-size: 1.05rem; padding: 10px 12px; min-height: 48px; display: inline-flex; align-items: center; border-radius: 10px; }
.nav a:hover { background: var(--teal-deep); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--on-teal); border-radius: 10px 10px 4px 4px; }
.nav .cta { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .22em; }
@media (max-width: 640px) { .nav { margin-left: 0; width: 100%; } .nav a { padding: 10px 9px; font-size: 1.05rem; } }

main { max-width: 1120px; margin: 0 auto; padding: 8px 16px 48px; }
.crumbs { font-size: 1.125rem; color: var(--ink-soft); padding: 14px 0 0; }
.crumbs a, .related a, .updated a { display: inline-flex; align-items: center; min-height: 48px; }
.crumbs a { color: var(--ink-soft); }
.lead { max-width: 760px; }
.lede { font-size: 1.3rem; line-height: 1.55; color: var(--ink-soft); }
.home h1 { font-size: clamp(2.2rem, 6.4vw, 3.9rem); max-width: 16ch; }
.answer { font-size: 1.32rem; line-height: 1.5; max-width: 62ch; }
.prose { max-width: 760px; }
.small, .updated { font-size: 1.125rem; color: var(--ink-soft); }
.updated { margin-top: 2.5em; }
.cite { white-space: nowrap; font-size: .92em; }

/* the chart: teal field, cream tiles */
.chart { background: var(--teal); border-radius: calc(var(--r) + 8px); padding: var(--gap); margin: 18px 0 8px; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tiles li { max-width: none; }
.tile { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--tile); color: #1d2b29; text-decoration: none; border-radius: var(--r); padding: 10px 12px 14px; box-shadow: 0 2px 0 rgba(0,0,0,.06), 0 10px 22px -14px rgba(0,0,0,.45); transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 2px 0 rgba(0,0,0,.06), 0 16px 28px -14px rgba(0,0,0,.5); }
.tile[aria-current="page"] { outline: 4px solid var(--orange); outline-offset: -4px; }
.tile .no { position: absolute; top: 8px; left: 12px; font: 600 1.5rem/1 var(--serif); color: #9a4a12; font-variant-numeric: tabular-nums; }
.tile .pic { width: 100%; height: auto; aspect-ratio: 300 / 340; display: block; }
.tile b { font: 600 1.15rem/1.2 var(--serif); margin-top: 2px; }
.tile small { font-size: 1.125rem; color: #3f4f4c; margin-top: 2px; }
.key { color: var(--on-teal); margin: 0 4px 14px; font-size: 1.125rem; max-width: none; }
.links { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 4px 28px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 980px; }
.links li { max-width: none; padding: 10px 0; border-bottom: 2px solid var(--line); }
.links a { font: 600 1.3rem/1.25 var(--serif); display: inline-flex; min-height: 48px; align-items: center; }
.links span { display: block; color: var(--ink-soft); font-size: 1.125rem; }
.chart-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.chart-h small { font: 400 1.125rem var(--sans); color: var(--ink-soft); }

/* move page */
.move { display: grid; gap: 0 40px; }
.cell { position: relative; margin: 18px 0 0; background: var(--teal); padding: 14px; border-radius: calc(var(--r) + 8px); max-width: 460px; }
.cell .pic { display: block; width: 100%; height: auto; background: var(--tile); border-radius: var(--r); }
.cell .no { position: absolute; top: 26px; left: 28px; font: 600 1.6rem/1 var(--serif); color: #9a4a12; font-variant-numeric: tabular-nums; }
.cell figcaption { color: var(--on-teal); font-size: 1.125rem; padding: 10px 6px 2px; }
.steps { padding-left: 1.6em; margin: 0; }
.steps li { font-size: 1.25rem; line-height: 1.5; margin: 0 0 .6em; padding-left: .2em; }
.steps li::marker { font: 600 1.25rem var(--serif); color: var(--orange-ink); }
.amount { display: inline-flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--paper); border-radius: 999px; padding: 8px 18px 8px 8px; font-weight: 700; font-size: 1.15rem; }
.amount span { background: var(--teal); color: var(--on-teal); border-radius: 999px; padding: 4px 12px; font-size: 1.125rem; }
.notes { display: grid; gap: 14px; margin-top: 26px; }
@media (min-width: 900px) { .notes { grid-template-columns: repeat(3, 1fr); } }
.note { background: var(--paper); border-radius: var(--r); padding: 4px 20px 10px; }
.note h2 { font-size: 1.2rem; margin: 14px 0 6px; }
.note p { font-size: 1.15rem; margin: 0 0 10px; }
.note.care a { color: var(--ink); }
.note.care { background: var(--orange-soft); }
.aka { color: var(--ink-soft); font-size: 1.125rem; }
@media (min-width: 900px) {
  .move { grid-template-columns: minmax(300px, 440px) 1fr; }
  .move > * { grid-column: 1 / -1; }
  .move > .cell { grid-column: 1; grid-row: span 2; align-self: start; }
  .move > .howto { grid-column: 2; }
  .move > .howto h2 { margin-top: .4em; }
}
.nextmove a { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); background: var(--paper); border-radius: var(--r); padding: 10px 22px 10px 10px; margin-top: 28px; max-width: 520px; min-height: 48px; }
.nextmove .pic { width: 84px; height: auto; background: var(--tile); border-radius: 12px; flex: none; }
.nextmove small { display: block; color: var(--ink-soft); font-size: 1.125rem; }
.nextmove b { font: 600 1.4rem/1.2 var(--serif); }
.related { padding-left: 1.2em; }
.related li { margin: .35em 0; font-size: 1.12rem; }

/* sequences (routines) */
.seq { list-style: none; counter-reset: s; padding: 0; margin: 20px 0; display: grid; gap: 12px; max-width: 760px; }
.seq li { counter-increment: s; max-width: none; }
.seq a { display: flex; align-items: center; gap: 16px; background: var(--paper); border-radius: var(--r); padding: 8px 18px 8px 8px; text-decoration: none; color: var(--ink); }
.seq a::before { content: counter(s); font: 600 1.6rem/1 var(--serif); color: var(--orange-ink); width: 1.6em; text-align: center; flex: none; font-variant-numeric: tabular-nums; }
.seq .pic { width: 78px; height: auto; background: var(--tile); border-radius: 12px; flex: none; }
.seq b { display: block; font: 600 1.3rem/1.2 var(--serif); }
.seq small { font-size: 1.125rem; color: var(--ink-soft); }

/* link cards (answers, routines, home) */
.cards { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cards li { max-width: none; }
.cards a { display: block; height: 100%; background: var(--paper); border-radius: var(--r); padding: 18px 20px; text-decoration: none; color: var(--ink); }
.cards a:hover { background: var(--teal-soft); }
.cards b { display: block; font: 600 1.3rem/1.2 var(--serif); margin-bottom: 6px; color: var(--link); }
.cards span { font-size: 1.125rem; color: var(--ink-soft); }
.prints img, .previews img { display: block; border-radius: 10px; box-shadow: 0 10px 24px -14px rgba(0,0,0,.45); margin-bottom: 12px; background: #fff; }
.previews { list-style: none; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); max-width: 900px; }
.toc ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { display: inline-flex; min-height: 48px; align-items: center; padding: 6px 16px; border-radius: 999px; background: var(--paper); text-decoration: none; font-weight: 700; color: var(--ink); }

/* plan tables */
table { border-collapse: collapse; width: 100%; max-width: 860px; margin: 18px 0; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; vertical-align: top; padding: 14px 12px; border-bottom: 2px solid var(--line); }
thead th { font-size: 1.125rem; color: var(--ink-soft); font-weight: 700; }
.plan th[scope="row"] { width: 9.5em; }
.plan th span { display: block; font: 600 1.35rem/1.1 var(--serif); color: var(--link); }
.plan th small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 1.125rem; }
.cmp th[scope="row"] { width: 30%; }

/* the one offer */
.offer, .get { background: var(--teal); color: var(--on-teal); border-radius: calc(var(--r) + 8px); padding: 8px clamp(18px, 4vw, 34px) 26px; margin: 40px 0 0; max-width: 860px; }
.offer h2, .get h2 { color: var(--on-teal); }
.offer p, .get li, .get p { color: var(--on-teal); }
.get a:not(.btn), .offer a:not(.btn) { color: var(--on-teal); }
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 10px 26px; border-radius: 999px; background: var(--orange); color: #000; font-weight: 700; font-size: 1.15rem; text-decoration: none; margin-top: 8px; }
.btn:hover { background: #e8954a; }
.get .small { color: var(--on-teal); }
.sources li { margin: 0 0 .9em; scroll-margin-top: 20px; }
.sources li:target { background: var(--orange-soft); border-radius: 8px; }

/* footer */
.site { background: var(--teal-deep); color: var(--on-teal-soft); margin-top: 40px; padding: 30px 16px 40px; }
.fin { max-width: 1120px; margin: 0 auto; padding: 0 16px; display: grid; gap: 10px 40px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site h2 { color: var(--on-teal); font-size: 1.2rem; margin: .4em 0 .3em; }
.site ul { list-style: none; padding: 0; margin: 0; }
.site li a { color: var(--on-teal); display: inline-flex; align-items: center; min-height: 48px; }
.fine { max-width: 1120px; margin: 18px auto 0; padding: 0 16px; font-size: 1.125rem; }
.site { padding-left: 0; padding-right: 0; }

@media (prefers-reduced-motion: reduce) { .tile { transition: none; } .tile:hover { transform: none; } }

/* print: a move on one sheet */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; color: #000; font-size: 12.5pt; }
  .bar, .site, .crumbs, .offer, .nextmove, .chart, .chart-h, .related, .updated, .skip, .cell figcaption, .move > h2 { display: none !important; }
  main { padding: 0; }
  .move { display: block; }
  .cell { background: none; padding: 0; max-width: 62mm; float: right; margin: 0 0 6mm 8mm; }
  .steps li { font-size: 14pt; }
  :root { --cream: #fff; --paper: #fff; --ink: #000; --ink-soft: #222; --orange-ink: #9a4a12; }
  .notes { display: block; } .note, .note.care { background: none; border: 1px solid #999; margin: 0 0 4mm; padding: 1mm 4mm; break-inside: avoid; }
  .amount, .amount span { background: none; color: #000; border: 1px solid #000; }
  .cell .no { top: 4px; left: 8px; }
  a { color: #000; text-decoration: none; }
  .cite { display: none; }
}
