:root {
  --bg: #faf9f6;
  --surface: #f2f0ea;
  --card: #ffffff;
  --ink: #18181b;
  --ink-muted: #52525b;
  --ink-subtle: #71717a;
  --border: #e4e1d8;
  --border-strong: #d1cdc2;
  --accent: #0f5132;
  --accent-hover: #0a3c24;
  --accent-soft: #e9f3ee;
  --max-w: 1040px;
  --radius: 6px;
}

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

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(250, 249, 246, 0.95);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 500;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: none;
}

.nav a.nav-pill {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 13px;
  border-radius: 999px;
}

.nav a.nav-pill:hover {
  background: var(--accent);
  color: #ffffff;
}

main {
  flex: 1;
}

h1, h2 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--border);
}

.kicker {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.15;
  max-width: 780px;
}

.lead {
  margin: 0 0 32px;
  font-size: 17px;
  color: var(--ink-muted);
  max-width: 660px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
  text-decoration: none;
}

.btn-outline {
  border-color: var(--border-strong);
  color: var(--ink);
  background: var(--card);
}

.btn-outline:hover {
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

.section {
  padding: 68px 0;
  border-bottom: 1px solid var(--border);
}

.section-surface {
  background: var(--surface);
}

.section-head {
  margin-bottom: 34px;
  max-width: 660px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.section-head p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 15px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.panel-index {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

.panel h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
}

.panel p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
}

.detail-list {
  list-style: none;
  padding: 14px 0 0;
  margin: 14px 0 0;
  border-top: 1px solid var(--border);
}

.detail-list li {
  font-size: 13px;
  color: var(--ink-subtle);
  padding: 3px 0;
}

.page-header {
  padding: 58px 0 42px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.page-header h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
}

.page-header .lead {
  margin-bottom: 0;
  font-size: 16px;
}

.prose {
  max-width: 720px;
}

.prose h2 {
  font-size: 22px;
  margin: 30px 0 10px;
}

.prose p,
.prose li {
  color: var(--ink-muted);
  font-size: 15px;
}

.prose ul {
  padding-left: 20px;
}

.note-box {
  background: var(--accent-soft);
  border: 1px solid #c7e0d3;
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 14px;
  color: #16402a;
  margin-top: 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.contact-card .role {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-subtle);
  margin-bottom: 6px;
}

.contact-card .addr {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 15px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 6px;
}

.contact-card p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.callout {
  background: var(--accent);
  color: #f4f8f5;
  border-radius: 8px;
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.callout h2 {
  color: #ffffff;
  margin: 0 0 6px;
  font-size: 26px;
}

.callout p {
  margin: 0;
  color: #d6ebe0;
  font-size: 15px;
}

.callout .btn-light {
  background: #ffffff;
  color: var(--accent);
  font-weight: 600;
}

.callout .btn-light:hover {
  background: #f2f0ea;
  text-decoration: none;
}

.site-footer {
  padding: 40px 0;
  background: var(--surface);
  font-size: 13px;
  color: var(--ink-subtle);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

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

@media (max-width: 820px) {
  .grid-3,
  .grid-2,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 56px 0 48px;
  }
  .header-inner {
    padding: 12px 0;
    flex-direction: column;
    align-items: flex-start;
  }
}
