/* ==========================================================================
   Grace O'Malley Whiskey — static mockup
   Vanilla-CSS-Umsetzung des Lovable-Originals (Tailwind v4 Theme)
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "RT Dyans";
  src: url("fonts/RTDyansBasic.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "GOM Body";
  src: url("fonts/BodyAccent.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* Jede Farbe doppelt: Hex zuerst (alte Browser / In-App-WebViews ohne
     OKLCH-Support nehmen den), OKLCH danach (moderne Browser ueberschreiben). */
  --background: #0b0b0b;
  --background: oklch(0.06 0 0);
  --foreground: #f2eee7;
  --foreground: oklch(0.95 0.01 80);
  --card: #0a0a0a;
  --card: oklch(0.1 0 0);
  --muted-foreground: #968e82;
  --muted-foreground: oklch(0.65 0.02 80);
  --border: rgba(150, 142, 130, 0.36);
  --border: oklch(0.22 0.01 80 / 60%);

  --verdigris: #00aaab;
  --verdigris: oklch(0.66 0.13 195);
  --copper: #ac571d;
  --copper: oklch(0.55 0.13 50);
  --copper-bright: #ef852e;
  --copper-bright: oklch(0.72 0.16 55);
  --pirate: #282624;
  --pirate: oklch(0.27 0.005 80);

  --shadow-verdigris: 0 0 60px rgba(0, 170, 171, 0.25);
  --shadow-verdigris: 0 0 60px oklch(0.66 0.13 195 / 0.25);

  --font-display: "RT Dyans", "Bebas Neue", "Anton", "Oswald", sans-serif;
  --display-weight: 400; /* RT Dyans Basic ist nativ Regular — kein Faux-Bold */

  --font-body: "GOM Body", "Barlow", system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: #0b0b0b;   /* greift sofort, noch bevor Variablen geladen sind */
  color-scheme: dark;    /* OS/Form-Defaults dunkel, kein heller Auto-Light-Mode */
}
body {
  margin: 0;
  background-color: #0b0b0b;              /* harter Fallback zuerst */
  background-color: var(--background);
  color: #f2eee7;
  color: var(--foreground);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; }
h1, h2, h3 { margin: 0; font-size: inherit; font-weight: inherit; }
p, dl, dd { margin: 0; }
a { color: inherit; }
::selection { background: var(--verdigris); color: var(--background); }

/* ---------- Utilities ---------- */
.font-display {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.text-copper { color: var(--copper-bright); }
.eyebrow {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--verdigris);
}
.hairline { height: 1px; background: linear-gradient(90deg, transparent, var(--verdigris), transparent); }
.vignette { position: relative; }
.vignette::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.85) 100%);
  background: radial-gradient(ellipse at center, transparent 40%, oklch(0 0 0 / 0.85) 100%);
}
@keyframes slow-pan {
  0%   { transform: scale(1.08) translateY(0); }
  100% { transform: scale(1.14) translateY(-2%); }
}
.slow-pan { animation: slow-pan 22s ease-in-out infinite alternate; }

h2.font-display { font-size: 2.25rem; line-height: 1; margin-top: 1rem; }

/* ---------- Buttons (Age Gate) ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  color: var(--foreground);
  background: transparent;
  border: 1px solid var(--border);
  padding: 1rem 2rem;
  min-width: 120px;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary { border-color: var(--verdigris); }
.btn-primary:hover,
.btn-primary:focus-visible {
  background: rgba(0, 170, 171, 0.12);
  background: oklch(0.66 0.13 195 / 0.12);
  box-shadow: var(--shadow-verdigris);
}
.btn-ghost:hover,
.btn-ghost:focus-visible { border-color: var(--muted-foreground); }
.btn:focus-visible { outline: 2px solid var(--verdigris); outline-offset: 3px; }

/* ---------- Age gate ---------- */
.gate-page { min-height: 100svh; }
.age-gate {
  min-height: 100svh;
  background: #0b0b0b;                     /* harter Fallback zuerst */
  background: var(--background);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
}
.gate-inner { display: flex; flex-direction: column; align-items: center; }
.gate-logo { height: 88px; width: auto; margin-bottom: clamp(3rem, 12vh, 7rem); }
.gate-title { font-size: clamp(1.75rem, 4.5vw, 3.25rem); line-height: 1.1; max-width: 24ch; }
.gate-hairline { width: 130px; margin: clamp(1.8rem, 5vh, 3rem) 0; }
.gate-actions { display: flex; gap: 1rem; }
.gate-denied { color: var(--muted-foreground); font-size: 0.95rem; letter-spacing: 0.08em; }

/* ---------- Header: Logo exakt mittig (= Split-Linie des Heros) ---------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: 1rem 1.5rem;
  pointer-events: none;
}
.header-logo-link { pointer-events: auto; display: block; }
.header-logo { height: 64px; width: auto; display: block; }

/* ---------- Hero: 50/50 ---------- */
.hero { display: grid; }
.hero-media { position: relative; background: #0a1a1f; height: 56svh; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-content {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
}
.hero-text { max-width: 32rem; padding: 5rem 0; }
.hero h1 { font-size: 2.25rem; line-height: 0.85; margin-top: 1rem; }
.lede {
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  line-height: 1.625;
}
.status-label {
  display: inline-block;
  margin-top: 2rem;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--copper-bright);
  border: 1px solid rgba(239, 133, 46, 0.4);
  border: 1px solid oklch(0.72 0.16 55 / 40%);
  padding: 0.5rem 1rem;
}

