@charset "utf-8";
/* penghu.design — architectural field journal
   ------------------------------------------------------------------------
   Rules, not boxes. Asymmetric measure. Photography sets the rhythm.
   No rounded cards, no shadows, no gradients except the hero scrim.        */

/* --- fonts ------------------------------------------------------------- */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/newsreader-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/newsreader-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 650;
  font-display: swap;
  src: url('/assets/fonts/archivo-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- tokens ------------------------------------------------------------ */
:root {
  --paper: #f1f3f4;
  --paper-hi: #fbfcfc;
  --ink: #11161a;
  --ink-2: #39424a;
  --ink-3: #626b73;
  --rule: #ccd2d6;
  --rule-soft: #e0e4e7;
  --sea: #1f566f;
  --sea-lit: #6fa8c4;
  --rust: #97452f;

  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia,
    'Songti TC', 'PMingLiU', serif;
  --sans: 'Archivo', 'Helvetica Neue', 'Segoe UI', system-ui,
    'PingFang TC', 'Microsoft JhengHei', sans-serif;

  --gutter: 1.25rem;
  --measure: 41rem;
  --rail: 17rem;

  --step: clamp(2.5rem, 5vw, 4.5rem);
}

@media (min-width: 52em) {
  :root { --gutter: 2.5rem; }
}

/* --- reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.02rem, 0.96rem + 0.28vw, 1.16rem);
  line-height: 1.62;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

::selection { background: var(--ink); color: var(--paper); }

/* --- links ------------------------------------------------------------- */
a { color: inherit; }
.prose a,
.linklist a {
  color: var(--sea);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  text-decoration-color: color-mix(in srgb, var(--sea) 40%, transparent);
}
.prose a:hover, .linklist a:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--paper-hi);
  font-family: var(--sans);
  font-size: 0.85rem;
  padding: 0.65rem 1rem;
}
.skip:focus { left: 0; }

/* --- shared type ------------------------------------------------------- */
.label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.3;
}
.lede {
  font-size: clamp(1.18rem, 1.02rem + 0.7vw, 1.5rem);
  line-height: 1.46;
  color: var(--ink-2);
}

/* --- masthead ---------------------------------------------------------- */
.masthead {
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}
.masthead__in {
  max-width: 82rem;
  margin: 0 auto;
  padding: 0.85rem var(--gutter);
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  justify-content: space-between;
}
.brand {
  font-family: var(--sans);
  font-weight: 650;
  font-size: 0.86rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--ink-3); font-weight: 400; }

.nav ul {
  display: flex;
  gap: clamp(1rem, 3vw, 2.2rem);
  align-items: baseline;
}
.nav a {
  font-family: var(--sans);
  font-size: 0.83rem;
  font-weight: 550;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.nav a:hover { border-bottom-color: var(--ink); }
.nav a[aria-current='true'] { border-bottom-color: var(--rust); }

.nav--wide { display: none; }
.nav--drop { margin-left: auto; }
.nav--drop summary {
  font-family: var(--sans);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.nav--drop summary::-webkit-details-marker { display: none; }
.nav--drop ul {
  display: block;
  position: absolute;
  left: 0; right: 0;
  z-index: 20;
  background: var(--paper-hi);
  border-bottom: 1px solid var(--ink);
  padding: 0.5rem var(--gutter) 1rem;
}
.nav--drop li { border-top: 1px solid var(--rule-soft); }
.nav--drop a { display: block; padding: 0.7rem 0; }

@media (min-width: 52em) {
  .nav--wide { display: block; }
  .nav--drop { display: none; }
}

/* --- page frame -------------------------------------------------------- */
main { display: block; }

.doc {
  display: grid;
  grid-template-columns:
    [full-start] var(--gutter)
    [wide-start text-start] minmax(0, 1fr) [text-end wide-end]
    var(--gutter) [full-end];
}
.doc > * { grid-column: text; }
.doc > .w-wide { grid-column: wide; }
.doc > .w-full { grid-column: full; }
.doc > .rail { grid-column: text; }

@media (min-width: 62em) {
  .doc {
    grid-template-columns:
      [full-start] minmax(var(--gutter), 1fr)
      [wide-start text-start] minmax(0, var(--measure)) [text-end]
      minmax(0, var(--rail))
      [wide-end] minmax(var(--gutter), 1fr) [full-end];
  }
  .doc > .rail { grid-column: text-start / wide-end; }
}

.w-full > img, .w-full > picture > img { width: 100%; }

/* --- prose ------------------------------------------------------------- */
.prose > * + * { margin-top: 1.05em; }
.prose h2 {
  font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2.05rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.012em;
  margin-top: 2.6em;
  padding-top: 0.85rem;
  border-top: 1px solid var(--ink);
  text-wrap: balance;
}
.prose h3 {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-top: 2.1em;
  color: var(--ink);
}
.prose h2 + p, .prose h3 + p { margin-top: 0.7em; }
.prose p { max-width: 39.5rem; }
.prose strong { font-weight: 600; }
.prose em { font-style: italic; }

.prose ul, .prose ol { max-width: 37.5rem; }
.prose ul > li, .prose ol > li {
  position: relative;
  padding-left: 1.5rem;
  margin-top: 0.5em;
}
.prose ul > li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.72em;
  width: 0.55rem; height: 1px;
  background: var(--ink-3);
}
.prose ol { counter-reset: n; }
.prose ol > li::before {
  counter-increment: n;
  content: counter(n);
  position: absolute;
  left: 0; top: 0.1em;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--rust);
}

