@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/archivo-normal-600-1.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: 700;
  font-display: swap;
  src: url('/assets/fonts/archivo-normal-700-2.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: 800;
  font-display: swap;
  src: url('/assets/fonts/archivo-normal-800-3.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: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/public-sans-normal-400-1.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: 'Public Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/public-sans-normal-600-2.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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-normal-400-1.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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-normal-500-2.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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-normal-600-3.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;
}

:root {

  --ink: #1a1917;
  --ink-2: #46443e;
  --muted: #6e6c64;
  --paper: #f4f4f1;
  --surface: #ffffff;
  --surface-2: #faf9f6;


  --graphite: #24231e;
  --graphite-2: #35332c;
  --graphite-3: #4a4740;
  --rule: #dfded8;
  --rule-strong: #c7c5bb;


  --fde: #90784c;
  --fde-deep: #6b5837;
  --fde-bright: #b39a68;
  --fde-wash: #f1ece0;


  --notice: #9a6520;
  --notice-wash: #fbf3e6;
  --notice-rule: #e8d5b0;


  --display: 'Archivo', ui-sans-serif, system-ui, sans-serif;
  --body: 'Public Sans', ui-sans-serif, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;


  --t--1: clamp(0.78rem, 0.76rem + 0.09vw, 0.84rem);
  --t-0: clamp(1rem, 0.97rem + 0.14vw, 1.09rem);
  --t-1: clamp(1.2rem, 1.13rem + 0.34vw, 1.42rem);
  --t-2: clamp(1.44rem, 1.31rem + 0.63vw, 1.85rem);
  --t-3: clamp(1.73rem, 1.51rem + 1.08vw, 2.4rem);
  --t-4: clamp(2.07rem, 1.72rem + 1.75vw, 3.13rem);


  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;
  --s-9: 6rem;


  --r-sm: 3px;
  --r: 6px;
  --r-lg: 10px;

  --shadow-1: 0 1px 2px rgb(36 35 30 / 6%), 0 1px 1px rgb(36 35 30 / 4%);
  --shadow-2: 0 2px 4px rgb(36 35 30 / 6%), 0 8px 20px rgb(36 35 30 / 8%);

  --measure: 68ch;
  --wide: 1180px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-0);
  line-height: 1.65;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.018em;
  text-wrap: balance;
  margin: 0 0 var(--s-4);
  color: var(--ink);
}

h1 {
  font-size: var(--t-4);
  font-weight: 800;
  letter-spacing: -0.028em;
}
h2 {
  font-size: var(--t-2);
  margin-top: var(--s-7);
}
h3 {
  font-size: var(--t-1);
  margin-top: var(--s-6);
}
h4,
h5,
h6 {
  font-size: var(--t-0);
  margin-top: var(--s-5);
  letter-spacing: 0;
}

p,
ul,
ol,
dl,
figure,
blockquote,
table {
  margin: 0 0 var(--s-5);
}

a {
  color: var(--fde-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  transition: color 0.15s var(--ease);
}

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

:focus-visible {
  outline: 2px solid var(--fde-deep);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

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

strong {
  font-weight: 600;
}

code,
kbd,
samp {
  font-family: var(--mono);
  font-size: 0.9em;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: var(--s-7) 0;
}

ul,
ol {
  padding-left: 1.35rem;
}

li + li {
  margin-top: var(--s-2);
}

blockquote {
  border-left: 3px solid var(--fde);
  padding-left: var(--s-4);
  color: var(--ink-2);
}

.table-scroll {
  overflow-x: auto;
  margin: 0 0 var(--s-5);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: var(--surface);

  background-image: linear-gradient(to right, transparent calc(100% - 24px), rgb(36 35 30 / 4%));
  background-attachment: local;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 0;
  font-size: var(--t--1);
}

thead th {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink);
  background: var(--surface-2);
  padding: var(--s-3) var(--s-4);
  border-bottom: 2px solid var(--rule-strong);
  white-space: nowrap;
  position: sticky;
  top: 0;
}

tbody th,
tbody td {
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  text-align: left;
}

tbody th[scope='row'],
tbody tr > *:first-child {
  font-weight: 600;
  color: var(--ink);
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: var(--fde-wash);
}

.spec td:not(:first-child) {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums slashed-zero;
  color: var(--ink-2);
}

caption {
  caption-side: bottom;
  padding-top: var(--s-3);
  font-size: var(--t--1);
  color: var(--muted);
  text-align: left;
}

.wrap {
  width: min(100% - 2 * var(--s-4), var(--wide));
  margin-inline: auto;
}

@media (min-width: 40em) {
  .wrap {
    width: min(100% - 2 * var(--s-6), var(--wide));
  }
}

.prose {
  max-width: var(--measure);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--graphite);
  color: #fff;
  padding: var(--s-3) var(--s-4);
  z-index: 100;
  border-radius: 0 0 var(--r) 0;
}

