:root {
  --bg: #f7f4ec;
  --surface: #fffdf8;
  --surface-strong: #fff7e6;
  --text: #1d1a16;
  --muted: #5c5146;
  --border: #d7c7af;
  --accent: #0f5d46;
  --accent-strong: #0a3f31;
  --link: #0d4c93;
  --focus: #b14f00;
  --shadow: 0 10px 30px rgba(39, 28, 17, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(241, 198, 108, 0.25), transparent 22rem),
    linear-gradient(180deg, #fbf7ef 0%, #f5efe4 100%);
  color: var(--text);
  font: 17px/1.65 Georgia, "Times New Roman", serif;
}

a {
  color: var(--link);
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.85rem 1rem;
  background: var(--focus);
  color: #fff;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  padding: 1rem 0 0;
}

.brand {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
}

.brand img {
  width: 88px;
  border-radius: 1rem;
}

.brand p,
.lede,
.meta-note,
.footer-note {
  color: var(--muted);
}

.site-nav {
  margin: 1rem 0 2rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
}

.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
}

.site-nav a {
  display: inline-block;
  padding: 0.35rem 0.55rem;
  border-radius: 0.55rem;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  background: var(--accent);
  color: #fff;
}

main {
  padding-bottom: 2rem;
}

.hero,
.panel,
.grid-card,
.note-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
}

.hero,
.panel,
.note-box {
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.hero {
  background:
    linear-gradient(135deg, rgba(15, 93, 70, 0.08), rgba(255, 247, 230, 0.95)),
    var(--surface);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.25rem;
}

.grid-card {
  padding: 1.15rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.button {
  display: inline-block;
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.button.secondary {
  background: var(--accent-strong);
}

h1,
h2,
h3 {
  line-height: 1.22;
  margin: 0 0 0.7rem;
  color: var(--accent-strong);
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  margin-top: 0.2rem;
}

h3 {
  font-size: 1.15rem;
  margin-top: 1rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.3rem;
}

.section-list {
  columns: 2;
  column-gap: 2rem;
}

.stat {
  font-weight: 700;
  color: var(--accent-strong);
}

.download-meta {
  font-size: 1rem;
}

.footer {
  padding: 0 0 2rem;
}

.footer .panel {
  margin-bottom: 0;
}

.guide-doc {
  padding-top: 1.8rem;
}

.guide-doc h2,
.guide-doc h3,
.guide-doc h4 {
  scroll-margin-top: 1rem;
}

.guide-doc h2 {
  margin-top: 2rem;
  padding-top: 0.3rem;
  border-top: 1px solid var(--border);
}

.guide-doc h2:first-of-type {
  margin-top: 0.5rem;
  border-top: 0;
  padding-top: 0;
}

.guide-doc h3,
.guide-doc h4 {
  color: var(--text);
}

.guide-doc ul {
  margin-bottom: 1.1rem;
}

code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.95em;
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .brand {
    grid-template-columns: 1fr;
  }

  .section-list {
    columns: 1;
  }
}