/* ---------- Collection ---------- */
.collection { padding: 5rem 0; border-top: 1px solid var(--border); }
.section-head { max-width: 1600px; margin: 0 auto 3rem; padding: 0 1.5rem; }
.scroll-hint {
  margin-top: 1rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.scroller {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 0 1.5rem 2rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--pirate) transparent;
}
.scroller::-webkit-scrollbar { height: 6px; }
.scroller::-webkit-scrollbar-thumb { background: var(--pirate); }
.scroller::-webkit-scrollbar-track { background: transparent; }
.scroller:focus-visible { outline: 1px solid var(--verdigris); outline-offset: 4px; }

.card {
  flex: 0 0 auto;
  width: 320px;
  background: var(--card);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
}
.card-bottle {
  aspect-ratio: 3 / 5;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #2a2722 0%, transparent 70%);
  background: radial-gradient(ellipse at center, oklch(0.16 0.01 80) 0%, transparent 70%);
}
.card-bottle img {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 32px rgba(0,0,0,0.6));
  filter: drop-shadow(0 24px 32px oklch(0 0 0 / 0.6));
}
.card-info { margin-top: 1.5rem; text-align: center; }
.card h3 { font-size: 1.5rem; line-height: 1.15; }
.card-sub {
  margin-top: 0.5rem;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--copper-bright);
}
.card-line { width: 4rem; margin: 1rem auto; }
.card-desc { color: var(--muted-foreground); font-size: 0.875rem; line-height: 1.625; }
.notes {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  display: grid;
  gap: 0.75rem;
  text-align: left;
  font-size: 0.875rem;
}
.notes dt {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--verdigris);
}
.notes dd { margin-top: 0.25rem; color: var(--muted-foreground); line-height: 1.625; }

/* ---------- Grace story ---------- */
.grace-section { border-top: 1px solid var(--border); background: var(--card); }
.grace-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  display: grid;
  gap: 3rem;
  align-items: center;
}
.grace-media { aspect-ratio: 4 / 3; overflow: hidden; }
.grace-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.grace-h2 { line-height: 0.9; }
.grace-line { width: 6rem; margin: 1.5rem 0; }
.grace-text p { color: var(--muted-foreground); line-height: 1.625; margin-bottom: 1rem; }
.grace-text p:last-of-type { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact { border-top: 1px solid var(--border); text-align: center; }
.contact-inner { max-width: 1000px; margin: 0 auto; padding: 5rem 1.5rem; }
.contact-line { width: 6rem; margin: 2rem auto; }
.contact-role {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--copper-bright);
  text-decoration: none;
  font-size: 1.5rem;
  transition: opacity 0.2s ease;
}
.contact-mail:hover,
.contact-mail:focus-visible { opacity: 0.8; }
.contact-mail svg { flex: none; }
.socials { margin-top: 3rem; display: flex; justify-content: center; gap: 1.5rem; }
.socials a {
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.socials a:hover,
.socials a:focus-visible {
  background: var(--copper-bright);
  color: #000;
  border-color: var(--copper-bright);
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); }
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

/* ---------- Responsive (md = 768px, lg = 1024px wie im Original) ----------
   Abweichung zum Original: der Hero stackt < 768px (Original quetscht
   auch mobil 2 Spalten, was bei 380px bricht). */
@media (min-width: 768px) {
  .hero { grid-template-columns: 1fr 1fr; min-height: 100svh; }
  .hero-media { height: auto; }
  .hero-media img { position: absolute; inset: 0; }
  .hero-content { padding: 0 3rem; }
  .hero h1 { font-size: 3.75rem; margin-top: 1.5rem; }
  .lede { margin-top: 2rem; font-size: 1.125rem; }
  .status-label { font-size: 10px; letter-spacing: 0.4em; padding: 0.5rem 1.25rem; }
  .eyebrow { font-size: 11px; letter-spacing: 0.4em; }
  h2.font-display { font-size: 3.75rem; }
  .header-logo { height: 80px; }
  .collection { padding: 7rem 0; }
  .section-head { padding: 0 2.5rem; }
  .scroller { padding: 0 2.5rem 2rem; }
  .card { width: 380px; }
  .card h3 { font-size: 1.875rem; }
  .grace-inner { grid-template-columns: 1fr 1fr; gap: 4rem; padding: 7rem 2.5rem; }
  .contact-inner { padding: 7rem 2.5rem; }
  .contact-mail { font-size: 1.875rem; }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; padding: 2.5rem; }
}
@media (min-width: 1024px) {
  .hero h1 { font-size: 6rem; }
}
@media (max-width: 480px) {
  .gate-actions { flex-direction: column; width: 100%; max-width: 280px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroller { scroll-behavior: auto; }
  .age-gate { transition: none; }
  .slow-pan { animation: none; }
}
