/* Self-hosted variable fonts.
   Satoshi: Fontshare (ITF Free Font License)
   Fraunces: Google Fonts (SIL Open Font License) */
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-variable-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-variable-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
:root {
  --paper: #f7f3ea;
  --paper-2: #efe8da;
  --paper-3: #e7dfcf;
  --surface: #fffdf8;
  --ink: #14181c;
  --ink-2: #3c454c;
  --muted: #5a6369;
  --line: #d9d2c3;
  --line-strong: #c4baa7;
  --accent: #b4451f;
  --accent-hover: #8f3517;
  --accent-tint: rgba(180, 69, 31, 0.08);
  --teal: #2f5d62;
  --on-accent: #fffaf4;
  --header-bg: rgba(247, 243, 234, 0.88);
  --shadow: 0 30px 70px -40px rgba(20, 24, 28, 0.45);
  --shadow-soft: 0 18px 40px -32px rgba(20, 24, 28, 0.5);
  --font-sans: "Satoshi", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --step--1: clamp(0.74rem, 0.72rem + 0.06vw, 0.78rem);
  --step-0: clamp(0.95rem, 0.93rem + 0.1vw, 1rem);
  --step-1: clamp(1.04rem, 1.01rem + 0.16vw, 1.14rem);
  --step-2: clamp(1.18rem, 1.12rem + 0.28vw, 1.38rem);
  --step-3: clamp(1.38rem, 1.28rem + 0.48vw, 1.72rem);
  --step-4: clamp(1.6rem, 1.42rem + 0.9vw, 2.1rem);
  --step-5: clamp(1.85rem, 1.55rem + 1.5vw, 2.6rem);
  --gutter: clamp(1.1rem, 3.2vw, 2.25rem);
  --maxw: 1240px;
  --header-h: 64px;
  --section-y: clamp(2.5rem, 5vw, 4.25rem);
  --radius-xs: 5px;
  --radius-sm: 9px;
  --radius: 14px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

[data-theme=dark] {
  --paper: #0f1416;
  --paper-2: #141b1f;
  --paper-3: #1b2328;
  --surface: #151c20;
  --ink: #ece7dc;
  --ink-2: #c4c0b6;
  --muted: #8b9499;
  --line: #2a343a;
  --line-strong: #3a464d;
  --accent: #e0784f;
  --accent-hover: #f08d66;
  --accent-tint: rgba(224, 120, 79, 0.12);
  --teal: #7fb3b6;
  --on-accent: #14181c;
  --header-bg: rgba(15, 20, 22, 0.88);
  --shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.8);
  --shadow-soft: 0 18px 40px -32px rgba(0, 0, 0, 0.8);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --paper: #0f1416;
    --paper-2: #141b1f;
    --paper-3: #1b2328;
    --surface: #151c20;
    --ink: #ece7dc;
    --ink-2: #c4c0b6;
    --muted: #8b9499;
    --line: #2a343a;
    --line-strong: #3a464d;
    --accent: #e0784f;
    --accent-hover: #f08d66;
    --accent-tint: rgba(224, 120, 79, 0.12);
    --teal: #7fb3b6;
    --on-accent: #14181c;
    --header-bg: rgba(15, 20, 22, 0.88);
    --shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.8);
    --shadow-soft: 0 18px 40px -32px rgba(0, 0, 0, 0.8);
  }
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* The [hidden] attribute must win over any component display rule, otherwise
   a component that sets `display: flex` stays visible when hidden. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.96875rem;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern" 1;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-5);
  line-height: 0.98;
}

h2 {
  font-size: var(--step-4);
}

h3 {
  font-size: var(--step-3);
}

h4 {
  font-size: var(--step-2);
}

p {
  margin: 0 0 0.85em;
  text-wrap: pretty;
}

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

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease);
}

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

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

img {
  height: auto;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

li {
  margin-bottom: 0.35em;
}

strong {
  font-weight: 700;
}

em {
  font-style: italic;
}

code,
kbd,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
}

