/* Layout: single reading column (~66ch) with full-width bands; tree-ring motif in the hero */
:root {
  --bg: #f2f4ef;
  --surface: #e6ebe3;
  --ink: #1b2a22;
  --muted: #55645b;
  --line: #c9d2c6;
  --accent: #8a6420;
  --accent-ink: #fbf8f0;
  --ring: rgba(27, 42, 34, 0.13);
  --display: "Marcellus", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111a15; --surface: #18241d; --ink: #e3e9e2; --muted: #9fb0a5;
    --line: #2c3b32; --accent: #d1a656; --accent-ink: #14100a; --ring: rgba(227, 233, 226, 0.10);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111a15; --surface: #18241d; --ink: #e3e9e2; --muted: #9fb0a5;
  --line: #2c3b32; --accent: #d1a656; --accent-ink: #14100a; --ring: rgba(227, 233, 226, 0.10);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.65;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  max-width: 68rem; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.prose { max-width: 40rem; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 1rem; }
.brand { font-family: var(--display); font-size: clamp(2rem, 5.5vw, 2.9rem); line-height: 1.1; color: var(--ink); text-decoration: none; letter-spacing: 0.02em; }
.brand small { display: block; margin-top: 0.3rem; font-family: var(--body); font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; font-size: 0.92rem; }
.nav a { color: var(--ink); text-decoration: none; padding-block: 0.2rem; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .wrap { position: relative; z-index: 1; padding-block: 3rem 2.5rem; }
.rings { position: absolute; right: -14rem; top: 50%; transform: translateY(-50%); width: 40rem; height: 40rem; z-index: 0; pointer-events: none; max-width: none; }
.rings circle { fill: none; stroke: var(--ring); }
.eyebrow { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); max-width: 16ch; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.3rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 36rem; margin: 1.25rem 0 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn { display: inline-block; padding: 0.7rem 1.2rem; border-radius: 2px; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border: 1px solid var(--ink); color: var(--ink); }

/* Sections */
main section { padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
main section:last-child { border-bottom: 0; }
section > .wrap > h2 { margin-bottom: 0.85rem; }
.prose p, .prose ul { margin: 0 0 1rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.prose h3 { margin: 2rem 0 0.6rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; }
.grid > * { min-width: 0; }
.offer { background: var(--surface); padding: 1.6rem; display: flex; flex-direction: column; gap: 0.6rem; }
.offer p { margin: 0; color: var(--muted); }
.offer .price { font-family: var(--display); font-size: 1.6rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.offer a { margin-top: auto; font-weight: 600; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1rem 2rem; margin: 2rem 0; padding: 0; list-style: none; }
.facts li { border-top: 1px solid var(--ink); padding-top: 0.6rem; }
.facts b { display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.facts span { font-family: var(--display); font-size: 1.35rem; font-variant-numeric: tabular-nums; }

.term { font-style: italic; }
dl.glossary { display: grid; grid-template-columns: minmax(7rem, auto) 1fr; gap: 0.6rem 1.5rem; margin: 0; }
dl.glossary dt { font-family: var(--display); font-size: 1.1rem; }
dl.glossary dd { margin: 0; color: var(--muted); }
@media (max-width: 30rem) { dl.glossary { grid-template-columns: 1fr; gap: 0.2rem; } dl.glossary dd { margin-bottom: 0.8rem; } }

.note { border-left: 3px solid var(--accent); padding: 0.4rem 0 0.4rem 1rem; color: var(--muted); }
.placeholder { background: color-mix(in srgb, var(--accent) 18%, transparent); padding: 0 0.25rem; }

details { border-top: 1px solid var(--line); padding-block: 0.9rem; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 0.6rem 0 0; color: var(--muted); }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 1rem; }
.contact-list b { display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact-list .value { font-size: 1.2rem; user-select: all; overflow-wrap: anywhere; }

/* Footer */
.site-foot { background: var(--surface); font-size: 0.9rem; color: var(--muted); }
.site-foot .wrap { padding-block: 2.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem; }
.site-foot a { color: var(--ink); }
.site-foot p { margin: 0 0 0.4rem; }

@media (max-width: 40rem) { .rings { right: -22rem; opacity: 0.7; } .hero .wrap { padding-block: 3rem; } }

/* Photos */
.hero.has-img .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 2.5rem; align-items: center; padding-block: 3rem; }
.hero.has-img .rings { display: none; }
.hero-img { margin: 0; }
.hero-img img { display: block; width: 100%; max-width: 100%; height: auto; }
figure.photo { margin: 2rem 0 0; }
figure.photo img { display: block; width: 100%; max-width: 100%; height: auto; }
figure.photo.wide img { aspect-ratio: 16 / 9; object-fit: cover; }
figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 2.5rem; align-items: start; }
.split figure.photo { margin: 0; }
.split figure.photo img { aspect-ratio: 4 / 5; object-fit: cover; }
.gallery { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 0.75rem; }
.gallery figure { margin: 0; min-width: 0; }
.gallery img { display: block; width: 100%; max-width: 100%; height: 22rem; object-fit: cover; }
@media (max-width: 52rem) {
  .hero.has-img .wrap, .split { grid-template-columns: 1fr; gap: 1.75rem; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure:first-child { grid-column: 1 / -1; }
  .gallery img { height: 15rem; }
  .gallery figure:first-child img { height: auto; aspect-ratio: 16 / 10; }
}

/* Picture above the headline */
.hero.img-top .rings { display: none; }
.hero.img-top { padding-block: 0; }
.hero.img-top .wrap { padding-block: 1.75rem 0.75rem; }
.hero.img-top .lede:last-child { margin-bottom: 0; }
.hero.img-top .hero-img { max-width: 19rem; margin: 0 auto 1.75rem; }
.hero.img-top .hero-img img { display: block; width: 100%; height: auto; }
/* Headings centered; body copy stays left-aligned */
h1, h2, h3, .eyebrow { text-align: center; }
h1 { margin-inline: auto; }
.hero.img-top h1 { max-width: 22ch; }
.lede { margin-inline: auto; text-align: left; }
.hero .actions { justify-content: center; }
.prose { margin-inline: auto; }

.alt { color: var(--muted); font-size: 0.85rem; }

/* Photos inside text columns */
.prose figure.photo { margin: 1.75rem auto 0; }
.prose figure.photo.portrait { max-width: 22rem; }

/* Spots counter */
.facts .spots { font-family: var(--display); font-size: 1.35rem; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 0.7rem; }
.spots .dots { display: inline-flex; gap: 0.35rem; }
.spots .dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--accent); border: 1px solid var(--accent); display: block; }
.spots .dot.taken { background: transparent; border-color: var(--muted); }

/* Spots emphasis */
:root { --spots: #c48a00; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --spots: #f2c94c; } }
:root[data-theme="dark"] { --spots: #f2c94c; }
.spots-text { font-weight: 700; }
.spots-text .n, .spots { --n: var(--spots); }
.spots-text .n { color: var(--spots); }
.spots .n { color: var(--spots); }
.spots .dot { background: var(--spots); border-color: var(--spots); }
.spots .dot.taken { background: transparent; border-color: var(--muted); }

