/* ─────────────────────────────────────────────
   Design tokens
   ───────────────────────────────────────────── */
:root {
  --background: #f6f3ec;
  --surface: #fffdf8;
  --surface-2: #f0ece2;
  --ink: #141a17;
  --ink-soft: #3a423d;
  --muted: #6b736e;
  --line: #e0dacd;
  --line-strong: #c9c1b0;

  --accent: #0e6b57;
  --accent-strong: #084b3e;
  --accent-2: #d08a28;

  --link: #0b5d8f;
  --link-hover: #083e61;

  --hero-1: #0e1f19;
  --hero-2: #123a30;
  --hero-3: #3a6b4f;

  --font-ui: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
    'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic UI', 'Yu Gothic',
    Meiryo, sans-serif;
  --font-display: ui-serif, Georgia, 'Times New Roman',
    'Hiragino Mincho ProN', 'Yu Mincho', 'Songti SC', serif;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --radius-full: 999px;

  --shadow-s: 0 1px 2px rgba(20, 26, 23, 0.06);
  --shadow-m: 0 10px 30px -12px rgba(20, 26, 23, 0.18);
  --shadow-l: 0 30px 60px -24px rgba(20, 26, 23, 0.35);

  --header-h: 72px;
  --shell: 1120px;
}

/* ─────────────────────────────────────────────
   Reset / base
   ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover { color: var(--link-hover); }

::selection {
  background: rgba(14, 107, 87, 0.22);
  color: var(--ink);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

.time-is-saved { display: none; }

/* ─────────────────────────────────────────────
   Layout shell
   ───────────────────────────────────────────── */
.site-shell {
  width: min(100% - 48px, var(--shell));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-s);
  font-size: 0.9rem;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus { top: 12px; }

/* ─────────────────────────────────────────────
   Site header
   ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 243, 236, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled { box-shadow: 0 6px 24px -18px rgba(20, 26, 23, 0.5); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.brand__mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--hero-3));
  box-shadow: inset 0 0 0 3.5px rgba(255, 255, 255, 0.22);
}

.brand__name {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav__link {
  padding: 8px 12px;
  border-radius: var(--radius-full);
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 550;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav__link:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.site-nav__link--rss {
  color: var(--accent-2);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.lang-switch:hover {
  border-color: var(--accent);
  color: var(--ink);
  background: var(--surface-2);
}

.lang-switch__code.is-active {
  color: var(--accent-strong);
}

.lang-switch__slash {
  color: var(--line-strong);
}

.header-search {
  display: none;
  align-items: center;
  gap: 0;
  margin-left: auto;
}

.header-search input {
  width: 190px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full) 0 0 var(--radius-full);
  background: var(--surface);
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  outline: none;
}

.header-search input:focus { border-color: var(--accent); }

.header-search button {
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-left: 0;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  background: var(--surface);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  color: var(--accent-strong);
  font-weight: 600;
}

@media (min-width: 1080px) { .header-search { display: flex; } }

/* ─────────────────────────────────────────────
   Reading progress + page chrome
   ───────────────────────────────────────────── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 150;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.reading-progress.is-visible { opacity: 1; }

/* ─────────────────────────────────────────────
   Buttons
   ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn--light {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-s);
}

.btn--light:hover { color: var(--ink); box-shadow: var(--shadow-m); }

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.btn--dark {
  background: var(--ink);
  color: #fff;
}

.btn--dark:hover { background: var(--accent-strong); color: #fff; }

.btn--outline {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.btn--outline:hover { border-color: var(--ink); color: var(--ink); }

/* ─────────────────────────────────────────────
   Hero
   ───────────────────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(92px, 12vw, 150px) 0 clamp(44px, 7vw, 84px);
  color: #fff;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg,
    rgba(10, 22, 17, 0.42) 0%,
    rgba(10, 22, 17, 0.66) 55%,
    rgba(10, 22, 17, 0.88) 100%);
}

.hero--plain {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(58, 107, 79, 0.55) 0%, transparent 60%),
    radial-gradient(900px 480px at -10% 110%, rgba(13, 27, 22, 0.9) 0%, transparent 60%),
    linear-gradient(135deg, var(--hero-1) 0%, var(--hero-2) 55%, var(--hero-3) 100%);
}

.hero--plain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.35;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 24px);
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.eyebrow--light {
  display: inline-flex;
  gap: 0;
  margin-bottom: 22px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.92);
}

.hero__statement {
  max-width: 820px;
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 2px 26px rgba(13, 27, 22, 0.4);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 46px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  list-style: none;
}

.hero__stats li {
  padding-right: 34px;
  margin-right: 34px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.hero__stats li:last-child { padding-right: 0; margin-right: 0; border-right: 0; }

.hero__stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
}

.hero__stats span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.72);
}

.hero__latest { max-width: 380px; }

.hero__latest-label {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #f3c979;
}

.hero__latest a {
  display: block;
  color: #fff;
  font-size: 1.06rem;
  font-weight: 600;
  text-decoration: none;
}

.hero__latest a:hover { color: #f3c979; }

/* ─────────────────────────────────────────────
   Section headings / latest
   ───────────────────────────────────────────── */
