/* eden.net.nz: the 2001 palette (near-beige page, bush greens from the logo photograph). */
:root {
  --bg: #dadaa7;
  --bg-soft: #e8e8c2;
  --surface: #fbf9ec;
  --ink: #1c2a17;
  --muted: #5b6650;
  --green: #2f5e2a;
  --green-deep: #1d3e1e;
  --line: #c6c58d;
  --accent: #8a5a1b;
  --radius: 14px;
  --wrap: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); font: 17px/1.55 var(--font); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--green-deep); }
img { max-width: 100%; height: auto; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
main { flex: 1; padding-block: 1.5rem 3rem; }
h1, h2, h3 { line-height: 1.15; color: var(--green-deep); margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--muted); margin-bottom: .4em; }
.lede { font-size: 1.15rem; max-width: 46rem; }
.note, .credit { color: var(--muted); font-size: .9rem; }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2em; }
.prose ul { padding-left: 1.2em; }

/* Header, navigation, footer */
.site-header { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .6rem; flex-wrap: wrap; }
.brand img { display: block; width: 120px; height: auto; border-radius: 8px; }
.site-header nav, .subnav .wrap { display: flex; flex-wrap: wrap; gap: .25rem 1.2rem; }
.site-header nav a, .subnav a { text-decoration: none; font-weight: 600; color: var(--green-deep); padding: .35rem 0; }
.site-header nav a:hover, .subnav a:hover { text-decoration: underline; }
.subnav { background: var(--surface); border-bottom: 1px solid var(--line); font-size: .95rem; }
.subnav .wrap { padding-block: .4rem; }
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding-block: 1.2rem; font-size: .9rem; color: var(--muted); }
.site-footer p { margin: 0 0 .3em; }

/* Hero and buttons */
.hero { display: grid; gap: 1.5rem; align-items: center; padding-block: 1.5rem 2rem; }
.hero-webxr { padding-top: 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.button { display: inline-block; background: var(--green); color: #fff; text-decoration: none; font-weight: 600; padding: .65rem 1.1rem; border-radius: 10px; border: 1px solid var(--green-deep); }
.button:hover { background: var(--green-deep); color: #fff; }
.button-quiet { background: var(--surface); color: var(--green-deep); border-color: var(--line); }
.button-quiet:hover { background: #fff; color: var(--green-deep); }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--accent); color: #fff; padding: .15rem .5rem; border-radius: 999px; vertical-align: middle; }

/* Sections and cards */
section { margin-block: 2rem; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.panel h2 { margin-top: 0; }
.panel-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.product { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; align-items: start; }
.product .icon { width: 64px; height: 64px; border-radius: 14px; background: var(--green); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.4rem; }
.product .icon img { border-radius: 14px; display: block; }
.product p { margin-bottom: .4em; }
.features { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.features li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.features strong { display: block; color: var(--green-deep); margin-bottom: .25rem; }

/* Showcase */
.toolbar { display: grid; gap: .6rem; margin-bottom: 1.2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-block; text-decoration: none; font-size: .9rem; padding: .3rem .75rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--green-deep); }
.chip.is-active { background: var(--green); color: #fff; border-color: var(--green-deep); }
.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.2rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card.is-featured { border-color: var(--green); box-shadow: 0 0 0 2px var(--green) inset; }
.card-link { color: inherit; text-decoration: none; display: block; }
.card-link:hover h3 { text-decoration: underline; }
.card h3 { margin: .8rem 1rem .3rem; }
.card p { margin: 0 1rem .9rem; color: var(--muted); font-size: .95rem; }
.thumb { aspect-ratio: 16 / 10; background: var(--bg-soft); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-art { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, hsl(var(--hue) 35% 42%), hsl(calc(var(--hue) + 40) 40% 28%)); color: #fff; font-size: 3rem; font-weight: 800; }
.tags { list-style: none; padding: 0 1rem .9rem; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.tags a { font-size: .78rem; text-decoration: none; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: .12rem .55rem; color: var(--green-deep); }
.empty { color: var(--muted); font-style: italic; }

/* Forms */
form.stack { display: grid; gap: 1rem; max-width: 40rem; }
label { display: grid; gap: .3rem; font-weight: 600; color: var(--green-deep); }
label small { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
textarea { min-height: 7rem; resize: vertical; }
.check { display: flex; align-items: center; gap: .5rem; font-weight: 400; }
/* The display rules above would otherwise beat the hidden attribute (the admin page toggles rows with it). */
[hidden] { display: none !important; }
.check input { width: auto; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { background: #fff3e0; border: 1px solid #e3b26b; border-radius: 10px; padding: .8rem 1rem; }
.alert-ok { background: #e9f3e4; border-color: #9cc48f; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.row-actions button { font: inherit; font-size: .85rem; padding: .25rem .6rem; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; margin-right: .3rem; }
button.button { cursor: pointer; font: inherit; }

@media (max-width: 640px) {
  .product { grid-template-columns: 48px 1fr; }
  .product .icon { width: 48px; height: 48px; }
}

/* Admin: thumbnail upload */
.thumb-field { display: grid; gap: .6rem; }
.thumb-field input[type="file"] { font: inherit; font-size: .95rem; }
.thumb-mini { width: 64px; height: 40px; object-fit: cover; border-radius: 4px; display: block; background: var(--bg-soft); }
