/* =========================================================
   Slow Margin — stylesheet
   A quiet magazine: one ground colour, three accents, and a
   lot of air. Serif for headings, sans for reading, hairline
   rules instead of boxes.
   ========================================================= */

/* ---------- tokens ---------- */
:root {
  color-scheme: light;

  --paper: #FAF8F3;
  --paper-2: #F3EFE6;
  --card: #FFFDF8;

  --ink: #2D3B36;
  --ink-2: #4A5A53;
  --ink-3: #5A6B64;

  --terra: #C96F4A;
  --terra-ink: #A8532F;
  --terra-soft: #E8C7B6;
  --mist: #8FA3AD;
  --mist-ink: #55696F;

  --rule: #E2DDD1;
  --rule-strong: #CFC8B8;

  --shadow-1: 0 1px 2px rgba(45, 59, 54, .04), 0 8px 26px rgba(45, 59, 54, .05);
  --shadow-2: 0 2px 6px rgba(45, 59, 54, .06), 0 18px 48px rgba(45, 59, 54, .08);

  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", Georgia, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  --wrap: 1180px;
  --measure: 680px;

  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 18px;

  --gutter: 28px;
  --section: 96px;
}

[data-theme="dark"] {
  color-scheme: dark;

  --paper: #141C19;
  --paper-2: #1A2420;
  --card: #1C2622;

  --ink: #E7E3D8;
  --ink-2: #C3C4BA;
  --ink-3: #A2A79F;

  --terra: #E08A63;
  --terra-ink: #EBA07B;
  --terra-soft: #4A3126;
  --mist: #9DB2BB;
  --mist-ink: #A6B9C0;

  --rule: #2A3530;
  --rule-strong: #3A4641;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 26px rgba(0, 0, 0, .28);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .34), 0 18px 48px rgba(0, 0, 0, .38);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease, color .35s ease;
}

img { max-width: 100%; display: block; }

a { color: var(--terra-ink); text-decoration: none; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1.22; letter-spacing: -.01em; }

button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }

/* ---------- type helpers ---------- */
.eyebrow {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 14px; font-family: var(--sans); font-weight: 500;
}

.section-title {
  font-size: 26px; margin: 0 0 28px; padding-bottom: 14px;
  border-bottom: 1px solid var(--rule); position: relative;
}
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 54px; height: 2px; background: var(--terra);
}

.page-head { padding: 72px 0 40px; }
.page-title { font-size: clamp(34px, 5vw, 54px); margin: 0 0 18px; }
.page-lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: var(--measure); margin: 0; }

.cat-chip, .cat-tag {
  display: inline-block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3);
}
.cat-tag { border-bottom: 1px solid var(--rule-strong); padding-bottom: 2px; }
.cat-life { color: var(--terra-ink); }
.cat-city { color: var(--mist-ink); }
.cat-reading { color: var(--ink-2); }
.cat-travel { color: var(--terra-ink); }

.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 0; }
.tag-list li {
  font-size: 12px; color: var(--ink-3); background: var(--paper-2);
  padding: 3px 10px; border-radius: 999px;
}
.tag-list-lead { margin-top: 20px; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; letter-spacing: .04em; color: var(--ink);
  border-bottom: 1px solid var(--rule-strong); padding-bottom: 3px; margin-right: 28px;
}
.text-link:hover { color: var(--terra-ink); border-color: var(--terra); }
.text-link .icon { transition: transform .25s ease; }
.text-link:hover .icon { transform: translateX(4px); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border: 1px solid var(--rule-strong); border-radius: 999px;
  font-size: 14px; letter-spacing: .04em; color: var(--ink); background: transparent;
}
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-primary:hover { background: var(--terra-ink); border-color: var(--terra-ink); color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex; align-items: center; gap: 32px; min-height: 72px;
}
.wordmark { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.wordmark-mark {
  width: 10px; height: 22px; background: var(--terra); border-radius: 2px;
  display: inline-block; flex: none;
}
.wordmark-text {
  font-family: var(--serif); font-size: 21px; letter-spacing: .01em; font-weight: 600;
}
.site-nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.nav-list a {
  font-size: 13.5px; letter-spacing: .06em; color: var(--ink-2); padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav-list a:hover { color: var(--ink); border-bottom-color: var(--terra); }

.header-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  color: var(--ink-2);
}
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: inline-flex; }
.menu-btn { display: none; }

