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

:root {
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --paper: #f6f3ed;
  --surface: #fffdf9;
  --surface-2: #eee8dd;
  --ink: #1b2220;
  --ink-2: #4a5854;
  --ink-3: #5f6b65;
  --line: #e2dbce;
  --line-2: #cfc6b6;

  --brand: #0f5a52;
  --brand-deep: #0a3230;
  --link: #0c655c;
  --accent: #9a5412;
  --accent-2: #eda63c;
  --pill: #0f5a52;
  --pill-ink: #ffffff;
  --focus: #0b6d8a;

  --radius: 14px;
  --radius-s: 9px;
  --shadow: 0 1px 2px rgba(18, 28, 26, .06), 0 14px 28px -18px rgba(18, 28, 26, .30);
  --container: 70rem;
  --measure: 43rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1513;
    --surface: #151d1b;
    --surface-2: #1d2725;
    --ink: #e8ece9;
    --ink-2: #b3bfba;
    --ink-3: #94a09a;
    --line: #26302d;
    --line-2: #38433f;

    --brand: #79cdc0;
    --brand-deep: #a7ded3;
    --link: #79cdc0;
    --accent: #e9a44c;
    --accent-2: #f0b463;
    --pill: #1f4a45;
    --pill-ink: #d7f0ea;
    --focus: #6cc0dd;

    --shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 18px 34px -22px rgba(0, 0, 0, .75);
  }
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 750;
  letter-spacing: -.02em;
  line-height: 1.18;
  text-wrap: balance;
}

p {
  margin: 0 0 1.15em;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--accent-2);
  color: #12211e;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 50;
  padding: .7rem 1.1rem;
  background: var(--brand-deep);
  color: #fff;
  font-weight: 650;
  border-radius: 0 0 var(--radius-s) 0;
  text-decoration: none;
}

.skip:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.hdr {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.hdr__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  padding-block: .8rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: inherit;
  text-decoration: none;
  max-width: 100%;
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  display: block;
}

.brand__tx {
  min-width: 0;
}

.brand__name {
  display: block;
  font-size: 1.05rem;
  font-weight: 780;
  letter-spacing: -.015em;
  line-height: 1.2;
}

.brand__tag {
  display: block;
  font-size: .775rem;
  line-height: 1.4;
  color: var(--ink-3);
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: .1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: inline-block;
  padding: .4rem .72rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 550;
  color: var(--ink-2);
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}

.nav a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.nav a[aria-current="page"] {
  background: var(--pill);
  color: var(--pill-ink);
}

@media (max-width: 40rem) {
  .hdr {
    position: static;
    backdrop-filter: none;
  }

  .hdr__in {
    justify-content: flex-start;
    padding-block: .9rem .7rem;
  }

  .nav {
    width: 100%;
  }

  .nav a {
    padding: .34rem .58rem;
    font-size: .9rem;
  }
}

.hero {
  padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(1.8rem, 4vw, 2.8rem);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  background: var(--accent-2);
  border-radius: 2px;
}

h1 {
  font-size: clamp(2rem, 1.25rem + 3.4vw, 3rem);
  font-weight: 800;
  margin-top: .7rem;
}

.lead {
  max-width: 38rem;
  margin: 1.1rem 0 0;
  font-size: clamp(1.08rem, 1rem + .5vw, 1.24rem);
  line-height: 1.6;
  color: var(--ink-2);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .68rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: .98rem;
  text-decoration: none;
  transition: transform .15s ease, background-color .18s ease, border-color .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--brand-deep);
  color: #f3faf8;
}

@media (prefers-color-scheme: dark) {
  .btn--primary {
    background: var(--brand);
    color: #08120f;
  }
}

.btn--ghost {
  border-color: var(--line-2);
  color: var(--ink);
  background: var(--surface);
}

.btn--ghost:hover {
  border-color: var(--brand);
}

section.band {
  padding-block: clamp(2.4rem, 6vw, 3.8rem);
}