.latest { padding: 64px 0 84px; }

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.section-heading__kicker {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
}

.section-heading__aside {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ─────────────────────────────────────────────
   Post cards
   ───────────────────────────────────────────── */
.post-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 34px 28px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-s);
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.post-card:hover {
  box-shadow: var(--shadow-m);
  transform: translateY(-3px);
}

.post-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: block;
  background: var(--surface-2);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.post-card:hover .post-card__media img { transform: scale(1.045); }

.post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 24px;
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.post-card__title {
  margin: 10px 0 8px;
  font-size: clamp(1.28rem, 2.2vw, 1.5rem);
  line-height: 1.22;
}

.post-card__title a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 0% 1.5px;
  background-position: 0 100%;
  transition: background-size 0.25s ease, color 0.2s ease;
}

.post-card__title a:hover { color: var(--accent-strong); background-size: 100% 1.5px; }

.post-card__excerpt {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.post-card__read {
  flex-shrink: 0;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--accent-strong);
  text-decoration: none;
}

.post-card__read:hover { color: var(--accent); }

.post-card__read--bare { margin-top: auto; }
.post-card__footer--bare { justify-content: flex-end; }
.post-card--text .post-card__body { padding-top: 26px; }
.post-card--text .post-card__title { font-size: clamp(1.4rem, 2.4vw, 1.72rem); }

/* Latest story leads the grid as a full-width editorial feature */
.post-card--feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: stretch;
}

.post-card--feature .post-card__media {
  aspect-ratio: auto;
  min-height: 340px;
}

.post-card--feature .post-card__body {
  padding: clamp(26px, 4vw, 48px);
}

.post-card--feature .post-card__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.16;
}

.post-card--feature .post-card__excerpt {
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 62ch;
}

/* ─────────────────────────────────────────────
   Tags / pills
   ───────────────────────────────────────────── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  padding: 3px 12px;
  background: var(--background);
  font-size: 0.76rem;
  line-height: 1.7;
  color: var(--accent-strong);
}

.tags li a {
  color: inherit;
  text-decoration: none;
}

.tags li a:hover { color: var(--accent); }

.tags--inline { margin-top: 22px; }

.tags--inline li {
  background: var(--surface);
  border-color: var(--line-strong);
  padding: 5px 14px;
  font-size: 0.82rem;
}

/* ─────────────────────────────────────────────
   Archive hero (category / search)
   ───────────────────────────────────────────── */
.archive-hero {
  padding: 72px 0 24px;
}

.archive-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  letter-spacing: -0.02em;
}

