:root {
  --paper: #efe8d8;
  --paper-2: #e6dcc8;
  --ink: #17140f;
  --muted: #5f584c;
  --line: #cfc4ae;
  --pine: #1c3d32;
  --pine-2: #2f6a56;
  --copper: #9b401c;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Palatino, Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
}

a { color: var(--pine); }
a:hover { color: var(--copper); }
img, svg { display: block; max-width: 100%; }

.preview-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  align-items: center;
  padding: 8px 22px;
  background: var(--pine);
  color: #efe8d8;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.preview-bar a { color: #efe8d8; }
.preview-bar a:hover { color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: rgba(239, 232, 216, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}
.logo small {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 4px;
}
.mark {
  width: 44px;
  height: 44px;
  flex: none;
  object-fit: contain;
}
.logo img.mark { display: block; }
nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
}
nav a[aria-current="page"] {
  color: var(--copper);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line);
  padding: 6px 10px;
  font: 600 0.85rem var(--sans);
  cursor: pointer;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.hero { padding: 64px 0 28px; }
.kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 14px;
}
h1 {
  font-family: var(--serif);
  font-weight: 480;
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
  max-width: none;
}
.lede {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 28px;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 11px 16px;
  border-radius: 999px;
  font: 650 0.95rem var(--sans);
  border: 1px solid transparent;
  appearance: none;
  cursor: pointer;
}
.btn-primary { background: var(--pine); color: #efe8d8; }
.btn-primary:hover { background: #152e26; color: #efe8d8; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }

.networks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0 48px;
}
.networks span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 6px 10px 6px 7px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.networks img,
.networks svg {
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
}

.grid-3, .grid-2 {
  display: grid;
  gap: 16px;
  margin: 8px 0 48px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1.1fr 0.9fr; }
.card {
  border: 1px solid var(--line);
  background: #f6f0e3;
  padding: 20px;
}
.card .num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--copper);
  margin-bottom: 10px;
}
.card h2, .card h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.card p { margin: 0; color: var(--muted); font-size: 1rem; }
.card ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }

section.block { padding: 10px 0 36px; }
section.block h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0 0 28px;
}

.identity {
  background: var(--pine);
  color: #efe8d8;
  padding: 28px;
}
.identity h2 { color: #efe8d8; margin-top: 0; }
.identity dl {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px 16px;
  margin: 0;
}
.identity dt { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: #c9d7cf; }
.identity dd { margin: 0; }
.identity a { color: #efe8d8; }
.identity .mark-lg {
  width: 72px;
  height: 72px;
  margin: 0 0 16px;
  padding: 10px;
  background: #efe8d8;
  border-radius: 10px;
}

form { display: grid; gap: 12px; max-width: 560px; }
label { font-weight: 650; font-size: 0.92rem; }
input, textarea {
  width: 100%;
  font: 1rem var(--sans);
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #f7f1e4;
  color: var(--ink);
}
textarea { min-height: 140px; resize: vertical; }
.form-note { color: var(--muted); font-size: 0.92rem; }
.form-ok { color: var(--pine-2); font-weight: 650; }
.form-err { color: var(--copper); font-weight: 650; }
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.captcha {
  display: grid;
  gap: 6px;
  max-width: 280px;
}

.wrap > h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 1.45rem;
  margin: 1.4em 0 0.4em;
}
.wrap > h2:first-of-type { margin-top: 0; }
.muted { color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding: 28px 22px 40px;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  padding: 0;
}
.site-footer .foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-footer .foot-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.site-footer a { color: var(--muted); }

@media (max-width: 820px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .identity dl { grid-template-columns: 1fr; }
  .menu-btn { display: inline-flex; }
  nav {
    display: none;
    position: absolute;
    right: 16px;
    top: 62px;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 10px 14px;
    min-width: 160px;
  }
  nav.open { display: flex; }
  .hero { padding-top: 36px; }
}
