/* Column term page — magazine opening spread.
   Applies to /columns/<slug>/ rendered by layouts/columns/term.html
*/

.column-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

/* ── Masthead ───────────────────────────────────────────────────── */

.column-masthead {
  text-align: center;
  padding: 2rem 0 2.4rem;
}
.column-masthead__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.column-masthead__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 0.35rem;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-ink, #1a1c1b);
  opacity: 0.5;
}
.column-eyebrow-rule {
  display: inline-block;
  width: 2.4rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.column-masthead__title {
  font-family: var(--font-display, 'Fraunces', 'Georgia', serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin: 0;
  color: var(--color-ink, #1a1c1b);
  letter-spacing: -0.01em;
}
:lang(zh) .column-masthead__title {
  font-family: 'Noto Serif SC', 'Source Han Serif SC', 'PingFang SC', var(--font-body, system-ui), serif;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.column-masthead__subtitle {
  font-family: var(--font-display, 'Fraunces', 'Georgia', serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--color-ink, #1a1c1b);
  opacity: 0.7;
  margin: 0.2rem 0 0;
  line-height: 1.5;
  max-width: 32em;
}
:lang(zh) .column-masthead__subtitle {
  font-family: 'Noto Serif SC', 'Source Han Serif SC', 'PingFang SC', var(--font-body, system-ui), serif;
  font-style: normal;
  letter-spacing: 0.015em;
  opacity: 0.65;
}
.column-masthead__meta {
  margin: 0.95rem 0 0;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-ink, #1a1c1b);
  opacity: 0.45;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.column-meta-sep {
  opacity: 0.5;
}

/* ── Intro (standfirst) ─────────────────────────────────────────── */

.column-intro {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.2rem;
  margin: 1.2rem auto 2.6rem;
  padding: 0.4rem 0;
  max-width: 620px;
}
.column-intro__rule {
  margin-top: 0.7rem;
  width: 100%;
  height: 1px;
  background: var(--color-ink, #1a1c1b);
  opacity: 0.35;
}
.column-intro__body {
  font-family: var(--font-display, 'Fraunces', 'Georgia', serif);
  font-weight: 400;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--color-ink, #1a1c1b);
  opacity: 0.85;
}
:lang(zh) .column-intro__body {
  font-family: 'Noto Serif SC', 'Source Han Serif SC', 'PingFang SC', var(--font-body, system-ui), serif;
  font-size: 0.98rem;
  line-height: 1.92;
  letter-spacing: 0.012em;
}
.column-intro__body p:first-child::first-letter {
  font-family: var(--font-display, 'Fraunces', 'Georgia', serif);
  font-size: 3.2rem;
  font-weight: 500;
  float: left;
  line-height: 1;
  padding: 0.05em 0.08em 0 0;
  color: var(--color-accent, #862122);
}
:lang(zh) .column-intro__body p:first-child::first-letter {
  font-family: 'Noto Serif SC', 'Source Han Serif SC', 'PingFang SC', serif;
  font-size: 2.8rem;
  padding-right: 0.12em;
}
.column-intro__body p {
  margin: 0 0 1.1em;
}
.column-intro__body p:last-child {
  margin-bottom: 0;
}

/* ── TOC heading ─────────────────────────────────────────────────── */

.column-toc {
  margin-top: 2.2rem;
}
.column-toc__head {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin: 0 0 1.4rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid color-mix(in oklab, var(--color-ink, #1a1c1b) 16%, transparent);
}
.column-toc__heading {
  font-family: var(--font-display, 'Fraunces', 'Georgia', serif);
  font-weight: 500;
  font-size: 1.15rem;
  margin: 0;
  color: var(--color-ink, #1a1c1b);
  letter-spacing: 0.005em;
}
:lang(zh) .column-toc__heading {
  font-family: 'Noto Serif SC', 'Source Han Serif SC', 'PingFang SC', var(--font-body, system-ui), serif;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.column-toc__heading-en {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-ink, #1a1c1b);
  opacity: 0.4;
}

/* ── Entry card ─────────────────────────────────────────────────── */

.column-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.column-entry {
  margin: 0;
  border-bottom: 1px solid color-mix(in oklab, var(--color-ink, #1a1c1b) 9%, transparent);
}
.column-entry:last-child {
  border-bottom: 0;
}
.column-entry__link {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: 1.4rem;
  padding: 1.8rem 0.4rem;
  align-items: start;
  text-decoration: none;
  color: inherit;
  transition: background-color 220ms ease, padding 220ms ease;
}
.column-entry__link:hover,
.column-entry__link:focus-visible {
  background: color-mix(in oklab, var(--color-accent, #862122) 3.5%, transparent);
  padding-left: 0.9rem;
  outline: none;
}
.column-entry__link:hover .column-entry__arrow,
.column-entry__link:focus-visible .column-entry__arrow {
  opacity: 1;
  transform: translateX(4px);
  color: var(--color-accent, #862122);
}
.column-entry__link:hover .column-entry__title,
.column-entry__link:focus-visible .column-entry__title {
  color: var(--color-accent, #862122);
}

.column-entry__num {
  font-family: var(--font-display, 'Fraunces', 'Georgia', serif);
  font-feature-settings: "lnum", "tnum";
  font-weight: 400;
  font-size: 3.4rem;
  line-height: 0.92;
  color: var(--color-ink, #1a1c1b);
  opacity: 0.2;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  transition: color 220ms ease, opacity 220ms ease;
  padding-top: 0.18rem;
}
.column-entry__link:hover .column-entry__num,
.column-entry__link:focus-visible .column-entry__num {
  color: var(--color-accent, #862122);
  opacity: 0.7;
}
.column-entry__body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}
.column-entry__title {
  font-family: var(--font-display, 'Fraunces', 'Georgia', serif);
  font-weight: 500;
  font-size: 1.32rem;
  line-height: 1.32;
  margin: 0;
  color: var(--color-ink, #1a1c1b);
  letter-spacing: -0.005em;
  transition: color 180ms ease;
}
:lang(zh) .column-entry__title {
  font-family: 'Noto Serif SC', 'Source Han Serif SC', 'PingFang SC', var(--font-body, system-ui), serif;
  font-weight: 500;
  font-size: 1.24rem;
  line-height: 1.5;
  letter-spacing: 0.005em;
}
.column-entry__desc {
  margin: 0;
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--color-ink, #1a1c1b);
  opacity: 0.62;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
:lang(zh) .column-entry__desc {
  font-family: 'PingFang SC', 'Hiragino Sans GB', var(--font-body, system-ui), sans-serif;
  font-size: 0.9rem;
  line-height: 1.7;
  letter-spacing: 0.005em;
}
.column-entry__meta {
  margin: 0.2rem 0 0;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink, #1a1c1b);
  opacity: 0.42;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.column-entry__meta-sep {
  opacity: 0.5;
}
.column-entry__arrow {
  width: 22px;
  height: 22px;
  color: var(--color-ink, #1a1c1b);
  opacity: 0.35;
  margin-top: 1.2rem;
  transition: opacity 220ms ease, transform 220ms ease, color 220ms ease;
}

/* ── Footer ─────────────────────────────────────────────────────── */

.column-footer {
  margin-top: 3.2rem;
  text-align: center;
}
.column-footer__rule {
  width: 60px;
  height: 1px;
  background: var(--color-ink, #1a1c1b);
  opacity: 0.3;
  margin: 0 auto 1rem;
}
.column-footer__note {
  margin: 0;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-ink, #1a1c1b);
  opacity: 0.4;
}

/* ── Mobile ──────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .column-page {
    padding: 1.5rem 1rem 3rem;
  }
  .column-masthead {
    padding: 1rem 0 1.5rem;
  }
  .column-masthead__eyebrow {
    font-size: 0.6rem;
    gap: 0.55rem;
  }
  .column-eyebrow-rule {
    width: 1.5rem;
  }
  .column-intro {
    grid-template-columns: 1.6rem 1fr;
    gap: 0.85rem;
    margin: 0.6rem 0 1.8rem;
  }
  .column-intro__rule {
    margin-top: 0.85rem;
  }
  .column-entry__link {
    grid-template-columns: 3rem 1fr;
    gap: 0.85rem;
    padding: 1.2rem 0.3rem;
  }
  .column-entry__link:hover {
    padding-left: 0.5rem;
  }
  .column-entry__num {
    font-size: 2.2rem;
  }
  .column-entry__arrow {
    display: none;
  }
  .column-entry__title {
    font-size: 1.1rem;
  }
  :lang(zh) .column-entry__title {
    font-size: 1.05rem;
  }
}

/* ── Dark ────────────────────────────────────────────────────────── */

.dark .column-masthead__title,
.dark .column-toc__heading,
.dark .column-entry__title,
body.dark .column-masthead__title,
body.dark .column-toc__heading,
body.dark .column-entry__title {
  color: var(--primary, #e8e6e3);
}
.dark .column-toc__head,
body.dark .column-toc__head {
  border-bottom-color: color-mix(in oklab, var(--primary, #e8e6e3) 18%, transparent);
}
.dark .column-entry,
body.dark .column-entry {
  border-bottom-color: color-mix(in oklab, var(--primary, #e8e6e3) 12%, transparent);
}