.archive-hero__dek {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.archive-hero--search h1 { margin-bottom: 30px; }

.archive-hero + .latest { padding-top: 40px; }

/* ─────────────────────────────────────────────
   Search form
   ───────────────────────────────────────────── */
.search-form {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: min(100%, 640px);
  margin: 0 0 60px;
}

.search-form__icon {
  display: none;
}

.search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full) 0 0 var(--radius-full);
  background: var(--surface);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  outline: none;
}

.search-form input[type="search"]:focus { border-color: var(--accent); }

.search-form button {
  padding: 14px 24px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
}

.search-form button:hover { background: var(--accent-strong); }

/* ─────────────────────────────────────────────
   Article / post body
   ───────────────────────────────────────────── */
.article {
  padding: 40px 0 30px;
}

.article--page { max-width: 820px; }

.back-link {
  display: inline-block;
  margin: 44px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover { color: var(--accent-strong); }

/* Full-width header used by the page view */
.article-header {
  max-width: 820px;
  margin: 0 auto 40px;
}

.article-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
}

.article-header__title {
  margin: 20px 0 0;
  font-size: clamp(2.2rem, 6.5vw, 4.1rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.article-header__dek {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-size: 1.28rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* In-column header used by the post view */
.article-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.article-head__title {
  margin: 16px 0 0;
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.018em;
}

.article-head .tags--inline { margin-top: 16px; }

.article-hero {
  margin: 36px 0 0;
}

.article-hero img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
}

.article-hero figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

/* ─────────────────────────────────────────────
   Legacy WordPress content
   ───────────────────────────────────────────── */
.legacy-content {
  max-width: 70ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.02rem + 0.25vw, 1.19rem);
  line-height: 1.95;
  letter-spacing: 0.005em;
  overflow-wrap: break-word;
}

.legacy-content p,
.legacy-content ul,
.legacy-content ol,
.legacy-content blockquote {
  margin: 0 0 1.6em;
}

.legacy-content h2,
.legacy-content h3,
.legacy-content h4 {
  margin: 2.3em 0 0.85em;
  line-height: 1.28;
  letter-spacing: -0.01em;
  scroll-margin-top: 96px;
}

.legacy-content h2 { font-size: 1.72em; }
.legacy-content h3 { font-size: 1.34em; }
.legacy-content h4 { font-size: 1.14em; }

.legacy-content a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.legacy-content a:hover { color: var(--accent-strong); }

.legacy-content ul,
.legacy-content ol { padding-left: 1.45em; }

.legacy-content li { margin-bottom: 0.45em; }

.legacy-content li > ul,
.legacy-content li > ol { margin-top: 0.45em; }

.legacy-content blockquote {
  position: relative;
  margin: 2em 0;
  padding: 4px 0 4px 26px;
  border-left: 4px solid var(--accent);
  color: var(--ink-soft);
  font-size: 1.02em;
  font-style: italic;
}

.legacy-content blockquote p:last-child { margin-bottom: 0; }

.legacy-content blockquote.twitter-tweet {
  font-style: normal;
  line-height: 1.9;
}

.legacy-content blockquote.twitter-tweet p {
  margin: 0 0 1.2em;
  line-height: 1.9;
}

.legacy-content blockquote.twitter-tweet a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.legacy-content img {
  margin: 30px auto;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
}

.legacy-content figure {
  margin: 34px auto;
}

.legacy-content figure img { margin: 0 auto; }

.legacy-content figcaption,
.legacy-content .wp-caption-text {
  margin-top: 12px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
}

.legacy-content hr {
  border: 0;
  border-top: 1px solid var(--line-strong);
  margin: 3.2em auto;
  max-width: 140px;
}

.legacy-content pre {
  overflow-x: auto;
  background: var(--ink);
  color: #eef2ee;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1.2rem 1.4rem;
  font-size: 0.86rem;
  line-height: 1.65;
}

.legacy-content code {
  background: var(--surface-2);
  padding: 0.12em 0.38em;
  border-radius: 4px;
  font-size: 0.86em;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

.legacy-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.legacy-content kbd {
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 0.08em 0.4em;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.85em;
}

.legacy-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.6em 0;
  font-family: var(--font-ui);
  font-size: 0.92rem;
}

.legacy-content th,
.legacy-content td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.legacy-content th { background: var(--surface-2); font-weight: 650; }

.legacy-content tr:nth-child(even) td { background: rgba(246, 243, 236, 0.55); }

.legacy-content details {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 16px 20px;
  margin: 1.6em 0;
  background: var(--surface);
}

.legacy-content summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--accent-strong);
}

