/* ============================================================
   BFW — Bucharest Food Week © · Teaser landing
   Production stylesheet. Standards-based; no framework runtime.
   Converted from the Claude DC source (Teaser Landing.dc.html),
   baking the wine / red / slideshow defaults of the design.
   ============================================================ */

/* ---- Font (subset: Latin + Romanian diacritics) ----------- */
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

/* ---- Design tokens (page scope) --------------------------- */
:root {
  --ground:   #410024; /* wine ground */
  --ground-2: #2E0019; /* darker gradient end (derived) */
  --cream:    #FBF7EE;
  --red:      #FF0000; /* red */
  --red-deep: #CC0000; /* hover/pressed */
  --malibu:   #8183FF;
  --date:     var(--red);

  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;

  /* Backdrop slideshow pace — raise for slower, calmer motion. */
  --bfw-slide-dur: 46s;
}

/* ---- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--ground);
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: none; }

/* ---- Page shell ------------------------------------------- */
.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(130% 90% at 50% -12%, rgba(255,255,255,.07), rgba(255,255,255,0) 55%),
    linear-gradient(180deg, var(--ground) 0%, var(--ground-2) 100%);
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px) clamp(40px, 6vw, 72px);
}

/* ---- Backdrop slideshow ----------------------------------- */
.backdrop {
  position: absolute;
  inset: 0 0 auto 0;
  height: min(88vh, 780px);
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.backdrop img {
  position: absolute;
  top: 50%;
  left: 50%;
  opacity: 0;
  will-change: transform, opacity;
  /* One shared, slow zoom. Slides cross-fade via staggered delays.
     Tune the whole pace from --bfw-slide-dur (delays scale with it).
     Longhands (not the `animation` shorthand) so the per-slide
     animation-delay below isn't reset to 0. */
  animation-name: bfwSlide;
  animation-duration: var(--bfw-slide-dur);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}
.slide-0 { width: clamp(320px, 44vw, 560px); --op: .075; animation-delay: calc(var(--bfw-slide-dur) * -0.05); }
.slide-1 { width: clamp(300px, 42vw, 520px); --op: .12;  animation-delay: calc(var(--bfw-slide-dur) *  0.117); }
.slide-2 { width: clamp(250px, 35vw, 430px); --op: .16;  animation-delay: calc(var(--bfw-slide-dur) *  0.283); }
.slide-3 { width: clamp(300px, 42vw, 520px); --op: .14;  animation-delay: calc(var(--bfw-slide-dur) *  0.45); }
.slide-4 { width: clamp(320px, 44vw, 560px); --op: .085; animation-delay: calc(var(--bfw-slide-dur) *  0.617); }
.slide-5 { width: clamp(300px, 42vw, 520px); --op: .10;  animation-delay: calc(var(--bfw-slide-dur) *  0.783); }

/* Gentle zoom-out → in: each silhouette eases up to full size as it appears,
   keeps drifting in, then fades. */
@keyframes bfwSlide {
  0%   { opacity: 0;             transform: translate(-50%, -50%) scale(.86); }
  6%   { opacity: var(--op, .1); transform: translate(-50%, -50%) scale(1); }
  17%  { opacity: var(--op, .1); transform: translate(-50%, -50%) scale(1.08); }
  23%  { opacity: 0;             transform: translate(-50%, -50%) scale(1.12); }
  100% { opacity: 0;             transform: translate(-50%, -50%) scale(.86); }
}

/* ---- Header ----------------------------------------------- */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(14px, 2vw, 22px) 0;
}
.masthead .monogram { height: clamp(26px, 3.2vw, 38px); width: auto; }

