/* Reset & base typography */

/* -----------------------------------------------------------------
   Punctuation override for serif headings.
   ---------------------------------------------------------------
   Our --font-serif uses Noto Serif TC, a CJK-first font that bakes
   wide right-bearing into Latin punctuation glyphs. That makes a
   curly apostrophe (U+2019) followed by a letter look like there's
   a literal space between them — e.g. "Who’s" rendering as "Who’ s".
   By declaring our own font-family alias whose unicode-range covers
   just the offending punctuation, Latin fallbacks (Georgia, Times)
   handle those code points while Noto Serif TC keeps everything
   else. This is invisible for non-Latin pages where the CJK glyphs
   are needed; it just stops Noto from rendering a left-quote, right-
   quote, or apostrophe with CJK whitespace.

   Code points included:
     U+2018 left single quote       ‘
     U+2019 right single quote / apostrophe  ’
     U+201C left double quote       “
     U+201D right double quote      ”
   ---------------------------------------------------------------- */
@font-face {
  font-family: 'Serif Punctuation Fallback';
  src: local('Georgia'), local('Times New Roman'), local('Times');
  unicode-range: U+2018-2019, U+201C-201D;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  background: var(--surface-1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--text-primary);
  margin: 0 0 var(--s-4);
  letter-spacing: 0.005em;
}
h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
}
h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  line-height: 1.2;
}
h3 {
  font-size: 1.35rem;
  line-height: 1.3;
}
h4 {
  font-size: 1.1rem;
  line-height: 1.4;
}
h5 {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 500;
}
h6 {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-bronze);
  font-family: var(--font-sans);
  font-weight: 600;
}

p {
  margin: 0 0 var(--s-4);
}
.editorial {
  font-family: var(--font-editorial);
  color: var(--text-muted);
}
.editorial-lede {
  font-family: var(--font-editorial);
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--text-secondary);
}
a {
  color: var(--color-bronze-bright);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease-out);
}
a:hover {
  border-bottom-color: currentColor;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--s-4);
}
@media (min-width: 720px) {
  .container {
    padding: 0 var(--s-7);
  }
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--s-4);
}

.section {
  padding: var(--s-9) 0;
}
@media (min-width: 720px) {
  .section {
    padding: var(--s-10) 0;
  }
}

.muted {
  color: var(--text-muted);
}
.faint {
  color: var(--text-faint);
}
.right {
  text-align: right;
}
.center {
  text-align: center;
}
.uppercase {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 11px;
}
.divider {
  height: 1px;
  background: var(--surface-8);
  margin: var(--s-6) 0;
  border: none;
}
.stack > * + * {
  margin-top: var(--s-4);
}
.cluster {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  align-items: center;
}
.hidden {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