.skip:focus {
  left: 0;
}

.masthead {
  background: var(--graphite);
  color: #eceae3;
  border-bottom: 3px solid var(--fde);
}

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

.masthead__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-4) 0;
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--t-1);
  letter-spacing: -0.02em;
  line-height: 1;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.wordmark__sub {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fde-bright);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  display: block;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  font-size: var(--t--1);
  font-weight: 600;
  color: #d6d3c9;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--graphite-2);
  color: #fff;
}

.nav a[aria-current='page'] {
  color: #fff;
  background: var(--graphite-3);
}

.typestrip {
  background: var(--graphite-2);
  border-top: 1px solid rgb(255 255 255 / 6%);
}

.typestrip ul {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.typestrip a {
  display: block;
  white-space: nowrap;
  padding: var(--s-3) var(--s-4);
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b7b3a6;
  border-bottom: 2px solid transparent;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.typestrip a:hover,
.typestrip a:focus-visible {
  color: #fff;
  border-bottom-color: var(--fde);
}

.typestrip a[aria-current='page'] {
  color: #fff;
  border-bottom-color: var(--fde-bright);
}

main {
  display: block;
  padding-block: var(--s-7) var(--s-9);
  min-height: 50vh;
}

.pagehead {
  margin-bottom: var(--s-6);
  max-width: var(--measure);
}

.pagehead__lede {
  font-size: var(--t-1);
  line-height: 1.5;
  color: var(--ink-2);
  margin-bottom: 0;
  text-wrap: pretty;
}

.rollmark {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--fde-deep);
  margin: 0 0 var(--s-3);
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.rollmark::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule-strong);
}

.crumbs {
  margin-bottom: var(--s-5);
  font-size: var(--t--1);
}

.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  color: var(--muted);
}

.crumbs li + li::before {
  content: '/';
  margin-right: var(--s-2);
  color: var(--rule-strong);
}

.crumbs a {
  color: var(--muted);
}

.crumbs a:hover {
  color: var(--ink);
}

.footer {
  background: var(--graphite);
  color: #b7b3a6;
  padding-block: var(--s-7) var(--s-6);
  font-size: var(--t--1);
}

.footer a {
  color: #d6d3c9;
}

.footer a:hover {
  color: #fff;
}

.footer h2 {
  font-size: 0.72rem;
  font-family: var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fde-bright);
  margin: 0 0 var(--s-3);
}

.footer__grid {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: var(--s-6);
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li + li {
  margin-top: var(--s-2);
}

.footer__base {
  border-top: 1px solid var(--graphite-3);
  padding-top: var(--s-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  justify-content: space-between;
  color: #8d8a80;
}

.footer__base p {
  margin: 0;
}

.grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  list-style: none;
  margin: 0 0 var(--s-6);
  padding: 0;
}

.grid--wide {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: var(--s-4) var(--s-5);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.card:hover {
  border-color: var(--fde);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}

.card h2,
.card h3 {
  font-size: var(--t-1);
  margin: 0;
  letter-spacing: -0.015em;
}

.card p {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--t--1);
  line-height: 1.55;
}

.card a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

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

.card a:hover {
  color: var(--fde-deep);
}

.card__meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: auto;
  padding-top: var(--s-2);
}

.card__thumb {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  border-radius: var(--r-sm);
  margin-bottom: var(--s-1);
  background: var(--surface-2);
}

.tier {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fde-deep);
  background: var(--fde-wash);
  border: 1px solid #e2d9c6;
  border-radius: 999px;
  padding: 2px var(--s-2);
  white-space: nowrap;
}

