/* ============================================================
   Bekhauf.com — Launching Soon
   Premium editorial theme. Colors sampled from the brand logo.
   ============================================================ */

:root {
  /* Paper / ink palette (matched to the logo background #f1f1f1 for a seamless blend) */
  --paper:      #f1f1f1;
  --paper-hi:   #f2f2f2;
  --paper-lo:   #e8e8e8;
  --ink:        #17130f;
  --muted:      #59534c;
  --faint:      #6f6860;

  /* Brand accents from the logo */
  --red:        #d21f2a;
  --red-deep:   #a5141d;
  --gold:       #c0913a;

  /* Hairlines */
  --line:        rgba(23, 19, 15, 0.14);
  --line-strong: rgba(23, 19, 15, 0.30);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --maxw: 860px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(120% 110% at 50% 40%, var(--paper-hi) 0%, var(--paper) 50%, var(--paper-lo) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

/* ---------- Film-grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Page shell ---------- */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1.25rem, 5vw, 2.75rem);
}

/* ---------- Masthead dateline ---------- */
.rule {
  border-top: 1px solid var(--line-strong);
}
.rule--top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
}
.rule__item {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.rule__item--center { color: var(--faint); }
.rule__item--right  { text-align: right; }

/* ---------- Hero ---------- */
.hero {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1.5rem, 5vh, 3.5rem) 0;
  gap: 1.4rem;
}

.logo {
  width: clamp(220px, 40vw, 350px);
  height: auto;
  /* No shadow: the logo's #f1f1f1 backdrop matches the page so it blends seamlessly */
}

/* ---------- Status badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}
.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(210, 31, 42, 0.55);
  animation: pulse 2s infinite;
}

/* ---------- Headline ---------- */
.headline {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2.5rem, 8.5vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 15ch;
}
.headline__accent {
  color: var(--red);
  font-style: italic;
  font-weight: 700;
}

/* ---------- Lede ---------- */
.lede {
  font-size: clamp(1.02rem, 2.3vw, 1.22rem);
  color: var(--muted);
  max-width: 46ch;
  line-height: 1.6;
}

/* ---------- Countdown ---------- */
.countdown-wrap {
  margin-top: 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}
.countdown-label {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
}
.countdown {
  display: flex;
  align-items: flex-start;
}
.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0 clamp(0.9rem, 3.5vw, 1.9rem);
}
.unit + .unit { border-left: 1px solid var(--line); }
.unit__num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  min-width: 1.7ch;
  text-align: center;
}
.unit__label {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- Notify form ---------- */
.notify {
  display: flex;
  gap: 0.6rem;
  width: 100%;
  max-width: 440px;
  margin-top: 0.6rem;
}
.notify__input {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.85rem 1.05rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.notify__input::placeholder { color: var(--faint); }
.notify__input:focus {
  outline: none;
  background: #fff;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(210, 31, 42, 0.14);
}
.notify__btn {
  flex: 0 0 auto;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--red);
  border: 1px solid var(--red);
  border-radius: 10px;
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.notify__btn:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(165, 20, 29, 0.28);
}
.notify__btn:active { transform: translateY(0); }

.notify__note {
  font-size: 0.82rem;
  color: var(--faint);
  min-height: 1.2em;
  transition: color 0.2s ease;
}
.notify__note.is-success { color: var(--red-deep); font-weight: 500; }
.notify__note.is-error   { color: var(--red);      font-weight: 500; }

/* ---------- Footer ---------- */
.footer { margin-top: auto; }
.rule--bottom { border-top: 1px solid var(--line-strong); }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  flex-wrap: wrap;
}
.socials { display: flex; gap: 0.35rem; }
.socials__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.socials__link:hover {
  color: var(--red);
  background: rgba(210, 31, 42, 0.08);
  transform: translateY(-2px);
}
.footer__copy {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--faint);
}

/* ---------- Accessibility helpers ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Entrance animations ---------- */
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(210, 31, 42, 0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(210, 31, 42, 0); }
  100% { box-shadow: 0 0 0 0 rgba(210, 31, 42, 0); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Animate only once JS marks the page ready (keeps content visible without JS) */
.is-ready .anim {
  opacity: 0;
  animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.is-ready .logo            { animation-delay: 0.05s; }
.is-ready .badge           { animation-delay: 0.20s; }
.is-ready .headline        { animation-delay: 0.32s; }
.is-ready .lede            { animation-delay: 0.44s; }
.is-ready .countdown-wrap  { animation-delay: 0.56s; }
.is-ready .notify          { animation-delay: 0.68s; }
.is-ready .notify__note    { animation-delay: 0.78s; }

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .rule__item--center { display: none; }
  .notify { flex-direction: column; }
  .notify__btn { width: 100%; }
  .unit { padding: 0 clamp(0.7rem, 4.5vw, 1.2rem); }
  .footer__inner { justify-content: center; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .is-ready .anim { opacity: 1; animation: none; }
  .badge__dot { animation: none; }
  * { transition: none !important; }
}