.mobile-panel { border-top: 1px solid var(--rule); background: var(--paper); }
.mobile-list { list-style: none; margin: 0; padding: 12px var(--gutter) 24px; }
.mobile-list li { border-bottom: 1px solid var(--rule); }
.mobile-list a { display: block; padding: 14px 0; font-family: var(--serif); font-size: 18px; color: var(--ink); }

.progress-bar {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--terra); z-index: 120; transition: width .12s linear;
}

/* ---------- hero carousel ---------- */
.hero { position: relative; margin-bottom: 8px; }
.hero-track { position: relative; height: min(72vh, 640px); overflow: hidden; background: var(--paper-2); }
.hero-slide {
  position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden;
  transition: opacity .9s ease, visibility .9s ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.04) sepia(.07); }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 28, 25, .18) 0%, rgba(20, 28, 25, .05) 38%, rgba(20, 28, 25, .72) 100%);
}
.hero-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 0 var(--gutter) 40px; max-width: 860px; margin: 0 auto;
  color: #F4F1E9;
}
.hero-eyebrow { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 12px; opacity: .82; }
.hero-title { font-size: clamp(30px, 4.4vw, 52px); color: #FBF9F4; margin: 0 0 12px; line-height: 1.12; }
.hero-title a { color: inherit; }
.hero-title a:hover { color: #F0C3AC; }
.hero-dek { font-size: 17px; line-height: 1.6; margin: 0 0 14px; opacity: .9; max-width: 62ch; }
.hero-read { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .72; }

.hero-controls {
  display: flex; align-items: center; gap: 10px; padding-top: 18px; padding-bottom: 18px;
}
.hero-dot {
  width: 26px; height: 3px; border: 0; border-radius: 2px; background: var(--rule-strong);
  cursor: pointer; padding: 0; transition: background-color .3s ease;
}
.hero-dot.is-active { background: var(--terra); }
.hero-count { margin-left: auto; font-size: 12px; letter-spacing: .12em; color: var(--ink-3); }

/* ---------- home blocks ---------- */
.intro-block { padding: 72px 0 40px; max-width: 820px; }
.intro-lead {
  font-family: var(--serif); font-size: clamp(22px, 3vw, 30px); line-height: 1.42;
  margin: 0 0 20px; color: var(--ink);
}
.intro-note { font-size: 17px; color: var(--ink-2); margin: 0 0 26px; max-width: 58ch; }

.home-latest {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px;
  padding-top: 48px; padding-bottom: var(--section);
}

/* The waterfall: real columns, so cards of different heights stack the way
   they do in a printed magazine. */
.water-grid { columns: 2; column-gap: 28px; }
.water-grid .card { break-inside: avoid; margin-bottom: 28px; display: block; }

.card {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-md);
  overflow: hidden; box-shadow: var(--shadow-1);
}
.card-media { display: block; overflow: hidden; background: var(--paper-2); }
.card-media img {
  width: 100%; height: 190px; object-fit: cover;
  filter: saturate(.8) contrast(1.03) sepia(.08);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.card:hover .card-media img { transform: scale(1.045); }
.card-body { padding: 20px 22px 24px; }
.card-eyebrow {
  display: flex; gap: 12px; align-items: center; font-size: 11.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px;
}
.card-title { font-size: 20px; margin: 0 0 10px; line-height: 1.32; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--terra-ink); }
.card-excerpt { font-size: 15px; line-height: 1.62; color: var(--ink-2); margin: 0 0 14px; }
.card-meta { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0; }

.home-picks { border-left: 1px solid var(--rule); padding-left: 40px; }
.pick { margin-bottom: 34px; }
.pick-media { display: block; overflow: hidden; border-radius: var(--r-sm); background: var(--paper-2); }
.pick-media img {
  width: 100%; height: 150px; object-fit: cover;
  filter: saturate(.8) contrast(1.03) sepia(.08);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.pick:hover .pick-media img { transform: scale(1.05); }
.pick-meta { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin: 12px 0 8px; }
.pick-title { font-size: 17px; margin: 0 0 8px; line-height: 1.38; }
.pick-title a { color: var(--ink); }
.pick-title a:hover { color: var(--terra-ink); }
.pick-excerpt { font-size: 14px; line-height: 1.6; color: var(--ink-2); margin: 0; }

.home-subscribe {
  background: var(--paper-2); border-radius: var(--r-md); padding: 26px 24px; margin-top: 40px;
}
.home-subscribe-title { font-size: 18px; margin: 0 0 10px; }
.home-subscribe p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin: 0 0 16px; }

.rss-link {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px;
  letter-spacing: .06em; color: var(--ink); border-bottom: 1px solid var(--rule-strong); padding-bottom: 4px;
}
.rss-link:hover { color: var(--terra-ink); border-color: var(--terra); }

.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding-bottom: var(--section); }
.cat-tile {
  display: block; padding: 30px 24px 26px; border: 1px solid var(--rule); border-radius: var(--r-md);
  background: var(--card); transition: transform .3s ease, box-shadow .3s ease;
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.cat-tile-label { display: block; font-family: var(--serif); font-size: 20px; color: var(--ink); margin-bottom: 6px; }
.cat-tile-zh { display: block; font-size: 13px; color: var(--ink-3); margin-bottom: 18px; }
.cat-tile-count { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.cat-tile-life .cat-tile-label { color: var(--terra-ink); }
.cat-tile-city .cat-tile-label { color: var(--mist-ink); }

/* ---------- article page ---------- */
.post { padding-bottom: 20px; }
.post-head { padding-top: 76px; padding-bottom: 36px; max-width: 860px; }
.post-title { font-size: clamp(32px, 5.2vw, 56px); margin: 0 0 20px; line-height: 1.1; }
.post-dek { font-size: 20px; line-height: 1.55; color: var(--ink-2); margin: 0 0 24px; max-width: 60ch; }
.post-byline {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  font-size: 13px; letter-spacing: .06em; color: var(--ink-3); margin: 0;
}
.byline-author { color: var(--ink); }
.dot { color: var(--rule-strong); }

.post-cover { margin: 0 auto 56px; max-width: 1180px; padding: 0 var(--gutter); }
.post-cover img {
  width: 100%; height: clamp(280px, 46vw, 520px); object-fit: cover;
  border-radius: var(--r-md); filter: saturate(.82) contrast(1.03) sepia(.07);
}

.post-body { padding-bottom: 24px; }
.prose { max-width: var(--measure); margin: 0 auto; }
.prose p { font-size: 17.5px; line-height: 1.82; margin: 0 0 1.5em; color: var(--ink-2); }
.prose > p:first-child::first-letter {
  font-family: var(--serif); font-size: 3.1em; line-height: .86; float: left;
  padding: 6px 12px 0 0; color: var(--ink); font-weight: 600;
}
.prose h2 { font-size: 27px; margin: 2.1em 0 .7em; }
.prose h3 { font-size: 21px; margin: 1.8em 0 .6em; }
.prose ul, .prose ol { margin: 0 0 1.5em; padding-left: 1.2em; color: var(--ink-2); }
.prose li { margin-bottom: .5em; font-size: 17px; line-height: 1.7; }
.prose blockquote {
  margin: 2em 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--terra);
  font-family: var(--serif); font-size: 20px; line-height: 1.6; color: var(--ink); font-style: italic;
}
.prose blockquote p { font-size: inherit; color: inherit; margin: 0; line-height: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 3em 0; }
.prose a { border-bottom: 1px solid var(--terra-soft); }
.prose a:hover { border-bottom-color: var(--terra); }

.figure { margin: 2.4em 0; }
.figure img {
  width: 100%; border-radius: var(--r-sm);
  filter: saturate(.82) contrast(1.03) sepia(.07);
}
.figure figcaption, .post-cover figcaption {
  font-size: 13px; font-style: italic; color: var(--ink-3);
  margin-top: 10px; line-height: 1.5;
}

.post-foot { padding-top: 48px; padding-bottom: 80px; }
.post-note {
  border-top: 1px solid var(--rule); padding-top: 22px; margin-bottom: 34px;
  max-width: var(--measure);
}
.post-note-title { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; }
.post-note p { font-size: 14px; line-height: 1.6; color: var(--ink-3); margin: 0; }

/* ---------- advertising slots ----------
   Banner 1 at the top, Banner 2 in the middle and Banner 3 at the bottom
   of every page, an interstitial on the home page, and an anchor layer at
   the bottom of the screen. The dashed .ad-space boxes are honest
   placeholders that keep their height until a real tag fills them. */
.ad-banner1 { padding: 18px 0 0; }
.ad-banner1 .ad-label { margin-bottom: 8px; }
.ad-banner2 { padding: 10px 0; }
.ad-banner3 { padding: 10px 0 0; margin-top: 10px; }
.ad-space {
  border: 1px dashed var(--rule-strong); border-radius: var(--r-md);
  background: var(--paper-2); min-height: 92px;
}
.ad-close {
  border: 1px solid var(--rule); background: transparent; border-radius: 999px;
  min-width: 30px; height: 30px; padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12.5px; color: var(--ink-2); cursor: pointer; flex: none;
}
.ad-close:hover { border-color: var(--ink); color: var(--ink); }

/* anchor layer — fixed to the bottom of every page */
.ad-anchor {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
  background: var(--paper); border-top: 1px solid var(--rule);
  box-shadow: 0 -8px 28px rgba(45, 59, 54, .07);
}
.ad-anchor-inner { display: flex; align-items: center; gap: 18px; padding-top: 10px; padding-bottom: 10px; }
.ad-anchor-main { flex: 1; min-width: 0; }
.ad-anchor-main .ad-label { margin-bottom: 6px; }
.ad-anchor .ad-space { min-height: 56px; }
body.has-anchor { padding-bottom: 104px; }
body.has-anchor .cookie-note { bottom: 120px; }

/* interstitial — the home page only, once per session */
.ad-inter {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 140;
  background: rgba(250, 248, 243, .95);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  transition: opacity .35s ease;
}
[data-theme="dark"] .ad-inter { background: rgba(20, 28, 25, .95); }
.ad-inter.is-gone { opacity: 0; pointer-events: none; }
.ad-inter-card {
  width: min(560px, 100%); background: var(--card);
  border: 1px solid var(--rule); border-radius: var(--r-md);
  box-shadow: var(--shadow-2); padding: 26px; text-align: center;
}
.ad-inter-card .ad-space { min-height: 240px; margin: 4px 0 14px; }
.ad-inter-card .ad-note { margin: 0 0 18px; }

.ad-label { display: block; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.ad-note { font-size: 12.5px; color: var(--ink-3); margin: 0; line-height: 1.55; }

.related { border-top: 1px solid var(--rule); padding-top: 40px; margin-bottom: 48px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.rel-card h3 { font-size: 18px; margin: 0 0 8px; line-height: 1.36; }
.rel-card h3 a { color: var(--ink); }
.rel-card h3 a:hover { color: var(--terra-ink); }
.rel-meta { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; }
.rel-excerpt { font-size: 14px; line-height: 1.6; color: var(--ink-2); margin: 0 0 10px; }

.post-nav { border-top: 1px solid var(--rule); padding-top: 28px; }
.post-nav-back { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.post-nav-back:hover { color: var(--terra-ink); }
.post-nav-back .icon { transform: rotate(180deg); }

/* ---------- topic page ---------- */
.topic-intro { max-width: var(--measure); margin: 0 auto 72px; }
.topic-intro p { font-size: 17.5px; line-height: 1.82; color: var(--ink-2); margin: 0 0 1.4em; }
.topic-intro h2 { font-size: 26px; margin: 1.8em 0 .6em; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; padding-bottom: var(--section); }
.card-big .card-media img { height: 220px; }

/* ---------- category page ---------- */
.filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 26px; }
.filter-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-right: 8px; }
.filter-btn {
  border: 1px solid var(--rule); background: transparent; border-radius: 999px;
  padding: 5px 14px; font-size: 13px; color: var(--ink-2); cursor: pointer;
}
.filter-btn:hover { border-color: var(--ink-3); color: var(--ink); }
.filter-btn.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.row-list { padding-bottom: var(--section); }
.row {
  display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 34px;
  padding: 30px 0; border-bottom: 1px solid var(--rule); align-items: start;
}
.row-media { display: block; overflow: hidden; border-radius: var(--r-sm); background: var(--paper-2); }
.row-media img {
  width: 100%; height: 170px; object-fit: cover;
  filter: saturate(.8) contrast(1.03) sepia(.08);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.row:hover .row-media img { transform: scale(1.05); }
.row-meta { display: flex; gap: 14px; align-items: center; font-size: 12px; color: var(--ink-3); margin: 0 0 10px; }
.row-title { font-size: 24px; margin: 0 0 10px; line-height: 1.28; }
.row-title a { color: var(--ink); }
.row-title a:hover { color: var(--terra-ink); }
.row-excerpt { font-size: 15.5px; line-height: 1.62; color: var(--ink-2); margin: 0; max-width: 62ch; }
.empty-note { font-size: 15px; color: var(--ink-3); font-style: italic; padding: 30px 0 60px; }

/* ---------- archive ---------- */
.timeline { padding-bottom: var(--section); }
.tl-group { margin-bottom: 46px; }
.tl-month {
  display: flex; align-items: baseline; gap: 14px; font-size: 22px; margin: 0 0 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--rule);
}
.tl-month-year { color: var(--ink-3); font-size: 16px; }
.tl-count { margin-left: auto; font-size: 12px; color: var(--ink-3); letter-spacing: .1em; }
.tl-list { list-style: none; margin: 0; padding: 0; }
.tl-list li {
  display: grid; grid-template-columns: 118px 150px minmax(0, 1fr) 60px;
  gap: 18px; align-items: baseline; padding: 11px 0; border-bottom: 1px dotted var(--rule);
  font-size: 15px;
}
.tl-date { font-size: 12.5px; color: var(--ink-3); }
.tl-cat { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.tl-list a { color: var(--ink); }
.tl-list a:hover { color: var(--terra-ink); }
.tl-min { font-size: 12px; color: var(--ink-3); text-align: right; }

/* ---------- information pages ---------- */
.legal-prose { max-width: var(--measure); padding-bottom: 80px; }
.legal-prose p { font-size: 16.5px; line-height: 1.78; color: var(--ink-2); margin: 0 0 1.35em; }
.legal-prose h2 { font-size: 24px; margin: 1.9em 0 .6em; }
.legal-prose ul { padding-left: 1.15em; }
.legal-prose li { margin-bottom: .55em; font-size: 16.5px; line-height: 1.7; color: var(--ink-2); }
.legal-prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15px; }
.legal-prose th, .legal-prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.legal-prose th { font-weight: 600; color: var(--ink); }
.legal-prose td { color: var(--ink-2); }

.about-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; padding-bottom: 80px; align-items: start; }
.about-portrait { margin: 0; }
.about-portrait img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-md);
  filter: saturate(.72) contrast(1.04) sepia(.1);
}
.about-portrait figcaption {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-top: 12px;
}
.about-text { max-width: 640px; }

