:root {
  --ink: #172421;
  --tide: #1b6b5a;
  --tide-deep: #12493d;
  --foam: #e7f3ee;
  --paper: #f6f4ef;
  --card: #fffcf8;
  --sand: #efe4d4;
  --line: rgba(23, 36, 33, 0.12);
  --mute: #5d6a64;
  --danger: #9c3b2e;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  color: var(--ink);
  background: var(--paper);
  font-family: Figtree, "Segoe UI", sans-serif;
  font-size: 17.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--tide-deep); }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--tide); outline-offset: 3px; }
.skip {
  position: absolute; left: 12px; top: -48px; background: var(--tide); color: #fff;
  padding: 8px 12px; z-index: 80; font-weight: 700;
}
.skip:focus { top: 12px; }

.mast {
  position: sticky; top: 0; z-index: 30;
  background: rgba(246, 244, 239, 0.96);
  border-bottom: 1px solid var(--line);
}
.mast-top {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--tide-deep); color: #e7f3ee;
  padding: 8px 28px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
}
.mast-top a { color: #fff; text-decoration: none; font-weight: 700; }
.mast-bar { display: flex; align-items: center; gap: 16px; padding: 12px 28px; min-height: 74px; }
.word { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.mark {
  width: 36px; height: 36px; flex: none; border-radius: 12px;
  background:
    radial-gradient(circle at 50% 62%, #fff 0 5px, transparent 6px),
    linear-gradient(160deg, #8fd0bf, var(--tide));
  box-shadow: inset 0 -8px 0 rgba(18, 73, 61, 0.18);
}
.word-text { font-family: Newsreader, Georgia, serif; font-weight: 500; font-size: 22px; line-height: 0.95; letter-spacing: -0.03em; }
.word-text span { display: block; font-family: Figtree, sans-serif; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); font-weight: 700; margin-top: 3px; }
.nav-toggle {
  display: none; margin-left: auto; border: 0; background: var(--tide);
  width: 48px; height: 48px; 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: 2px; margin-left: auto; align-items: center; }
.mast nav a {
  color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 8px 10px; border-radius: 999px;
}
.mast nav a:hover { background: var(--foam); }
.mast nav a[aria-current="page"] { background: var(--foam); color: var(--tide-deep); }
.mast nav a.ask { background: var(--tide); color: #fff; margin-left: 6px; }
.mast nav a.ask:hover { background: var(--tide-deep); color: #fff; }

.wrap { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.hero { padding: 54px 0 18px; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 0.8fr; gap: 28px; align-items: end; }
.kicker {
  color: var(--tide); font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; margin-bottom: 12px;
}
h1, h2, h3 { font-family: Newsreader, Georgia, serif; font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
h1 { font-size: clamp(46px, 6.4vw, 78px); max-width: 12ch; margin-bottom: 16px; }
h2 { font-size: clamp(32px, 4vw, 46px); margin: 0 0 12px; }
h3 { font-size: 26px; margin-bottom: 6px; }
.lede { font-size: 19px; max-width: 40em; margin-bottom: 22px; }
.stage { padding: 28px 0 0; }
.prose p, .prose li { max-width: 42em; }
.prose p { margin-bottom: 14px; }
.prose h2 { margin-top: 26px; }
.prose ul { margin: 0 0 16px 1.15em; }
.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(--tide); color: #fff; text-decoration: none; border: 0; cursor: pointer;
  font: 700 15px/1 Figtree, sans-serif; padding: 14px 18px; border-radius: 999px; min-height: 48px;
}
.btn:hover { background: var(--tide-deep); 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; }

.sheet {
  background: var(--foam); border-radius: 28px; padding: 22px 22px 8px;
}
.sheet p.eyebrow { font-family: Newsreader, Georgia, serif; font-size: 28px; letter-spacing: -0.03em; margin-bottom: 8px; }
.sheet div { padding: 12px 0; border-top: 1px solid rgba(27, 107, 90, 0.16); }
.sheet dt { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tide-deep); font-weight: 700; }
.sheet dd { font-size: 16px; }

.band { padding: 34px 0 8px; }
.cards, .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cards article, .panel, form, .job, .note {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px;
}
.cards article em {
  display: block; font-family: Newsreader, Georgia, serif; font-style: italic; font-size: 22px;
  color: var(--tide); margin-bottom: 8px;
}
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.services a {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px; min-height: 150px;
}
.services a:hover { border-color: var(--tide); background: var(--foam); }
.services strong { display: block; font-family: Newsreader, Georgia, serif; font-size: 28px; font-weight: 500; margin-bottom: 6px; }
.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 22px; }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.facts dt, .admin .facts dt { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); font-weight: 700; }
.steps { list-style: none; margin: 0; }
.steps li { padding: 16px 0 16px 64px; position: relative; border-top: 1px solid var(--line); max-width: 42em; }
.steps li span {
  position: absolute; left: 0; top: 16px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--foam); color: var(--tide-deep); display: grid; place-items: center;
  font-family: Newsreader, Georgia, serif; font-size: 20px;
}

form label, .check { display: block; font-weight: 600; font-size: 14px; margin: 0 0 12px; }
input, select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 12px; border-radius: 12px;
  border: 1px solid #d5ddd8; background: #fff; color: var(--ink);
  font: 400 16px/1.4 Figtree, sans-serif;
}
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: 600; }
.check input { width: auto; margin-top: 4px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.err { color: var(--danger); font-weight: 700; }
.err.show { margin-bottom: 10px; }
.ok { background: var(--foam); border-radius: 12px; padding: 12px; font-weight: 700; margin-top: 12px; }
table.grid { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 16px; 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); }

