:root {
  --ink: #111;
  --strong: #000;
  --soft: #333;
  --muted: #6a6a6a;
  --answer: #5c5c5c;
  --line: #e2e2e2;
  --bg: #fff;
  --ph: #ecebe7;
  --ph-ink: #b9b6ad;
  --accent: #d4351c;
  --panel: #111;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Reader settings (see /settings) */
  --scale: 1;
  --read: var(--serif);
  --measure: 728px;
  color-scheme: light;
}
html[data-theme="dark"] {
  --ink: #ececec;
  --strong: #fff;
  --soft: #cfcfcf;
  --muted: #9b9b9b;
  --answer: #a6a6a6;
  --line: #2f2f2f;
  --bg: #121212;
  --ph: #222;
  --ph-ink: #555;
  --accent: #ff6a4d;
  --panel: #1d1d1d;
  color-scheme: dark;
}
html[data-size="small"] { --scale: 0.9; }
html[data-size="large"] { --scale: 1.15; }
html[data-size="xlarge"] { --scale: 1.3; }
html[data-font="sans"] { --read: var(--sans); }
html[data-width="narrow"] { --measure: 600px; }
html[data-width="wide"] { --measure: 880px; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Masthead */
.mast { border-bottom: 1px solid var(--ink); }
.mast-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 20px; padding-bottom: 20px; }
.logo { flex: none; }
.logo { color: var(--ink); display: block; }
.logo svg { height: 32px; width: auto; display: block; }
.menu { display: flex; align-items: center; gap: 24px; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: 15px; scrollbar-width: none; }
.menu::-webkit-scrollbar { display: none; }
.menu a { padding: 4px 0; }
.menu a:hover, .menu a.on { text-decoration: underline; text-underline-offset: 5px; }
.menu a.on { font-weight: 600; }
.menu-sep { flex: none; width: 1px; height: 16px; background: var(--line); }

/* Shared */
.label { font-size: 13px; font-weight: 600; color: var(--accent); }
.label a:hover { text-decoration: underline; }
.meta { font-size: 14px; color: var(--muted); }
.ph { background: var(--ph); display: flex; align-items: center; justify-content: center; }
.ph span { font-family: var(--serif); font-size: clamp(40px, 7vw, 84px); color: var(--ph-ink); }
.section { padding-top: 56px; padding-bottom: 8px; }
.section.first { padding-top: 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--ink); padding-top: 12px; margin-bottom: 28px; }
.section-head h2 { font-size: 15px; font-weight: 600; }
.section-head a { font-size: 14px; color: var(--muted); }
.section-head a:hover { color: var(--ink); }
.page-title { font-family: var(--serif); font-size: clamp(32px, 5vw, 48px); font-weight: 600; line-height: 1.1; margin-bottom: 28px; }
.page-intro, .none { color: var(--muted); margin-bottom: 28px; }
.none a { color: var(--ink); text-decoration: underline; }
.empty { padding: 96px 24px; color: var(--muted); }

/* Home: lead */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; padding-top: 48px; }
.hero-title { font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.02em; margin: 18px 0 24px; }
.hero-title a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.hero-name { font-size: 17px; font-weight: 600; padding-bottom: 22px; border-bottom: 1px solid var(--ink); }
.hero-name span, .tcard-name span, .index-name span { font-weight: 400; color: var(--muted); }
.hero-open { max-width: 620px; }
.hero-q { font-weight: 600; font-size: calc(16px * var(--scale)); margin: 22px 0 10px; color: var(--strong); }
.hero-a { font-family: var(--read); font-size: calc(19.5px * var(--scale)); line-height: 1.6; color: var(--answer); max-width: 620px; }
.hero-text > .hero-a { margin-top: 22px; }
.hero-foot { display: flex; align-items: baseline; gap: 20px; margin-top: 26px; }
.hero-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.more { display: inline-block; font-size: 14px; font-weight: 600; border-bottom: 2px solid var(--ink); padding-bottom: 2px; }
.more:hover { color: var(--accent); border-color: var(--accent); }

/* Home: latest three */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.tcard-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.tcard-name { font-size: 14px; font-weight: 600; margin-top: 14px; }
.tcard-title { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.18; margin-top: 6px; }
.tcard a:hover .tcard-title { text-decoration: underline; text-underline-offset: 4px; }