.legacy-content iframe {
  display: block;
  max-width: 100%;
  margin: 1.8em auto;
  border-radius: var(--radius-m);
}

/* ─────────────────────────────────────────────
   Article reading layout (content + TOC)
   ───────────────────────────────────────────── */
.article-reading {
  display: grid;
  grid-template-columns: minmax(0, 780px) 300px;
  gap: 40px;
  justify-content: center;
  align-items: start;
  margin-top: 0;
}

.article-rail {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 32px;
}

.article-ad {
  overflow: hidden;
  text-align: center;
}

.article-ad__label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-ad--sidebar {
  width: 300px;
  min-height: 626px;
}

.article-ad--footer {
  width: min(100%, 780px);
  min-height: 276px;
  margin: 56px auto 0;
}

.article-reading__main {
  min-width: 0;
}

.article-toc {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  border-left: 1px solid var(--line);
  padding: 4px 0 4px 22px;
  margin: 4px 0 0;
}

.article-toc summary {
  margin-bottom: 12px;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  cursor: pointer;
  list-style: none;
}

.article-toc summary::-webkit-details-marker { display: none; }

.article-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.article-toc a {
  display: block;
  padding: 7px 10px;
  border-radius: var(--radius-s);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.article-toc a:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.article-toc a.is-active {
  color: var(--accent-strong);
  border-left-color: var(--accent);
  background: rgba(14, 107, 87, 0.07);
}

.article-toc .article-toc__sub a {
  padding-left: 22px;
  font-size: 0.85rem;
}

/* WordPress image alignment classes (compatibility) */
.alignleft  { float: left;  margin: 0.4em 1.4em 1em 0; }
.alignright { float: right; margin: 0.4em 0 1em 1.4em; }
.aligncenter { display: block; margin: 1.4em auto; }
.alignnone  { float: none; }

.wp-caption {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
  padding: 8px;
}

.wp-caption-text,
.wp-caption p {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

/* size-* classes emitted by WordPress */
.size-thumbnail { max-width: 150px; }
.size-medium    { max-width: 300px; }
.size-large     { max-width: 640px; }
.size-full      { max-width: 100%; }

/* ─────────────────────────────────────────────
   Article tags / share
   ───────────────────────────────────────────── */
.article-tags {
  margin: 48px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.article-tags__label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.article-share {
  margin: 34px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.article-share__label {
  color: var(--muted);
  font-size: 0.86rem;
}

.article-share__links {
  display: flex;
  gap: 10px;
}

.article-share__links a {
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.article-share__links a:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

/* ─────────────────────────────────────────────
   Post pagination (prev / next)
   ───────────────────────────────────────────── */
.post-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 820px;
  margin: 54px auto 90px;
}

.post-pagination__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.post-pagination__item:hover {
  box-shadow: var(--shadow-m);
  transform: translateY(-2px);
  color: var(--ink);
}

.post-pagination__item--next { text-align: right; }

.post-pagination__label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.post-pagination__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.3;
}

/* ─────────────────────────────────────────────
   Comments
   ───────────────────────────────────────────── */
.comments {
  margin: 54px 0 0;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.comments__heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.comments__heading h2 {
  margin: 0;
  font-size: 1.6rem;
}

.comments__count {
  color: var(--muted);
  font-size: 0.85rem;
}

.comments__list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
}

.comment {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.comment:last-child { border-bottom: 0; }

.comment__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.84rem;
}

.comment__author {
  font-weight: 700;
  color: var(--ink-soft);
}

.comment__body {
  margin: 10px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.85;
}

.comments__empty {
  margin: 22px 0 0;
  color: var(--muted);
}

.comment-flash {
  margin: 22px 0 0;
  padding: 12px 16px;
  border-radius: var(--radius-s);
  font-size: 0.92rem;
  border: 1px solid;
}

.comment-flash--success {
  background: #e6f2ea;
  border-color: #bfdcc9;
  color: #155a34;
}

.comment-flash--error {
  background: #f9e7e4;
  border-color: #f0c8c1;
  color: #7c2b21;
}

.comment-form-wrap {
  margin: 30px 0 0;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
}

.comment-form__title {
  margin: 0 0 18px;
  font-size: 1.15rem;
}

.comment-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.comment-form__field label {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--ink-soft);
}

.comment-form__field input,
.comment-form__field textarea {
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.96rem;
}

.comment-form__field input:focus,
.comment-form__field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.comment-form__field textarea {
  resize: vertical;
}

.comment-form__row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.comment-form__field + .comment-form__field { margin-top: 18px; }

.comment-form__row--split .comment-form__field + .comment-form__field { margin-top: 0; }

.comment-form__captcha {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 18px;
  align-items: start;
  margin: 22px 0;
  padding: 18px;
  background: var(--surface-2);
  border-radius: var(--radius-m);
}

.captcha-image {
  display: block;
  width: 200px;
  height: 56px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
}

.comment-form__captcha .comment-form__field {
  grid-column: 1 / -1;
  margin-top: 0;
}

.captcha-refresh {
  align-self: center;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--accent-strong);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
}

.captcha-refresh:hover {
  border-color: var(--accent);
  background: var(--surface);
}

.comment-form__hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.comment-form__note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ─────────────────────────────────────────────
   Topics cloud + subscribe band
   ───────────────────────────────────────────── */
.topics {
  padding: 56px 0 84px;
  border-top: 1px solid var(--line);
}

.topic-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topic-cloud li a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-s);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.topic-cloud li a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-m);
  color: var(--accent-strong);
}