.colophon { background: var(--tide-deep); color: #e7f3ee; margin-top: 56px; padding: 40px 0 22px; border-radius: 32px 32px 0 0; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 22px; }
.foot h2 { color: #fff; font-size: 34px; }
.foot a, .legal a { color: #fff; text-decoration: none; }
.foot a { display: block; margin: 6px 0; }
.foot a:hover, .legal a:hover { color: #b7e2d4; }
.legal { margin-top: 22px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.16); font-size: 14px; }
.legal a { margin-right: 14px; }
.empty { padding: 8px 0 18px; }

.office-bar {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center;
  background: var(--tide-deep); color: #fff; padding: 12px 20px;
}
.office-bar a { color: #fff; text-decoration: none; font-weight: 700; }
.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: 700 13px Figtree, sans-serif; }
.office { width: min(1000px, calc(100% - 32px)); margin: 28px auto 64px; }
.admin h1 { max-width: none; }
.admin .lede { color: var(--mute); }
.stats article { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.stats article span { display: block; font-family: Newsreader, Georgia, serif; font-size: 42px; line-height: 1; }
.flash { background: var(--foam); padding: 10px 12px; border-radius: 12px; margin-bottom: 12px; font-weight: 700; }
.login-card { max-width: 480px; margin: 24px auto; }
.crumbs { margin-bottom: 10px; color: var(--mute); }
.admin form + form { margin-top: 10px; }
.admin .facts div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 8px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .mast { background: var(--paper); }
  .mast-top { padding: 8px 16px; font-size: 11px; letter-spacing: 0.06em; align-items: center; }
  .mast-bar { padding: 10px 16px; }
  .word-text { font-size: 20px; }
  body.nav-open { overflow: hidden; }
  body.nav-open::before { content: ""; position: fixed; inset: 0; background: rgba(18, 40, 34, 0.46); z-index: 40; }
  .mast { z-index: 50; }
  .mast-bar nav {
    display: none; position: fixed; z-index: 60;
    left: 10px; right: 10px; top: 118px; bottom: 10px;
    margin: 0; padding: 16px 12px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--tide-deep); border-radius: 24px;
    box-shadow: 0 24px 50px rgba(0,0,0,0.28); overflow: auto;
  }
  .mast-bar nav.open { display: flex; }
  .mast nav a {
    color: #f3faf7; font-family: Newsreader, Georgia, serif;
    font-size: 30px; font-weight: 500; padding: 11px 12px; border-radius: 12px;
  }
  .mast nav a[aria-current="page"] { background: rgba(255,255,255,0.1); color: #fff; }
  .mast nav a.ask {
    margin: 12px 0 0; text-align: center; font-family: Figtree, sans-serif;
    font-size: 17px; background: #fff; color: var(--tide-deep); padding: 16px 12px;
  }
  .hero { padding: 28px 0 8px; }
  .hero-grid, .cards, .stats, .services, .split, .facts, .row, .foot { grid-template-columns: 1fr; }
  .wrap { width: min(1080px, calc(100% - 28px)); }
  h1 { max-width: none; font-size: clamp(40px, 12vw, 56px); }
  .lede { font-size: 17px; }
  .actions .btn { width: 100%; }
  .sheet, .cards article, .panel, form { border-radius: 18px; }
  .colophon { border-radius: 24px 24px 0 0; padding: 28px 0 18px; }
  .grid { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
