/* ==========================================================
   Truly Classy: Asia's luxury magazine
   Design tokens: midnight ink, porcelain paper, celadon,
   cinnabar lacquer and brass. Bodoni Moda + Jost.
   ========================================================== */

@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/BodoniModa.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/BodoniModa-Italic.woff2") format("woff2");
  font-weight: 400 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/Jost.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --ink: #1B2230;
  --ink-soft: #3A4252;
  --muted: #5E6573;
  --paper: #F7F7F4;
  --white: #FFFFFF;
  --celadon: #CADDD1;
  --celadon-soft: #E3EDE6;
  --jade: #24503F;
  --cinnabar: #B3322A;
  --brass: #A8894F;
  --rule: rgba(27, 34, 48, .14);

  --display: "Bodoni Moda", "Didot", "Bodoni 72", "Times New Roman", serif;
  --sans: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1320px;
  --gutter: clamp(1.1rem, 3.2vw, 2.5rem);
  --header-h: 76px;
  --topbar-h: 36px;
}

*, *::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: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--cinnabar); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -3rem; background: var(--ink); color: var(--white); padding: .6rem 1rem; z-index: 200; }
.skip-link:focus { top: 1rem; }

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

/* Shared small type */
.kicker { font-family: var(--sans); font-size: .8125rem; font-weight: 500; letter-spacing: .02em; color: var(--cinnabar); }
.meta { font-size: .8125rem; color: var(--muted); }
.link-line { font-weight: 500; font-size: .9375rem; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color .2s; }
.link-line:hover { color: var(--cinnabar); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border: 1px solid var(--ink); background: var(--ink); color: var(--white);
  font-family: var(--sans); font-weight: 500; font-size: .9375rem; border-radius: 2px;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--cinnabar); border-color: var(--cinnabar); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { color: var(--white); }

/* Image frames: a background colour stands in while photos load */
.frame { position: relative; overflow: hidden; background: #D9DDD8; }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
a:hover .frame img, .frame:hover img { transform: scale(1.04); }

/* ===================== Top bar + header ===================== */
.topbar { background: var(--ink); color: rgba(255,255,255,.78); font-size: .8125rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: var(--topbar-h); gap: 1rem; }
.topbar__edition { font-family: var(--display); font-style: italic; font-size: .9375rem; color: var(--white); }
.topbar nav { display: flex; gap: 1.25rem; align-items: center; }
.topbar__links { display: flex; gap: 1.25rem; }
.topbar a:hover { color: var(--white); }
.social { display: flex; gap: .9rem; }
.social svg { width: 15px; height: 15px; fill: currentColor; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,247,244,.94); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; height: var(--header-h); gap: 2rem; }
.brand { display: block; line-height: 0; }
/* The artwork keeps its original canvas, which carries blank space above the wordmark,
   so the image is nudged up to sit optically centred in the header */
.brand img { width: auto; height: 46px; transform: translateY(-7%); }

.nav { justify-self: center; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.75rem; align-items: center; }
.nav a, .nav button.nav__more-btn { font-size: .9375rem; font-weight: 500; padding: .4rem 0; position: relative; background: none; border: 0; }
.nav > ul > li > a::after, .nav__more-btn::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--cinnabar);
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav > ul > li > a:hover::after, .nav > ul > li > a[aria-current="page"]::after,
.nav__more-btn:hover::after, .nav__more-btn[aria-expanded="true"]::after { transform: scaleX(1); }
.nav__more-btn svg { width: 10px; height: 10px; margin-left: .3rem; vertical-align: middle; transition: transform .25s; }
.nav__more-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Mega panel for the long category list */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 1px solid var(--rule);
  box-shadow: 0 30px 60px -30px rgba(27,34,48,.35);
  display: none;
}
.mega.is-open { display: block; animation: megaIn .28s ease-out; }
@keyframes megaIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mega .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; height: auto; padding-top: 2.25rem; padding-bottom: 2.5rem; }
.mega__list { columns: 2; column-gap: 2rem; list-style: none; margin: 0; padding: 0; }
.mega__list li { break-inside: avoid; }
.mega__list a { display: block; font-family: var(--display); font-size: 1.375rem; padding: .3rem 0; transition: color .2s, padding .2s; }
.mega__list a:hover { color: var(--cinnabar); padding-left: .35rem; }
.mega__feature { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: end; }
.mega__feature .frame { aspect-ratio: 4/3; }
.mega__feature h3 { font-size: 1.375rem; margin: .4rem 0 .5rem; }