/* ---------- search ---------- */
.search-page { padding: 72px 0 90px; }
.search-form {
  display: flex; align-items: center; gap: 12px; margin: 34px 0 12px;
  border-bottom: 1px solid var(--rule-strong); padding-bottom: 12px; max-width: 640px;
}
.search-icon { color: var(--ink-3); display: inline-flex; }
.search-input {
  flex: 1; border: 0; background: transparent; font-family: var(--serif);
  font-size: 22px; color: var(--ink); padding: 4px 0; min-width: 0;
}
.search-input:focus { outline: none; }
.search-input::placeholder { color: var(--ink-3); opacity: .7; }
.search-clear {
  border: 1px solid var(--rule); background: transparent; border-radius: 999px;
  padding: 4px 12px; font-size: 12px; color: var(--ink-3); cursor: pointer;
}
.search-status { font-size: 13px; letter-spacing: .04em; color: var(--ink-3); margin: 0 0 30px; }
.search-results { display: grid; gap: 26px; max-width: 760px; }
.result { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: start; }
.result-media { display: block; overflow: hidden; border-radius: var(--r-sm); background: var(--paper-2); }
.result-media img {
  width: 100%; height: 118px; object-fit: cover;
  filter: saturate(.8) contrast(1.03) sepia(.08);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.result:hover .result-media img { transform: scale(1.05); }
.result-meta { display: flex; gap: 12px; align-items: center; font-size: 12px; color: var(--ink-3); margin: 0 0 8px; }
.result-title { font-size: 20px; margin: 0 0 8px; line-height: 1.32; }
.result-title a { color: var(--ink); }
.result-title a:hover { color: var(--terra-ink); }
.result-excerpt { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin: 0; }
.search-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 40px; }
.search-tags-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-right: 6px; }
.search-tag {
  border: 1px solid var(--rule); background: transparent; border-radius: 999px;
  padding: 4px 13px; font-size: 13px; color: var(--ink-2); cursor: pointer;
}
.search-tag:hover { border-color: var(--terra); color: var(--terra-ink); }

