/* DJ Vinegar site. Dark is the default; light is data-theme="light" on <html>. */

:root,
:root[data-theme="dark"] {
  /* Cool charcoal with a soft cyan glow; amber is kept for the logo and main actions */
  --bg: #0F1315;
  --bg-2: #151B1E;
  --surface: #1B2226;
  --border: #283238;
  --text: #D3D9DC;
  --heading: #F7EEDA;
  --muted: #95A1A8;
  --amber: #F5A524;
  --amber-text: #F5A524;
  --amber-ink: #14110F;
  --amber-soft: rgba(245, 165, 36, 0.12);
  --cream: #F7EEDA;
  --glow: rgba(0, 210, 235, 0.20);
  --grad-top: #141B1E;
  --placeholder: linear-gradient(140deg, #1B2226 0%, #222B30 55%, #182024 100%);
  color-scheme: dark;
}
:root[data-theme="light"] {
  /* Stone: warm neutral grey, darker bands at the top and bottom. Amber stays for the logo and buttons only. */
  --bg: #D2CEC8;
  --bg-2: transparent;
  --surface: rgba(185, 178, 168, 0.35);
  --border: rgba(50, 44, 36, 0.17);
  --text: #2B2925;
  --heading: #111517;
  --muted: #35322D;
  --amber: #F5A524;
  --amber-text: #5A3400;
  --amber-ink: #14110F;
  --amber-soft: rgba(245, 165, 36, 0.2);
  --cream: #111517;
  --glow: transparent;
  --grad-top: #D2CEC8;
  --placeholder: linear-gradient(140deg, #C6C0B7 0%, #B8B1A7 100%);
  color-scheme: light;
}
/* Double gradient: stone band at the top, light stone in the middle, stone at the bottom. Scrolls with the page. */
:root[data-theme="light"] body { background: linear-gradient(180deg, #AAA59D 0%, #D2CEC8 16%, #DDDAD5 45%, #D2CEC8 72%, #AFAAA2 100%); background-attachment: scroll; }
:root[data-theme="light"] .section-alt { background: rgba(50, 44, 36, 0.06); border-color: rgba(50, 44, 36, 0.10); }
:root[data-theme="light"] .site-header { background: rgba(170, 165, 157, 0.92); }
:root[data-theme="light"] .site-footer { background: transparent; }
:root[data-theme="light"] .photo-row { background: rgba(50, 44, 36, 0.17); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); font-family: "Sora", system-ui, sans-serif; font-size: 16px; line-height: 1.65;
  background: radial-gradient(ellipse 85% 60% at 50% 0%, var(--glow) 0%, transparent 70%), linear-gradient(180deg, var(--grad-top) 0%, var(--bg) 60%);
  background-color: var(--bg); background-repeat: no-repeat; background-attachment: fixed;
}
img { max-width: 100%; display: block; }
img[hidden] { display: none; }
a { color: var(--amber-text); }
h1, h2, h3 { font-family: "Archivo Black", "Sora", sans-serif; font-weight: 400; color: var(--heading); margin: 0; line-height: 1.05; letter-spacing: 0.01em; }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--amber); color: var(--amber-ink); padding: 8px 14px; border-radius: 8px; }
.kicker { font-family: "Sora", sans-serif; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--amber-text); }
.lead { font-size: 1.12rem; color: var(--text); max-width: 600px; }
.small { font-size: 0.88rem; color: var(--muted); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--heading); margin-right: auto; }
.brand svg { width: 46px; height: 46px; overflow: visible; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word small { font-family: "Sora", sans-serif; font-weight: 600; font-size: 0.6rem; letter-spacing: 0.45em; color: var(--amber-text); }
.brand-word span { font-family: "Archivo Black", sans-serif; font-size: 1.2rem; letter-spacing: 0.04em; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { color: var(--text); text-decoration: none; padding: 9px 14px; border-radius: 999px; font-size: 0.95rem; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { color: var(--heading); background: var(--amber-soft); }
.nav a[aria-current="page"] { color: var(--heading); box-shadow: inset 0 0 0 1px var(--border); }
.nav .nav-book { background: var(--amber); color: var(--amber-ink); font-weight: 600; }
.nav .nav-book:hover, .nav .nav-book[aria-current="page"] { background: var(--heading); color: var(--bg); box-shadow: none; }
.theme-toggle { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--heading); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.theme-toggle svg { width: 18px; height: 18px; }
:root[data-theme="light"] .icon-sun, :root:not([data-theme="light"]) .icon-moon { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 24px; border-radius: 999px; font: 600 1rem "Sora", sans-serif; text-decoration: none; border: 1.5px solid var(--amber); cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: var(--amber-ink); }
.btn-ghost { background: transparent; color: var(--heading); border-color: var(--border); border-color: color-mix(in srgb, var(--heading) 35%, transparent); }
.btn-ghost:hover { border-color: var(--amber); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn svg { width: 20px; height: 20px; }

/* Hero */
.hero { padding: 72px 0 56px; text-align: center; }
.hero-logo { width: min(260px, 60vw); height: auto; margin: 0 auto 18px; }
.hero-name { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 22px; }
.hero-name .dj { font-weight: 600; font-size: clamp(1rem, 2.4vw, 1.4rem); letter-spacing: 0.9em; padding-left: 0.9em; color: var(--amber-text); line-height: 1; }
.hero-name h1 { font-size: clamp(3.6rem, 13vw, 8.6rem); letter-spacing: 0.02em; color: var(--cream); }
.hero .lead { margin: 0 auto 26px; }
.hero .btn-row { justify-content: center; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 28px; padding: 0; list-style: none; }
.tags li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); font-size: 0.85rem; color: var(--heading); background: var(--surface); }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 40px; align-items: center; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.card .icon { width: 40px; height: 40px; border-radius: 12px; background: var(--amber-soft); color: var(--amber-text); display: flex; align-items: center; justify-content: center; }
.card .icon svg { width: 22px; height: 22px; }

/* Photos */
.photo { position: relative; overflow: hidden; border-radius: 20px; background: var(--placeholder); border: 1px solid var(--border); aspect-ratio: 4 / 5; margin: 0; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.placeholder-note { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 0.85rem; text-align: center; padding: 16px; }
.placeholder-note svg { width: 54px; height: 54px; opacity: 0.5; }
.photo-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; background: var(--bg); border-radius: 20px; overflow: hidden; }
.photo-row figure { margin: 0; position: relative; overflow: hidden; background: var(--placeholder); aspect-ratio: 4 / 5; }
.photo-row img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) {
  .photo-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .photo-row::-webkit-scrollbar { display: none; }
  .photo-row figure { flex: 0 0 80%; scroll-snap-align: start; }
}

/* Mixes */
.mix { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.mix iframe { display: block; width: 100%; border: 0; }
.mix-empty { padding: 28px; display: flex; align-items: center; gap: 18px; }
.mix-empty .disc { flex: 0 0 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle, var(--amber) 0 12%, var(--bg) 13% 16%, #2A231D 17% 100%); border: 2px solid var(--border); }
.mix-list { display: flex; flex-direction: column; gap: 16px; }

/* CTA band */
.cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cta .btn-row { justify-content: center; margin-top: 6px; }

/* Booking form */
.book-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .book-grid { grid-template-columns: 1fr; } }
.form { display: flex; flex-direction: column; gap: 18px; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span, .group-label { font-size: 0.9rem; font-weight: 600; color: var(--heading); }
.field em { color: var(--amber-text); font-style: normal; }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea {
  font: inherit; font-size: 1rem; color: var(--heading); background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px; min-height: 48px; width: 100%; }
.form textarea { resize: vertical; min-height: 0; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.form ::placeholder { color: var(--muted); opacity: 0.8; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 0.9rem; }
.chip:hover span { border-color: var(--amber); }
.chip input:checked + span { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); font-weight: 600; }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--amber-soft); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--amber); flex: 0 0 auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #F08A6E; font-weight: 600; }
.form-error:empty { display: none; }
:root[data-theme="light"] .form-error { color: #8E2F1C; }
.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.contact-list a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); text-decoration: none; color: var(--heading); min-height: 52px; }
.contact-list a:hover { border-color: var(--amber); }
.contact-list svg { width: 20px; height: 20px; color: var(--amber-text); flex: 0 0 auto; }
.done { display: flex; flex-direction: column; gap: 12px; }
.done:focus { outline: none; }
.done[hidden], .form[hidden] { display: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 48px; background: var(--bg-2); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: var(--heading); }
.socials a:hover { border-color: var(--amber); color: var(--amber-text); }
.socials svg { width: 19px; height: 19px; }

