/* The blog's long-read layer on top of /css/stc.css (tokens, header, play control, lines, close, footer come from there).
   Built by Scripts/build-blog.py. No colours of its own: ink, night, paper, white, mute, rule and the city accent. */

body.blog { background: var(--white); }
html:not(.js) .blog-post .bar, html:not(.js) .blog-index .bar { position: absolute; }
.bar-blog a { white-space: nowrap; }

/* ---------- The opening photograph and the title ---------- */
.post-hero { position: relative; height: 82vh; min-height: 560px; max-height: 1000px; color: #fff; background: var(--night); overflow: hidden; }
@supports (height: 82svh) { .post-hero { height: 82svh; } }
.post-photo { position: absolute; inset: 0; }
.post-photo picture, .post-photo img { width: 100%; height: 100%; }
.post-photo img { object-fit: cover; object-position: var(--pos, 50% 50%); }
.post-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(11,12,13,.6) 0%, rgba(11,12,13,0) 20%),
    linear-gradient(to top, rgba(11,12,13,.97) 0%, rgba(11,12,13,.86) 22%, rgba(11,12,13,.5) 46%, rgba(11,12,13,0) 70%);
}
.post-top { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: clamp(36px, 6vh, 72px); max-width: 1180px; }
.crumb { font-size: 15px; font-weight: 600; color: rgba(255,255,255,.86); display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; text-underline-offset: 4px; }
.crumb span { opacity: .6; }
.post-title { font-size: clamp(38px, 5.5vw, 88px); font-weight: 800; letter-spacing: -0.042em; word-spacing: .09em; line-height: .98; max-width: 17ch; text-wrap: balance; }
.post-meta, .post-dek { font-size: 17px; color: rgba(255,255,255,.88); margin-top: 22px; max-width: 60ch; }
.post-dek { font-size: var(--t-lead); }

/* ---------- The reading column ---------- */
.post-body {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 720px) minmax(0, 1fr); column-gap: clamp(32px, 4vw, 64px);
  grid-template-rows: auto 1fr; padding: clamp(56px, 7vw, 96px) var(--pad) clamp(72px, 9vw, 128px);
}
.post-lead { grid-column: 2; grid-row: 1; }
.toc { grid-column: 1; grid-row: 1 / span 2; justify-self: end; width: 100%; max-width: 250px; }
.toc-in { position: sticky; top: calc(var(--bar-h) + 32px); }
.prose { grid-column: 2; grid-row: 2; min-width: 0; }
.toc-h { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.toc ol { list-style: none; border-left: 1px solid var(--rule); }
.toc li a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: 15px; line-height: 1.35; color: var(--mute); text-decoration: none; }
.toc li a:hover { color: var(--ink); }
.toc li a[aria-current] { color: var(--ink); border-left-color: var(--accent); }

.post-lead p, .prose > p, .prose li, .q p { font-size: 19px; line-height: 1.68; }
.post-lead p { font-size: clamp(21px, 1.7vw, 24px); line-height: 1.55; font-weight: 500; letter-spacing: -0.01em; }
.prose > p, .prose > ul, .prose > ol { margin-top: 24px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 10px; }
.prose li::marker { color: var(--mute); }
.prose a, .post-lead a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }
.prose h2 { font-size: clamp(28px, 2.7vw, 40px); font-weight: 800; letter-spacing: -0.035em; word-spacing: .07em; line-height: 1.08; margin-top: clamp(64px, 7vw, 96px); scroll-margin-top: calc(var(--bar-h) + 24px); text-wrap: balance; }
.prose h2 + p { margin-top: 20px; }
.prose h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-top: 40px; }
.prose h3 + p { margin-top: 10px; }
.ph { font-weight: 700; }
.ph:lang(ko), .ph:lang(ja) { font-weight: 600; }
.prose i:lang(es), .prose i:lang(ko), .prose i:lang(ja), .line-note i { font-style: italic; }
.prose i:lang(ko), .prose i:lang(ja), .line-note i:lang(ko), .line-note i:lang(ja) { font-style: normal; font-weight: 600; }
.prose i, .line-note i, .q i { padding-right: .08em; }
.prose i[lang$="-Latn"], .q i[lang$="-Latn"], .post-lead i[lang$="-Latn"], .line-note i[lang$="-Latn"] { font-family: var(--latin); font-style: italic; font-weight: inherit; }
.ph:lang(ko), i:lang(ko), .s-say:lang(ko) { word-break: keep-all; }
.talk .say:has(ruby) { margin-top: 4px; }

