@font-face { font-family: 'M PLUS 2'; font-style: normal; font-weight: 100; font-display: swap; src: url("/assets/fonts/m-plus-2-latin-100-normal.woff2") format("woff2"); }
@font-face { font-family: 'M PLUS 2'; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/m-plus-2-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: 'M PLUS 2'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/m-plus-2-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'M PLUS 2'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/m-plus-2-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'M PLUS 2'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/m-plus-2-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'M PLUS 2'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/m-plus-2-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'M PLUS 2'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/m-plus-2-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'M PLUS 2'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/m-plus-2-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'M PLUS 2'; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/m-plus-2-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: 'Hepta Slab'; font-style: normal; font-weight: 100; font-display: swap; src: url("/assets/fonts/hepta-slab-latin-100-normal.woff2") format("woff2"); }
@font-face { font-family: 'Hepta Slab'; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/hepta-slab-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: 'Hepta Slab'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/hepta-slab-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Hepta Slab'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/hepta-slab-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Hepta Slab'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/hepta-slab-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Hepta Slab'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/hepta-slab-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Hepta Slab'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/hepta-slab-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Hepta Slab'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/hepta-slab-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Hepta Slab'; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/hepta-slab-latin-900-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #f2f6f9;
  --fg-light-base-body: #0f1f33;
  --fg-light-base-heading: #0f1f33;
  --fg-light-base-muted: #3d5068;
  --fg-light-base-link: #006a8e;
  --fg-light-base-inverse: #1a2b42;
  --bg-light-card: #ffffff;
  --fg-light-card-body: #0f1f33;
  --fg-light-card-heading: #0f1f33;
  --fg-light-card-muted: #3d5068;
  --fg-light-card-link: #006a8e;
  --fg-light-card-inverse: #1a2b42;
  --bg-light-elevated: #e3ecf3;
  --fg-light-elevated-body: #0f1f33;
  --fg-light-elevated-heading: #0f1f33;
  --fg-light-elevated-muted: #3d5068;
  --fg-light-elevated-link: #006a8e;
  --fg-light-elevated-inverse: #1a2b42;
  --brand-light-accent: #006a8e;
  --brand-light-accent-hover: #004f6b;
  --brand-light-on-accent: #ffffff;
  --focus-light-ring: #006a8e;
  --border-light-default: #5d7088;
  --border-light-subtle: #c8d5e1;
}
.bg-surface-base { background: var(--bg-light-base); --fg-body: var(--fg-light-base-body); --fg-heading: var(--fg-light-base-heading); --fg-muted: var(--fg-light-base-muted); --fg-link: var(--fg-light-base-link); --fg-inverse: var(--fg-light-base-inverse); }
.bg-surface-card { background: var(--bg-light-card); --fg-body: var(--fg-light-card-body); --fg-heading: var(--fg-light-card-heading); --fg-muted: var(--fg-light-card-muted); --fg-link: var(--fg-light-card-link); --fg-inverse: var(--fg-light-card-inverse); }
.bg-surface-elevated { background: var(--bg-light-elevated); --fg-body: var(--fg-light-elevated-body); --fg-heading: var(--fg-light-elevated-heading); --fg-muted: var(--fg-light-elevated-muted); --fg-link: var(--fg-light-elevated-link); --fg-inverse: var(--fg-light-elevated-inverse); }
.text-role-body { color: var(--fg-body); overflow-wrap: anywhere; }
.text-role-heading { color: var(--fg-heading); overflow-wrap: anywhere; }
.text-role-muted { color: var(--fg-muted); }
.text-role-link { color: var(--fg-link); }
.text-role-inverse { color: var(--fg-inverse); }
.text-role-link { text-decoration: underline; }
.text-role-link:hover { color: var(--brand-light-accent-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-light-ring); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.site-logo { max-width: 100%; height: auto; }
.site-menu > summary { list-style: none; cursor: pointer; }
.site-menu > summary::-webkit-details-marker { display: none; }
html:has(:focus-visible) :is(details.site-menu, details.site-nav-group)[open]:not(:focus-within) > ul { visibility: hidden; }
:where(section[data-section][style]) { background-size: cover; background-position: center; padding: clamp(1.5rem, 4vw, 3rem); }
:where(section[data-section][style] > .bg-surface-card) { padding: clamp(1rem, 3vw, 2rem); }
:where(section[data-section][style] > .bg-surface-card > :first-child) { margin-top: 0; }
:where(section[data-section][style] > .bg-surface-card > :last-child) { margin-bottom: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; padding: 0.25rem 0.5rem; outline: 2px solid var(--focus-light-ring); }

:root {
  --sans: 'M PLUS 2', 'Segoe UI', Arial, sans-serif;
  --slab: 'Hepta Slab', Rockwell, Georgia, serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --measure: 38rem;
  --wide: 74rem;
  --hairline: 1px solid var(--border-light-subtle);
  --margin-line: 3px solid var(--brand-light-accent);
}

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

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

body {
  margin: 0;
  font-family: var(--slab);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.75;
}

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
}