@media (max-width: 640px) {
  .nav { order: 3; width: 100%; justify-content: space-between; padding-bottom: 8px; }
  .nav a { flex: 1; justify-content: center; }
  .section { padding: 56px 0; }
  .hero { padding-top: 48px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Floating Book button, always at the bottom of the screen */
.fab { position: fixed; z-index: 60; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 22px 6px 6px; border-radius: 999px; background: #14110F; color: #F7EEDA; border: 1.5px solid #F5A524; text-decoration: none;
  font: 600 1.05rem "Sora", sans-serif; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(20, 17, 15, 0.15); transition: transform .15s ease; }
.fab:hover { transform: translateY(-2px); }
.fab:hover { background: #221C17; }
.fab:focus-visible { outline: 3px solid #F5A524; outline-offset: 3px; }
.fab svg { width: 44px; height: 44px; margin: 4px 0 4px 8px; overflow: visible; }
.site-footer { padding-bottom: 104px; }
@media (min-width: 900px) { .fab { right: 28px; bottom: 28px; } }
@media (prefers-reduced-motion: reduce) { .fab { transition: none; } }
:root[data-theme="light"] .form input:not([type=checkbox]):not([type=radio]),
:root[data-theme="light"] .form select,
:root[data-theme="light"] .form textarea { background: rgba(236, 233, 229, 0.85); }
:root[data-theme="light"] .chip span { background: rgba(185, 178, 168, 0.35); }
:root[data-theme="light"] .chip input:checked + span { background: var(--amber); }

.mix iframe.yt { aspect-ratio: 16 / 9; height: auto; }
.field small { color: var(--muted); font-size: 0.8rem; }
[hidden] { display: none !important; }

/* TEMP logo switch (remove with the button in index.html and the block in site.js) */
.logo-swap { display: block; margin: 0 auto; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 24px; }
.logo-swap:focus-visible { outline: 2px solid var(--amber); outline-offset: 6px; }
.logo-ribbon { display: none; }
:root[data-logo="ribbon"] .logo-3b { display: none; }
:root[data-logo="ribbon"] .logo-ribbon { display: block; }
:root[data-logo="ribbon"] .hero-logo.logo-ribbon { width: min(340px, 78vw); }
:root[data-logo="ribbon"] .hero-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }


/* Home: Grant's photo fixed far behind the page, showing through between sections as you scroll */
body.has-bg::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url("images/dj-vinegar-bg-behind-wide.jpg") 65% center / cover no-repeat;
  opacity: 0.22;
}
@media (max-aspect-ratio: 1/1) { body.has-bg::before { background-image: url("images/dj-vinegar-bg-behind-tall.jpg"); background-position: center 40%; } }
:root[data-theme="light"] body.has-bg::before { opacity: 0.12; }