.header-actions { display: flex; align-items: center; gap: .75rem; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 0; background: none; border-radius: 50%; transition: background .2s; }
.icon-btn:hover { background: rgba(27,34,48,.07); }
.icon-btn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.header-actions .btn { padding: .55rem 1.1rem; font-size: .875rem; }
.menu-toggle { display: none; }

/* Search overlay */
.search-overlay {
  position: fixed; inset: 0; z-index: 120; background: rgba(27,34,48,.96); color: var(--white);
  display: none; align-items: flex-start; justify-content: center; padding-top: 18vh;
}
.search-overlay.is-open { display: flex; }
.search-overlay form { width: min(820px, 90vw); }
.search-overlay label { display: block; font-family: var(--display); font-style: italic; font-size: 1.25rem; margin-bottom: 1rem; color: var(--celadon); }
.search-overlay input {
  width: 100%; background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,.4);
  color: var(--white); font-family: var(--display); font-size: clamp(2rem, 5vw, 3.5rem); padding: .3rem 0 .6rem; outline: none;
}
.search-overlay input:focus { border-color: var(--white); }
.search-overlay .suggest { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.search-overlay .suggest a { border: 1px solid rgba(255,255,255,.3); padding: .35rem .9rem; border-radius: 99px; font-size: .875rem; }
.search-overlay .suggest a:hover { background: var(--white); color: var(--ink); }
.search-close { position: absolute; top: 1.5rem; right: 1.5rem; color: var(--white); }
.search-close:hover { background: rgba(255,255,255,.1); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 110; background: var(--paper); padding: 1.25rem var(--gutter) 3rem;
  overflow-y: auto; transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.7,.2,1); visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer__main a { display: block; font-family: var(--display); font-size: 2.25rem; padding: .35rem 0; border-bottom: 1px solid var(--rule); }
.drawer__cats { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.drawer__cats a { display: inline-block; border: 1px solid var(--rule); padding: .35rem .85rem; border-radius: 99px; font-size: .875rem; }

/* ===================== Cover (home hero) ===================== */
.cover { position: relative; height: calc(100svh - var(--header-h) - var(--topbar-h) - 1px); min-height: 520px; color: var(--white); overflow: hidden; background: var(--ink); }
.cover__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; }
.cover__slide.is-active { opacity: 1; visibility: visible; }
.cover__slide .cover__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 8s linear; }
.cover__slide.is-active .cover__img { transform: scale(1); }
.cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20,26,38,.55) 0%, rgba(20,26,38,0) 28%),
    linear-gradient(0deg, rgba(20,26,38,.88) 0%, rgba(20,26,38,.35) 38%, rgba(20,26,38,0) 60%);
}
.cover__inner { position: relative; z-index: 2; height: 100%; display: grid; grid-template-rows: auto 1fr auto; padding-top: clamp(1rem, 2.5vw, 2rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }

.cover__mast { display: flex; justify-content: center; }
.cover__mast img { width: min(52%, 700px); height: auto; filter: drop-shadow(0 2px 40px rgba(0,0,0,.25)); }
.cover__edition { display: flex; justify-content: space-between; align-items: center; margin-bottom: clamp(.6rem, 1.4vw, 1.2rem); font-size: .875rem; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: .6rem; }
.cover__edition em { font-family: var(--display); font-size: 1rem; }

.cover__bottom { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.cover__story { max-width: 44rem; }
.cover__story .kicker { color: var(--celadon); font-size: .9375rem; }
.cover__story h1, .cover__story h2 { font-size: clamp(2.4rem, 5vw, 4.8rem); margin: .6rem 0 1.1rem; line-height: 1.0; }
.cover__story p { font-size: 1.125rem; color: rgba(255,255,255,.85); max-width: 34rem; }
.cover__story .btn { background: var(--white); color: var(--ink); border-color: var(--white); margin-top: .5rem; }
.cover__story .btn:hover { background: var(--cinnabar); color: var(--white); border-color: var(--cinnabar); }
.cover__story-set { display: grid; }
.cover__story-set > * { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .6s .15s, transform .6s .15s, visibility .6s .15s; }
.cover__story-set > .is-active { opacity: 1; visibility: visible; transform: none; }

.cover__lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.35); }
.cover__lines li { border-bottom: 1px solid rgba(255,255,255,.2); }
.cover__line {
  width: 100%; display: grid; grid-template-columns: 2.2rem 1fr; gap: .75rem; text-align: left;
  background: none; border: 0; padding: .85rem 0; position: relative; color: rgba(255,255,255,.72); transition: color .25s;
}
.cover__line:hover, .cover__line.is-active { color: var(--white); }
.cover__line .n { font-family: var(--display); font-style: italic; font-size: 1rem; padding-top: .1rem; }
.cover__line .t { font-family: var(--display); font-size: 1.1875rem; line-height: 1.2; }
.cover__line .c { display: block; font-family: var(--sans); font-size: .75rem; margin-bottom: .2rem; opacity: .8; }
.cover__line .bar { position: absolute; left: 0; bottom: -1px; height: 1.5px; width: 100%; background: var(--celadon); transform: scaleX(0); transform-origin: left; }
.cover__line.is-active .bar { animation: coverBar var(--cover-ms, 7000ms) linear forwards; }
.cover.is-paused .cover__line.is-active .bar { animation-play-state: paused; }
@keyframes coverBar { to { transform: scaleX(1); } }