a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 2px solid var(--brand-light-accent);
  outline-offset: 3px;
}

/* Header: static, brand row over a ruled nav bar */
.site-header {
  position: static;
  border-bottom: 1px solid var(--border-light-default);
}
.ledger {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.9rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}
.ledger__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
}
.ledger__brand .site-logo { width: 2.5rem; height: 2.5rem; flex: none; }
.ledger__name {
  font-family: var(--sans);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  min-width: 0;
}
.ledger__toggle { flex: none; }
.ledger__bar { display: none; }

nav.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(1.5rem, 3vw, 2.75rem);
}
nav.site-nav a {
  display: inline-block;
  font-family: var(--sans);
  font-variant-caps: all-small-caps;
  letter-spacing: 0.1em;
  font-size: 1.05rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  padding: 0.7rem 0 0.6rem;
  border-bottom: 3px solid transparent;
}
nav.site-nav a:hover { border-bottom-color: var(--brand-light-accent); }

/* Phone menu */
details.site-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0 0.85rem;
  border: 1px solid var(--border-light-default);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}
details.site-menu > summary::-webkit-details-marker { display: none; }
details.site-menu .menu-icon {
  width: 16px;
  height: 16px;
  border-left: 3px solid var(--brand-light-accent);
  background:
    linear-gradient(currentColor, currentColor) 4px 3px / 10px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 4px 7px / 10px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 4px 11px / 7px 2px no-repeat;
}
details.site-menu[open] > summary { border-color: var(--brand-light-accent); }
details.site-menu > ul {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 20;
  margin: 0;
  padding: 0.75rem var(--gutter) 1.5rem calc(var(--gutter) + 1rem);
  list-style: none;
  background: var(--bg-light-card);
  border-left: 6px solid var(--brand-light-accent);
  border-bottom: 1px solid var(--border-light-default);
}
details.site-menu > ul a {
  display: block;
  padding: 0.8rem 0;
  border-bottom: var(--hairline);
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 400;
  text-decoration: none;
}
details.site-menu > ul ul { list-style: none; padding-left: 1rem; margin: 0; }

@media (min-width: 900px) {
  .ledger { padding-top: 1.3rem; padding-bottom: 1.1rem; }
  .ledger__name { font-size: 1.5rem; }
  .ledger__toggle { display: none; }
  .ledger__bar {
    display: block;
    border-top: var(--hairline);
  }
  .ledger__bar nav.site-nav {
    max-width: var(--wide);
    margin: 0 auto;
    padding: 0 var(--gutter);
  }
}

@media (max-width: 420px) {
  .ledger__name { font-size: 1.05rem; }
  .ledger__brand .site-logo { width: 2rem; height: 2rem; }
  details.site-menu .menu-label { display: none; }
}

/* Page frame */
.page-frame {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(3rem, 8vw, 6rem);
}
.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 1.4rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.6rem;
  font-family: var(--sans);
  font-size: 0.88rem;
}
.breadcrumbs li + li::before { content: "/"; margin-right: 0.6rem; color: var(--border-light-default); }

/* Prose */
.prose { max-width: var(--measure); }
.prose > * { margin: 0 0 1.2rem; }
.prose h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.15rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 3rem 0 1rem;
  padding-top: 1.5rem;
  border-top: var(--hairline);
}
.prose h3 { font-size: 1.3rem; font-weight: 600; margin: 2rem 0 0.6rem; }
.prose ul { padding-left: 1.1rem; }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--brand-light-accent); }
.prose a { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--brand-light-accent-hover); text-decoration-thickness: 2px; }
.prose figure { margin: 2.2rem 0; }
.prose figure img { display: block; border-radius: 6px; }
.prose .photo-hero { margin: 0 0 2.6rem; }
.prose .photo-hero img { width: 100%; object-fit: cover; aspect-ratio: 16 / 9; border-radius: 6px; }

/* Home: thin oversized headline against a cyan margin line */
.cover {
  padding: clamp(2.5rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem) clamp(1rem, 3vw, 2.25rem);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  border-left: var(--margin-line);
}
.cover h1 {
  font-size: clamp(2.8rem, 9.5vw, 7.25rem);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 13ch;
}
.cover__lines {
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
  max-width: 34rem;
  display: grid;
  gap: 0.75rem;
}
.cover__lines .display-line {
  margin: 0;
  padding-top: 0.75rem;
  border-top: var(--hairline);
  font-size: 1.02rem;
}
.home-body { margin: 0 auto; max-width: 44rem; }
.home-body > p:first-of-type {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* Article */
.article { max-width: 46rem; margin: 0 auto; }
.article__head {
  padding: clamp(2rem, 6vw, 4rem) 0 1.8rem clamp(1rem, 2.5vw, 1.75rem);
  margin-bottom: 1.5rem;
  border-left: var(--margin-line);
}
.article__head h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 300; letter-spacing: -0.03em; }
.prose--article { counter-reset: note; }
.prose--article h2 { counter-increment: note; position: relative; }
.prose--article h2::before {
  content: counter(note);
  display: inline-block;
  min-width: 1.7rem;
  margin-bottom: 0.5rem;
  padding: 0.05rem 0.4rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  color: var(--brand-light-on-accent);
  background: var(--brand-light-accent);
  border-radius: 3px;
}
@media (min-width: 1100px) {
  .prose--article h2::before { position: absolute; left: -3.5rem; top: 2.2rem; margin: 0; }
}
.prose--article > p:first-of-type {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1.4rem, 2.8vw, 1.75rem);
  line-height: 1.35;
}
.prose--article blockquote {
  margin: 2.4rem 0;
  padding: 0.2rem 0 0.2rem 1.4rem;
  border-left: var(--margin-line);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1.35;
}

