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

:root {
  --forest: #2d5016;
  --pine: #3a6b1e;
  --moss: #e6efdc;
  --bark: #5c4033;
  --sand: #f5f0e8;
  --cream: #faf8f4;
  --ember: #d4712a;
  --ember-dark: #b85e1f;
  --ink: #1f2a1a;
  --stone: #6b7280;
  --line: #e7e2d8;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --max: 1100px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--cream); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--forest); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.015em; line-height: 1.12; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { max-width: 68ch; }
.muted { color: var(--stone); }
.fineprint { font-size: 0.8rem; }
.small-note { font-size: 0.9rem; margin-top: 0.75rem; }
.eyebrow { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; color: var(--ember-dark); margin-bottom: 0.5rem; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow.light { color: #f2c9a8; }
.lede { font-size: 1.2rem; color: #3b4536; margin: 0.75rem 0 1.5rem; }
code { background: var(--sand); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.9em; }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.5rem; max-width: var(--max); margin: 0 auto; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; text-decoration: none; color: var(--forest); display: inline-flex; align-items: center; gap: 0.4rem; }
.brand em { color: var(--ember); font-style: normal; }
.brand-mark { color: var(--forest); font-size: 1.1rem; }
.brand.small { font-size: 1.1rem; }
.site-nav { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.site-nav a:hover { color: var(--forest); }
.nav-cta { background: var(--forest); color: #fff !important; padding: 0.5rem 1rem; border-radius: 999px; }
.nav-cta:hover { background: var(--pine); }
.nav-account { color: var(--stone) !important; }

/* Hero */
.hero { background: linear-gradient(165deg, var(--forest) 0%, var(--pine) 55%, var(--bark) 100%); color: #fff; padding: 5rem 1.5rem 5.5rem; }
.hero-inner { max-width: var(--max); margin: 0 auto; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.6rem); max-width: 16ch; }
.hero .eyebrow { color: #f2c9a8; }
.hero .lede { color: rgba(255,255,255,0.88); max-width: 56ch; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }

.btn { display: inline-block; padding: 0.85rem 1.6rem; border-radius: 10px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: var(--sans); transition: transform 0.12s, box-shadow 0.12s, background 0.12s; }
.btn-primary { background: var(--ember); color: #fff; }
.btn-primary:hover { background: var(--ember-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,0.18); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.hero .btn-ghost { color: #fff; }
.page-head .btn-ghost { color: var(--forest); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.page-head .btn-ghost:hover { background: var(--moss); }

/* Sections */
.section { max-width: var(--max); margin: 0 auto; padding: 4rem 1.5rem; }
.section.tight { padding-top: 1.5rem; padding-bottom: 2.5rem; }
.section.narrow, .page-head.narrow { max-width: 640px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.more { font-weight: 600; text-decoration: none; }
.page-head { max-width: var(--max); margin: 0 auto; padding: 3.5rem 1.5rem 1rem; }
.page-head h2 + p { margin-top: 0.5rem; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; text-decoration: none; color: inherit; transition: transform 0.15s, box-shadow 0.15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(45,80,22,0.10); }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--stone); font-size: 0.95rem; }
.card .eyebrow { margin-bottom: 0.6rem; }
.card.place { border-top: 4px solid var(--pine); }

.feature { background: var(--forest); color: #fff; max-width: none; padding: 5rem 1.5rem; }
.feature-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.feature h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.feature p { color: rgba(255,255,255,0.86); margin-bottom: 1.5rem; }
.steps { list-style: none; counter-reset: step; display: grid; gap: 1rem; }
.steps li { counter-increment: step; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; padding: 1.1rem 1.25rem 1.1rem 3.6rem; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 1.1rem; top: 1rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--ember); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 0.9rem; }
.steps strong { display: block; margin-bottom: 0.2rem; }
.steps span { color: rgba(255,255,255,0.8); font-size: 0.92rem; }

.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; }
.two-col h2 { font-size: 1.5rem; margin: 1.5rem 0 0.75rem; }
.two-col h2:first-child { margin-top: 0; }
.two-col p { margin-bottom: 1rem; }
aside { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; align-self: start; }

.gear-list { list-style: none; display: grid; gap: 0.9rem; }
.gear-list li { display: grid; gap: 0.15rem; }
.gear-list a { font-weight: 600; text-decoration: none; }
.gear-list a:hover { text-decoration: underline; }
.gear-list span { color: var(--stone); font-size: 0.92rem; }
.gear-list.big li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.gear-list.big a { font-size: 1.15rem; }
.link-list { list-style: none; display: grid; gap: 0.6rem; }
.callout { background: var(--moss); border-radius: 12px; padding: 1.25rem 1.5rem; margin: 2rem 0; }
.callout h3 { margin-bottom: 0.5rem; }

.article { max-width: 720px; margin: 0 auto; padding: 3.5rem 1.5rem 5rem; }
.article h1 { margin-bottom: 0.5rem; }
.article > p { font-size: 1.08rem; margin-bottom: 1.25rem; }
.article h2 { font-size: 1.5rem; margin: 2rem 0 1rem; }

/* Search & forms */
.search { display: flex; gap: 0.6rem; margin-top: 1rem; max-width: 640px; }
.search input { flex: 1; }
input[type=search], input[type=text], input[type=email], input[type=date], select { width: 100%; font: inherit; padding: 0.75rem 0.9rem; border: 1px solid #cfd6c6; border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus { outline: 2px solid var(--pine); outline-offset: 1px; border-color: var(--pine); }
.form { display: grid; gap: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.75rem; }
.form label { display: grid; gap: 0.4rem; font-weight: 600; font-size: 0.95rem; }
.form label .muted { font-weight: 400; font-size: 0.85rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
fieldset { border: 0; display: grid; gap: 0.5rem; }
legend { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem; }
.radio { display: flex !important; align-items: center; gap: 0.5rem; font-weight: 400 !important; }
.error { background: #fdecea; color: #8a1c1c; border: 1px solid #f3b9b3; border-radius: 10px; padding: 0.8rem 1rem; margin-bottom: 1rem; }
.success { background: var(--moss); color: var(--forest); border-radius: 10px; padding: 0.8rem 1rem; margin: 0.75rem 0 1rem; }
form.inline { display: inline; }
.linklike { background: none; border: 0; color: var(--forest); font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }
.linklike.danger { color: #a12b2b; }

/* Table */
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 0.95rem; }
.table th, .table td { padding: 0.85rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--stone); background: var(--sand); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .actions { display: flex; gap: 0.75rem; }
.pill { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; text-transform: capitalize; background: var(--sand); color: var(--stone); }
.pill.active { background: var(--moss); color: var(--forest); }
.pill.pending { background: #fff3e6; color: var(--ember-dark); }
.pill.paused { background: #eef0f3; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 2.5rem 1.5rem; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--stone); }
.site-footer .fineprint { max-width: var(--max); margin: 1.5rem auto 0; }

@media (max-width: 820px) {
  .feature-inner, .two-col { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 1rem 4rem; }
  .table { display: block; overflow-x: auto; }
}