/* The one orchestrated moment: the masthead sets itself on load */
.js .cover__mast img { opacity: 0; transform: translateY(14px); }
.js .is-ready .cover__mast img { opacity: 1; transform: none; transition: opacity 1.1s cubic-bezier(.2,.7,.2,1), transform 1.2s cubic-bezier(.2,.7,.2,1); }

/* ===================== Section scaffolding ===================== */
.section { padding: clamp(4rem, 8vw, 7.5rem) 0; }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); padding-bottom: 1rem; border-bottom: 1px solid var(--ink); }
.section-head h2 { font-size: clamp(2.4rem, 5.2vw, 4.5rem); line-height: .95; }
.section-head h2 i { font-weight: 400; }
.section-head p { margin: .6rem 0 0; color: var(--muted); max-width: 32rem; }

/* ===================== Contents ("In this issue") ===================== */
.contents { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: clamp(2.5rem, 6vw, 6rem); }
.contents__intro h2 { font-size: clamp(2.6rem, 5vw, 4.25rem); line-height: .95; margin-bottom: 1.5rem; }
.contents__intro p { color: var(--ink-soft); max-width: 27rem; }
.contents__intro figure { margin: 2.25rem 0 0; }
.contents__intro .frame { aspect-ratio: 4/5; max-width: 26rem; }
.contents__intro figcaption { margin-top: .6rem; }
.contents__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.contents__list a {
  display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto; gap: 1.25rem; align-items: baseline;
  padding: 1.15rem 0; border-bottom: 1px solid var(--rule); transition: padding .3s, color .2s;
}
.contents__list a:hover { padding-left: .6rem; color: var(--cinnabar); }
.contents__page { font-family: var(--display); font-style: italic; font-size: 1.05rem; color: var(--muted); }
.contents__title { font-family: var(--display); font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.18; }
.contents__cat { font-size: .8125rem; color: var(--muted); white-space: nowrap; }
.hover-preview {
  position: fixed; z-index: 60; width: 240px; aspect-ratio: 3/2; pointer-events: none; overflow: hidden;
  opacity: 0; transform: translate(-50%, -115%) rotate(-3deg) scale(.92); transition: opacity .25s, transform .25s;
  box-shadow: 0 25px 50px -20px rgba(27,34,48,.55); background: #D9DDD8;
}
.hover-preview.is-on { opacity: 1; transform: translate(-50%, -115%) rotate(-3deg) scale(1); }
.hover-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ===================== Cards ===================== */
.card { display: block; }
.card .frame { aspect-ratio: 3/2; }
.card__body { padding-top: 1rem; }
.card__title { font-size: clamp(1.3rem, 1.8vw, 1.6rem); line-height: 1.15; margin: .45rem 0 .55rem; transition: color .2s; }
.card:hover .card__title { color: var(--cinnabar); }
.card__dek { color: var(--ink-soft); font-size: 1rem; margin-bottom: .6rem; }

