:root {
  --ink: #1b2421;
  --pine: #1e4d40;
  --leaf: #2f6f5e;
  --cream: #f3eee6;
  --paper: #fffcf7;
  --sand: #e4d8c6;
  --clay: #a24b32;
  --mute: #5d675f;
  --line: rgba(27, 36, 33, 0.12);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  color: var(--ink);
  background: var(--cream);
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--clay); }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { top: 12px; }

.mast { position: sticky; top: 0; z-index: 20; background: rgba(243, 238, 230, 0.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.mast-top, .office-bar {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--pine); color: #e7f2ec; padding: 8px 28px; font-size: 13px;
}
.mast-top a, .office-bar a { color: #fff; text-decoration: none; }
.mast-bar { display: flex; align-items: center; gap: 18px; padding: 14px 28px; }
.word { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.mark {
  width: 36px; height: 36px; border-radius: 50% 50% 46% 46%;
  background:
    radial-gradient(circle at 50% 72%, transparent 0 7px, var(--pine) 8px 10px, transparent 11px),
    linear-gradient(var(--leaf), var(--pine));
  box-shadow: inset 0 -10px 0 var(--clay);
}
.word-text { font-family: "Fraunces", Georgia, serif; font-weight: 650; font-size: 26px; letter-spacing: -0.03em; line-height: 1; }
.word-text em { display: block; font-style: normal; font-family: Outfit, sans-serif; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); font-weight: 600; }
.nav-toggle { display: none; margin-left: auto; border: 0; background: var(--pine); color: #fff; width: 46px; height: 46px; border-radius: 14px; padding: 0; align-items: center; justify-content: center; cursor: pointer; }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
body.nav-open .burger { background: transparent; }
body.nav-open .burger::before { top: 0; transform: rotate(45deg); }
body.nav-open .burger::after { top: 0; transform: rotate(-45deg); }
.mast nav { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.mast nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 11px; border-radius: 999px; }
.mast nav a:hover { background: rgba(30, 77, 64, 0.08); }
.mast nav a[aria-current="page"] { background: var(--pine); color: #fff; }

.stage { width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 48px 0 0; }
.kicker { color: var(--clay); font-size: 12px; font-weight: 650; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 12px; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 560; letter-spacing: -0.03em; line-height: 1.05; }
h1 { font-size: clamp(42px, 6vw, 72px); max-width: 14ch; margin-bottom: 16px; }
h2 { font-size: clamp(28px, 3vw, 40px); margin: 8px 0 14px; }
h3 { font-size: 24px; margin-bottom: 8px; }
.lede { font-size: 19px; max-width: 42em; margin-bottom: 22px; }
.prose p, .prose li { max-width: 42em; }
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 16px 1.2em; }
.prose li { margin: 6px 0; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--clay); color: #fff; text-decoration: none; border: 0; cursor: pointer;
  font: 600 15px/1 Outfit, sans-serif; padding: 14px 18px; border-radius: 999px;
}
.btn:hover { background: #8b3d28; color: #fff; }
.btn:disabled { opacity: 0.65; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }

.hero { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 28px; align-items: end; margin-bottom: 28px; }
.plate { background: var(--pine); color: #f4faf7; padding: 26px 22px; border-radius: 18px; }
.plate h2, .plate .plate-name { color: #fff; font-size: 32px; margin-bottom: 14px; }
.plate dl { display: grid; gap: 12px; }
.plate dt { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #b7d0c6; }
.plate a { color: #fff; }

.cards, .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 12px 0 28px; }
.cards article, .stats article, .note, .job, form, .empty {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 20px;
}
.cards span, .stats span { display: block; font-weight: 600; margin-bottom: 6px; }
.stats b { display: block; font-family: Fraunces, Georgia, serif; font-size: 42px; color: var(--pine); line-height: 1; }
.note { border-left: 5px solid var(--clay); margin: 10px 0 28px; }
.band { margin-top: 36px; }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 22px; align-items: start; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 24px; }
.facts div { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.facts dt { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.job h3 { margin-top: 8px; }
.job p { margin: 8px 0; }
.meta { color: var(--mute); font-size: 14px; }

form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 650; }
input, select, textarea {
  width: 100%; font: 16px/1.45 Outfit, sans-serif; color: var(--ink);
  background: #fff; border: 1px solid #d9d0c3; border-radius: 10px; padding: 12px;
}
textarea { min-height: 140px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; letter-spacing: 0; background: var(--cream); border-radius: 10px; padding: 12px; }
.check input { width: auto; margin-top: 4px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.ok { background: #e7f3ee; border-left: 4px solid var(--leaf); padding: 12px 14px; border-radius: 8px; font-weight: 600; }
.err { display: none; color: var(--clay); font-weight: 650; }
.err.show { display: block; }
.news article { margin-bottom: 16px; }
.news h3 { font-size: 28px; }

.colophon {
  margin-top: 64px; background: var(--pine); color: #d5e6df;
  padding: 36px max(20px, calc((100vw - 1080px) / 2)) 28px;
}
.foot { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr; gap: 22px; }
.foot strong, .foot h2 { color: #fff; font-size: 22px; }
.foot a { display: block; color: #fff; text-decoration: none; margin: 4px 0; }
.foot a:hover { color: #f2c7b8; }
.legal { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.15); }
.legal a { color: #fff; margin-right: 14px; }

.office-bar nav { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.office-bar button { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 6px 10px; cursor: pointer; font: 600 13px Outfit, sans-serif; }
.office { width: min(1000px, calc(100% - 32px)); margin: 28px auto 64px; }
.admin h1 { max-width: none; font-size: clamp(36px, 5vw, 56px); }
.grid { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 12px; overflow: hidden; margin: 12px 0 20px; }
.grid th, .grid td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.grid th { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs a { text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.tabs a[aria-current="page"] { background: var(--pine); color: #fff; }
.flash { background: #e7f3ee; padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; font-weight: 650; }
.login-card { max-width: 520px; margin: 40px auto; }
.crumbs { margin-bottom: 10px; color: var(--mute); }
.admin form button + button { margin-left: 8px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .mast { z-index: 40; backdrop-filter: none; background: var(--cream); }
  .mast-top { padding: 8px 16px; font-size: 12px; }
  .mast-bar { padding: 10px 16px; min-height: 68px; }
  .word-text { font-size: 22px; }
  body.nav-open { overflow: hidden; }
  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(20, 32, 28, 0.46);
    z-index: 25;
  }
  .mast-bar:has(.nav-toggle) nav {
    display: none;
    position: fixed;
    z-index: 35;
    left: 12px;
    right: 12px;
    top: 118px;
    bottom: 12px;
    margin: 0;
    padding: 18px 14px 14px;
    flex-direction: column;
    gap: 4px;
    background: #173f35;
    border-radius: 24px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
    overflow: auto;
  }
  .mast-bar:has(.nav-toggle) nav.open { display: flex; }
  .mast nav a {
    color: #f4faf7;
    font-family: "Fraunces", Georgia, serif;
    font-size: 28px;
    font-weight: 560;
    line-height: 1.1;
    padding: 13px 14px;
    border-radius: 14px;
  }
  .mast nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.12); color: #fff; }
  .mast nav a:last-child {
    margin-top: 12px;
    background: var(--clay);
    color: #fff;
    text-align: center;
    font-family: Outfit, sans-serif;
    font-size: 17px;
    border-radius: 999px;
    padding: 16px 14px;
  }
  .hero, .cards, .stats, .split, .facts, .row, .foot { grid-template-columns: 1fr; }
  .office-bar { padding-left: 16px; padding-right: 16px; }
  .stage { width: min(1080px, calc(100% - 32px)); padding-top: 22px; }
  h1 { max-width: none; font-size: clamp(36px, 11vw, 48px); }
  .lede { font-size: 17px; }
  .hero { gap: 18px; margin-bottom: 18px; }
  .plate { border-radius: 16px; }
  .actions .btn { min-height: 48px; }
  .cards article, .note, form { padding: 16px; }
  .colophon { padding: 28px 16px 22px; }
  .foot { gap: 18px; }
  .grid { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
