/* Kae Times. Newsreader only; cool paper, slate ink, the watermark's blue. */
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Dark for everyone (Tony, 2026-11-05). The blue is the favicon's and the watermark's. */
  color-scheme: dark;
  --paper: #131b21;
  --ink: #e3ebee;
  --ink-soft: #9fb0b9;
  --rule: #2b3842;
  --wash: #1c2932;
  --blue: #c7e0e8;
  --link: #a9d0de;
  --measure: 34rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-optical-sizing: auto;
  font-size: 1.1875rem;
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--link); }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 2px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.wrap-text { max-width: calc(var(--measure) + 2rem); margin-left: auto; margin-right: auto; padding: 0 1rem; }
.wrap-wide { max-width: 48rem; margin-left: auto; margin-right: auto; padding: 0 1rem; }
@media (min-width: 48rem) { .wrap, .wrap-text, .wrap-wide { padding: 0 2rem; } .wrap-text { max-width: calc(var(--measure) + 4rem); } }

/* Masthead: the one loud thing. */
.masthead { border-bottom: 1px solid var(--rule); }
.masthead-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-top: 1.1rem; padding-bottom: 0.9rem; flex-wrap: wrap; }
.name {
  font-weight: 700;
  font-size: clamp(2.16rem, 6.3vw, 3.825rem);
  line-height: 1;
  letter-spacing: -0.025em;
  text-decoration: none;
}
.masthead nav { display: flex; gap: 1.4rem; font-size: 1.05rem; }
.masthead nav a { text-decoration: none; color: var(--ink-soft); }
.masthead nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 3px; text-underline-offset: 0.35em; }

.intro { padding-top: 2.2rem; padding-bottom: 2.4rem; display: grid; gap: 0.5rem; }
.tagline { font-style: italic; font-size: clamp(1.6rem, 3.4vw, 2.2rem); line-height: 1.15; }
.about { color: var(--ink-soft); max-width: 36rem; }

.series { font-size: 1rem; color: var(--ink-soft); margin-bottom: 0.5rem; }
.series i { color: var(--ink); }
.meta { font-size: 1rem; color: var(--ink-soft); margin-top: 0.85rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }
.by a { color: var(--ink); text-decoration: none; font-weight: 600; }
.by a:hover { text-decoration: underline; color: var(--link); }
.standfirst { font-style: italic; font-size: 1.3rem; line-height: 1.45; margin-top: 0.9rem; color: var(--ink); }

/* Lead essay */
.lead { display: grid; gap: 1.4rem; padding-bottom: 3rem; }
.lead h2 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 600; }
.lead h2 a { text-decoration: none; }
.lead h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.lead-img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (min-width: 52rem) {
  .lead { grid-template-columns: 1.15fr 1fr; gap: 2.75rem; align-items: center; }
}

.section-h { font-size: 1.45rem; font-weight: 600; padding-bottom: 0.6rem; border-bottom: 1px solid var(--rule); margin-bottom: 1.6rem; }

