/* VillageBud website. No external fonts or scripts: system fonts only (fast, and no visitor data goes to third parties). */
:root {
  --bg: #F2F5EC; --surface: #FFFFFF; --surface-2: #E7EEDD; --ink: #1A2318; --muted: #56644F; --line: #D3DCC8;
  --grass: #3E8729; --grass-ink: #FFFFFF; --grass-soft: #DDEFD2; --dirt: #7A4C27; --gold: #9A6F0E; --gold-soft: #FBF1D6;
  --link: #2F6B1E; --code-bg: #E7EEDD;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  --radius: 10px; --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D1410; --surface: #141D17; --surface-2: #1B261E; --ink: #E4EDE0; --muted: #9DB098; --line: #273629;
    --grass: #74C04D; --grass-ink: #0B130D; --grass-soft: #1E3320; --dirt: #C08B58; --gold: #E3BC55; --gold-soft: #2A2413;
    --link: #93D86C; --code-bg: #1E2A21;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--grass); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; text-wrap: balance; }
code, kbd { font-family: var(--mono); font-size: .9em; background: var(--code-bg); padding: .1em .4em; border-radius: 5px; overflow-wrap: anywhere; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--surface); padding: 8px 12px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-block: 10px; }
.brand { display: flex; align-items: center; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; font-weight: 600; font-size: 16px; }
.nav a { color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--grass); }
.top .addr { margin-left: auto; }

/* the address chip */
.addr { display: inline-flex; align-items: center; gap: 0; border: 1.5px solid var(--grass); border-radius: 8px; overflow: hidden; background: var(--surface); }
.addr code { background: none; padding: 6px 12px; font-size: 15px; font-weight: 700; color: var(--ink); }
.addr button { all: unset; cursor: pointer; background: var(--grass); color: var(--grass-ink); font-weight: 700; font-size: 14px; padding: 7px 12px; }
.addr button:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.addr.big code { font-size: clamp(18px, 3.2vw, 26px); padding: 12px 18px; }
.addr.big button { font-size: 16px; padding: 14px 18px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; padding: 11px 18px; border-radius: 8px; border: 1.5px solid var(--grass); }
.btn.primary { background: var(--grass); color: var(--grass-ink); }
.btn.ghost { color: var(--ink); background: var(--surface); }
.btn:hover { filter: brightness(1.06); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* hero (always dark: it sits on a screenshot) */
.hero { position: relative; color: #F4F1E6; background: #182117; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-position: center 40%; background-size: cover; background-repeat: no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,14,8,.35) 0%, rgba(8,14,8,.55) 55%, rgba(8,14,8,.85) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(56px, 10vw, 110px) clamp(40px, 7vw, 72px); display: grid; gap: 18px; justify-items: center; text-align: center; }
.hero .logo { width: min(760px, 100%); filter: drop-shadow(0 6px 18px rgba(0,0,0,.45)); }
.hero p.tag { margin: 0; font-size: clamp(17px, 2.2vw, 21px); max-width: 44ch; color: #EDEAD9; }
.hero .meta { font-size: 15px; color: #CFE3C4; }
.hero .addr { border-color: #7CC24F; background: rgba(12,20,12,.72); }
.hero .addr code { color: #F4F1E6; }
.hero .addr button { background: #74C04D; color: #0B130D; }
.hero .btn.ghost { background: rgba(12,20,12,.55); color: #F4F1E6; border-color: #9BD27A; }
.hero .btn.primary { background: #74C04D; color: #0B130D; border-color: #74C04D; }

/* sections */
section.band { padding-block: clamp(44px, 7vw, 76px); }
section.band.alt { background: var(--surface-2); }
.eyebrow { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--dirt); font-weight: 800; margin: 0 0 6px; }
h2.title { font-size: clamp(26px, 3.6vw, 36px); margin: 0 0 14px; }
.lead { font-size: 19px; color: var(--muted); max-width: 62ch; margin: 0 0 28px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px 60px; position: relative; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; display: grid; place-items: center; background: var(--grass); color: var(--grass-ink); font-weight: 800; border-radius: 6px; }
.steps b { display: block; margin-bottom: 2px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.fact .num { font-family: var(--font-head); font-size: 34px; font-weight: 800; line-height: 1; color: var(--grass); font-variant-numeric: tabular-nums; }
.fact .what { font-weight: 700; }
.fact p { margin: 0; color: var(--muted); font-size: 15.5px; }
.fact a { margin-top: auto; font-weight: 600; font-size: 15px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery figcaption { padding: 9px 12px; font-size: 14.5px; color: var(--muted); }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel h3 { margin: 0 0 8px; font-size: 21px; }
.panel ul { margin: 8px 0 0; padding-left: 20px; }
.panel li { margin: 3px 0; }

/* wiki */
.wiki { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 36px; padding-block: 34px 60px; align-items: start; }
.side { position: sticky; top: 76px; }
.side details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.side summary { cursor: pointer; font-weight: 800; padding: 10px 14px; list-style: none; }
.side summary::-webkit-details-marker { display: none; }
.side ul { list-style: none; margin: 0; padding: 4px 6px 10px; }
.side a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 15.5px; }
.side a:hover { background: var(--grass-soft); }
.side a[aria-current="page"] { background: var(--grass); color: var(--grass-ink); font-weight: 700; }
article.doc { max-width: 74ch; }
article.doc h1 { font-size: clamp(30px, 4.4vw, 42px); margin: 0 0 10px; }
article.doc .intro { font-size: 19px; color: var(--muted); margin: 0 0 22px; }
article.doc h2 { font-size: 25px; margin: 36px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); }
article.doc h3 { font-size: 19px; margin: 24px 0 6px; }
article.doc ul, article.doc ol { padding-left: 22px; }
article.doc li { margin: 4px 0; }
.note { border: 1px solid var(--line); border-left: 4px solid var(--grass); background: var(--surface); padding: 12px 16px; border-radius: 6px; margin: 16px 0; }
.note.gold { border-left-color: var(--gold); background: var(--gold-soft); }
.tbl { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tbl table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
.tbl th, .tbl td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th { background: var(--surface-2); font-size: 14px; letter-spacing: .02em; }
.tbl td.n, .tbl th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 18px; }
.cards a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--ink); }
.cards a:hover { border-color: var(--grass); }
.cards b { display: block; font-size: 18px; margin-bottom: 2px; }
.cards span { color: var(--muted); font-size: 15px; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 600; }

/* footer */
footer.site { border-top: 1px solid var(--line); padding-block: 26px 36px; color: var(--muted); font-size: 14.5px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; }
footer.site a { color: var(--muted); }
footer.site .legal { flex-basis: 100%; font-size: 13px; }

@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .wiki { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 20px; }
  .side { position: static; }
  .top .addr { margin-left: 0; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .brand img { height: 28px; }
  .addr.big code { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