.band + .band {
  border-top: 1px solid var(--line);
}

.band__head {
  max-width: 40rem;
  margin-bottom: 1.8rem;
}

h2 {
  font-size: clamp(1.4rem, 1.15rem + 1.1vw, 1.8rem);
}

h3 {
  font-size: 1.14rem;
}

.band__head p {
  margin: .6rem 0 0;
  color: var(--ink-2);
}

.grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 1.35rem 1.35rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
}

.card:focus-within {
  border-color: var(--brand);
}

.card__kicker {
  font-size: .74rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}

.card h3 {
  font-size: 1.22rem;
  line-height: 1.28;
}

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

.card h3 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card {
  position: relative;
}

.card p {
  margin: 0;
  color: var(--ink-2);
  font-size: .99rem;
  line-height: 1.6;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .95rem;
  margin-top: auto;
  padding-top: .85rem;
  border-top: 1px dashed var(--line);
  font-size: .83rem;
  color: var(--ink-3);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: .34rem;
}

.meta-item svg {
  width: 15px;
  height: 15px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem 1.1rem;
  font-size: .88rem;
  color: var(--ink-3);
}

.about {
  display: grid;
  gap: 1.5rem;
  align-items: start;
  grid-template-columns: 1fr;
}

@media (min-width: 46rem) {
  .about {
    grid-template-columns: 11rem 1fr;
    gap: 2rem;
  }
}

.avatar {
  width: 9.5rem;
  height: 9.5rem;
  border-radius: 50%;
  display: block;
  border: 1px solid var(--line-2);
}

.about p {
  color: var(--ink-2);
}

.facts {
  display: grid;
  gap: .5rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: .7rem .9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-2);
  border-radius: var(--radius-s);
  font-size: .94rem;
  color: var(--ink-2);
}

.facts b {
  color: var(--ink);
}

.order {
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .8rem;
}

.order li {
  counter-increment: step;
  position: relative;
  padding: .95rem 1rem .95rem 3.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  color: var(--ink-2);
}

.order li::before {
  content: counter(step);
  position: absolute;
  left: .95rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--mono);
  font-size: .85rem;
  font-weight: 700;
}

.order b {
  color: var(--ink);
}

.article {
  padding-block: clamp(2rem, 5vw, 3.4rem) clamp(2.5rem, 6vw, 4rem);
}

.article__inner {
  max-width: var(--measure);
  margin-inline: auto;
}

.article__crumbs {
  font-size: .85rem;
  color: var(--ink-3);
  margin-bottom: 1.4rem;
}

.article__crumbs a {
  color: inherit;
}

h1.article__title {
  font-size: clamp(1.75rem, 1.15rem + 2.7vw, 2.5rem);
}