:not(pre) > code {
  padding: 0.12em 0.34em;
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: var(--radius-xs);
}

pre {
  margin: 1.75rem 0;
  padding: 1.25rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: var(--radius-sm);
  line-height: 1.55;
}

blockquote {
  margin: 1.5rem 0;
  padding: 0.2rem 0 0.2rem 1.1rem;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.4;
  color: var(--ink-2);
}

hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

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

.container {
  width: min(100% - var(--gutter) * 2, var(--maxw));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - var(--gutter) * 2, 860px);
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
}

.section--tint {
  background: var(--paper-2);
}

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

.section--ink h2,
.section--ink h3 {
  color: var(--paper);
}

.section--ink a:not(.button):not(.link-arrow) {
  color: var(--accent);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.kicker::before {
  content: "";
  width: 1.4rem;
  height: 1px;
  background: currentColor;
}

.lede {
  max-width: 62ch;
  font-size: clamp(1rem, 0.97rem + 0.2vw, 1.08rem);
  line-height: 1.55;
  color: var(--ink-2);
}

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

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--paper);
}

.icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
}

.icon--small {
  width: 0.8rem;
  height: 0.8rem;
}

@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;
  }
}
/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.brand:hover .brand-mark {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-text small {
  margin-top: 0.15rem;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.8rem);
  list-style: none;
}

.site-nav li {
  margin: 0;
}

.site-nav a {
  position: relative;
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--ink-2);
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.1rem;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}

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

.site-nav a:hover::after {
  transform: scaleX(1);
}

.site-nav a[aria-current=page] {
  color: var(--accent);
  font-weight: 700;
}