/* ---------- 404 ---------- */
.notfound { padding: 110px 0 130px; max-width: 720px; }
.notfound-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); background: var(--paper-2); margin-top: 40px; }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 44px;
  padding-top: 68px; padding-bottom: 52px;
}
.footer-wordmark { font-family: var(--serif); font-size: 20px; margin: 0 0 10px; }
.footer-tagline { font-size: 14.5px; color: var(--ink-2); margin: 0 0 16px; max-width: 40ch; line-height: 1.6; }
.footer-note { font-size: 13.5px; line-height: 1.65; color: var(--ink-3); margin: 0 0 12px; }
.footer-head { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 16px; font-family: var(--sans); font-weight: 600; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 10px; }
.footer-list a { font-size: 14px; color: var(--ink-2); }
.footer-list a:hover { color: var(--terra-ink); }
.footer-legal { border-top: 1px solid var(--rule); padding-top: 22px; padding-bottom: 30px; }
.footer-legal p { font-size: 12.5px; color: var(--ink-3); margin: 0 0 4px; line-height: 1.6; }

/* ---------- cookie notice ---------- */
.cookie-note {
  position: fixed; left: 20px; bottom: 20px; z-index: 130; max-width: 380px;
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-md);
  box-shadow: var(--shadow-2); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px;
  transition: opacity .35s ease, transform .35s ease;
}
.cookie-note.is-gone { opacity: 0; transform: translateY(10px); }
.cookie-text { font-size: 13px; line-height: 1.6; color: var(--ink-2); margin: 0; }
.cookie-text strong { color: var(--ink); }
.cookie-ok {
  align-self: flex-start; border: 1px solid var(--rule-strong); background: transparent;
  border-radius: 999px; padding: 6px 18px; font-size: 12.5px; color: var(--ink); cursor: pointer;
}
.cookie-ok:hover { border-color: var(--ink); }