.notice {
  display: flex;
  gap: var(--s-3);
  background: var(--notice-wash);
  border: 1px solid var(--notice-rule);
  border-left: 3px solid var(--notice);
  border-radius: var(--r-sm);
  padding: var(--s-3) var(--s-4);
  margin: 0 0 var(--s-5);
  font-size: var(--t--1);
  line-height: 1.55;
  color: #5c4116;
}

.notice strong {
  color: var(--notice);
}

.notice a {
  color: var(--notice);
}

.editnote {
  font-size: var(--t--1);
  color: var(--muted);
  border-left: 2px solid var(--rule-strong);
  padding-left: var(--s-3);
  margin: 0 0 var(--s-5);
  font-style: italic;
}

.provenance {
  font-size: var(--t--1);
  color: var(--muted);
  margin: calc(var(--s-5) * -1 + var(--s-2)) 0 var(--s-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  align-items: baseline;
}

.provenance__when {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.band {
  background: var(--surface);
  border-block: 1px solid var(--rule);
  padding-block: var(--s-7);
  margin-block: var(--s-8);
}

.band--tint {
  background: var(--fde-wash);
  border-color: #e6ddca;
}

.band > .wrap > h2:first-child,
.band > .wrap > .rollmark:first-child + h2 {
  margin-top: 0;
}

.hero {
  padding-block: var(--s-8) var(--s-7);
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, var(--surface) 0%, var(--paper) 100%);
}

.hero h1 {
  max-width: 18ch;
  margin-bottom: var(--s-4);
}

.hero__lede {
  font-size: var(--t-1);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 54ch;
  margin-bottom: var(--s-6);
  text-wrap: pretty;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero__stats div {
  display: flex;
  flex-direction: column;
}

.hero__stats dt {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  order: 2;
}

.hero__stats dd {
  font-family: var(--display);
  font-size: var(--t-3);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--fde-deep);
  font-variant-numeric: tabular-nums;
  order: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--display);
  font-size: var(--t--1);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r);
  border: 1px solid var(--fde-deep);
  background: var(--fde-deep);
  color: #fff;
  transition: background-color 0.16s var(--ease), transform 0.16s var(--ease),
    box-shadow 0.16s var(--ease);
}

.btn:hover {
  background: var(--graphite);
  border-color: var(--graphite);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn--quiet {
  background: transparent;
  color: var(--fde-deep);
}

.btn--quiet:hover {
  background: var(--fde-deep);
  border-color: var(--fde-deep);
}

.bridges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: baseline;
  margin: var(--s-6) 0 0;
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
  font-size: var(--t--1);
}

.bridges span {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.bridges a {
  font-weight: 600;
}

.article__body {
  max-width: var(--measure);
}

.article__body img {
  border-radius: var(--r);
  margin-block: var(--s-5);
}

.article__body h2 {
  padding-top: var(--s-2);
}

.article__body > .table-scroll,
.article__body > table {
  max-width: none;
}

.article__hero {
  border-radius: var(--r);
  margin-bottom: var(--s-6);
  max-height: 420px;
  object-fit: cover;
  width: 100%;
}

.listing {
  list-style: none;
  margin: 0 0 var(--s-6);
  padding: 0;
  border-top: 1px solid var(--rule);
}

.listing li {
  margin: 0;
  border-bottom: 1px solid var(--rule);
}

.listing a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-2) var(--s-4);
  padding: var(--s-4) var(--s-2);
  text-decoration: none;
  color: var(--ink);
  transition: background-color 0.15s var(--ease), padding-left 0.18s var(--ease);
}

.listing a:hover {
  background: var(--surface);
  padding-left: var(--s-4);
  color: var(--fde-deep);
}

.listing__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--t-0);
  flex: 1 1 22ch;
}

.listing__where {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.stack > * + * {
  margin-top: var(--s-5);
}

.lede {
  font-size: var(--t-1);
  color: var(--ink-2);
  line-height: 1.55;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 0.5s var(--ease) both;
  }


  .grid > :nth-child(1) { animation-delay: 0ms; }
  .grid > :nth-child(2) { animation-delay: 45ms; }
  .grid > :nth-child(3) { animation-delay: 90ms; }
  .grid > :nth-child(4) { animation-delay: 135ms; }
  .grid > :nth-child(5) { animation-delay: 180ms; }
  .grid > :nth-child(6) { animation-delay: 215ms; }
  .grid > :nth-child(n + 7) { animation-delay: 250ms; }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