/* Editorial feature grid (Traveling in style) */
.feature-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.feature-grid .card--lead { grid-column: 1 / span 7; grid-row: span 2; }
.feature-grid .card--lead .frame { aspect-ratio: 4/5; }
.feature-grid .card--lead .card__title { font-size: clamp(1.9rem, 3.2vw, 2.9rem); }
.feature-grid .card--side { grid-column: 8 / span 5; }
.feature-grid .card--side:nth-of-type(3) { margin-left: clamp(0rem, 4vw, 4rem); }
.feature-grid .card--side .frame { aspect-ratio: 16/10; }

/* ===================== Passport (destinations) ===================== */
.passport { background: var(--celadon); color: var(--jade); overflow: hidden; }
.passport .section-head { border-color: var(--jade); }
.passport .section-head p { color: var(--jade); opacity: .85; }
.stamps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.stamp {
  aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--jade); display: grid; place-items: center; text-align: center;
  position: relative; transition: transform .45s cubic-bezier(.3,1.6,.5,1), background .3s, color .3s;
}
.stamp::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1px dashed currentColor; opacity: .55; }
.stamp strong { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.05; }
.stamp small { display: block; font-size: .75rem; margin-top: .35rem; }
.stamps li:nth-child(odd) .stamp { transform: rotate(-4deg); }
.stamps li:nth-child(3n) .stamp { transform: rotate(5deg); }
.stamps li .stamp:hover { transform: rotate(0) scale(1.06); background: var(--jade); color: var(--celadon); }

/* ===================== Rail (Living life) ===================== */
.rail { position: relative; }
.rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 23%); gap: clamp(1.25rem, 2.5vw, 2rem); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1.25rem; scrollbar-width: thin; scrollbar-color: var(--ink) transparent; }
.rail__track > * { scroll-snap-align: start; }
.card--portrait .frame { aspect-ratio: 3/4; }
.card--portrait .card__title { font-size: 1.35rem; }
.rail__btns { display: flex; gap: .5rem; }
.rail__btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ink); background: none; display: grid; place-items: center; transition: background .2s, color .2s; }
.rail__btn:hover { background: var(--ink); color: var(--white); }
.rail__btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; }