/* ---------- reveal ---------- */
/* Only when the script is running: without JavaScript the content must be
   visible, not permanently transparent. */
html.has-js .reveal { opacity: 0; transform: translateY(16px); }
html.has-js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
/* Content that is already on screen when the page renders is shown without a
   fade. Waiting for the observer would leave the first screen blank, and a
   fade-in on something the reader is already looking at is just a delay. */
html.has-js .reveal.is-now {
  opacity: 1; transform: none; transition: none;
}
.water-grid .reveal:nth-child(2n) { transition-delay: .06s; }
.water-grid .reveal:nth-child(3n) { transition-delay: .12s; }
.related-grid .reveal:nth-child(2) { transition-delay: .08s; }
.related-grid .reveal:nth-child(3) { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.has-js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide { transition: none; }
  * { animation-duration: .001ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .home-latest { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .home-picks { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 40px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
}

@media (max-width: 860px) {
  :root { --gutter: 20px; --section: 72px; }
  .site-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .hero-track { height: min(62vh, 480px); }
  .water-grid { columns: 1; }
  .related-grid { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .row-media img { height: 210px; }
  .tl-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 0; }
  .tl-min { text-align: left; }
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .about-portrait { max-width: 220px; }
  .result { grid-template-columns: minmax(0, 1fr); }
  .result-media img { height: 190px; }
  .prose > p:first-child::first-letter { font-size: 2.6em; }
}

@media (max-width: 620px) {
  .cat-grid { grid-template-columns: minmax(0, 1fr); }
  .card-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-top: 48px; }
  .intro-block { padding-top: 48px; }
  .page-head { padding-top: 48px; }
  .post-head { padding-top: 48px; }
  .post-cover { margin-bottom: 40px; }
  .cookie-note { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .ad-inter { padding: 16px; }
  .ad-inter-card { padding: 18px; }
  .ad-inter-card .ad-space { min-height: 180px; }
  body.has-anchor { padding-bottom: 96px; }
  body.has-anchor .cookie-note { bottom: 108px; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, .progress-bar, .cookie-note,
  .ad-banner1, .ad-banner2, .ad-banner3, .ad-anchor, .ad-inter,
  .related, .post-nav, .hero-controls { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .prose p { color: #000; }
  .post-cover img { height: 220px; }
  a { color: #000; }
}