.site-nav a[aria-current=page]::after {
  transform: scaleX(1);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.icon-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-icon--light {
  display: none;
}

[data-theme=dark] .theme-icon--light {
  display: block;
}

[data-theme=dark] .theme-icon--dark {
  display: none;
}

.nav-toggle {
  display: none;
}

/* Mobile navigation: a floating dialog in the top layer, so no ancestor
   backdrop-filter or transform can trap it. */
.nav-dialog {
  position: fixed;
  top: calc(var(--header-h) + 0.4rem);
  right: var(--gutter);
  left: auto;
  bottom: auto;
  width: min(19rem, 100vw - var(--gutter) * 2);
  max-width: none;
  max-height: calc(100svh - var(--header-h) - 1.5rem);
  margin: 0;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nav-dialog::backdrop {
  background: rgba(20, 24, 28, 0.34);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.nav-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.3rem 0.35rem 0.55rem 0.75rem;
}

.nav-dialog__label {
  margin: 0;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-dialog nav ul {
  list-style: none;
}

.nav-dialog nav li {
  margin: 0;
}

.nav-dialog nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}

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

.nav-dialog nav a[aria-current=page] {
  background: var(--accent-tint);
  color: var(--accent);
  font-weight: 700;
}

.nav-dialog nav a .icon {
  color: var(--muted);
}

.nav-dialog nav a[aria-current=page] .icon {
  color: var(--accent);
}

.nav-dialog__foot {
  margin-top: 0.45rem;
  padding: 0.55rem 0.35rem 0.25rem;
  border-top: 1px solid var(--line);
}

.theme-switch {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 2.5rem;
  padding: 0 0.75rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.theme-switch:hover {
  background: var(--paper-2);
  color: var(--ink);
}

body[data-nav-open=true] {
  overflow: hidden;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: grid;
  }
  .site-nav {
    display: none;
  }
}
@media (min-width: 901px) {
  .nav-dialog {
    display: none;
  }
}
@media (max-width: 560px) {
  .brand-text small {
    display: none;
  }
  .brand-text strong {
    max-width: 10rem;
    font-size: 0.82rem;
    line-height: 1.2;
  }
  .header-inner {
    gap: 0.75rem;
  }
  .header-actions {
    gap: 0.6rem;
  }
  .icon-button {
    width: 2.15rem;
    height: 2.15rem;
  }
}
/* Footer */
.site-footer {
  padding-top: clamp(2rem, 4vw, 3.25rem);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.brand--footer {
  margin-bottom: 0.9rem;
}

.footer-note {
  max-width: 36ch;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.footer-label {
  margin-bottom: 0.6rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-nav ul,
.footer-social ul {
  list-style: none;
}

.footer-nav li,
.footer-social li {
  margin-bottom: 0.3rem;
}

.footer-nav a,
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--ink-2);
  font-size: 0.86rem;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-social a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
}

.footer-bottom p {
  margin: 0;
}

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

.footer-bottom a:hover {
  color: var(--accent);
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1/-1;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}
@media (max-width: 420px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
/* Buttons and links */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.72rem 1.25rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  transform: translateY(-1px);
}

.button--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.button--accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.button--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.button--ghost:hover {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.button--light {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.button--light:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.button--small {
  padding: 0.55rem 1rem;
  font-size: 0.76rem;
}

.button--block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.link-arrow .icon {
  width: 0.95rem;
  height: 0.95rem;
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover .icon {
  transform: translate(2px, -2px);
}

/* Section headings */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(1.1rem, 2.4vw, 1.9rem);
}

.section-head h2 {
  max-width: 26ch;
}

.section-head__aside {
  flex: none;
  padding-bottom: 0.15rem;
}

@media (max-width: 640px) {
  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }
}
/* Chips and tags */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.chip--accent {
  border-color: transparent;
  background: var(--accent-tint);
  color: var(--accent);
}

.chip--ink {
  border-color: transparent;
  background: var(--ink);
  color: var(--paper);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
}

.tag-list li {
  margin: 0;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Map cards */
.map-card {
  margin: 0;
  min-width: 0;
}

.map-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.map-card__link:hover {
  color: inherit;
}

.map-card__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-3);
}

.map-card__media picture,
.map-card__media img {
  display: block;
  width: 100%;
}

.map-card__media img {
  height: auto;
  transition: transform 0.75s var(--ease), filter 0.4s var(--ease);
}

.map-card__link:hover .map-card__media img {
  transform: scale(1.035);
}

.map-card__badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 1;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.map-card__caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.55rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.map-card__title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.map-card__meta {
  flex: none;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.map-card__link:hover .map-card__title {
  color: var(--accent);
}

/* Home map mosaic */
.home-maps {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.9rem) clamp(0.9rem, 1.8vw, 1.4rem);
}

.home-maps > :nth-child(1) {
  grid-column: span 7;
}

.home-maps > :nth-child(2) {
  grid-column: span 5;
}

.home-maps > :nth-child(3) {
  grid-column: span 5;
}

.home-maps > :nth-child(4) {
  grid-column: span 7;
}

.home-maps > :nth-child(5),
.home-maps > :nth-child(6) {
  grid-column: span 6;
}

@media (max-width: 760px) {
  .home-maps > * {
    grid-column: span 12 !important;
  }
}
@media (min-width: 761px) and (max-width: 1024px) {
  .home-maps > :nth-child(1),
  .home-maps > :nth-child(2),
  .home-maps > :nth-child(3),
  .home-maps > :nth-child(4) {
    grid-column: span 6;
  }
}
/* Gallery filters */
.filter-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.filter-bar__inner {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding-block: 0.75rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-bar__inner::-webkit-scrollbar {
  display: none;
}

.filter {
  flex: none;
  padding: 0.45rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.filter span {
  margin-left: 0.3rem;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 500;
}

.filter:hover {
  border-color: var(--line);
  color: var(--ink);
}

.filter[aria-pressed=true] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.filter[aria-pressed=true] span {
  color: var(--paper);
  opacity: 0.65;
}

/* Gallery columns */
.map-columns {
  columns: 3;
  column-gap: clamp(0.9rem, 1.8vw, 1.5rem);
}

.map-columns .map-card {
  break-inside: avoid;
  margin-bottom: clamp(1rem, 2.2vw, 1.75rem);
}

@media (max-width: 1050px) {
  .map-columns {
    columns: 2;
  }
}
@media (max-width: 620px) {
  .map-columns {
    columns: 1;
  }
}
.gallery-count {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-empty {
  padding-block: 4rem;
  text-align: center;
  color: var(--muted);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(9, 12, 14, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.lightbox[open] {
  display: block;
}

.lightbox__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(0.75rem, 3vw, 2rem);
}

.lightbox__figure {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 0;
  margin: 0;
}

.lightbox__image {
  width: auto;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.lightbox__caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  width: min(100%, 1100px);
  margin: 1rem auto 0;
  font-size: 0.82rem;
  line-height: 1.5;
}

.lightbox__caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
}

.lightbox__caption span {
  color: rgba(247, 243, 234, 0.62);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  border: 1px solid rgba(247, 243, 234, 0.32);
  border-radius: 50%;
  background: rgba(9, 12, 14, 0.5);
  color: var(--paper);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.lightbox__close {
  top: 1.25rem;
  right: 1.25rem;
}

.lightbox__prev {
  top: 50%;
  left: 1.25rem;
  transform: translateY(-50%);
}

.lightbox__next {
  top: 50%;
  right: 1.25rem;
  transform: translateY(-50%);
}

@media (max-width: 620px) {
  .lightbox__caption {
    flex-direction: column;
    gap: 0.35rem;
  }
  .lightbox__prev,
  .lightbox__next {
    top: auto;
    bottom: 1.25rem;
    transform: none;
  }
  .lightbox__prev {
    left: 1.25rem;
  }
  .lightbox__next {
    right: 1.25rem;
  }
}
/* Project cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.5rem);
}

.project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.project-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.project-card__media {
  display: block;
  overflow: hidden;
  background: var(--paper-2);
}

.project-card__media img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.project-card:hover .project-card__media img {
  transform: scale(1.03);
}

.project-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1rem, 2vw, 1.35rem);
}

.project-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.project-card__title {
  font-size: var(--step-2);
  line-height: 1.15;
}

.project-card__title a {
  color: var(--ink);
  text-decoration: none;
}

.project-card__title a:hover {
  color: var(--accent);
}

.project-card__desc {
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.55;
}

.project-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.25rem;
}

@media (max-width: 760px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}
/* Blog index */
.post-feature {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: clamp(0.9rem, 2.2vw, 1.6rem);
  padding: clamp(1rem, 2.2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.post-feature:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
  color: inherit;
}

.post-feature__thumb {
  display: block;
  width: clamp(4.5rem, 12vw, 7.5rem);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
}

.post-feature__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.post-feature:hover .post-feature__thumb img {
  transform: scale(1.05);
}

.post-feature__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  min-width: 0;
}

.post-feature__title {
  font-size: var(--step-2);
  line-height: 1.15;
}

.post-feature:hover .post-feature__title {
  color: var(--accent);
}

.post-feature__excerpt {
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.5;
}

.post-list {
  list-style: none;
  margin-top: clamp(1.1rem, 2.2vw, 1.6rem);
  border-top: 1px solid var(--line);
}

.post-list li {
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.post-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.8rem, 1.8vw, 1.25rem);
  padding-block: clamp(0.75rem, 1.6vw, 1.05rem);
  color: inherit;
  text-decoration: none;
}

.post-item:hover {
  color: inherit;
}

.post-item__thumb {
  display: block;
  width: clamp(3rem, 7vw, 4rem);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--paper-2);
}

.post-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.post-item:hover .post-item__thumb img {
  transform: scale(1.05);
}

.post-item__body {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.post-item__title {
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.22;
  transition: color 0.2s var(--ease);
}

.post-item:hover .post-item__title {
  color: var(--accent);
}

.post-item__excerpt {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.post-item > .icon {
  width: 1rem;
  height: 1rem;
  color: var(--muted);
}

.post-item:hover > .icon {
  color: var(--accent);
}

@media (max-width: 520px) {
  .post-item__excerpt {
    display: none;
  }
  .post-item__title {
    font-size: 1rem;
  }
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.post-meta .sep {
  width: 1.5rem;
  height: 1px;
  background: var(--line-strong);
}

/* Post rows (home) */
.post-rows {
  list-style: none;
  border-top: 1px solid var(--line);
}

.post-rows li {
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.post-row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 1.25rem;
  padding: 0.95rem 0;
  color: inherit;
  text-decoration: none;
}

.post-row:hover {
  color: inherit;
}

.post-row__date {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.post-row__title {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.25;
  transition: color 0.2s var(--ease);
}

.post-row:hover .post-row__title {
  color: var(--accent);
}

.post-row .icon {
  align-self: center;
  width: 1rem;
  height: 1rem;
  color: var(--muted);
}

.post-row:hover .icon {
  color: var(--accent);
}

@media (max-width: 720px) {
  .post-row {
    grid-template-columns: 1fr auto;
    gap: 0.35rem 1rem;
  }
  .post-row__date {
    grid-column: 1/-1;
  }
}
/* Datasets */
.dataset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.6vw, 1.15rem);
}

.dataset-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.dataset-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.dataset-card__title {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.2;
}

.dataset-card__title a {
  color: var(--ink);
  text-decoration: none;
}

.dataset-card__title a:hover {
  color: var(--accent);
}

.dataset-card__desc {
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.5;
}

.dataset-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.74rem;
}

.dataset-card__meta li {
  margin: 0;
}

.dataset-card__meta strong {
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.dataset-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}

.dataset-card__size {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dataset-card__buttons {
  display: flex;
  gap: 0.4rem;
}

.section--ink .dataset-card {
  background: transparent;
  border-color: rgba(247, 243, 234, 0.2);
}

.section--ink .dataset-card__desc,
.section--ink .dataset-card__size,
.section--ink .dataset-card__meta {
  color: rgba(247, 243, 234, 0.62);
}

.section--ink .dataset-card__meta strong {
  color: var(--paper);
}

.section--ink .dataset-card__title a {
  color: var(--paper);
}

.section--ink .dataset-card__title a:hover {
  color: var(--accent);
}

.section--ink .dataset-card__foot {
  border-color: rgba(247, 243, 234, 0.2);
}

.section--ink .chip--accent {
  background: rgba(224, 120, 79, 0.16);
  color: var(--accent);
}

/* Catalog controls */
.catalog__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.catalog__search {
  position: relative;
  flex: 1 1 16rem;
  min-width: 0;
}

.catalog__search-icon {
  position: absolute;
  top: 50%;
  left: 0.85rem;
  width: 1rem;
  height: 1rem;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.catalog__search input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.92rem;
}

.catalog__search input::placeholder {
  color: var(--muted);
}

.catalog__search input:focus-visible {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.catalog__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.filter-group + .filter-group {
  margin-left: 0.5rem;
  padding-left: 0.85rem;
  border-left: 1px solid var(--line);
}

.catalog__sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog__sort select {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
}

.catalog__count {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog__empty {
  padding-block: 2.5rem;
  color: var(--muted);
  text-align: center;
}

.catalog__empty .link-arrow {
  border: 0;
  background: none;
  cursor: pointer;
}

/* Dataset detail */
.dataset-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.75rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.dataset-facts li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin: 0;
}

.dataset-facts strong {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.dataset-facts span {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dataset-detail__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  padding-block: clamp(1.25rem, 2.5vw, 2rem);
  border-bottom: 1px solid var(--line);
}

.dataset-detail__size {
  margin-left: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.dataset-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
}

.dataset-block {
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}

.dataset-block:last-child {
  margin-bottom: 0;
}

.dataset-block h2 {
  margin-bottom: 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.dataset-block__note {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.dataset-map__frame {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.dataset-map {
  display: block;
  width: 100%;
  max-height: 26rem;
  height: auto;
  margin-inline: auto;
}

.dataset-map__land {
  fill: var(--paper-3);
  stroke: var(--line-strong);
  stroke-width: 1;
}

.dataset-map__features {
  fill: var(--accent);
  fill-opacity: 0.85;
  stroke: none;
}

[data-kind=polygon] .dataset-map__features {
  fill-opacity: 0.75;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.data-preview,
.field-schema {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.data-preview th,
.data-preview td,
.field-schema th,
.field-schema td {
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-preview thead th,
.field-schema thead th {
  position: sticky;
  top: 0;
  background: var(--paper-2);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-preview tbody tr:last-child td,
.field-schema tbody tr:last-child th,
.field-schema tbody tr:last-child td {
  border-bottom: 0;
}

.data-preview td {
  max-width: 18rem;
  color: var(--ink-2);
  white-space: nowrap;
}

.field-schema tbody th {
  width: 1%;
  white-space: nowrap;
  font-weight: 500;
}

.dataset-quote {
  margin: 0;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--paper-2);
  font-size: 0.9rem;
  line-height: 1.6;
}

.dataset-quote cite {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
}

.dataset-aside {
  padding-top: 0.9rem;
  border-top: 2px solid var(--ink);
}

.dataset-aside + .dataset-aside {
  margin-top: 1.75rem;
}

.dataset-aside h2 {
  margin-bottom: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.meta-list {
  margin: 0;
}

.meta-list dt {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta-list dd {
  margin: 0.15rem 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
}

.meta-list__tag {
  display: inline-block;
  padding: 0.05rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink-2);
  font-size: 0.62rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.dataset-aside__license {
  margin-bottom: 0.4rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.citation {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.citation p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.82rem;
  line-height: 1.5;
}

.dataset-detail__foot {
  padding-block: clamp(1.25rem, 2.5vw, 2rem);
  border-top: 1px solid var(--line);
}

.catalog-links {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.catalog-links h2 {
  margin-bottom: 0.6rem;
  font-size: var(--step-2);
}

.catalog-links ul {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
}

.catalog-links li {
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .dataset-detail__layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .dataset-grid {
    grid-template-columns: 1fr;
  }
  .filter-group + .filter-group {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }
  .catalog__sort {
    margin-left: 0;
  }
}
.collection-foot {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

/* Prose */
.prose {
  max-width: 68ch;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  margin: 1.9rem 0 0.6rem;
  font-size: var(--step-2);
}

.prose h3 {
  margin: 1.5rem 0 0.45rem;
  font-size: var(--step-1);
}

.prose h4 {
  margin: 1.2rem 0 0.35rem;
  font-size: var(--step-0);
}

.prose p,
.prose li {
  font-size: 0.96875rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

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

.prose figure {
  margin: 1.6rem 0;
  padding: 0;
  border: 0;
}

/* One rule for every illustration in an article: render at natural size,
   never upscale, cap the height so no single image dominates the page, and
   keep everything left aligned. */
.prose img,
.prose figure img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(60vh, 26rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.prose figcaption {
  margin-top: 0.65rem;
  padding-left: 0.8rem;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.prose table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.prose th,
.prose td {
  padding: 0.5rem 0.45rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.prose th {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Footnotes */
.footnotes {
  margin-top: 2.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.footnotes ol {
  padding-left: 1.1rem;
}

.footnotes li {
  margin-bottom: 0.5rem;
}

.footnotes p {
  font-size: inherit;
  line-height: 1.5;
}

.reversefootnote {
  display: inline-block;
  padding: 0.3rem 0.35rem;
  margin: -0.3rem 0;
  text-decoration: none;
}

/* Table of contents */
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14rem;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.toc__label {
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc li {
  margin: 0 0 0.3rem;
}

.toc a {
  display: block;
  padding-block: 0.25rem;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
  text-decoration: none;
}

.toc a:hover,
.toc a.is-active {
  color: var(--accent);
}

.toc .toc-h3 {
  padding-left: 0.85rem;
  font-size: 0.72rem;
}

@media (max-width: 980px) {
  .post-layout {
    grid-template-columns: 1fr;
  }
  .toc {
    display: none;
  }
}
/* Reveal */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
/* Home hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: clamp(20rem, 52svh, 30rem);
  border-bottom: 1px solid var(--line);
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.75rem, 3.5vw, 2.75rem) var(--gutter);
  padding-left: max(var(--gutter), (100vw - var(--maxw)) / 2 + var(--gutter));
}

.hero__title {
  margin: 0.4rem 0 0.9rem;
  font-size: clamp(1.9rem, 3.1vw, 2.9rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.028em;
}

.hero__title span {
  display: block;
}

.hero__title span:last-child {
  color: var(--accent);
}

.hero__intro {
  max-width: 42ch;
  margin-bottom: 1.15rem;
  color: var(--ink-2);
  font-size: clamp(0.96rem, 0.94rem + 0.22vw, 1.06rem);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.7rem;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__meta span {
  width: 1.1rem;
  height: 1px;
  background: var(--line-strong);
}

.hero__media {
  position: relative;
  min-height: 20rem;
  overflow: hidden;
  background: var(--paper-2);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.hero__media:hover img {
  transform: scale(1.02);
}

.hero__caption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.hero__caption:hover {
  background: var(--accent);
  color: var(--on-accent);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero__content {
    padding: clamp(1.5rem, 5vw, 2.25rem) var(--gutter);
  }
  .hero__media {
    order: -1;
    min-height: 0;
    height: 30svh;
    border-bottom: 1px solid var(--line);
  }
  .hero__title {
    max-width: 14ch;
  }
}
@media (max-width: 480px) {
  .hero__media {
    height: 26svh;
  }
  .hero__caption {
    bottom: 0.6rem;
    left: 0.6rem;
  }
}
/* Stats */
.stats {
  border-bottom: 1px solid var(--line);
}

.stats__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  padding: 0.9rem 0.8rem 0.9rem 0;
  border-right: 1px solid var(--line);
}

.stat:not(:first-child) {
  padding-left: 1rem;
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat span {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .stats__inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }
}
/* Home sections */
.home-intro {
  padding-block: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.home-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.home-intro h2 {
  font-size: var(--step-2);
  max-width: 22ch;
}

.home-intro p {
  max-width: 62ch;
  color: var(--ink-2);
  font-size: clamp(0.96rem, 0.94rem + 0.18vw, 1.04rem);
  line-height: 1.62;
}

@media (max-width: 760px) {
  .home-intro__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}
.home-projects {
  padding-block: var(--section-y);
  background: var(--paper-2);
}

.home-writing {
  padding-block: var(--section-y);
}

.home-datasets {
  padding-block: var(--section-y);
}

.home-datasets__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.home-datasets__intro h2 {
  max-width: 16ch;
}

.home-datasets__intro p {
  margin-top: 0.75rem;
  max-width: 34ch;
  color: rgba(247, 243, 234, 0.66);
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .home-datasets__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
/* Contact */
.contact {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
}

.contact h2 {
  max-width: 20ch;
  font-size: clamp(1.75rem, 3.4vw, 2.7rem);
  line-height: 1.02;
}

.contact__aside {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: flex-start;
}

.contact__aside p {
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 760px) {
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
/* Page header */
.page-header {
  padding-top: clamp(1.5rem, 3.2vw, 2.5rem);
  padding-bottom: clamp(1.1rem, 2.2vw, 1.75rem);
  border-bottom: 1px solid var(--line);
}

.page-header__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.page-header h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1;
}

.page-header__intro {
  max-width: 68ch;
  margin-top: 0.7rem;
  color: var(--ink-2);
  font-size: clamp(0.96rem, 0.94rem + 0.2vw, 1.06rem);
  line-height: 1.55;
}

.page-header__aside {
  flex: none;
  padding-bottom: 0.25rem;
}

.page-body {
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
}

@media (max-width: 700px) {
  .page-header__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
/* About */
.about-work {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.about-work__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1.25fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.about-portrait {
  margin: 0;
}

.about-portrait img {
  width: 200px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.about-intro__text > p:first-of-type {
  margin-bottom: 1.1rem;
  color: var(--ink);
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.5;
}

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

.about-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.25rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.about-block {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.about-block h2 {
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-block ul {
  padding: 0;
  list-style: none;
}

.about-block li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.about-block li:last-child {
  border-bottom: 0;
}

.about-block p {
  color: var(--ink-2);
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .about-intro {
    grid-template-columns: 1fr;
  }
  .about-portrait {
    max-width: 24rem;
  }
  .about-sections {
    grid-template-columns: 1fr;
  }
}
/* Post */
.post-header {
  padding-top: clamp(1.5rem, 3.2vw, 2.5rem);
  padding-bottom: clamp(1rem, 2vw, 1.5rem);
}

.post-header h1 {
  max-width: 30ch;
  margin: 0.6rem 0 0.85rem;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.06;
}

.post-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.8rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.post-body {
  padding-bottom: var(--section-y);
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.post-footer .link-arrow {
  max-width: 24ch;
}

@media (max-width: 640px) {
  .post-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* Project detail */
.project-detail__header {
  padding-top: clamp(1.5rem, 3.2vw, 2.5rem);
  padding-bottom: clamp(1rem, 2vw, 1.5rem);
}

.project-detail__header h1 {
  max-width: 26ch;
  margin: 0.6rem 0 0.8rem;
  font-size: clamp(1.7rem, 3.2vw, 2.7rem);
  line-height: 1.04;
}

.project-detail__summary {
  max-width: 68ch;
  color: var(--ink-2);
  font-size: clamp(0.96rem, 0.94rem + 0.2vw, 1.06rem);
}

.project-detail__hero {
  width: min(100% - var(--gutter) * 2, 1040px);
  margin: 0 auto clamp(1.5rem, 3vw, 2.25rem);
}

.project-detail__hero img {
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 24rem;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.project-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15rem;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  padding-bottom: var(--section-y);
}

.project-aside {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  padding-top: 1rem;
  border-top: 2px solid var(--ink);
}

.project-aside h2 {
  margin-bottom: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-aside + .project-aside {
  margin-top: 2rem;
}

.project-aside ul {
  padding: 0;
  list-style: none;
}

.project-aside li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}

.project-aside .button {
  width: 100%;
}

.project-aside__links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

@media (max-width: 900px) {
  .project-detail__layout {
    grid-template-columns: 1fr;
  }
  .project-aside {
    position: static;
  }
}
/* Media */
.media-card {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  padding: clamp(1.1rem, 2.6vw, 1.9rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.media-card__intro h2 {
  margin-bottom: 0.6rem;
  font-size: var(--step-2);
}

.media-card__intro p {
  color: var(--muted);
  font-size: 0.9rem;
}

.media-card__player {
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.media-card__player iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
}

@media (max-width: 820px) {
  .media-card {
    grid-template-columns: 1fr;
  }
}
/* 404 */
.not-found {
  display: grid;
  place-items: center;
  min-height: calc(100svh - var(--header-h));
  padding: var(--section-y) var(--gutter);
  text-align: center;
  background-image: repeating-radial-gradient(circle at 50% 55%, transparent 0 42px, var(--line) 43px 44px, transparent 45px 86px);
  background-size: 100% 100%;
}

.not-found__code {
  margin: 0;
  color: var(--paper-3);
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 13vw, 9rem);
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.05em;
}

.not-found h1 {
  margin: 0.75rem 0 0.5rem;
  font-size: var(--step-3);
}

.not-found p {
  max-width: 46ch;
  margin-inline: auto;
  color: var(--muted);
}

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

/*# sourceMappingURL=main.css.map */