/* Home: quotes band */
.band { background: var(--panel); color: #fff; margin-top: 72px; padding: 56px 0 44px; }
.band-head { font-size: 15px; font-weight: 600; color: #a9a9a9; }
.band q { quotes: "“" "”"; font-family: var(--serif); display: block; }
.band span { display: block; font-size: 14px; color: #a9a9a9; margin-top: 12px; }
.band-big { display: block; margin-top: 18px; max-width: 1000px; }
.band-big q { font-weight: 600; font-size: clamp(30px, 4.6vw, 60px); line-height: 1.08; letter-spacing: -0.015em; }
.band-list { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid #3a3a3a; }
.band-list a { display: block; padding: 22px 0; }
.band-list q { font-size: 21px; line-height: 1.3; }
.band a:hover q { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* Home: category columns */
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.col .section-head { margin-bottom: 4px; }
.col .section-head h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.index { list-style: none; margin: 0; padding: 0; }
.index li { border-bottom: 1px solid var(--line); }
.index a { display: block; padding: 16px 0; }
.index-name { display: block; font-size: 14px; font-weight: 600; }
.index-title { display: block; font-family: var(--serif); font-size: 20px; line-height: 1.25; margin-top: 4px; }
.index a:hover .index-title { text-decoration: underline; text-underline-offset: 4px; }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
.card-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.card-name { font-size: 14px; font-weight: 600; margin-top: 14px; }
.card-title { font-family: var(--serif); font-weight: 600; font-size: 23px; line-height: 1.2; margin-top: 6px; }
.card-role { font-size: 14px; color: var(--muted); margin-top: 8px; }
.card a:hover .card-title { text-decoration: underline; text-underline-offset: 4px; }

/* Most read */
.ranked { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.ranked li { counter-increment: r; border-bottom: 1px solid var(--line); }
.ranked a { display: grid; grid-template-columns: 56px 240px 1fr; gap: 16px; align-items: baseline; padding: 16px 0; }
.ranked a::before { content: counter(r); font-family: var(--serif); font-size: 30px; color: var(--muted); }
.ranked-name { font-weight: 600; font-size: 15px; }
.ranked-title { font-family: var(--serif); font-size: 20px; line-height: 1.25; }
.ranked a:hover .ranked-title { text-decoration: underline; text-underline-offset: 4px; }

/* Interview */
.iv-head { max-width: 860px; padding-top: 48px; padding-bottom: 32px; }
.iv-name { font-size: 18px; font-weight: 600; margin-top: 18px; }
.iv-name span { font-weight: 400; color: var(--muted); }
.iv-title { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 5.4vw, 62px); line-height: 1.06; letter-spacing: -0.015em; margin: 12px 0 22px; }
.iv-stand { font-family: var(--read); font-size: calc(21px * var(--scale)); line-height: 1.5; color: var(--soft); margin-bottom: 20px; }
/* Interview with a cover photo: full-width dark header, text beside the image */
.iv-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 46%); background: var(--panel); color: #fff; }
.iv-hero-text { align-self: center; padding: 56px 56px 56px max(24px, calc((100vw - 1200px) / 2 + 24px)); }
.iv-hero-img { width: 100%; height: min(88vh, 860px); min-height: 520px; object-fit: cover; object-position: 50% 30%; }
.iv-hero .label { color: #ff7a5c; }
.iv-hero .iv-name span { color: #b5b5b5; }
.iv-hero .iv-title { font-size: clamp(32px, 4.3vw, 60px); }
.iv-hero .iv-stand { color: #d6d6d6; font-size: calc(19px * var(--scale)); }
.iv-hero .meta { color: #a9a9a9; }
.iv-caption { font-size: 13px; color: var(--muted); padding-top: 10px; }
.iv-hero ~ .iv-body { padding-top: 48px; }
figure { margin: 0; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.iv-body { max-width: calc(var(--measure) + 48px); padding-bottom: 24px; }
.iv-body .q { font-weight: 600; font-size: calc(17px * var(--scale)); line-height: 1.45; margin: 34px 0 12px; color: var(--strong); }
.iv-body .a { font-family: var(--read); font-size: calc(19.5px * var(--scale)); line-height: 1.65; margin: 0 0 16px; color: var(--answer); }
.iv-body blockquote { margin: 40px 0; padding: 26px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.iv-body blockquote p { font-family: var(--serif); font-weight: 600; font-size: clamp(25px, 3.4vw, 33px); line-height: 1.22; }
.iv-body blockquote p::before { content: "“"; }
.iv-body blockquote p::after { content: "”"; }
.iv-body figure { margin: 36px 0; }
.iv-body h2 { font-size: calc(22px * var(--scale)); font-weight: 600; line-height: 1.3; margin: 48px 0 16px; }
.iv-body .a a, .iv-body .q a, .prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.iv-body .a a:hover, .iv-body .q a:hover { color: var(--accent); }
.iv-body .a strong { color: var(--ink); font-weight: 600; }
.profile { margin-bottom: 40px; border: 1px solid var(--ink); padding: 22px 24px; }
.profile h2 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.profile dl { margin: 0; }
.profile dl div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 15px; }
.profile dt { color: var(--muted); }
.profile dd { margin: 0; }
.share { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 32px; font-size: 14px; }
.share span { color: var(--muted); }
.share a, .share button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.draft-note { margin-top: 24px; font-size: 14px; color: var(--accent); }

/* Pages, search, pager */
.prose { max-width: calc(var(--measure) + 48px); }
.prose p { font-family: var(--read); font-size: calc(19.5px * var(--scale)); line-height: 1.65; margin-bottom: 18px; }
.search { display: flex; gap: 10px; max-width: 560px; margin-bottom: 32px; }
.search input { flex: 1; font: inherit; padding: 11px 12px; border: 1px solid var(--ink); border-radius: 0; background: var(--bg); color: var(--ink); min-width: 0; }
.search button { font: inherit; font-weight: 600; padding: 11px 22px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); cursor: pointer; border-radius: 0; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.pager a:hover { text-decoration: underline; }
.pager span { color: var(--muted); }

/* Reader settings page */
.settings { max-width: 776px; }
.set { border-top: 1px solid var(--line); padding: 22px 0; display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: center; }
.set h2 { font-size: 15px; font-weight: 600; }
.seg { display: flex; flex-wrap: wrap; }
.seg label { position: relative; margin: 0 -1px -1px 0; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 9px 16px; border: 1px solid var(--ink); font-size: 14px; }
.seg input:checked + span { background: var(--ink); color: var(--bg); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.set-reset { font: inherit; font-size: 14px; background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.sample { border-top: 1px solid var(--ink); margin-top: 8px; padding: 8px 0 0; }
.sample-label { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* Footer */
.foot { margin-top: 80px; border-top: 1px solid var(--ink); }
.foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; padding-bottom: 32px; font-size: 14px; color: var(--muted); }
.foot nav { display: flex; gap: 22px; }
.foot a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 28px; }
  .hero-media { order: -1; }
  .hero-img { aspect-ratio: 4 / 3; }
  .trio, .cols3, .band-list { grid-template-columns: minmax(0, 1fr); }
  .iv-hero { grid-template-columns: minmax(0, 1fr); }
  .iv-hero-img { order: -1; height: auto; min-height: 0; aspect-ratio: 4 / 5; max-height: 80vh; }
  .iv-hero-text { padding: 28px 24px 36px; }
  .cols3 { gap: 40px; }
  .band { margin-top: 56px; padding: 40px 0 28px; }
  .band-list li + li { border-top: 1px solid #3a3a3a; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .ranked a { grid-template-columns: 40px 1fr; }
  .set { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ranked-title { grid-column: 2; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .mast-row { gap: 20px; padding-top: 14px; padding-bottom: 14px; }
  .menu { gap: 16px; font-size: 14px; }
  .logo svg { height: 26px; }
  .grid { grid-template-columns: 1fr; }
  .card-img { aspect-ratio: 4 / 4; }
  .section { padding-top: 44px; }
  .iv-head { padding-top: 32px; }
  .profile dl div { grid-template-columns: 110px 1fr; }
}
