@font-face {
  font-family: Syne;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/syne-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: Syne;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/syne-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: Syne;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/syne-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: Literata;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/literata-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: Literata;
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/literata-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: Literata;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/literata-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: Literata;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/literata-latin-700-normal.woff2") format("woff2");
}

:root {
  --brand: #0FBE7C;
  --forest: #0b3d2e;
  --ink: #14221c;
  --sage: #e8f2ec;
  --sheet: #f3faf6;
  --muted: #3d564c;
  --rule: #c5d9ce;
  --max: 980px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sage);
  color: var(--ink);
  font-family: Literata, "Palatino Linotype", Palatino, serif;
  font-size: 1.0625rem;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #0a7a52; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--forest); }
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--forest);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 20;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.topbar {
  background: #07261c;
  color: #d7efe4;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}
.topbar .wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.4rem 0;
}
.topbar b {
  font-family: Syne, "Trebuchet MS", sans-serif;
  font-weight: 800;
  color: var(--brand);
}
.topbar a { color: #fff; }

.mast {
  background: var(--forest);
  color: #f3faf6;
  border-bottom: 3px solid var(--brand);
}
.mast-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1.2rem;
  padding: 0.8rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #f3faf6;
  text-decoration: none;
}
.brand img { height: 40px; width: auto; }
.brand small {
  display: block;
  font-family: Literata, serif;
  font-size: 0.78rem;
  font-style: italic;
  color: #cfe6da;
  font-weight: 400;
}
.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  margin-left: auto;
}
.menu a {
  font-family: Syne, "Trebuchet MS", sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: #f3faf6;
  text-decoration: none;
  padding: 0.15rem 0;
  border-bottom: 2px solid transparent;
}
.menu a:hover, .menu a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--brand);
}
.langswitch {
  font-family: Syne, "Trebuchet MS", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: #f3faf6;
  text-decoration: none;
  border: 1px solid rgba(15, 190, 124, 0.7);
  padding: 0.18rem 0.5rem;
}
.langswitch:hover { background: rgba(15, 190, 124, 0.18); color: #fff; }

.frame {
  display: grid;
  grid-template-columns: 10px 1fr;
  width: min(100%, calc(var(--max) + 10px + 2rem));
  margin: 0 auto;
  background: var(--sheet);
  min-height: 60vh;
  box-shadow: 0 0 0 1px rgba(11, 61, 46, 0.08);
}
.spine { background: var(--brand); }
.sheet { min-width: 0; }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

main { padding: 1.75rem 0 3rem; }

h1, h2, h3, .site-title, .section-head, .reg-num, .reg-title {
  font-family: Syne, "Trebuchet MS", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}
h1, .site-title { font-size: clamp(1.7rem, 3.2vw, 2.45rem); margin: 0 0 0.65rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 0.55rem; }
h3 { font-size: 1.12rem; margin: 1.35rem 0 0.35rem; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 1.3rem; }
.kicker {
  font-family: Syne, "Trebuchet MS", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: #0a7a52;
  margin: 0 0 0.4rem;
}
.crumbs { font-size: 0.9rem; color: var(--muted); margin: 0 0 1rem; }
.crumbs a { color: var(--muted); }
.byline { font-size: 0.88rem; color: var(--muted); margin: 0 0 1.2rem; }

.ledger-hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.75rem;
  align-items: center;
  margin: 0 0 2.25rem;
  padding-bottom: 1.75rem;
  border-bottom: 2px solid var(--forest);
}
.reel {
  width: 220px;
  height: 220px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 7px solid var(--forest);
  box-shadow: 0 0 0 3px var(--brand);
  background: #0b3d2e;
}
.reel img, .article-hero img, .reg-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.article-hero {
  width: 240px;
  height: 240px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  overflow: hidden;
  border: 7px solid var(--forest);
  box-shadow: 0 0 0 3px var(--brand);
}

.section-head {
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--brand);
  display: inline-block;
}
.register { margin: 0 0 2.5rem; }
.reg-intro { color: var(--muted); margin: 0 0 0.8rem; }
.reg-row {
  display: grid;
  grid-template-columns: 3rem 4.25rem 1fr;
  gap: 0.85rem 1rem;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
}
a.reg-row:hover { background: rgba(15, 190, 124, 0.08); }
.reg-num {
  font-size: 1.15rem;
  color: var(--brand);
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.reg-shot {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--forest);
}
.reg-title {
  font-size: 1.05rem;
  margin: 0 0 0.15rem;
  font-weight: 700;
}
.reg-title a, a.reg-row .reg-title { color: var(--ink); text-decoration: none; }
a.reg-row:hover .reg-title { color: #0a7a52; }
.reg-desc { margin: 0; color: var(--muted); font-size: 0.92rem; }

.home-essay { border-top: 2px solid var(--forest); padding-top: 1.5rem; }

.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.prose li { margin: 0 0 0.35rem; }
.prose h2 { border-top: 1px solid var(--rule); padding-top: 1.2rem; }

.related { margin-top: 2.4rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.helpbox {
  margin-top: 2rem;
  padding: 1rem 1.1rem;
  background: var(--sage);
  border-left: 4px solid var(--brand);
}
.helpbox h2 { margin-top: 0; font-size: 1.1rem; border: 0; padding: 0; }

.foot {
  background: var(--forest);
  color: #d5e8de;
  padding: 1.8rem 0 1.3rem;
}
.foot .wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.foot a { color: #fff; }
.foot h2 {
  color: #f3faf6;
  font-size: 1rem;
  margin: 0 0 0.45rem;
}
.foot ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.foot li { margin: 0 0 0.3rem; }
.legal { font-size: 0.85rem; margin: 0 0 1rem; color: #c5d9ce; }
.privacy-alone {
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(15, 190, 124, 0.35);
  font-family: Syne, "Trebuchet MS", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
}

.page404 { text-align: center; padding: 3rem 0; }
.page404 a { margin: 0 0.5rem; }

@media (max-width: 800px) {
  .ledger-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .reel { width: 180px; height: 180px; }
  .menu { margin-left: 0; width: 100%; }
  .brand { width: 100%; }
}
@media (max-width: 560px) {
  .frame { grid-template-columns: 6px 1fr; }
  .reg-row { grid-template-columns: 2.4rem 3.4rem 1fr; gap: 0.55rem; }
  .reg-shot { width: 3.4rem; height: 3.4rem; }
  .article-hero { width: 180px; height: 180px; }
  .topbar .wrap { flex-wrap: wrap; }
  body { font-size: 1rem; }
}