.article__meta {
  margin: 1.1rem 0 0;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.article__lead {
  margin: 1.7rem 0 2rem;
  font-size: 1.16rem;
  line-height: 1.62;
  color: var(--ink-2);
}

.prose h2 {
  margin: 2.4rem 0 .8rem;
  font-size: clamp(1.28rem, 1.1rem + .8vw, 1.55rem);
}

.prose h3 {
  margin: 1.9rem 0 .5rem;
  font-size: 1.08rem;
  letter-spacing: -.01em;
}

.prose p {
  margin-bottom: 1.15em;
}

.prose ul,
.prose ol {
  margin: 0 0 1.3em;
  padding-left: 1.35rem;
}

.prose li {
  margin-bottom: .5em;
}

.prose li::marker {
  color: var(--accent);
}

.prose strong {
  font-weight: 700;
  color: var(--ink);
}

.prose a:not(.btn) {
  text-decoration: underline;
}

hr.sep {
  margin: 2.6rem auto;
  width: 6rem;
  border: 0;
  border-top: 2px solid var(--line-2);
}

blockquote {
  margin: 1.8rem 0;
  padding: .2rem 0 .2rem 1.3rem;
  border-left: 3px solid var(--accent-2);
  color: var(--ink-2);
  font-size: 1.08rem;
  font-style: italic;
}

blockquote p:last-child {
  margin-bottom: 0;
}

.note {
  margin: 1.9rem 0;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  font-size: .98rem;
  color: var(--ink-2);
}

.note p:last-child {
  margin-bottom: 0;
}

.note__t {
  display: block;
  margin-bottom: .35rem;
  font-weight: 750;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}

.tbl-wrap {
  margin: 1.8rem 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}

caption {
  padding: .8rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .01em;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

th,
td {
  padding: .6rem .85rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  font-size: .8rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--surface-2);
  white-space: nowrap;
}

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

td.num,
th.num {
  font-family: var(--mono);
  font-size: .9rem;
  white-space: nowrap;
}

.figure {
  margin: 2.2rem 0;
  padding: 1.3rem 1.2rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.figure svg {
  display: block;
  width: 100%;
  height: auto;
}

.figure figcaption {
  margin-top: .9rem;
  padding-top: .8rem;
  border-top: 1px dashed var(--line);
  font-size: .86rem;
  line-height: 1.5;
  color: var(--ink-3);
}

.dg-title {
  font-size: 14px;
  font-weight: 700;
  fill: var(--ink);
}

.dg-lab {
  font-size: 12px;
  font-weight: 600;
  fill: var(--ink-2);
}

.dg-num {
  font-size: 12px;
  font-family: var(--mono);
  fill: var(--ink-2);
}

.dg-axis {
  stroke: var(--line-2);
  stroke-width: 1;
}

.dg-cell {
  fill: var(--surface-2);
  stroke: var(--line);
}

.authorbox {
  display: grid;
  gap: 1.1rem;
  align-items: center;
  grid-template-columns: 1fr;
  margin-top: 3rem;
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

@media (min-width: 34rem) {
  .authorbox {
    grid-template-columns: 4.5rem 1fr;
  }
}

.authorbox__av {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
}

.authorbox p {
  margin: .3rem 0 0;
  font-size: .95rem;
  color: var(--ink-2);
}

.authorbox__n {
  font-weight: 750;
  color: var(--ink);
}

.pager {
  display: grid;
  gap: .9rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: 1.6rem;
}

.pager a {
  display: block;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}

.pager a:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.pager span {
  display: block;
  font-size: .76rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.pager strong {
  display: block;
  margin-top: .25rem;
  font-size: 1rem;
  color: var(--link);
  font-weight: 650;
}

.ftr {
  margin-top: 2rem;
  padding-block: 2.6rem 1.6rem;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.ftr__grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.ftr__brand {
  margin: 0 0 .4rem;
  font-weight: 780;
  letter-spacing: -.015em;
}

.ftr__h {
  margin: 0 0 .5rem;
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.ftr__note {
  margin: 0;
  font-size: .92rem;
  color: var(--ink-2);
}

.ftr ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .95rem;
}

.ftr li {
  margin-bottom: .35rem;
}

.ftr a {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
}

.ftr a:hover {
  color: var(--link);
  border-color: var(--link);
}

.ftr__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  justify-content: space-between;
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: .86rem;
  color: var(--ink-3);
}

.ftr__bottom p {
  margin: 0;
}

.notfound {
  padding-block: clamp(3rem, 10vw, 6rem);
  text-align: left;
}

.notfound__code {
  font-family: var(--mono);
  font-size: clamp(3.2rem, 1rem + 12vw, 6.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--brand);
}

.notfound h1 {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem);
  margin-top: .8rem;
}

.notfound p {
  max-width: 34rem;
  color: var(--ink-2);
}

.suggest {
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .5rem;
  max-width: 34rem;
}

.suggest a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  text-decoration: none;
  font-weight: 600;
}

.suggest a:hover {
  border-color: var(--brand);
}

.suggest small {
  font-weight: 500;
  color: var(--ink-3);
  white-space: nowrap;
}