.topic-cloud__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
}

.topic-cloud__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 7px;
  border-radius: var(--radius-full);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
}

.topic-cloud__badge--ja {
  background: var(--accent-2);
}

.topic-cloud__badge--en {
  background: var(--ink-soft);
}

.subscribe {
  padding: 64px 0;
  background: linear-gradient(135deg, var(--hero-1), var(--hero-2));
  color: #fff;
}

.subscribe__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.subscribe .section-heading__kicker { color: #f3c979; }

.subscribe h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
}

/* ─────────────────────────────────────────────
   Pagination / empty state
   ───────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 40px 0 0;
  font-size: 0.9rem;
}

.pagination a {
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: none;
}

.pagination a:hover { color: var(--accent-strong); }

.pagination span {
  color: var(--muted);
  font-size: 0.86rem;
}

.empty-state {
  padding: 3rem 0;
  color: var(--muted);
}

/* ─────────────────────────────────────────────
   Error hero
   ───────────────────────────────────────────── */
.error-hero {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 8vw, 96px);
  padding: clamp(70px, 12vw, 140px) 0 clamp(80px, 12vw, 160px);
}

.error-hero__panel {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 36px;
  background:
    radial-gradient(130% 130% at 85% 0%, rgba(208, 138, 40, 0.28) 0%, transparent 52%),
    radial-gradient(120% 120% at 0% 100%, rgba(14, 107, 87, 0.35) 0%, transparent 55%),
    linear-gradient(160deg, var(--hero-2) 0%, var(--hero-1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-l);
  overflow: hidden;
}

.error-hero__panel::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 26px;
}