/* ===================== What's hot (dark) ===================== */
.hot { background: var(--ink); color: var(--white); }
.hot .section-head { border-color: rgba(255,255,255,.6); }
.hot .section-head p, .hot .meta { color: rgba(255,255,255,.62); }
.hot__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); }
.hot .card--lead .frame { aspect-ratio: 5/4; }
.hot .card--lead .card__title { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.hot .card__dek { color: rgba(255,255,255,.75); }
.hot .kicker { color: #E08A7C; }
.hot__list { list-style: none; margin: 0; padding: 0; counter-reset: hot; }
.hot__list li { counter-increment: hot; border-bottom: 1px solid rgba(255,255,255,.16); }
.hot__list li:first-child { border-top: 1px solid rgba(255,255,255,.16); }
.hot__list a { display: grid; grid-template-columns: 4.5rem minmax(0,1fr) 92px; gap: 1.1rem; align-items: center; padding: 1.2rem 0; }
.hot__list a::before { content: counter(hot); font-family: var(--display); font-style: italic; font-size: 3.4rem; line-height: .8; color: var(--brass); }
.hot__list h3 { font-size: 1.3rem; line-height: 1.2; margin-top: .25rem; transition: color .2s; }
.hot__list a:hover h3 { color: var(--celadon); }
.hot__list .frame { aspect-ratio: 1; }

/* ===================== Newsletter ===================== */
.letter { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.letter__inner { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.letter h2 { font-size: clamp(2.3rem, 4.4vw, 3.8rem); line-height: 1; }
.letter p { color: var(--ink-soft); margin-top: 1rem; max-width: 30rem; }
.field-row { display: flex; border-bottom: 1.5px solid var(--ink); }
.field-row input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 1.125rem; padding: 1rem 0; outline: none; }
.field-row button { border: 0; background: none; font-weight: 500; padding: 0 0 0 1rem; }
.field-row button:hover { color: var(--cinnabar); }
.form-note { font-size: .8125rem; color: var(--muted); margin-top: .75rem; }
.form-ok { color: var(--jade); font-weight: 500; margin-top: .75rem; }

/* ===================== Footer ===================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: clamp(3.5rem, 7vw, 6rem) 0 2rem; font-size: .9375rem; }
.footer__mast { padding-bottom: clamp(2.2rem, 4.5vw, 4rem); border-bottom: 1px solid rgba(255,255,255,.2); }
.footer__mast img { width: min(48%, 600px); height: auto; }
.footer__cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem; padding: 2.75rem 0; }
.footer__cols h3 { font-family: var(--sans); font-size: .875rem; font-weight: 500; color: var(--white); margin-bottom: 1rem; letter-spacing: .01em; }
.footer__cols ul { list-style: none; margin: 0; padding: 0; }
.footer__cols li { margin-bottom: .45rem; }
.footer__cols a:hover { color: var(--white); }
.footer__about { max-width: 22rem; }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.2); padding-top: 1.5rem; font-size: .8125rem; }

/* ===================== Category page ===================== */
.cat-hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--ink); }
.crumbs { font-size: .8125rem; color: var(--muted); margin-bottom: 1.25rem; }
.crumbs a:hover { color: var(--cinnabar); }
.cat-hero__row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 3rem; align-items: end; }
.cat-hero h1 { font-size: clamp(3.6rem, 10vw, 9rem); line-height: .86; letter-spacing: -.035em; }
.cat-hero h1 i { font-weight: 400; }
.cat-hero__desc { color: var(--ink-soft); font-size: 1.125rem; max-width: 30rem; }
.cat-hero__count { font-family: var(--display); font-style: italic; color: var(--muted); margin-top: .5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.chip { border: 1px solid var(--rule); background: var(--white); padding: .45rem 1rem; border-radius: 99px; font-size: .875rem; transition: border-color .2s, background .2s, color .2s; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }

.cat-lead { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.cat-lead .frame { aspect-ratio: 16/10; }
.cat-lead h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); margin: .6rem 0 1rem; }
.cat-lead p { color: var(--ink-soft); font-size: 1.125rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(2rem, 3vw, 2.75rem) clamp(1.5rem, 2.5vw, 2.25rem); }
.grid-3 .card:nth-child(3n+2) { margin-top: clamp(0rem, 4vw, 3.5rem); }
.inline-break { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; background: var(--celadon-soft); padding: clamp(1.75rem, 4vw, 3rem); margin: 1rem 0; }
.inline-break h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--jade); }
.inline-break p { color: var(--jade); margin: .6rem 0 0; }
.inline-break .field-row { border-color: var(--jade); }