/* Topic hub */
.hub__head {
  padding: clamp(2rem, 6vw, 4rem) 0 1.8rem clamp(1rem, 2.5vw, 1.75rem);
  margin-bottom: 2rem;
  border-left: var(--margin-line);
}
.hub__head h1 { font-size: clamp(2.3rem, 6.5vw, 4.6rem); font-weight: 300; letter-spacing: -0.03em; max-width: 16ch; }
.hub__cards ul {
  list-style: none;
  margin: 0 0 clamp(2.5rem, 6vw, 4rem);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.25rem;
}
.hub__cards li {
  background: var(--bg-light-card);
  border: 1px solid var(--border-light-subtle);
  border-radius: 6px;
  padding: 1.4rem 1.3rem 1.5rem;
}
.hub__cards a {
  display: block;
  font-family: var(--sans);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid var(--brand-light-accent);
}
.hub__cards a:hover { color: var(--brand-light-accent-hover); }

/* About */
.about {
  display: grid;
  gap: 2rem;
  padding-top: clamp(2rem, 6vw, 4rem);
}
.about__side { padding-left: clamp(1rem, 2.5vw, 1.75rem); border-left: var(--margin-line); }
.about__side h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); font-weight: 300; letter-spacing: -0.03em; }
.about__caption { margin: 1rem 0 0; font-size: 0.9rem; padding-top: 0.8rem; border-top: var(--hairline); }
.about__body > p:first-of-type {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  line-height: 1.25;
}
@media (min-width: 900px) {
  .about { grid-template-columns: minmax(14rem, 1fr) 2fr; gap: 4rem; }
  .about__side { position: sticky; top: 2rem; align-self: start; }
}

/* Contact */
.contact {
  display: grid;
  gap: 2.5rem;
  padding-top: clamp(2rem, 6vw, 4rem);
}
.contact__head { padding-left: clamp(1rem, 2.5vw, 1.75rem); border-left: var(--margin-line); margin-bottom: 1.6rem; }
.contact__head h1 { font-size: clamp(2.4rem, 6.5vw, 4.2rem); font-weight: 300; letter-spacing: -0.03em; }
.contact__card {
  align-self: start;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid var(--border-light-subtle);
  border-top: 5px solid var(--brand-light-accent);
  border-radius: 6px;
}
.field { margin-bottom: 1.5rem; }
.field label { display: block; font-family: var(--sans); font-weight: 500; font-size: 0.98rem; margin-bottom: 0.4rem; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  background: var(--bg-light-base);
  border: 1px solid var(--border-light-default);
  border-radius: 4px;
  padding: 0.7rem 0.8rem;
}
.field input:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--brand-light-accent);
  outline-offset: 1px;
}
.field__help { margin: 0.4rem 0 0; font-size: 0.85rem; line-height: 1.5; }
.send {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--brand-light-accent);
  background: transparent;
  border: 2px solid var(--brand-light-accent);
  border-radius: 4px;
  min-height: 48px;
  padding: 0.6rem 1.6rem;
  cursor: pointer;
}
.send:hover { color: var(--brand-light-on-accent); background: var(--brand-light-accent-hover); border-color: var(--brand-light-accent-hover); }
@media (min-width: 900px) {
  .contact { grid-template-columns: 1.15fr 1fr; gap: 4rem; }
}

/* Thank you */
.thanks { max-width: 40rem; margin: 0 auto; padding-top: clamp(2.5rem, 8vw, 5rem); }
.thanks__head { padding-left: clamp(1rem, 2.5vw, 1.75rem); border-left: var(--margin-line); }
.thanks__head h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); font-weight: 300; letter-spacing: -0.03em; }
.thanks__rule { border: 0; border-top: var(--hairline); margin: 1.8rem 0 2rem; }
.thanks__back { margin-top: 2.4rem; font-family: var(--sans); font-weight: 500; }

/* Footer */
.site-footer { border-top: 1px solid var(--border-light-subtle); }
.site-footer__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2.4rem var(--gutter) 3rem;
  display: grid;
  gap: 0.4rem;
}
.site-footer p { margin: 0; }
.site-footer__name { font-family: var(--sans); font-size: 1.2rem; font-weight: 500; }
.site-footer__line { font-size: 0.9rem; max-width: 40rem; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none; animation: none; }
}
