/* The Plainly Stated - one stylesheet, no script. Ink on paper by day, lamp-light by night. */
@font-face { font-family: "Lora"; src: url("/fonts/lora-latin-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/fonts/lora-latin-italic-var.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;
  --paper: #F3F0E8;
  --raised: #FAF8F3;
  --ink: #1C160E;
  --body: #2A2217;
  --soft: #6B5B3E;
  --rule: #D8CFBF;
  --seal: #9A2E1B;
  --moss: #4F5B3E;
  --wash: rgba(154, 46, 27, .07);
  --band: #1C160E;
  --band-ink: #F3F0E8;
  --band-line: #3A3127;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --wide: 72rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15120D;
    --raised: #1E1A13;
    --ink: #EDE6D8;
    --body: #DCD3C2;
    --soft: #A89878;
    --rule: #342C21;
    --seal: #E0674F;
    --moss: #9FB07F;
    --wash: rgba(224, 103, 79, .09);
    --band: #221D15;
    --band-ink: #EDE6D8;
    --band-line: #3A3127;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.0625rem, .98rem + .35vw, 1.25rem);
  line-height: 1.6;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--seal); color: var(--seal); }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; border-radius: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .5rem .9rem; font-family: var(--sans); font-size: .875rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-family: var(--sans); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); margin: 0 0 .9rem; }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }

/* ---------- masthead ---------- */
.mast { border-bottom: 1px solid var(--rule); }
.mast .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; }
.mark { font-family: var(--serif); font-weight: 600; font-size: 1.125rem; letter-spacing: -.005em; text-decoration: none; white-space: nowrap; }
.mark em { color: var(--seal); font-weight: 500; }
.mark:hover { color: var(--ink); }
.mast nav { display: flex; gap: clamp(.9rem, 3vw, 1.75rem); font-family: var(--sans); font-size: .875rem; }
.mast nav a { text-decoration: none; color: var(--soft); white-space: nowrap; }
@media (max-width: 30rem) { .mast nav a + a:not(.shop) { display: none; } }
.mast nav a:hover { color: var(--seal); }

/* ---------- home: hero ---------- */
.hero { padding: clamp(2.5rem, 7vw, 6rem) 0 clamp(2.5rem, 6vw, 5rem); }
.hero .wrap { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 52rem) { .hero .wrap { grid-template-columns: 1.25fr .75fr; } }
.hero h1 { font-weight: 600; font-size: clamp(2.75rem, 1.4rem + 6.2vw, 6.25rem); line-height: .98; letter-spacing: -.025em; margin: 0 0 1.5rem; text-wrap: balance; }
.hero h1 em { display: block; color: var(--seal); font-weight: 500; letter-spacing: -.02em; }
.hero .lede { font-size: clamp(1.1875rem, 1rem + .7vw, 1.5rem); line-height: 1.5; color: var(--body); max-width: 32ch; margin: 0 0 2rem; text-wrap: pretty; }
.btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--sans); font-size: .9375rem; font-weight: 600; text-decoration: none; padding: .8rem 1.35rem; border-radius: 999px; border: 1px solid var(--ink); }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: var(--seal); border-color: var(--seal); color: #fff; }
.btn.line:hover { border-color: var(--seal); }
.plate { margin: 0; position: relative; }
.plate img { width: 100%; aspect-ratio: 832 / 1216; object-fit: cover; border-radius: 3px; box-shadow: 0 1px 0 var(--rule), 0 24px 48px -28px rgba(28, 22, 14, .55); }
@media (max-width: 51.99rem) { .plate img { aspect-ratio: 4 / 3; object-position: 50% 42%; } }
.plate figcaption { font-family: var(--serif); font-style: italic; font-size: .9375rem; color: var(--soft); margin-top: .75rem; }
@media (prefers-color-scheme: dark) { .plate img { filter: brightness(.88) contrast(1.04); } }