.pager { display: flex; justify-content: center; align-items: center; gap: .4rem; margin-top: clamp(3rem, 6vw, 5rem); }
.pager a, .pager span { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 .9rem; border: 1px solid var(--rule); font-size: .9375rem; }
.pager .current { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pager a:hover { border-color: var(--ink); }

.ad-slot { border: 1px dashed var(--rule); display: grid; place-items: center; text-align: center; color: var(--muted); font-size: .8125rem; min-height: 120px; padding: 1.5rem; }

/* ===================== Article ===================== */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--cinnabar); transform-origin: left; transform: scaleX(0); z-index: 80; }
.article-head { text-align: center; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem); }
.article-head .crumbs { margin-bottom: 1.75rem; }
.article-head h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: .98; max-width: 16ch; margin: .8rem auto 1.5rem; letter-spacing: -.025em; }
.article-head .dek { font-family: var(--display); font-style: italic; font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--ink-soft); max-width: 38rem; margin: 0 auto 1.75rem; line-height: 1.4; }
.byline { display: inline-flex; align-items: center; gap: .9rem; font-size: .875rem; color: var(--muted); text-align: left; }

.byline strong { color: var(--ink); font-weight: 500; display: block; }

.article-hero { margin: 0 auto; max-width: 1480px; padding: 0 var(--gutter); }
.article-hero .frame { aspect-ratio: 21/10; }
.article-hero figcaption, .article-body figcaption { font-size: .8125rem; color: var(--muted); margin-top: .7rem; }
.article-body figure figcaption { text-align: center; }

.article-layout { display: grid; grid-template-columns: 1fr minmax(0, 42rem) 1fr; gap: 2rem; padding: clamp(3rem, 6vw, 5rem) var(--gutter) 0; max-width: var(--wrap); margin: 0 auto; }
.share { grid-column: 1; justify-self: end; position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; display: flex; flex-direction: column; gap: .5rem; }
.share span { font-size: .75rem; color: var(--muted); text-align: center; margin-bottom: .25rem; }
.share a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: 50%; transition: background .2s, color .2s, border-color .2s; }
.share a:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.share svg { width: 16px; height: 16px; fill: currentColor; }

.article-body { grid-column: 2; font-size: 1.1875rem; line-height: 1.75; }
.article-body > p:first-of-type::first-letter {
  font-family: var(--display); float: left; font-size: 5.6em; line-height: .78; padding: .06em .12em 0 0; color: var(--cinnabar); font-weight: 500;
}
.article-body > p:first-of-type { font-size: 1.3125rem; }
.article-body h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 2.8rem 0 1rem; line-height: 1.1; }
.article-body figure { margin: 2.6rem 0; }
.article-body figure .frame { aspect-ratio: auto; background: none; overflow: visible; display: flex; justify-content: center; }
/* Body images keep their own proportions: never cropped, and tall ones are capped so
   they do not take over the screen */
.article-body figure .frame img { width: auto; height: auto; max-width: 100%; max-height: 86vh; object-fit: initial; }
@media (min-width: 1180px) {
  /* Body images sit wider than the text column, up to 8rem past it on each side */
  .article-body figure, .article-body .alignwide {
    margin-left: calc(-1 * clamp(2rem, 8vw, 8rem));
    margin-right: calc(-1 * clamp(2rem, 8vw, 8rem));
  }
}
.article-body blockquote { margin: 2.6rem 0; padding: 0; font-family: var(--display); font-style: italic; font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.25; color: var(--jade); border-left: 0; text-align: center; }
.article-body blockquote::before, .article-body blockquote::after { content: ""; display: block; width: 60px; height: 1px; background: var(--brass); margin: 0 auto 1.3rem; }
.article-body blockquote::after { margin: 1.3rem auto 0; }
.article-body a { border-bottom: 1px solid var(--cinnabar); }
.article-body a:hover { color: var(--cinnabar); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; }

.author-box { grid-column: 2; display: grid; grid-template-columns: 72px 1fr; gap: 1.25rem; padding: 2rem 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); margin-top: 3rem; }

.author-box h3 { font-size: 1.35rem; margin-bottom: .35rem; }
.author-box p { color: var(--ink-soft); font-size: 1rem; margin: 0; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-top: clamp(3rem, 6vw, 5rem); }
.post-nav a { padding: 2rem var(--gutter); display: block; transition: background .2s; }
.post-nav a:hover { background: var(--white); }
.post-nav a + a { border-left: 1px solid var(--rule); text-align: right; }
.post-nav small { display: block; color: var(--muted); font-size: .8125rem; margin-bottom: .4rem; }
.post-nav strong { font-family: var(--display); font-weight: 500; font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.2; }

