/* =========================================================
   Andrea Yip — shared stylesheet
   One file controls the look of every page on the site.
   ========================================================= */

:root {
  --ink: #33322f;
  --soft: #6f6e6a;
  --muted: #a5a49f;
  --line: #eae9e4;
  --bg: #ffffff;
  --maxw: 1160px;
  --readw: 600px;
  --gap: 18px;
  --accent: #cc5f3d;
}
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 400;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 30px; }

/* ---- top bar ---- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px 0 6px;
}
.topbar .tools {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--soft);
  font-size: 13px;
}
.topbar .navlink { color: var(--soft); transition: color .2s; }
.topbar .navlink:hover { color: #000; }
.topbar .view { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.topbar .view:hover { color: #000; }
.topbar .view svg { width: 15px; height: 15px; }

/* ---- logo ---- */
.logo {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: #000;
}

/* ---- kicker above a post title ---- */
.post-kicker { font-size: 15px; color: var(--soft); margin: 0 0 8px; letter-spacing: 0.01em; }

/* ---- intro ---- */
.head { padding: 2px 0 46px; }
.intro {
  max-width: 360px;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
}

/* ---- grid ---- */
.feed { padding-bottom: 40px; }
.feed.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.card { position: relative; display: block; }
.thumb { position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: #f3f2ee; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.9);
  opacity: 0;
  transition: opacity .45s ease;
  padding: 26px 28px;
}
.card:hover .overlay { opacity: 1; }
.overlay h2 {
  font-weight: 700;
  font-size: 19px;
  line-height: 1.35;
  margin: 0 0 8px;
  color: #1c1b19;
}
.overlay .meta { font-size: 12px; color: var(--muted); letter-spacing: 0.02em; }
.overlay .cat { color: var(--soft); }

