:root {
  --bg: #f6f3ec;
  --surface: #ffffff;
  --ink: #1e231f;
  --muted: #5d655e;
  --line: #ddd7ca;
  --accent: #2f5d3a;
  --accent-ink: #ffffff;
  --accent-soft: #e3ece1;
  --warn-soft: #f5ead3;
  --warn-ink: #6b4e12;
  --radius: 10px;
  --max: 1080px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131613;
    --surface: #1b1f1b;
    --ink: #e9e6de;
    --muted: #a3aaa2;
    --line: #2f352f;
    --accent: #86b98f;
    --accent-ink: #0f1a11;
    --accent-soft: #223026;
    --warn-soft: #342c19;
    --warn-ink: #e8cf96;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--sans);
}
a { color: var(--accent); }
img { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { font: 600 20px/1 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: .2px; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* Buttons */
.btn { display: inline-block; padding: 11px 18px; border-radius: 8px; font-weight: 600; text-decoration: none; border: 1.5px solid var(--accent); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { color: var(--accent); background: transparent; }
.btn:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero h1 { font: 600 clamp(36px, 7vw, 60px)/1.05 var(--serif); margin: 0 0 16px; }
.hero p { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 0 24px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
section { padding: 32px 0; }
h2 { font: 600 28px/1.2 var(--serif); margin: 0 0 16px; }
h3 { font-size: 17px; margin: 0 0 6px; }
.lead { color: var(--muted); max-width: 680px; margin-top: 0; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step .num { font: 600 14px var(--sans); color: var(--accent); }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* Parcels */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar label { font-size: 14px; color: var(--muted); }
select { font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.card:hover { border-color: var(--accent); }
.card.featured { border: 2px solid var(--accent); }
.card .where { font-size: 14px; color: var(--muted); }
.card .title { font: 600 20px/1.25 var(--serif); }
.card .price { font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12.5px; padding: 3px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--ink); }
.badge { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--accent); }
.meter { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--accent); }
.pactline { font-size: 14px; color: var(--muted); }
.empty { padding: 32px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

.notice { background: var(--warn-soft); color: var(--warn-ink); border-radius: var(--radius); padding: 12px 16px; font-size: 14.5px; margin: 16px 0; }

/* Parcel page */
.parcel-head { padding: 40px 0 8px; }
.parcel-head h1 { font: 600 clamp(28px, 5vw, 42px)/1.15 var(--serif); margin: 4px 0 8px; }
.parcel-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
@media (max-width: 820px) { .parcel-layout { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.facts { width: 100%; border-collapse: collapse; font-size: 15px; }
.facts th, .facts td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { width: 38%; color: var(--muted); font-weight: 500; padding-right: 12px; }
.src { display: block; font-size: 12.5px; color: var(--muted); }
.pact-card { border: 2px solid var(--accent); background: var(--accent-soft); }
.pact-card h2 { font-size: 22px; margin-bottom: 8px; }
.pact-card .btn { display: block; text-align: center; margin: 14px 0 8px; }
.small { font-size: 13.5px; color: var(--muted); }

/* Pact Path */
.path { counter-reset: stage; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.path li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 18px 64px; position: relative; }
.path li::before { counter-increment: stage; content: counter(stage); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center; }
.path li.gp::before { background: var(--accent); color: var(--accent-ink); }
.path .who { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.path ul { margin: 8px 0 0; padding-left: 18px; font-size: 15px; }

/* Legal pages */
.legal { max-width: 760px; padding: 40px 16px 24px; }
.legal h1 { font: 600 36px/1.15 var(--serif); margin: 0 0 8px; }
.legal h2 { font-size: 20px; margin: 28px 0 8px; font-family: var(--sans); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.site-footer a { color: var(--muted); }
