:root {
  --bg: #f7f8f5;
  --ink: #17201d;
  --muted: #65716c;
  --line: #dfe5df;
  --panel: #ffffff;
  --teal: #087f73;
  --teal-dark: #045b53;
  --amber: #f0a323;
  --graphite: #26302d;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(247, 248, 245, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.brand {
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
}
.topbar nav, .admin-head nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar nav a, .admin-head nav a {
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}
.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(300px, 1.2fr);
  align-items: center;
  gap: 32px;
  padding: 40px clamp(18px, 5vw, 72px) 56px;
  overflow: hidden;
}
.hero-copy { max-width: 640px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
}
h1 {
  margin: 0;
  font-size: clamp(52px, 8vw, 112px);
  line-height: .92;
  letter-spacing: 0;
}
.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 20px;
  margin: 24px 0;
}
.hero-img {
  width: min(100%, 860px);
  justify-self: end;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(23, 32, 29, .16);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button, button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.button.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}
.button.ghost { background: transparent; }
.band {
  padding: 34px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.metrics div {
  padding: 4px 0;
}
.metrics strong {
  display: block;
  font-size: 34px;
  color: var(--teal-dark);
}
.metrics span { color: var(--muted); }
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding: 54px clamp(18px, 5vw, 72px);
}
article h2, .band h2, .table-wrap h2, .docs-body h2 {
  margin: 0 0 10px;
  font-size: 24px;
}
article p, .band p, .page-head p, .docs-body p {
  color: var(--muted);
  margin: 0;
}
.page-head {
  padding: 54px clamp(18px, 5vw, 72px) 24px;
}
.page-head h1 { font-size: clamp(42px, 7vw, 76px); }
.docs-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 36px;
  padding: 24px clamp(18px, 5vw, 72px) 64px;
}
.docs-layout aside {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 86px;
  align-self: start;
}
.docs-layout aside a {
  color: var(--teal-dark);
  font-weight: 750;
  text-decoration: none;
}
.docs-body {
  max-width: 860px;
}
.docs-body pre {
  overflow: auto;
  background: var(--graphite);
  color: #f8fbf8;
  padding: 18px;
  border-radius: 8px;
}
code {
  background: #edf1ed;
  border-radius: 6px;
  padding: 2px 5px;
}
pre code { background: transparent; padding: 0; }
.sponsor-list {
  display: grid;
  gap: 12px;
  padding: 24px clamp(18px, 5vw, 72px) 64px;
  max-width: 720px;
}
.sponsor-button {
  display: block;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--teal);
  color: white;
  text-decoration: none;
  font-weight: 800;
}
.settings-form {
  display: grid;
  gap: 16px;
  max-width: 760px;
  padding: 24px clamp(18px, 5vw, 72px) 64px;
}
.settings-form label {
  display: grid;
  gap: 6px;
}
input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.check-row {
  grid-template-columns: 18px 1fr;
  align-items: center;
}
.check-row input { min-height: auto; }
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.table-wrap {
  padding: 24px clamp(18px, 5vw, 72px) 64px;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}
th, td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
}
th {
  color: var(--muted);
  font-size: 13px;
}
.actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.actions form { margin: 0; }
.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 840px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 32px;
  }
  .hero-img { justify-self: start; }
  .metrics, .content-grid, .docs-layout { grid-template-columns: 1fr; }
  .docs-layout aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .lead { font-size: 18px; }
}