/* ---- Hero ------------------------------------------------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(10px, 1.6vw, 24px) 0 clamp(24px, 3vw, 46px);
}
.hero .wordmark { width: clamp(264px, 56vw, 560px); height: auto; }
.hero__lead {
  margin: clamp(18px, 2.4vw, 28px) 0 0;
  max-width: 30ch;
  font-size: clamp(16px, 2.1vw, 22px);
  line-height: 1.5;
  color: rgba(251, 247, 238, .8);
  text-wrap: balance;
}
.hero__lead strong { color: var(--cream); font-weight: 700; }
.hero__rule {
  width: clamp(40px, 6vw, 72px);
  height: 4px;
  background: var(--red);
  border-radius: 2px;
  margin: clamp(20px, 2.6vw, 34px) 0 clamp(26px, 2.8vw, 42px);
}
.hero__date {
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: .94;
  font-size: clamp(44px, 9.5vw, 116px);
  color: var(--date);
}
.hero__date .dash { display: inline-block; margin: 0 .12em; }
.hero__meta {
  margin: clamp(14px, 2vw, 22px) 0 0;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: clamp(11px, 1.5vw, 15px);
  color: rgba(251, 247, 238, .6);
}
.hero__by {
  margin: clamp(16px, 2.2vw, 26px) 0 0;
  font-family: var(--mono);
  letter-spacing: .02em;
  font-size: clamp(13px, 1.5vw, 16px);
  color: rgba(251, 247, 238, .5);
}
.hero__by b { color: rgba(251, 247, 238, .86); font-weight: 400; }

/* ---- Newsletter card -------------------------------------- */
.newsletter {
  margin: clamp(20px, 4vw, 44px) 0 0;
  border: 1px solid rgba(251, 247, 238, .14);
  border-radius: 24px;
  background: rgba(251, 247, 238, .035);
  padding: clamp(28px, 4.6vw, 56px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.newsletter__copy { flex: 1 1 300px; min-width: 200px; }
.newsletter__eyebrow {
  font-family: var(--mono);
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: 12px;
  font-weight: 600;
}
.newsletter__title {
  margin: 14px 0 0;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: .98;
  font-size: clamp(30px, 4.6vw, 52px);
  color: var(--cream);
}
.newsletter__text {
  margin: 18px 0 0;
  max-width: 40ch;
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.55;
  color: rgba(251, 247, 238, .72);
}
.newsletter__form-wrap { flex: 1 1 340px; min-width: 200px; }

/* form */
.signup { display: flex; flex-wrap: wrap; gap: 12px; }
.signup__input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 16px 18px;
  border-radius: 13px;
  border: 1px solid rgba(251, 247, 238, .2);
  background: rgba(0, 0, 0, .22);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.signup__input::placeholder { color: rgba(251, 247, 238, .38); }
.signup__input:focus,
.signup__input:focus-visible {
  border-color: var(--malibu);
  box-shadow: 0 0 0 3px rgba(129, 131, 255, .32);
}
.signup__btn {
  flex: 1 1 150px;
  padding: 16px 28px;
  border-radius: 13px;
  border: none;
  background: var(--red);
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.signup__btn:hover { background: var(--red-deep); }
.signup__btn:active { transform: translateY(1px); }
.signup__btn:focus-visible { box-shadow: 0 0 0 3px rgba(129, 131, 255, .55); }
.signup__btn[disabled] { opacity: .6; cursor: progress; }

/* honeypot — visually hidden, off-screen, never focusable */
.signup__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.signup__error {
  margin: 12px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--red);
}
.signup__note {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: rgba(251, 247, 238, .42);
}

.signup-success {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid rgba(129, 131, 255, .5);
  background: rgba(129, 131, 255, .13);
  border-radius: 14px;
  color: var(--cream);
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.4;
}
.signup-success__check {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 999px;
  background: var(--malibu);
  color: #0E0517;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}

[hidden] { display: none !important; }

/* Screen-reader-only utility */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Footer ----------------------------------------------- */
.site-footer { margin: clamp(52px, 8vw, 100px) 0 0; }
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
}
.site-footer__label {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 12px;
  color: rgba(251, 247, 238, .5);
}
.social { display: flex; gap: 12px; margin-top: 16px; }
.social a {
  width: 48px; height: 48px;
  border-radius: 13px;
  border: 1px solid rgba(251, 247, 238, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.social a:hover { background: rgba(251, 247, 238, .08); border-color: rgba(251, 247, 238, .4); }
.social a:focus-visible { border-color: var(--malibu); box-shadow: 0 0 0 3px rgba(129,131,255,.4); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.site-footer__monogram { height: clamp(28px, 3.2vw, 38px); width: auto; opacity: .92; }
.site-footer__divider { height: 1px; background: rgba(251, 247, 238, .12); margin: clamp(28px, 4vw, 40px) 0 0; }
.site-footer__credits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(251, 247, 238, .42);
}

/* ---- Reduced motion --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .backdrop img { animation: none !important; opacity: 0 !important; }
  .slide-0 { opacity: var(--op, .075) !important; transform: translate(-50%, -50%); }
  .signup__input, .signup__btn, .social a { transition: none; }
}