/* ---------- home: band + series intro ---------- */
.band { background: var(--band); color: var(--band-ink); }
.band .wrap { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); display: grid; gap: clamp(1.5rem, 4vw, 4rem); }
@media (min-width: 52rem) { .band .wrap { grid-template-columns: .8fr 1.2fr; } }
.band .eyebrow { color: color-mix(in srgb, var(--band-ink) 62%, var(--band)); }
.band h2 { font-weight: 600; font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem); line-height: 1.02; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.band h2 em { color: #E0674F; font-weight: 500; }
.band p { margin: 0 0 1.1rem; max-width: 60ch; line-height: 1.65; color: color-mix(in srgb, var(--band-ink) 88%, var(--band)); text-wrap: pretty; }
.band p:last-child { margin-bottom: 0; }
.formats { display: grid; gap: 1px; background: var(--band-line); border: 1px solid var(--band-line); border-radius: 4px; overflow: hidden; margin-top: 1.75rem; }
@media (min-width: 36rem) { .formats { grid-template-columns: repeat(3, 1fr); } }
.formats a { display: block; background: var(--band); padding: 1.1rem 1.2rem 1.2rem; text-decoration: none; }
.formats a:hover { background: color-mix(in srgb, var(--band-ink) 7%, var(--band)); color: inherit; }
.formats b { display: block; font-family: var(--sans); font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #E0674F; margin-bottom: .35rem; }
.formats span { font-size: .9375rem; line-height: 1.45; color: color-mix(in srgb, var(--band-ink) 78%, var(--band)); display: block; }

/* ---------- home: the list ---------- */
.walks { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 4rem); }
.walks-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.25rem 2rem; margin-bottom: 1.5rem; }
.walks-head h2 { font-weight: 600; font-size: clamp(1.875rem, 1.3rem + 2.2vw, 2.75rem); line-height: 1.05; letter-spacing: -.015em; margin: 0; }
.anchor { display: block; position: relative; top: -1rem; height: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; font-family: var(--sans); }
.chips a { font-size: .875rem; font-weight: 500; text-decoration: none; padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--rule); color: var(--soft); white-space: nowrap; }
.chips a small { font-size: .75rem; margin-left: .3rem; font-variant-numeric: tabular-nums; }  /* full opacity: .75 fell under 4.5:1 */
.chips a:hover { border-color: var(--seal); color: var(--seal); }
.chips a.on, body:not(:has(.fa:target)) .chips a[href="#all"], body:has(#short-walks:target) .chips a[href="#short-walks"], body:has(#lessons:target) .chips a[href="#lessons"], body:has(#deep-sessions:target) .chips a[href="#deep-sessions"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
body:has(#all:target) .chips a[href="#all"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
body:has(#short-walks:target) .eps li:not(.short-walk),
body:has(#lessons:target) .eps li:not(.lesson),
body:has(#deep-sessions:target) .eps li:not(.deep-session) { display: none; }

.eps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.eps li { border-bottom: 1px solid var(--rule); }
.eps a { display: grid; grid-template-columns: 3.25rem 1fr; gap: .25rem 1rem; padding: 1.35rem 0 1.4rem; text-decoration: none; }
@media (min-width: 46rem) { .eps a { grid-template-columns: 5rem 1fr 15rem; gap: .25rem 1.5rem; align-items: baseline; } }
.eps a:hover { color: var(--ink); }
.eps a:hover h3 { color: var(--seal); }
.num { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); line-height: 1; color: var(--seal); font-variant-numeric: lining-nums; padding-top: .1rem; }
.eps h3 { font-weight: 600; font-size: clamp(1.25rem, 1.05rem + .8vw, 1.625rem); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .4rem; transition: color .15s; text-wrap: balance; }
.eps p { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--soft); max-width: 58ch; }
.eps .tags { grid-column: 2; font-family: var(--sans); font-size: .8125rem; color: var(--soft); line-height: 1.6; margin-top: .55rem; }
@media (min-width: 46rem) { .eps .tags { grid-column: 3; grid-row: 1; margin-top: 0; text-align: right; } }
.tag { display: inline-block; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .6875rem; color: var(--moss); }
.eps .tags .tag { display: block; }

/* ---------- home: who he borrows from ---------- */
.borrowed { padding: clamp(2rem, 5vw, 4rem) 0 clamp(3.5rem, 8vw, 6rem); }
.borrowed h2 { font-weight: 600; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); letter-spacing: -.01em; margin: 0 0 .5rem; }
.borrowed > .wrap > p { color: var(--soft); margin: 0 0 1.75rem; max-width: 60ch; font-size: 1rem; }
.names { list-style: none; margin: 0; padding: 0; columns: 15rem auto; column-gap: 2.5rem; }
.names li { break-inside: avoid; display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dotted var(--rule); font-size: 1.0625rem; }
.names span { font-family: var(--sans); font-size: .8125rem; color: var(--soft); white-space: nowrap; }
.names span a { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; padding: 0 .2rem; }  /* WCAG 2.2 target size */
.names span a:hover { text-decoration: underline; }

/* ---------- article ---------- */
.article { padding: clamp(2.5rem, 7vw, 5.5rem) var(--gutter) clamp(2rem, 5vw, 3rem); }
.article header, .prose, .after { max-width: 42rem; margin-left: auto; margin-right: auto; }
.article header { margin-bottom: clamp(2.25rem, 5vw, 3.5rem); padding-bottom: clamp(1.5rem, 4vw, 2.25rem); border-bottom: 1px solid var(--rule); }
.article h1 { font-weight: 600; font-size: clamp(2.25rem, 1.4rem + 3.8vw, 4rem); line-height: 1.04; letter-spacing: -.022em; margin: 0 0 1.25rem; text-wrap: balance; }
.meta { font-family: var(--sans); font-size: .875rem; color: var(--soft); display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.meta li { display: flex; gap: .4rem; align-items: baseline; }
.meta b { white-space: nowrap; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .6875rem; color: var(--moss); }
.meta a { text-decoration: none; }
.meta a:hover { text-decoration: underline; }
.prose { font-size: clamp(1.125rem, 1.02rem + .4vw, 1.3125rem); line-height: 1.75; color: var(--body); hanging-punctuation: first; }
.prose p { margin: 0 0 1.05em; text-wrap: pretty; hyphens: manual; }
.prose > p:first-child { display: flow-root; }
.prose > p:first-child::first-letter { float: left; font-size: 3.4em; line-height: .8; font-weight: 600; color: var(--seal); padding: .1em .08em 0 0; margin: 0 0 -.1em; }
.prose > p:first-child::first-line { font-variant: small-caps; letter-spacing: .03em; color: var(--ink); }
.prose p:last-child::after { content: ""; display: inline-block; width: .55em; height: .55em; margin-left: .45em; background: var(--seal); border-radius: 1px; transform: translateY(-.05em); }
.kit { max-width: 42rem; margin: clamp(2rem, 5vw, 2.75rem) auto 0; font-style: italic; font-size: 1.0625rem; line-height: 1.6; color: var(--soft); text-wrap: pretty; }
.kit a { color: var(--seal); }
.kit .zh { font-style: normal; letter-spacing: .05em; }
.after { margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: 1.75rem; border-top: 1px solid var(--ink); font-family: var(--sans); }
.pager { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
@media (min-width: 36rem) { .pager { grid-template-columns: 1fr 1fr; } }
.pager a { display: block; background: var(--paper); padding: 1.1rem 1.2rem 1.25rem; text-decoration: none; }
.pager a:hover { background: var(--raised); color: inherit; }
.pager a.next { text-align: right; }
.pager a:only-child { grid-column: 1 / -1; }
.pager small { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); margin-bottom: .35rem; }
.pager strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.1875rem; line-height: 1.25; }
.pager a:hover strong { color: var(--seal); }
.pager span { display: block; font-size: .8125rem; color: var(--soft); margin-top: .3rem; }
.back { display: inline-block; margin-top: 1.5rem; font-size: .9375rem; color: var(--soft); text-decoration: none; }
.back:hover { text-decoration: underline; }

/* ---------- 404 ---------- */
.lost { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3rem, 8vw, 6rem); }
.lost .wrap { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 52rem) { .lost .wrap { grid-template-columns: 1fr 1fr; } }
.lost h1 { font-weight: 600; font-size: clamp(2.5rem, 1.5rem + 4.4vw, 4.75rem); line-height: 1; letter-spacing: -.025em; margin: 0 0 1.25rem; text-wrap: balance; }
.lost h1 em { color: var(--seal); font-weight: 500; }
.lost p { color: var(--body); max-width: 40ch; margin: 0 0 1rem; line-height: 1.6; }
.lost .btns { margin-top: 1.75rem; }
.lost figure { margin: 0; }
.lost figure img { width: 100%; border-radius: 3px; mix-blend-mode: multiply; }
@media (prefers-color-scheme: dark) { .lost figure img { mix-blend-mode: normal; filter: brightness(.86) contrast(1.04); } }
.lost figcaption { font-style: italic; font-size: .9375rem; color: var(--soft); margin-top: .6rem; }
.lost .try { margin-top: 2.25rem; font-family: var(--sans); font-size: .875rem; color: var(--soft); }
.lost .try ul { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .35rem; }
.lost .try a { font-family: var(--serif); font-size: 1.0625rem; color: var(--ink); text-decoration: none; }
.lost .try a:hover { color: var(--seal); text-decoration: underline; }
.lost .try i { font-style: normal; color: var(--soft); font-family: var(--sans); font-size: .8125rem; margin-left: .4rem; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--rule); padding: 2rem 0 2.5rem; font-family: var(--sans); font-size: .875rem; color: var(--soft); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; align-items: baseline; }
.foot p { margin: 0; }
.foot a { color: var(--ink); }
.foot a:hover { color: var(--seal); }
.foot .zh { font-family: var(--serif); letter-spacing: .05em; }