.prose blockquote {
  margin: 2rem 0;
  padding-left: 1.4rem;
  border-left: 2px solid var(--rust);
  font-style: italic;
  color: var(--ink-2);
}
.prose blockquote cite {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.78rem;
  color: var(--ink-3);
}

.prose dl { max-width: 39.5rem; }
.prose dt {
  font-family: var(--sans);
  font-size: 0.83rem;
  font-weight: 600;
  margin-top: 1.1em;
}
.prose dd { color: var(--ink-2); }

.zh { font-family: var(--sans); font-weight: 400; }

/* --- figures ----------------------------------------------------------- */
figure, .fig { margin: 2.4rem 0; }
.w-full figure, figure.w-full { margin-left: 0; margin-right: 0; }
figcaption {
  font-family: var(--sans);
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--ink-2);
  margin-top: 0.7rem;
  max-width: 38rem;
}
.w-full > figcaption, .fig--full figcaption {
  padding: 0 var(--gutter);
  margin-left: auto;
  margin-right: auto;
  max-width: 68rem;
}
.credit {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-3);
  margin-top: 0.35rem;
}
.credit a { color: inherit; text-decoration: underline; text-decoration-color: var(--rule); }
.credit a:hover { text-decoration-color: currentColor; }

.fig--narrow { max-width: 26rem; }
.fig--narrow figcaption { max-width: 26rem; }

/* An archival photograph is set apart by a hairline, not by a filter: the
   image is evidence and must not be restyled. */
.fig--archival img {
  border: 1px solid var(--rule);
  background: var(--paper-hi);
}

/* --- rail notes ---------------------------------------------------------
   A set-off marginal note. It spans wider than the body measure so it reads
   as a different voice without needing a box or a tint.                    */
.rail {
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-2);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  padding: 0.7rem 0 1.1rem;
  margin: 2.6rem 0;
}
.rail b {
  display: block;
  font-weight: 600;
  color: var(--rust);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-bottom: 0.5rem;
}
.rail p { max-width: 44rem; }
.rail p + p { margin-top: 0.6rem; }
.rail a { color: var(--sea); text-decoration: underline; text-decoration-color: var(--rule); }
.rail a:hover { text-decoration-color: currentColor; }

/* --- data strip -------------------------------------------------------- */
.facts {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin: 2.6rem 0;
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
}
@media (min-width: 40em) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .facts--3 { grid-template-columns: repeat(3, 1fr); } }
.facts > div {
  padding: 1rem 1.1rem 1.1rem 0;
  border-top: 1px solid var(--rule-soft);
}
.facts > div:first-child { border-top: 0; }
@media (min-width: 40em) {
  .facts > div:nth-child(2) { border-top: 0; }
  .facts > div { border-left: 1px solid var(--rule-soft); padding-left: 1.1rem; }
  .facts > div:nth-child(odd) { border-left: 0; padding-left: 0; }
}
@media (min-width: 62em) {
  .facts--3 > div:nth-child(3) { border-top: 0; }
  .facts--3 > div { border-left: 1px solid var(--rule-soft); padding-left: 1.1rem; }
  .facts--3 > div:nth-child(odd) { border-left: 1px solid var(--rule-soft); padding-left: 1.1rem; }
  .facts--3 > div:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
}
.facts dt {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.facts dd {
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem);
  line-height: 1.15;
  margin-top: 0.3rem;
  font-variant-numeric: lining-nums tabular-nums;
}
.facts dd small {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink-2);
  margin-top: 0.35rem;
  font-variant-numeric: normal;
}