/* ---------- The lines: set large, in their own script, on the cool surface ---------- */
.talk { margin: 36px calc(-1 * clamp(20px, 3vw, 44px)) 0; padding: 8px clamp(20px, 3vw, 44px); background: var(--paper); border-radius: 6px; }
.talk .line { padding: 30px 0 32px; }
.talk .line + .line { margin-top: 0; border-top: 1px solid var(--rule); }
.talk .say { font-size: clamp(32px, 3.5vw, 50px); }
.talk .say:lang(ko), .talk .say:lang(ja) { font-size: clamp(28px, 3vw, 42px); }
.talk .line--s .say { font-size: clamp(25px, 2.3vw, 34px); }
.talk .line--s .say:lang(ko), .talk .line--s .say:lang(ja) { font-size: clamp(23px, 2.1vw, 31px); }
.talk .mean { font-size: 19px; }
.talk .rom { font-size: 17px; margin-top: 10px; }
.say ruby { ruby-position: over; }
.say rt { font-size: .36em; font-weight: 500; letter-spacing: 0; color: var(--mute); }
.blog .line .say span { clip-path: none; transition: none; }
.plays { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; margin-top: 16px; }
.plays .play { margin: 0; }
.line-note { font-size: 16px; line-height: 1.55; color: var(--mute); margin-top: 16px; max-width: 58ch; }

/* The slow recording: a small round button and a word. */
.play--slow { gap: 9px; min-height: 40px; font-size: 15px; font-weight: 700; color: var(--ink); }
.play--slow .play-btn { width: 34px; height: 34px; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px currentColor; }
.play--slow .play-btn svg { width: 15px; height: 15px; }
.play--slow[aria-pressed="true"] .play-btn { background: var(--accent); color: #fff; box-shadow: none; }
/* The listening list: a round button and nothing else. */
.play--dot { margin: 0; min-height: 0; }
.play--dot .play-btn { width: 38px; height: 38px; }
.play--dot .play-btn svg { width: 17px; height: 17px; }

/* ---------- Photographs inside a post ---------- */
.post-fig { margin: 48px calc(-1 * clamp(0px, 6vw, 120px)) 0; }
.post-fig img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: var(--pos, 50% 50%); border-radius: 4px; background: var(--paper); }
.post-fig figcaption, .post-credit { font-size: 14px; line-height: 1.5; color: var(--mute); margin-top: 12px; }
.post-fig figcaption a, .post-credit a { color: inherit; }
.post-credit { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--rule); }

/* ---------- Every line on this page ---------- */
.sheet ol { list-style: none; padding: 0; margin-top: 24px; border-top: 1px solid var(--rule); }
.sheet li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.sheet li + li { margin-top: 0; }
.sheet li p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; font-size: 17px; line-height: 1.4; }
.s-say { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }
.s-say:lang(ko), .s-say:lang(ja) { font-weight: 600; letter-spacing: 0; }
.s-rom { color: var(--mute); }
.s-mean { color: var(--ink); flex-basis: 100%; }
.sheet > p { font-size: 17px; color: var(--mute); margin-top: 14px; line-height: 1.6; }

/* ---------- Questions ---------- */
.faq { margin-top: clamp(64px, 7vw, 96px); }
.faq h2 { margin-top: 0; }
.q { padding: 26px 0 28px; border-bottom: 1px solid var(--rule); }
.q:first-of-type { margin-top: 18px; border-top: 1px solid var(--rule); }
.q h3 { margin: 0; font-size: 21px; line-height: 1.3; }
.q p { margin-top: 10px; font-size: 18px; }