/* ---- list view ---- */
.feed.list { display: block; max-width: 780px; }
.feed.list .card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.feed.list .thumb { aspect-ratio: 1 / 1; }
.feed.list .overlay { display: none; }
.feed.list .card .listmeta h2 { font-weight: 700; font-size: 22px; margin: 0 0 8px; color: #1c1b19; }
.feed.list .card .listmeta .meta { font-size: 12px; color: var(--muted); }
.card .listmeta { display: none; }
.feed.list .card .listmeta { display: block; }

/* ---- pager ---- */
.pager { text-align: center; padding: 40px 0 70px; font-size: 13px; color: var(--soft); }

/* =========================================================
   Single post page
   ========================================================= */
/* bold title, leads the page before the image */
.post-lead { padding: 64px 0 36px; }
.post-title {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.08;
  margin: 0 0 16px;
  color: #000;
}
.post-meta {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.post-meta .cat { color: var(--soft); }
.post-standfirst {
  font-size: 20px;
  line-height: 1.5;
  color: #57564f;
  max-width: 640px;
  margin: 22px 0 0;
}

.post-hero { margin: 0 0 48px; }
.post-hero img {
  width: 100%;
  max-height: 640px;
  object-fit: cover;
  display: block;
}

/* contained image (e.g. illustrations shown whole, not cropped) */
.post-figure { margin: 0 auto 44px; text-align: center; }
.post-figure img { width: 100%; max-width: 820px; height: auto; display: inline-block; }
/* keep post-figure images centered even inside .article (overrides .article figure / figure img) */
.article .post-figure { margin-left: auto; margin-right: auto; }
.article .post-figure img { display: block; margin-left: auto; margin-right: auto; }
.hero-caption {
  text-align: center;
  font-style: italic;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 18px auto 0;
  max-width: 560px;
}

.post-tags { margin-top: 3em; font-size: 13px; color: var(--muted); }
.post-note { margin-top: 3em; font-style: italic; font-size: 13px; color: var(--muted); }

/* ---- example label + source citation ---- */
.article .example-tag { font-style: italic; color: var(--soft); font-size: 14px; margin: 1.6em 0 1em; }
.article .principle-quote { font-style: italic; color: var(--soft); margin: 0 0 0.4em; }
.article .citation { font-size: 13px; color: var(--muted); line-height: 1.55; margin: -0.4em 0 1.8em; }
.article .citation a, .fig-cite a { border-bottom: 1px solid #cfcec9; color: var(--soft); }
.article .citation a:hover, .fig-cite a:hover { border-color: #000; color: #000; }
.fig-cite { text-align: center; font-size: 13px; color: var(--muted); line-height: 1.55; margin-top: 12px; font-style: italic; }

/* ---- data tables ---- */
.table-wrap { max-width: 760px; margin: 1.8em auto 0.6em; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table caption { caption-side: top; text-align: left; font-weight: 700; font-size: 15px; color: #1a1a18; margin-bottom: 14px; }
.data-table th {
  text-align: left; font-weight: 700; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--soft); border-bottom: 1.5px solid #1a1a18; padding: 0 16px 9px 0; vertical-align: bottom;
}
.data-table th:last-child, .data-table td:last-child { padding-right: 0; }
.data-table td { padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); color: #3f3f3a; white-space: nowrap; }
.data-table td:first-child { white-space: normal; }
.data-table tbody tr:hover { background: #faf9f6; }
.table-note { max-width: 760px; margin: 10px auto 2em; font-size: 12px; color: var(--muted); line-height: 1.55; }

/* ---- content note (e.g. NSFW) ---- */
.center-note { text-align: center; font-style: italic; color: var(--muted); font-size: 13px; margin: 0.4em 0 2em; }

/* ---- example pair (image + caption + text) ---- */
.examples { max-width: 720px; margin: 1.8em auto 0.5em; display: grid; grid-template-columns: 1fr 1fr; gap: 46px; }
.examples .ex { text-align: center; }
.examples .ex img { width: 150px; height: 150px; object-fit: cover; border-radius: 8px; display: block; margin: 0 auto; }
.examples .ex .src { display: block; font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.examples .ex .src a { border-bottom: 1px solid #cfcec9; color: var(--muted); }
.examples .ex h3 { font-size: 16px; margin: 16px 0 10px; }
.examples .ex p { font-size: 14px; line-height: 1.65; color: #5c5b56; text-align: left; margin: 0 0 10px; }
.examples .ex .more { font-size: 13px; text-align: left; margin: 0; }
.examples .ex .more a { border-bottom: 1px solid #cfcec9; color: var(--soft); }
.examples .ex .more a:hover, .examples .ex .src a:hover { color: #000; border-color: #000; }
@media (max-width: 560px) { .examples { grid-template-columns: 1fr; gap: 34px; max-width: 380px; } }

/* ---- two-up manual pages ---- */
.manual-pages { max-width: 820px; margin: 1.6em auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.manual-pages img { width: 100%; height: auto; display: block; }
@media (max-width: 560px) { .manual-pages { grid-template-columns: 1fr; gap: 18px; max-width: 420px; } }

/* ---- icon showcase grid ---- */
.icon-grid { max-width: 760px; margin: 2em auto 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.icon-grid .cell { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; padding: 16px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.icon-grid .cell:hover { border-color: #d3ceC0; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.05); }
.icon-grid img { max-width: 100%; max-height: 100%; display: block; }

/* ---- kit tile grid (self-labelled illustrations) ---- */
.kit-grid { max-width: 900px; margin: 2.2em auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.kit-grid img { width: 100%; height: auto; display: block; border-radius: 10px; transition: transform .25s ease, box-shadow .25s ease; }
.kit-grid img:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,0.10); }
@media (max-width: 700px) { .kit-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 420px) { .kit-grid { grid-template-columns: 1fr; max-width: 380px; } }

/* ---- tetris concept grid ---- */
.tetris-grid { max-width: 820px; margin: 1.8em auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 26px; }
.tetris-grid figure { margin: 0; text-align: center; }
.tetris-grid img { width: 100%; height: auto; display: block; border: 1px solid var(--line); }
.tetris-grid figcaption { margin-top: 12px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
@media (max-width: 560px) { .tetris-grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; } }

/* ---- definitions list ---- */
.definitions { list-style: none; margin: 1.4em 0 0; padding: 0; }
.definitions li { margin-bottom: 1.8em; font-size: 15px; line-height: 1.7; color: #4a4a45; }
.definitions .ref { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.definitions .ref a { border-bottom: 1px solid #cfcec9; color: var(--soft); }
.definitions .ref a:hover { border-color: #000; color: #000; }

/* ---- centered affirmations / stanza ---- */
.affirmations { text-align: center; margin: 2.6em auto; }
.affirmations p { font-size: 21px; line-height: 1.4; color: #1a1a18; margin: 0.7em 0; }

/* ---- photo grid ---- */
.photo-grid { max-width: 900px; margin: 1.6em auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.photo-grid img { width: 100%; height: auto; display: block; }
@media (max-width: 560px) { .photo-grid { grid-template-columns: 1fr; gap: 12px; max-width: 380px; } }

/* ---- photo row aligned to a common height (mixed portrait + landscape) ---- */
.photo-align { max-width: 900px; margin: 1.6em auto 0; display: flex; justify-content: center; align-items: center; gap: 16px; }
.photo-align img { height: 232px; width: auto; max-width: 100%; object-fit: contain; display: block; }
@media (max-width: 560px) { .photo-align { flex-direction: column; gap: 14px; } .photo-align img { height: auto; width: 100%; max-width: 380px; } }

/* ---- long-form / GTM post ---- */
.article .section-title {
  font-size: 24px; font-weight: 700; letter-spacing: -0.4px; line-height: 1.25;
  margin: 2.8em 0 1.1em; color: #1a1a18;
}
.section-icon { margin: 3.4em 0 0; }
.section-icon img { width: 116px; height: auto; display: block; }
.section-icon + .section-title { margin-top: 0.5em; }

.eg {
  margin: 1.5em 0; padding: 14px 20px;
  border-left: 2px solid var(--accent);
  background: #fbf6f3; color: #6a5a52;
  font-size: 14px; line-height: 1.75;
}
.eg p { margin: 0 0 1em; }
.eg p:last-child { margin: 0; }
.eg a { border-bottom: 1px solid #dcb8ac; }
.eg a:hover { border-color: var(--accent); color: var(--accent); }

.toc {
  max-width: var(--readw); margin: 2.6em auto; padding: 22px 26px;
  border: 1px solid var(--line);
}
.toc h2 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; font-weight: 700; }
.toc ol { margin: 0; padding-left: 1.3em; font-size: 14px; color: var(--soft); }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--soft); }
.toc a:hover { color: #000; }

.article figure.wide {
  width: min(900px, 92vw);
  margin: 2.4em 0;
  position: relative; left: 50%; transform: translateX(-50%);
}
.article figure.wide img { width: 100%; height: auto; display: block; }
.article figure.model-figure { max-width: 430px; margin: 2.4em auto; }
.article figure.model-figure img { width: 100%; height: auto; display: block; }
.article figure.wide figcaption {
  text-align: center; font-size: 13px; color: var(--muted); margin-top: 12px;
}
.pdf-link { text-align: center; font-size: 13px; margin: -1.4em 0 0; }
.pdf-link a { border-bottom: 1px solid #cfcec9; color: var(--soft); }
.pdf-link a:hover { border-color: #000; color: #000; }

/* ---- Primer vs ChatGPT comparison ---- */
.vs { margin: 1.6em 0 2em; }
.vs h3 { margin: 0 0 0.9em; }
.vs .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.vs .col { border-left: 2px solid var(--line); padding-left: 16px; font-size: 14px; line-height: 1.7; color: #5c5b56; }
.vs .col .who { display: block; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 11px; margin-bottom: 6px; }
.vs .col.primer { border-left-color: var(--accent); }
.vs .col.primer .who { color: var(--accent); }
.vs .col.gpt .who { color: #9a9a90; }
@media (max-width: 560px) { .vs .cols { grid-template-columns: 1fr; gap: 16px; } }

/* ---- storybook section (Lin's story) ---- */
.story { background: #17140f; color: #d9d1c3; padding: 78px 0 82px; margin-top: 46px; }
.story .wrap { max-width: 980px; }
.story .ornament { text-align: center; letter-spacing: 0.7em; color: #6a6152; margin: 0 0 34px; font-size: 15px; }
.story-title { font-size: clamp(28px, 4.4vw, 42px); font-weight: 700; letter-spacing: -0.6px; color: #f2ece0; text-align: center; margin: 0 0 16px; }
.story-context { max-width: 640px; margin: 0 auto 54px; text-align: center; font-style: italic; color: #b3aa99; font-size: 15px; line-height: 1.75; }
.story-row { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin: 0 0 46px; }
.story-img { margin: 0; }
.story-img img { width: 100%; height: auto; display: block; border-radius: 8px; }
.story-img.circle img { border-radius: 50%; }
.story-text p, .story-flow p { font-size: 15px; line-height: 1.9; color: #d9d1c3; margin: 0 0 1.15em; }
.story-text p:last-child, .story-flow p:last-child { margin-bottom: 0; }
.story-flow { max-width: 660px; margin: 0 auto 46px; }
.story .dropcap::first-letter { font-size: 3.3em; line-height: 0.82; float: left; padding: 8px 12px 0 0; color: #e0b483; font-weight: 700; }
.story-note { max-width: 660px; margin: 34px auto 0; font-size: 12px; color: #857d6d; font-style: italic; line-height: 1.65; }
@media (max-width: 640px) {
  .story-row { grid-template-columns: 1fr; gap: 22px; }
  .story-row.text-first .story-img { order: -1; }
}

/* ---- care options: spectrum + card grid ---- */
.care-list { max-width: 900px; margin: 0 auto; }
.spectrum-bar {
  display: flex; align-items: center; gap: 16px;
  margin: 1.4em 0 1.9em;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft);
  white-space: nowrap;
}
.spectrum-bar .track {
  flex: 1; height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, #f2eee4 0%, #e7dcc4 55%, #d7bf94 100%);
}
.care-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  margin: 0 0 0.5em;
}
.care-card {
  border: 1px solid var(--line); border-radius: 10px; padding: 20px 20px 22px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.care-card:hover { border-color: #d7d2c4; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.04); }
.care-card .ico { width: 30px; height: 30px; color: #2b2a27; margin-bottom: 13px; }
.care-card .ico svg { width: 100%; height: 100%; display: block; }
.care-card .tier { font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 7px; }
.care-card h4 { font-size: 15px; font-weight: 700; margin: 0 0 8px; color: #1a1a18; }
.care-card p { font-size: 13px; line-height: 1.65; color: #6a6a64; margin: 0; }
@media (max-width: 560px) { .care-grid { grid-template-columns: 1fr; } }

/* readable body column */
.article {
  max-width: var(--readw);
  margin: 0 auto;
  padding-bottom: 30px;
  font-size: 15px;
  line-height: 1.85;
  color: #5c5b56;
}
.article p { margin: 0 0 1.6em; }
.article h2 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  margin: 2.8em 0 1.1em;
  color: #2b2a27;
}
.article h3 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  margin: 2.4em 0 1em;
  color: #2b2a27;
}
.article a { border-bottom: 1px solid #cfcec9; }
.article a:hover { border-color: #000; color: #000; }
.article blockquote {
  margin: 2.2em 0;
  padding: 2px 0 2px 22px;
  border-left: 2px solid #d8d7d1;
  font-size: 16px;
  line-height: 1.6;
  color: #2b2a27;
}
.article figure { margin: 2.4em 0; }
.article figure img { width: 100%; display: block; }
.article figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}
.article ul, .article ol { margin: 0 0 1.5em; padding-left: 1.3em; }
.article li { margin-bottom: 0.5em; }
.article hr { border: none; border-top: 1px solid var(--line); margin: 3em 0; }
.article .ornament-light { text-align: center; letter-spacing: 0.6em; color: var(--muted); margin: 2.6em 0; font-size: 13px; }

/* ---- principles index (spec-sheet rows) ---- */
.principles-index { max-width: 720px; margin: 2.4em auto 2.8em; border-top: 1.5px solid #1a1a18; }
.principles-index .row {
  display: grid; grid-template-columns: 46px 168px 1fr; gap: 24px; align-items: baseline;
  padding: 20px 2px; border-bottom: 1px solid var(--line);
}
.principles-index .num { font-size: 12px; letter-spacing: 0.16em; color: var(--accent); }
.principles-index .name { font-size: 19px; font-weight: 700; letter-spacing: -0.3px; color: #1a1a18; }
.principles-index .desc { font-size: 14px; line-height: 1.6; color: #6a6a64; }
@media (max-width: 560px) {
  .principles-index .row { grid-template-columns: 40px 1fr; row-gap: 5px; }
  .principles-index .desc { grid-column: 2 / 3; }
}

/* ---- two-column legend / key (term | description) ---- */
.legend { max-width: 720px; margin: 1.8em auto 2.2em; border-top: 1px solid #1a1a18; }
.legend .row { display: grid; grid-template-columns: 148px 1fr; gap: 26px; padding: 15px 2px; border-bottom: 1px solid var(--line); align-items: baseline; }
.legend .term { font-size: 14px; font-weight: 700; color: #1a1a18; }
.legend .desc { font-size: 14px; line-height: 1.6; color: #6a6a64; }
@media (max-width: 560px) { .legend .row { grid-template-columns: 1fr; row-gap: 3px; } }

/* ---- glossary (defined terms) ---- */
.article dl.glossary { margin: 1.6em 0 0; }
.article dl.glossary dt { font-weight: 700; color: #1a1a18; font-size: 15px; margin-top: 1.6em; padding-top: 1.4em; border-top: 1px solid var(--line); }
.article dl.glossary dt:first-of-type { margin-top: 0.6em; }
.article dl.glossary dd { margin: 6px 0 0; color: #5c5b56; font-size: 14px; line-height: 1.65; }

/* ---- sensory experience (icon + chips) ---- */
.article h4 { font-size: 14px; font-weight: 700; color: #2b2a27; margin: 1.9em 0 0.5em; }
.senses { max-width: 760px; margin: 2.2em auto 0.6em; }
.senses .sense-row {
  display: grid; grid-template-columns: 190px 1fr; gap: 30px;
  padding: 26px 0; border-top: 1px solid var(--line); align-items: start;
}
.senses .sense-row:first-child { border-top: none; padding-top: 2px; }
.sense-q { display: flex; gap: 11px; align-items: flex-start; }
.sense-q .ico { width: 21px; height: 21px; color: var(--accent); flex: none; margin-top: 1px; }
.sense-q .ico svg { width: 100%; height: 100%; display: block; }
.sense-q .label { font-size: 14px; font-weight: 700; color: #1a1a18; line-height: 1.45; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span {
  background: #f4f2ec; color: #524f49; font-size: 12.5px; line-height: 1.45;
  padding: 6px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.chips span:hover { background: #ece8dd; color: #2b2a27; }
.sense-prose { font-size: 14px; line-height: 1.8; color: #5c5b56; }
.sense-prose p { margin: 0 0 0.9em; }
.sense-prose p:last-child { margin: 0; }
.sense-prose .chips { margin: 0 0 0.9em; }
.sense-prose figure { margin: 1.3em 0 0; }
.sense-prose figure img { width: 100%; max-width: 430px; height: auto; display: block; }
.sense-prose figcaption { margin-top: 10px; font-size: 12px; line-height: 1.5; color: var(--muted); max-width: 430px; font-style: italic; }
.sense-prose figcaption a { border-bottom: 1px solid #cfcec9; color: var(--soft); }
.sense-prose figcaption a:hover { border-color: #000; color: #000; }
@media (max-width: 620px) {
  .senses .sense-row { grid-template-columns: 1fr; gap: 14px; }
}

/* ---- inline citations + references ---- */
.cite { font-size: 0.72em; vertical-align: super; line-height: 0; color: var(--accent); border-bottom: none !important; padding: 0 1px; font-weight: 700; }
.cite:hover { color: #000; }
/* non-linked citation: source revealed in a styled hover/tap tooltip */
.ref-tip { position: relative; display: inline; }
.ref-tip .mark { font-size: 0.72em; vertical-align: super; line-height: 0; color: var(--accent); border-bottom: 1px dotted var(--accent); padding: 0 1px; font-weight: 700; cursor: default; }
.ref-tip:hover .mark, .ref-tip:focus-within .mark { color: #000; border-color: #000; }
.ref-tip .pop {
  position: absolute; left: 50%; bottom: 100%;
  transform: translateX(-50%) translateY(-4px);
  background: #2b2a27; color: #fff; font-size: 12px; line-height: 1.4; font-weight: 400;
  letter-spacing: 0.01em; padding: 7px 11px; border-radius: 6px; white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease;
  z-index: 30; pointer-events: none;
}
.ref-tip .pop::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: #2b2a27;
}
.ref-tip:hover .pop, .ref-tip:focus-within .pop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(-8px); }
@media (max-width: 560px) { .ref-tip .pop { white-space: normal; width: 200px; } }
.references { max-width: var(--readw); margin: 1.2em auto 0; padding: 0; list-style: none; counter-reset: ref; }
.references li { position: relative; padding: 11px 0 11px 42px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--soft); line-height: 1.6; }
.references li::before {
  counter-increment: ref; content: "[" counter(ref) "]";
  position: absolute; left: 0; top: 11px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.references a { border-bottom: 1px solid #cfcec9; color: var(--soft); word-break: break-word; }
.references a:hover { color: #000; border-color: #000; }

/* ---- interactive journey embed (full-bleed, horizontally scrollable) ---- */
.journey-embed {
  position: relative; left: 50%; transform: translateX(-50%);
  width: 96vw; max-width: 1320px; margin: 2.8em 0 2.2em;
}
.journey-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 0 0 12px; flex-wrap: wrap;
}
.journey-bar .cap { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.journey-bar .hint { font-size: 12.5px; color: var(--soft); font-style: italic; }
.journey-bar .actions { display: flex; gap: 10px; }
.journey-bar .btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; letter-spacing: 0.03em; color: #2b2a27;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px;
  background: #fff; cursor: pointer; transition: border-color .2s, background .2s, color .2s;
}
.journey-bar .btn:hover { border-color: #b9b4a6; background: #faf9f6; }
.journey-bar .btn svg { width: 13px; height: 13px; }
.journey-frame {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: #f7f6f2; box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
/* fixed to the journey's measured content height (1500x367 map + padding = 415px) + scrollbar room */
.journey-frame iframe { width: 100%; height: 430px; border: 0; display: block; }
.journey-frame:fullscreen { border-radius: 0; }
.journey-frame:fullscreen iframe { height: 100vh; }

/* prev / next navigation */
.post-nav {
  max-width: var(--readw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 40px 0 10px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.post-nav a { color: var(--soft); }
.post-nav a:hover { color: #000; }
.post-nav .label { display: block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.post-nav .next { text-align: right; }
.back-link {
  display: block;
  text-align: center;
  padding: 30px 0 60px;
  font-size: 13px;
  color: var(--soft);
}
.back-link:hover { color: #000; }

/* ---- about page ---- */
.about { display: grid; grid-template-columns: 1fr 340px; gap: 60px; align-items: center; max-width: 920px; margin: 64px 0 52px; }
.about h1 { font-size: clamp(38px, 5.5vw, 60px); font-weight: 700; letter-spacing: -1.2px; line-height: 1.05; margin: 0 0 26px; color: #000; }
.about .about-text p { font-size: 18px; line-height: 1.7; color: #33322f; margin: 0 0 1.4em; max-width: 30em; }
.about .connect { font-size: 15px; line-height: 1.95; color: var(--soft); margin-top: 2em; }
.about .connect a { border-bottom: 1px solid #111; color: #111; padding-bottom: 1px; }
.about .connect a:hover { color: var(--accent); border-color: var(--accent); }
.about .about-photo img { width: 100%; height: auto; display: block; border-radius: 12px; }
.linkedin-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; color: #33322f; transition: background .2s, color .2s, border-color .2s; }
.linkedin-btn:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.linkedin-btn svg { width: 20px; height: 20px; }
@media (max-width: 720px) {
  .about { grid-template-columns: 1fr; gap: 30px; max-width: 460px; margin: 40px auto 48px; }
  .about .about-photo { order: -1; }
  .about .about-text p { font-size: 17px; }
}

/* ---- footer ---- */
footer { background: #fff; padding: 40px 0 60px; }
footer .copy {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 30px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---- scroll reveal (fade + rise) ---- */
.reveal { opacity: 0; transform: translateY(18px) scale(0.985); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

/* ---- respect reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- responsive ---- */
@media (max-width: 860px) {
  .feed.grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .topbar { flex-wrap: wrap; gap: 12px; }
  .feed.grid { grid-template-columns: 1fr; }
  .feed.list .card { grid-template-columns: 1fr; }
  .overlay { opacity: 1; background: rgba(255,255,255,0.86); }
  .article { font-size: 15px; }
}