/* --- tables ------------------------------------------------------------ */
.tablewrap { overflow-x: auto; margin: 2rem 0; }
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 20rem;
  font-family: var(--sans);
  font-size: 0.85rem;
}
caption {
  text-align: left;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 0.6rem;
}
th, td {
  text-align: left;
  padding: 0.5rem 0.9rem 0.5rem 0;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}
thead th {
  border-bottom: 1px solid var(--ink);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* --- breadcrumb -------------------------------------------------------- */
.crumbs {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 1.6rem;
}
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.crumbs li + li::before { content: '/'; margin-right: 0.5rem; color: var(--rule); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* --- article head ------------------------------------------------------ */
.arthead { padding: 1.8rem 0 0; }
.arthead h1 {
  max-width: 15em;
  font-size: clamp(2.05rem, 1.4rem + 2.9vw, 3.5rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.022em;
  text-wrap: balance;
  margin-top: 0.7rem;
}
.arthead .lede { margin-top: 1.1rem; max-width: 36rem; }
.arthead__meta {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--ink-3);
  margin-top: 1.5rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}

.artbody { padding-top: 2rem; }
.section-end { padding-bottom: var(--step); }

/* --- hero (home) ------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper-hi);
  isolation: isolate;
}
.hero img {
  width: 100%;
  object-fit: cover;
  min-height: 62vh;
  max-height: 88vh;
  opacity: 0.78;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(10, 14, 17, 0.92) 0%,
    rgba(10, 14, 17, 0.62) 34%,
    rgba(10, 14, 17, 0.12) 70%,
    rgba(10, 14, 17, 0.3) 100%
  );
}
.hero__in {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 0;
  padding: 0 var(--gutter) clamp(1.6rem, 4vw, 3.2rem);
  max-width: 82rem;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(2.35rem, 1rem + 7.4vw, 6.2rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.032em;
  text-transform: uppercase;
  max-width: 14em;
}
.hero h1 em {
  font-style: normal;
  display: block;
  color: var(--sea-lit);
}
.hero__sub {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.32rem);
  line-height: 1.4;
  margin-top: clamp(0.9rem, 2vw, 1.5rem);
  max-width: 30rem;
  color: #d5dade;
}
.hero__themes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  margin-top: clamp(1.2rem, 3vw, 2.2rem);
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b9c1c7;
}

/* --- shell for home sections ------------------------------------------- */
.band { padding: var(--step) 0; }
.band--rule { border-top: 1px solid var(--ink); }
.band--dark { background: var(--ink); color: var(--paper-hi); }
.band--dark .label { color: #98a2aa; }
.band--dark .entry { border-color: rgba(255, 255, 255, 0.22); }
.band--dark .entry__no { color: var(--sea-lit); }
.band--dark .entry p { color: #c3cace; }

.shell {
  max-width: 82rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.shell--narrow { max-width: 58rem; }

.bandhead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  margin-bottom: 2.2rem;
}
.bandhead h2 {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 22em;
}
.bandhead p {
  font-family: var(--sans);
  font-size: 0.86rem;
  color: var(--ink-2);
  max-width: 26rem;
}

/* --- entry list (ruled, not carded) ------------------------------------ */
.entries { border-top: 2px solid var(--ink); }
.entry {
  border-bottom: 1px solid var(--rule);
  display: grid;
  gap: 0.35rem 1.4rem;
  padding: 1.25rem 0;
  grid-template-columns: 2.4rem 1fr;
  align-items: baseline;
}
@media (min-width: 46em) {
  .entry {
    grid-template-columns: 2.8rem minmax(0, 15rem) minmax(0, 1fr);
    gap: 0.35rem 2rem;
    padding: 1.5rem 0;
  }
}
.entry__no {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--rust);
  font-variant-numeric: tabular-nums;
}
.entry h3 {
  font-size: clamp(1.18rem, 1.02rem + 0.62vw, 1.52rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.01em;
  /* Two index titles carry a parenthetical term and cannot fit one line;
     balance the break instead of leaving an orphan word. */
  text-wrap: balance;
}
.entry h3 a { text-decoration: none; }
.entry h3 a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
.entry p {
  grid-column: 2 / -1;
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 40rem;
}
@media (min-width: 46em) {
  .entry p { grid-column: 3; }
}

/* --- theme rows (home) -------------------------------------------------- */
.themes { border-top: 1px solid currentColor; }
.theme {
  border-bottom: 1px solid var(--rule);
  padding: 1.6rem 0;
  display: grid;
  gap: 0.9rem 1.8rem;
  grid-template-columns: 1fr;
}
@media (min-width: 46em) {
  .theme { grid-template-columns: 11rem minmax(0, 1fr) 17rem; align-items: center; }
  .theme--flip { grid-template-columns: 17rem 11rem minmax(0, 1fr); }
  /* The opening reading carries more weight than the three that follow, so
     the section reads as a sequence rather than a table. */
  .theme--lead { grid-template-columns: 11rem minmax(0, 1fr) 24rem; padding: 2.1rem 0 2.3rem; }
  .theme--lead .theme__name { font-size: clamp(1.02rem, 0.86rem + 0.5vw, 1.26rem); }
  .theme--lead .theme__body p { font-size: 1.1rem; line-height: 1.5; color: var(--ink); }
  .theme--flip .theme__media { order: -1; }
}
.theme__name {
  font-family: var(--sans);
  font-size: clamp(0.92rem, 0.8rem + 0.4vw, 1.1rem);
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: keep-all;
}
.theme__body { max-width: 34rem; }
.theme__body p { font-size: 1.02rem; line-height: 1.55; color: var(--ink-2); }
.theme__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.1rem;
  margin-top: 0.7rem;
  font-family: var(--sans);
  font-size: 0.78rem;
}
.theme__links a { text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 1px; }
.theme__links a:hover { border-bottom-color: currentColor; }
.theme__media img { width: 100%; }

/* --- feature (image + text) -------------------------------------------- */
.feature {
  display: grid;
  gap: 1.4rem 2.6rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 52em) {
  .feature { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.6rem 3rem; }
  /* order alone flips the visual position but not the track sizes, which left
     the second photograph in the narrow column. Swap the tracks too. */
  .feature--right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
  .feature--right .feature__media { order: 2; }
}
.feature + .feature {
  margin-top: 2.8rem;
  padding-top: 2.8rem;
  border-top: 1px solid var(--rule);
}
.feature__body h3 {
  font-size: clamp(1.3rem, 1.05rem + 1vw, 1.8rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.014em;
}
.feature__body .label { margin-bottom: 0.8rem; }
.feature__body p { margin-top: 0.9rem; color: var(--ink-2); max-width: 34rem; }
.feature__media img { width: 100%; }

.more {
  display: inline-block;
  margin-top: 1.2rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--rust);
  padding-bottom: 3px;
}
.more:hover { border-bottom-width: 2px; }
.band--dark .more { border-bottom-color: var(--sea-lit); }

/* --- pull quote / statement -------------------------------------------- */
.statement {
  font-size: clamp(1.35rem, 1rem + 1.9vw, 2.2rem);
  line-height: 1.22;
  letter-spacing: -0.014em;
  max-width: 24em;
  text-wrap: pretty;
}
.statement em { font-style: italic; color: var(--ink-2); }
.band--dark .statement em { color: var(--paper-hi); }

/* --- link lists (read next, sources) ----------------------------------- */
.linklist { border-top: 1px solid var(--ink); margin-top: 1rem; }
.linklist li { border-bottom: 1px solid var(--rule-soft); padding: 0.85rem 0; }
.linklist a {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}
.linklist a:hover { text-decoration: underline; text-underline-offset: 0.16em; }
.linklist span {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--ink-3);
  margin-top: 0.2rem;
}

.readnext { margin-top: var(--step); }
.readnext > .label { display: block; margin-bottom: 0.4rem; }

/* --- sources ------------------------------------------------------------ */
.sources {
  margin-top: var(--step);
  padding-top: 0.9rem;
  border-top: 1px solid var(--ink);
}
/* The sources heading is an h2 inside .prose, so it needs to beat the prose
   heading rule to stay at label size. */
.sources h2.label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.16em;
  margin: 0 0 0.9rem;
  padding: 0;
  border: 0;
}
.sources ol { counter-reset: s; font-family: var(--sans); font-size: 0.82rem; line-height: 1.5; }
.sources li {
  counter-increment: s;
  position: relative;
  padding-left: 2rem;
  margin-top: 0.7rem;
  color: var(--ink-2);
}
.sources li::before {
  content: counter(s);
  position: absolute;
  left: 0; top: 0.1em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.sources a { color: var(--sea); text-decoration: underline; text-decoration-color: var(--rule); }
.sources a:hover { text-decoration-color: currentColor; }
.sources cite { font-style: italic; }

/* --- diagrams ----------------------------------------------------------- */
.diagram { margin: 2.6rem 0; }
.diagram figcaption { max-width: 40rem; }
.diagram svg { width: 100%; height: auto; background: var(--paper-hi); }
.dg-fill-a { fill: #dfe4e7; }
.dg-fill-b { fill: #eceff1; }
.dg-fill-c { fill: #c2cbd1; }
.dg-fill-sea { fill: #cfdde4; }
.dg-fill-ink { fill: var(--ink); }
.dg-fill-paper { fill: var(--paper-hi); }
.dg-stroke { stroke: var(--ink); fill: none; stroke-width: 1.2; }
.dg-stroke-2 { stroke: var(--ink); fill: none; stroke-width: 2; }
.dg-hair { stroke: var(--ink-3); fill: none; stroke-width: 0.7; }
.dg-dash { stroke: var(--ink-3); fill: none; stroke-width: 0.8; stroke-dasharray: 4 3; }
.dg-rust { stroke: var(--rust); fill: none; stroke-width: 1.4; }
.dg-t {
  font-family: var(--sans);
  font-size: 11px;
  fill: var(--ink-2);
}
.dg-t-key {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  fill: var(--ink);
  text-transform: uppercase;
}
.dg-t-num {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  fill: var(--rust);
}
.dg-mid { text-anchor: middle; }
.dg-end { text-anchor: end; }

/* --- glossary ----------------------------------------------------------- */
.gloss { border-top: 1px solid var(--ink); margin-top: 1.4rem; }
.gloss > div {
  border-bottom: 1px solid var(--rule-soft);
  padding: 1rem 0;
  display: grid;
  gap: 0.25rem 1.6rem;
  grid-template-columns: 1fr;
}
@media (min-width: 46em) {
  .gloss > div { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); }
}
.gloss dt { font-family: var(--sans); font-size: 0.92rem; font-weight: 600; }
.gloss dt i { display: block; font-style: normal; font-weight: 400; color: var(--ink-3); font-size: 0.88rem; }
.gloss dd { color: var(--ink-2); font-size: 0.98rem; }
.gloss dd a { color: var(--sea); text-decoration: underline; text-decoration-color: var(--rule); }
.xref { white-space: nowrap; }
.xref::before { content: '\2192\00a0'; text-decoration: none; }
.gloss dd a:hover { text-decoration-color: currentColor; }

/* --- 404 ---------------------------------------------------------------- */
.lost { padding: clamp(3rem, 12vh, 8rem) 0; }
.lost h1 {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-top: 0.6rem;
}
.lost p { margin-top: 1rem; color: var(--ink-2); max-width: 32rem; }

/* --- footer -------------------------------------------------------------- */
.foot {
  border-top: 1px solid var(--ink);
  margin-top: var(--step);
  padding: 1.6rem 0 2.6rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--ink-2);
}
.foot__in {
  max-width: 82rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 2.4rem;
  align-items: baseline;
  justify-content: space-between;
}
.foot__mark { font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.76rem; }
.foot ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
.foot a { text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 1px; }
.foot a:hover { border-bottom-color: currentColor; }
.foot small { color: var(--ink-3); font-size: 0.75rem; }