/* ---------- More guides: a list, photo beside words ---------- */
.next { background: var(--paper); padding: clamp(64px, 8vw, 112px) var(--pad); }
.next > h2, .start > h2, .group h2 { font-size: clamp(28px, 2.7vw, 40px); font-weight: 800; letter-spacing: -0.035em; word-spacing: .07em; line-height: 1.08; }
.rel { list-style: none; max-width: 1060px; margin-top: 32px; border-top: 1px solid var(--rule); }
.rel a { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.rel img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: var(--pos, 50% 50%); border-radius: 4px; background: var(--rule); }
.rel h3 { font-size: clamp(20px, 1.7vw, 25px); font-weight: 750; letter-spacing: -0.02em; line-height: 1.2; }
.rel p { font-size: 16px; color: var(--mute); margin-top: 6px; max-width: 62ch; }
.rel a:hover h3 { color: var(--accent); }
.next-all { display: flex; flex-wrap: wrap; gap: 0 32px; }

/* ---------- Language index ---------- */
.index-hero { height: 70vh; min-height: 520px; }
@supports (height: 70svh) { .index-hero { height: 70svh; } }
.start { padding: clamp(64px, 8vw, 112px) var(--pad) 0; }
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); margin-top: 32px; align-items: start; }
.feature-main a { display: block; text-decoration: none; }
.feature-main img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: var(--pos, 50% 50%); border-radius: 4px; }
.feature-main h3 { font-size: clamp(26px, 2.6vw, 38px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; margin-top: 22px; }
.feature-main p { font-size: 18px; color: var(--mute); margin-top: 10px; max-width: 56ch; }
.feature-side { list-style: none; border-top: 1px solid var(--rule); }
.feature-side a { display: block; padding: 22px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.feature-side h3 { font-size: 22px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.2; }
.feature-side p { font-size: 16px; color: var(--mute); margin-top: 6px; }
.feature a:hover h3, .group a:hover h3 { color: var(--accent); }
.groups { padding: clamp(40px, 5vw, 72px) var(--pad) clamp(80px, 10vw, 140px); display: grid; gap: clamp(56px, 6vw, 88px); }
.group { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 9fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.group h2 { position: sticky; top: calc(var(--bar-h) + 24px); }
.group ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; border-top: 1px solid var(--rule); }
.group a { display: block; height: 100%; padding: 20px 0 22px; border-bottom: 1px solid var(--rule); text-decoration: none; }
.group h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.group p { font-size: 15px; color: var(--mute); margin-top: 6px; line-height: 1.5; }
.close-say { align-self: end; }
.close-say p { font-size: clamp(30px, 3.6vw, 56px); font-weight: 800; letter-spacing: -0.04em; word-spacing: .08em; line-height: 1.04; max-width: 15ch; }

/* ---------- The hub ---------- */
.hub-head { padding: calc(var(--bar-h) + clamp(48px, 7vw, 104px)) var(--pad) clamp(48px, 6vw, 80px); background: var(--white); }
.hub-head h1 { font-size: var(--t-hero); font-weight: 800; letter-spacing: -0.042em; word-spacing: .09em; line-height: .95; max-width: 12ch; }
.hub-head p { font-size: var(--t-lead); color: var(--mute); max-width: 56ch; margin-top: 28px; line-height: 1.55; }
@media (min-width: 1100px) {
  .hub-head { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 56px; align-items: end; padding-top: calc(var(--bar-h) + 44px); padding-bottom: 44px; }
  .hub-head h1 { font-size: clamp(48px, 5.4vw, 88px); max-width: 14ch; }
  .hub-head p { margin-top: 0; font-size: 19px; }
}
.hub-city h2 { font-size: var(--t-h2); font-weight: 800; letter-spacing: -0.04em; word-spacing: .08em; line-height: 1; }
.hub-city h2 a { text-decoration: none; }
.hub-blurb { font-size: 19px; color: var(--mute); max-width: 44ch; margin-top: 20px; line-height: 1.55; }
.hub-list { list-style: none; margin: 28px 0 32px; border-top: 1px solid var(--rule); max-width: 560px; }
.hub-list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 18px; font-weight: 600; text-decoration: none; }
.hub-list a:hover { color: var(--accent); }

.tri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; background: var(--night); }
.tri-city { position: relative; display: block; height: min(60vh, 620px); min-height: 440px; overflow: hidden; color: #fff; text-decoration: none; }
.tri-city picture, .tri-city img { width: 100%; height: 100%; }
.tri-city img { object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform .6s cubic-bezier(.2,.7,.15,1); }
.tri-city::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,12,13,.92) 0%, rgba(11,12,13,.55) 26%, rgba(11,12,13,0) 52%); }
.tri-text { position: absolute; z-index: 1; left: clamp(20px, 2.6vw, 40px); right: 20px; bottom: clamp(24px, 3vw, 44px); }
.tri-name { display: block; font-size: clamp(30px, 3.4vw, 54px); font-weight: 800; letter-spacing: -0.04em; word-spacing: .08em; line-height: 1; }
.tri-lang { display: block; font-size: 17px; margin-top: 10px; color: rgba(255,255,255,.88); padding-top: 12px; border-top: 3px solid var(--accent); max-width: 260px; }
@media (prefers-reduced-motion: no-preference) { .tri-city:hover img { transform: scale(1.03); } }
.tri-city:focus-visible { outline-offset: -6px; outline-color: #fff; }

/* ---------- Narrower screens ---------- */
@media (max-width: 1099px) {
  .post-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; max-width: 760px; margin: 0 auto; }
  .post-lead, .toc, .prose { grid-column: 1; grid-row: auto; }
  .toc { justify-self: stretch; max-width: none; margin-top: 36px; }
  .toc-in { position: static; padding: 22px 24px; background: var(--paper); border-radius: 6px; }
  .toc ol { border-left: 0; columns: 2; column-gap: 28px; }
  .toc li { break-inside: avoid; }
  .toc li a { padding: 6px 0; border-left: 0; margin: 0; }
  .post-fig { margin-left: 0; margin-right: 0; }
  .group { grid-template-columns: 1fr; gap: 16px; }
  .group h2 { position: static; }
}
@media (max-width: 899px) {
  .feature { grid-template-columns: 1fr; }
}
@media (max-width: 699px) {
  .post-hero { min-height: 520px; height: 78svh; }
  .post-title { font-size: clamp(34px, 9.6vw, 52px); }
  .post-meta { font-size: 15px; margin-top: 16px; }
  .post-dek { font-size: 17px; }
  .crumb { font-size: 14px; margin-bottom: 16px; }
  .post-body { padding-top: 40px; }
  .post-lead p { font-size: 20px; }
  .post-lead p, .prose > p, .prose li, .q p { font-size: 18px; line-height: 1.64; }
  .toc ol { columns: 1; }
  .talk { margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); padding: 4px var(--pad); border-radius: 0; }
  .talk .line { padding: 24px 0 26px; }
  .talk .say { font-size: clamp(28px, 8.4vw, 38px); }
  .talk .say:lang(ko), .talk .say:lang(ja) { font-size: clamp(25px, 7.4vw, 34px); }
  .talk .line--s .say { font-size: 24px; }
  .talk .line--s .say:lang(ko), .talk .line--s .say:lang(ja) { font-size: 22px; }
  .talk .wave svg { width: 118px; }
  .plays { gap: 4px 16px; }
  .prose h2 { font-size: 28px; }
  .post-fig { margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); }
  .post-fig img { border-radius: 0; }
  .post-fig figcaption { padding: 0 var(--pad); }
  .rel a { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 16px 0; }
  .rel p { display: none; }
  .rel h3 { font-size: 18px; }
  .group ul { grid-template-columns: 1fr; }
  .index-hero { min-height: 480px; height: 64svh; }
  .hub-list a { font-size: 17px; }
  .tri { grid-template-columns: 1fr; }
  .tri-city { height: 62vw; min-height: 260px; }
  .close-say p { font-size: 30px; }
}