.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid-4 .card__title { font-size: 1.25rem; }

/* ===================== About ===================== */
.about-hero { padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem); }
.about-hero h1 { font-size: clamp(2.8rem, 7vw, 6.4rem); line-height: .96; letter-spacing: -.03em; max-width: 15ch; }
.about-hero h1 i { font-weight: 400; }
.about-hero__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); margin-top: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.about-hero__row p { font-size: 1.1875rem; color: var(--ink-soft); line-height: 1.7; }
.about-strip { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: clamp(1rem, 2vw, 1.5rem); padding: 0 var(--gutter); max-width: 1480px; margin: 0 auto; }
.about-strip .frame:nth-child(1) { aspect-ratio: 4/3; }
.about-strip .frame:nth-child(2) { aspect-ratio: 3/4; margin-top: 4rem; }
.about-strip .frame:nth-child(3) { aspect-ratio: 1; }

.topics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
.topic { padding: 1.5rem 1.25rem 1.75rem 0; border-bottom: 1px solid var(--rule); transition: color .2s; }
.topic:hover { color: var(--cinnabar); }
.topic h3 { font-size: 1.6rem; margin-bottom: .35rem; }
.topic p { font-size: .9375rem; color: var(--muted); margin: 0; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); }
.contact-cards { display: grid; gap: 1rem; }
.contact-card { background: var(--white); border: 1px solid var(--rule); padding: 1.5rem 1.75rem; display: block; transition: border-color .2s; }
.contact-card:hover { border-color: var(--ink); }
.contact-card h3 { font-size: 1.5rem; margin-bottom: .3rem; }
.contact-card p { color: var(--muted); margin: 0; font-size: .9375rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: .35rem; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .85rem 1rem; background: var(--white); border: 1px solid var(--rule); border-radius: 2px; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); }
.form textarea { min-height: 150px; resize: vertical; }