/* The list */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.2rem; }
.item { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.1rem; align-items: start; }
.item h3 { font-size: 1.45rem; }
.item h3 a { text-decoration: none; }
.item h3 a:hover { text-decoration: underline; }
.item .excerpt { color: var(--ink-soft); margin-top: 0.45rem; font-size: 1.05rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.item-img img { aspect-ratio: 1; object-fit: cover; }
@media (min-width: 48rem) {
  .list { grid-template-columns: 1fr 1fr; column-gap: 3rem; row-gap: 2.8rem; }
  .item { grid-template-columns: 9rem 1fr; gap: 1.3rem; }
}
.ideas { padding-bottom: 3.5rem; }

.authors { padding-bottom: 4rem; }
.authors ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.authors li { display: grid; gap: 0.15rem; align-content: start; }
.authors li a { font-size: 1.45rem; font-weight: 600; text-decoration: none; }
.authors li a:hover { text-decoration: underline; }
.authors li span { color: var(--ink-soft); }
@media (min-width: 48rem) { .authors ul { grid-template-columns: 1fr 1fr; gap: 3rem; } }

/* Article */
.article { padding-bottom: 4rem; }
.article-head { padding-top: 2.8rem; padding-bottom: 2rem; max-width: 48rem; }
.article-head .standfirst { max-width: var(--measure); }
.article h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 600; line-height: 1.06; }
.article-img { margin-top: 0; margin-bottom: 2.4rem; }
.article-img img { width: 100%; }
.body p { margin-bottom: 1.15em; hyphens: auto; }
.body p:first-child::first-letter {
  float: left; font-weight: 700; font-size: 4.6em; line-height: 0.79; padding: 0.04em 0.08em 0 0; color: var(--ink);
}
.disclaimer { margin-top: 2.6rem; }
.disclaimer p { background: var(--wash); padding: 1rem 1.15rem; font-size: 1rem; line-height: 1.5; border-left: 3px solid var(--blue); }
.disclaimer a { color: var(--link); }
.author-card { margin-top: 2.8rem; padding-top: 1.6rem; border-top: 1px solid var(--rule); color: var(--ink-soft); }
.author-name a { font-size: 1.45rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.author-card h2 { font-size: 1.1rem; color: var(--ink); margin-top: 1.6rem; margin-bottom: 0.6rem; }
.more { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.more a { color: var(--ink); }
.more time { display: block; font-size: 0.95rem; }

/* Legal notice */
.legal { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); font-size: 0.98rem; line-height: 1.55; color: var(--ink-soft); }
.legal h2 { font-size: 1.05rem; color: var(--ink); margin-bottom: 0.7rem; }
.legal p + p { margin-top: 0.7rem; }

/* Author page */
.author { padding-top: 2.8rem; padding-bottom: 4rem; }
.author h1 { font-size: clamp(2.4rem, 7vw, 3.9rem); }
.author .standfirst { color: var(--ink-soft); }
.bio { margin-top: 2rem; margin-bottom: 3rem; }
.bio p + p { margin-top: 1em; }
.essays { list-style: none; padding: 0; margin: 0; }
.essays li { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
.essays a { text-decoration: none; font-size: 1.15rem; line-height: 1.3; grid-row: span 2; }
.essays a:hover { text-decoration: underline; }
.essays .no, .essays time { font-size: 0.9rem; color: var(--ink-soft); text-align: right; white-space: nowrap; }

.footer { border-top: 1px solid var(--rule); padding: 2rem 0 3rem; color: var(--ink-soft); font-size: 1rem; }
.footer .wrap { display: grid; gap: 0.4rem; }
.footer-name { font-weight: 700; font-size: 1.6rem; color: var(--ink); letter-spacing: -0.02em; }
.footer a { color: var(--link); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* One left edge for the whole article: header, image, text and notes. */
.article .wrap-text { max-width: 48rem; }
.article .wrap-text > * { max-width: var(--measure); }
.article .body > p { max-width: var(--measure); }
.article .author-card { border-top: 0; padding-top: 0; }
.article .author-card > :first-child { border-top: 1px solid var(--rule); padding-top: 1.6rem; }

/* Authors page */
.roster { padding-top: 2.8rem; padding-bottom: 4rem; }
.roster h1 { font-size: clamp(2.4rem, 7vw, 3.9rem); }
.roster .standfirst { color: var(--ink-soft); }
.roster ul { list-style: none; margin: 2.4rem 0 0; padding: 0; }
.roster li { padding: 1.4rem 0; border-top: 1px solid var(--rule); }
.roster li:last-child { border-bottom: 1px solid var(--rule); }
.roster h2 { font-size: 1.8rem; }
.roster h2 a { text-decoration: none; }
.roster h2 a:hover { text-decoration: underline; }
.roster p { color: var(--ink-soft); margin-top: 0.35rem; }

/* Lighter weights for light-on-dark text. */
body { font-weight: 360; }
h1, h2, h3 { font-weight: 520; }
.lead h2, .article h1 { font-weight: 520; }
.by a, .author-name a, .authors li a, .section-h { font-weight: 520; }
.name { font-weight: 640; }
.footer-name { font-weight: 640; }
.body p:first-child::first-letter { font-weight: 600; }

/* The site's own pages beyond the mock */
.section-h a { text-decoration: none; }
.section-h a:hover { text-decoration: underline; }
.insights-page { padding-top: 2.8rem; }
.insights-page h1 { font-size: clamp(2.4rem, 7vw, 3.9rem); margin-bottom: 2.4rem; }