.error-hero__status {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 7.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
  text-shadow: 0 14px 44px rgba(0, 0, 0, 0.4);
}

.error-hero__panel::after {
  content: "";
  position: absolute;
  bottom: -34px;
  right: -34px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(243, 201, 121, 0.9);
  filter: blur(40px);
}

.error-hero__body { min-width: 0; }

.error-hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5.5vw, 4.1rem);
  letter-spacing: -0.02em;
}

.error-hero .eyebrow { color: var(--accent); }

.error-hero__dek {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.error-hero__dek code {
  padding: 0.08em 0.45em;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.85em;
  word-break: break-all;
}

.error-hero .hero__actions { margin-top: 34px; }

/* ─────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────── */
.site-footer {
  margin-top: 0;
  padding: 64px 0 0;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 44px;
  padding-bottom: 48px;
}

.site-footer .brand { color: #fff; }

.site-footer__intro p {
  max-width: 380px;
  margin: 16px 0 0;
  font-size: 0.92rem;
  line-height: 1.65;
}

.site-nav--footer {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-left: 0;
}

.site-nav--footer .site-nav__link {
  color: rgba(255, 255, 255, 0.72);
}

.site-nav--footer .site-nav__link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.site-nav--footer .site-nav__link--rss { color: #f3c979; }

.site-nav--footer .site-nav__link--legal {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
}

.site-footer__bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer__bottom p { margin: 0; }

/* ─────────────────────────────────────────────
   Responsive
   Tablet (<1025px) rules live in tablet.css
   Mobile  (<=600px) rules live in mobile.css
   Both are linked from the layout with media queries.
   ───────────────────────────────────────────── */

/* ─────────────────────────────────────────────
   Reduced motion
   ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
/* ─────────────────────────────────────────────
   Home page — editorial landing experience
   ───────────────────────────────────────────── */
.home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 7vw, 92px) 0 clamp(58px, 7vw, 88px);
  background:
    radial-gradient(900px 460px at 94% 2%, rgba(208, 138, 40, 0.10), transparent 62%),
    radial-gradient(700px 420px at -10% 100%, rgba(14, 107, 87, 0.08), transparent 65%),
    var(--background);
  border-bottom: 1px solid var(--line);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  background-image: radial-gradient(rgba(20, 26, 23, 0.11) 0.7px, transparent 0.7px);
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 52%);
  mask-image: linear-gradient(90deg, #000, transparent 52%);
}

.home-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: clamp(42px, 6vw, 84px);
  align-items: center;
}

.home-hero__grid--solo { grid-template-columns: minmax(0, 720px); }

.home-hero__intro { min-width: 0; }

.home-hero__eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.home-hero__title {
  max-width: 13.5ch;
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  line-height: 0.99;
  letter-spacing: -0.035em;
}

.home-search {
  width: min(100%, 560px);
  margin-top: clamp(28px, 4vw, 42px);
}

.home-search__label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-search__control {
  display: flex;
  min-height: 52px;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow-s);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-search__control:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 107, 87, 0.10), var(--shadow-s);
}

.home-search input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
}