/* ===================== WordPress content helpers ===================== */
.alignwide { margin-left: 0; margin-right: 0; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption-text, .wp-element-caption { font-size: .8125rem; color: var(--muted); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ===================== Responsive ===================== */
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .site-header .wrap { grid-template-columns: 1fr auto; }
  .header-actions .btn { display: none; }
  .contents { grid-template-columns: 1fr; }
  .contents__intro figure { display: none; }
  .hot__grid, .letter__inner, .cat-lead, .contact-grid, .cat-hero__row, .about-hero__row { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .topics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .share { grid-column: 1; position: static; flex-direction: row; justify-self: start; order: 2; align-items: center; }
  .share span { margin: 0 .5rem 0 0; }
  .article-body, .author-box { grid-column: 1; }
  .article-body figure, .alignwide { margin-left: 0; margin-right: 0; }
}
@media (max-width: 820px) {
  .topbar__links { display: none; }
  .cover { height: calc(100svh - var(--header-h) - var(--topbar-h) - 1px); min-height: 560px; }
  .cover__inner { min-height: 0; }
  .cover__mast img { width: 78%; }
  .cover__bottom { grid-template-columns: 1fr; gap: 1.5rem; }
  .cover__lines .cover__line { padding: .6rem 0; }
  .cover__line .t { font-size: 1.05rem; }
  .cover__lines li:nth-child(n+4) { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid .card--lead, .feature-grid .card--side { grid-column: 1; grid-row: auto; }
  .feature-grid .card--lead .frame { aspect-ratio: 4/3; }
  .feature-grid .card--side:nth-of-type(3) { margin-left: 0; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-3 .card:nth-child(3n+2) { margin-top: 0; }
  .inline-break { grid-template-columns: 1fr; }
  .rail__track { grid-auto-columns: 72%; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .contents__list a { grid-template-columns: 2.6rem minmax(0,1fr); }
  .contents__cat { grid-column: 2; }
  .about-strip { grid-template-columns: 1fr 1fr; }
  .about-strip .frame:nth-child(3) { display: none; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav a + a { border-left: 0; border-top: 1px solid var(--rule); text-align: left; }
  .form { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .brand img { height: 38px; }
  .grid-3, .grid-4, .topics, .footer__cols { grid-template-columns: 1fr; }
  .hot__list a { grid-template-columns: 3.2rem minmax(0,1fr) 70px; }
  .hot__list a::before { font-size: 2.6rem; }
  .stamps { grid-template-columns: repeat(2, 1fr); }
  .cover__edition span:last-child { display: none; }
  .topbar .social { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .cover__slide .cover__img { transform: none; }
}

/* Pages: no drop cap, avatars in bylines */
.page-body > p:first-of-type { font-size: inherit; }
.page-body > p:first-of-type::first-letter { float: none; font-size: inherit; font-family: inherit; color: inherit; padding: 0; line-height: inherit; }
.byline .avatar { width: 44px; height: 44px; border-radius: 50%; }
.author-box .avatar { width: 72px; height: 72px; border-radius: 50%; }
.author-box h3 a:hover { color: var(--cinnabar); }
.post-nav > span { display: block; }
.mega__list .cat-item a { display: block; }

/* Galleries and captions from the existing WordPress content */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; margin: 2.4rem 0; }
.gallery figure { margin: 0; }
.gallery .frame { aspect-ratio: 3/2; }
.gallery figcaption { font-size: .8125rem; color: var(--muted); margin-top: .5rem; }
.article-body .gallery figure { margin: 0; }
.article-body img { height: auto; max-width: 100%; }
.article-body > p img, .article-body > a img { margin: 1.5rem auto; max-height: 86vh; width: auto; }
.article-body iframe, .article-body video { width: 100%; aspect-ratio: 16/9; border: 0; }
.article-body ul, .article-body ol { padding-left: 1.2rem; }
.article-body li { margin-bottom: .5rem; }
.article-body h3 { font-size: 1.45rem; margin: 2rem 0 .75rem; }
.page-body { font-size: 1.125rem; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; } }



/* The TC monogram stands in for a profile picture. The circle is the wrapper, so the
   mark itself is never clipped and its hairlines survive at small sizes. */
.avatar-mark { display: inline-grid; place-items: center; border-radius: 50%; background: var(--celadon-soft); flex: none; }
.avatar-mark img { display: block; width: auto; }
.byline .avatar-mark { width: 46px; height: 46px; }
.byline .avatar-mark img { height: 26px; }
.author-box .avatar-mark { width: 72px; height: 72px; }
.author-box .avatar-mark img { height: 42px; }

/* ---- images coming from real WordPress content ----
   Classic captions carry an inline pixel width ("width: 2010px") and galleries carry
   percentage widths. Both are ignored so nothing can run past the edge of the page. */
.article-body figure[style*="width"],
.article-body div[style*="width"] { width: auto !important; max-width: 100%; }
.article-body div.wp-caption, .article-body figure.wp-caption { width: auto !important; max-width: none !important; margin: 2.6rem 0; text-align: center; }
.article-body .wp-caption img { width: auto; height: auto; max-width: 100%; max-height: 86vh; margin: 0 auto; }
.article-body .wp-caption-text, .article-body .wp-caption p { font-size: .8125rem; color: var(--muted); margin: .7rem 0 0; text-align: center; }
.article-body img, .article-body iframe, .article-body video, .article-body embed, .article-body object {
  max-width: 100%;
}
.article-body table { width: 100%; display: block; overflow-x: auto; }
.article-body .gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 2.4rem 0; }
.article-body .gallery .gallery-item { width: auto !important; max-width: 100%; margin: 0; }
.article-body .gallery img { width: 100%; height: auto; border: 0; }
.article-body .gallery .gallery-caption { font-size: .8125rem; color: var(--muted); margin-top: .4rem; }
@media (min-width: 1180px) {
  .article-body div.wp-caption, .article-body figure.wp-caption {
    margin-left: calc(-1 * clamp(2rem, 8vw, 8rem));
    margin-right: calc(-1 * clamp(2rem, 8vw, 8rem));
  }
}
