/* ─────────────────────────────────────────────────────────────────────────────
   Boozy Estate — shared design system (2026 redesign)
   Playfair Display for headlines only, Inter for everything else.
   Pages add page-specific rules in their own <style> block.
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  --amber: #D08A1E;
  --amber-light: #E8A845;
  --amber-soft: rgba(208, 138, 30, 0.12);
  --cream: #F5EDD6;
  --text: #D9CCB0;
  --muted: #9C8A68;
  --bg: #0E0A04;
  --bg-2: #161007;
  --tile: #1B130A;
  --tile-2: #231809;
  --line: rgba(245, 237, 214, 0.09);
  --line-strong: rgba(245, 237, 214, 0.18);
  --radius: 18px;
  --radius-sm: 12px;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--cream); font-weight: 700; line-height: 1.12; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.35rem; }
strong { color: var(--cream); font-weight: 600; }
.amber { color: var(--amber); }
em.amber, h1 em { color: var(--amber); font-style: italic; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Buttons & chips ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.92rem; cursor: pointer;
  transition: background .15s, transform .15s, border-color .15s, color .15s;
}
.btn-solid { background: var(--amber); color: #1a1004; }
.btn-solid:hover { background: var(--amber-light); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-strong); color: var(--cream); background: none; }
.btn-ghost:hover { border-color: var(--amber); }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 600; color: var(--amber);
  background: var(--amber-soft); padding: 4px 11px; border-radius: 999px;
}
.chip-plain { color: var(--text); background: rgba(245,237,214,0.06); }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 10, 4, 0.8);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; height: 64px; gap: 32px; }
.logo { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--cream); white-space: nowrap; }
.logo span { color: var(--amber); }
.nav-links { display: flex; gap: 26px; list-style: none; margin-left: auto; font-size: 0.92rem; font-weight: 500; }
.nav-links a { color: var(--text); opacity: 0.8; transition: opacity .15s, color .15s; }
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--cream); }
.nav-links a.active { color: var(--amber); }
.nav .btn { padding: 8px 16px; font-size: 0.85rem; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: var(--cream); font-size: 1.5rem; cursor: pointer; padding: 8px; line-height: 1; }

/* ── Page hero (inner pages) ── */
.page-hero { position: relative; overflow: hidden; padding: 80px 0 56px; text-align: center; }
.page-hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 140%;
  background: radial-gradient(ellipse 50% 40% at 50% 55%, rgba(208,138,30,0.22), transparent 70%);
  pointer-events: none;
}
.page-hero .wrap, .page-hero .wrap-narrow { position: relative; }
.page-hero .chip { margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); letter-spacing: -0.02em; }
.page-hero .lede { max-width: 560px; margin: 18px auto 0; font-size: 1.1rem; color: var(--text); }
.page-hero .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* ── Sections ── */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-head p { color: var(--muted); max-width: 46ch; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.prose { max-width: 62ch; font-size: 1.05rem; }
.prose p + p { margin-top: 1em; }
.prose a, a.link { color: var(--amber); border-bottom: 1px solid rgba(208,138,30,0.35); }
.prose a:hover, a.link:hover { color: var(--amber-light); }

/* ── Stat strip ── */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.stats .wrap { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); }
.stats.three { --cols: 3; }
.stat { padding: 28px 12px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--serif); font-size: 2rem; color: var(--cream); font-weight: 700; line-height: 1.2; }
.stat span { font-size: 0.85rem; color: var(--muted); }

/* ── Cards / tiles ── */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(var(--min, 260px), 1fr)); }
.card {
  position: relative; background: var(--tile); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  transition: border-color .2s, transform .2s;
}
a.card:hover, .card.hover:hover { border-color: rgba(208,138,30,0.5); transform: translateY(-2px); }
.card h3 { margin-bottom: 6px; }
.card p { font-size: 0.95rem; }
.card .kicker { display: block; font-size: 0.8rem; font-weight: 600; color: var(--amber); margin-bottom: 8px; }
.card .big { font-family: var(--serif); font-size: 2rem; color: var(--cream); font-weight: 700; line-height: 1.1; display: block; }
.card-media { border-radius: var(--radius-sm); overflow: hidden; background: var(--tile-2); margin-bottom: 16px; aspect-ratio: 4 / 3; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }

/* ── Disclosure: "read more" without walls of text ── */
details.more { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--tile); }
details.more + details.more { margin-top: 10px; }
details.more > summary {
  list-style: none; cursor: pointer; padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-weight: 600; color: var(--cream);
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "+"; color: var(--amber); font-size: 1.3rem; font-weight: 400; transition: transform .2s; }
details.more[open] > summary::after { transform: rotate(45deg); }
details.more > .more-body { padding: 0 20px 20px; font-size: 0.97rem; }
details.more > .more-body p + p { margin-top: 0.8em; }

/* ── Tables ── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table.clean { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
table.clean th { text-align: left; font-weight: 600; color: var(--muted); font-size: 0.8rem; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); white-space: nowrap; }
table.clean td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.clean tr:last-child td { border-bottom: 0; }

/* ── Forms ── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--cream); }
.input, .field input, .field textarea, .field select, select.input {
  width: 100%; background: rgba(245,237,214,0.05); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); color: var(--cream); font: inherit; padding: 12px 14px;
  transition: border-color .15s;
}
.input:focus, .field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--amber); }
.input::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--muted); }
select.input, .field select { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
select.input option { background: var(--bg); }

/* ── CTA card ── */
.cta-card {
  border-radius: 24px; padding: 52px 48px;
  background: linear-gradient(120deg, #2a1a08, #1a1107 60%);
  border: 1px solid rgba(208,138,30,0.28);
  display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 32px;
  position: relative; overflow: hidden;
}
.cta-card h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cta-card p { margin: 14px 0 26px; max-width: 42ch; }
.cta-card .art { justify-self: end; width: 100%; max-width: 360px; filter: drop-shadow(0 18px 24px rgba(0,0,0,0.55)); }
.cta-card.solo { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.cta-card.solo p { margin-left: auto; margin-right: auto; }

/* ── Lightbox (shared) ── */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(8,5,2,0.92); padding: 24px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 88vh; border-radius: var(--radius-sm); box-shadow: 0 30px 80px rgba(0,0,0,0.6); }

/* ── Footer ── */
.site-foot { border-top: 1px solid var(--line); padding: 36px 0; font-size: 0.88rem; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.site-foot ul { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin-left: auto; }
.site-foot a:hover, .site-foot .link-btn:hover { color: var(--cream); }
.link-btn { background: none; border: 0; color: inherit; cursor: pointer; padding: 0; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .cta-card { grid-template-columns: 1fr; padding: 40px 28px; }
  .cta-card .art { justify-self: center; max-width: 300px; }
}
@media (max-width: 680px) {
  .wrap, .wrap-narrow { padding: 0 16px; }
  .nav-links, .nav .btn { display: none; }
  .menu-btn { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .nav.open .nav-links a { display: block; padding: 12px 0; font-size: 1rem; }
  .page-hero { padding: 56px 0 40px; }
  .section { padding: 56px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats.three .wrap { grid-template-columns: repeat(3, 1fr); }
  .stats.three .stat { border-top: 0; padding: 22px 6px; }
  .stats.three .stat + .stat { border-left: 1px solid var(--line); }
  .stats.three .stat b { font-size: 1.5rem; }
  .stats.three .stat span { font-size: 0.78rem; display: block; line-height: 1.3; }
  .site-foot ul { margin-left: 0; }
}