.home-search input::placeholder { color: #8d948f; }

.home-search button {
  flex-shrink: 0;
  padding: 9px 16px;
  border: 0;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 0.15s ease, transform 0.15s ease;
}

.home-search button:hover { background: var(--accent-strong); }
.home-search button:active { transform: translateY(1px); }

.home-hero__utility {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
}

.home-hero__jump {
  color: var(--accent-strong);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.home-hero__jump:hover { color: var(--accent); }
.home-hero__jump--muted { color: var(--muted); }

.home-stats {
  display: flex;
  gap: 28px;
  margin: 36px 0 0;
}

.home-stats > div {
  display: grid;
  grid-template-areas: "value" "label";
  gap: 2px;
}

.home-stats dt {
  grid-area: label;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-stats dd {
  grid-area: value;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.home-topic-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.home-topic-shortcuts a {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: rgba(255, 253, 248, 0.7);
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
}

.home-topic-shortcuts a:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: var(--surface);
}

.home-feature {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(20, 26, 23, 0.10);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 28px 70px -38px rgba(20, 26, 23, 0.55);
}

.home-feature__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--hero-2);
}

.home-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.home-feature:hover .home-feature__media img { transform: scale(1.025); }

.home-feature__body { padding: clamp(24px, 3vw, 34px); }
.home-feature--text .home-feature__body { padding: clamp(34px, 5vw, 58px); }
.home-feature--text .home-feature__title { max-width: 18ch; font-size: clamp(2rem, 4vw, 3.4rem); }
.home-feature--text .home-feature__excerpt { max-width: 72ch; -webkit-line-clamp: 4; }

.home-feature__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.home-feature__label {
  margin-right: 2px;
  color: var(--accent-strong);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-feature__title {
  margin: 12px 0 0;
  font-size: clamp(1.65rem, 2.7vw, 2.55rem);
  line-height: 1.12;
}

.home-feature__title a {
  color: var(--ink);
  text-decoration: none;
}

.home-feature__title a:hover { color: var(--accent-strong); }

.home-feature__excerpt {
  display: -webkit-box;
  max-width: 66ch;
  margin: 14px 0 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.home-feature__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.home-feature__tags { min-width: 0; }

.home-feature__read {
  flex-shrink: 0;
  color: var(--accent-strong);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.home-feature__read:hover { color: var(--accent); }

.home-latest {
  padding: clamp(58px, 7vw, 84px) 0 clamp(70px, 8vw, 104px);
  background: var(--surface);
}

.home-section-heading {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.home-post-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 24px;
}

.home-post-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.home-post-card:hover {
  box-shadow: none;
  transform: none;
}

.home-post-card .post-card__media {
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(20, 26, 23, 0.06);
}

.home-post-card .post-card__body { padding: 18px 0 0; }
.home-post-card.post-card--text {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--background);
}
.home-post-card.post-card--text .post-card__body { padding: 0; }
.home-post-card .post-card__title { font-size: clamp(1.18rem, 1.7vw, 1.42rem); }

.home-post-card .post-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home-post-card .post-card__footer {
  align-items: flex-end;
  padding-top: 14px;
}

.home-topics {
  padding: clamp(58px, 7vw, 84px) 0;
  background: var(--background);
  border-top: 0;
}

.home-topics__layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 74px);
  align-items: start;
}

.home-topics__heading {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: block;
  margin: 0;
}

.home-topic-cloud {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-topic-cloud li a {
  width: 100%;
  min-height: 58px;
  padding: 12px 14px 12px 16px;
  border-radius: 14px;
  box-shadow: none;
}

.home-topic-cloud li a:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-s);
}

.home-topic-cloud .topic-cloud__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-topic-cloud .topic-cloud__badge { margin-left: auto; }
.home-topic-cloud .topic-cloud__count { background: var(--surface-2); color: var(--ink-soft); }

.home-subscribe {
  position: relative;
  overflow: hidden;
  padding: clamp(58px, 7vw, 82px) 0;
  background:
    radial-gradient(600px 280px at 100% 0%, rgba(208, 138, 40, 0.25), transparent 62%),
    linear-gradient(135deg, #0d1b16, #103a30);
}

.home-subscribe::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -150px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 50%;
  box-shadow: 0 0 0 44px rgba(255,255,255,0.025), 0 0 0 88px rgba(255,255,255,0.018);
  pointer-events: none;
}

.home-subscribe__inner {
  position: relative;
  z-index: 1;
}

.home-subscribe .btn--light {
  padding-inline: 24px;
  box-shadow: none;
}
