/* ==========================================================================
   FHM STORE — Launch / Countdown Page
   ========================================================================== */

/* -----------------------------------------
   OPTIONAL: self-hosted fonts
   Place files in ../fonts/ then uncomment this block
   (and remove/comment the Google Fonts <link> tags in index.html)
------------------------------------------- */
/*
@font-face {
  font-family: 'Anton';
  src: url('../fonts/Anton-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/CormorantGaramond-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/CormorantGaramond-MediumItalic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Luxury Modish';
  src: url('../fonts/LuxuryModish.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
*/

/* -----------------------------------------
   Tokens
------------------------------------------- */
:root {
  --bg: #0b0a09;
  --bg-elev: #141210;
  --ink: #f3ede1;
  --ink-dim: #a89c85;
  --ink-faint: #6f6555;
  --gold: #c6a15b;
  --gold-bright: #eecd8f;
  --line: rgba(230, 210, 170, 0.16);
  --line-soft: rgba(230, 210, 170, 0.08);

  --font-logo: 'Luxury Modish', 'Cormorant Garamond', serif;
  --font-display: 'Anton', 'Inter', sans-serif;
  --font-accent: 'Cormorant Garamond', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1180px;
}

/* -----------------------------------------
   Reset / base
------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 1.5px solid var(--gold-bright);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* -----------------------------------------
   Backdrop
------------------------------------------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(60% 50% at 50% 8%, rgba(198, 161, 91, 0.16), transparent 60%),
    radial-gradient(80% 60% at 50% 100%, rgba(198, 161, 91, 0.06), transparent 70%),
    var(--bg);
}

.backdrop::before {
  /* fine film-grain / noise so the black doesn't look flat or "AI default" */
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-soft);
  margin: 14px;
}

@media (max-width: 640px) {
  .backdrop::after { margin: 8px; }
}

/* -----------------------------------------
   Layout
------------------------------------------- */
.page {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 6vw, 60px);
  text-align: center;
}

.top {
  width: 100%;
  max-width: var(--container);
  display: flex;
  justify-content: center;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

/* -----------------------------------------
   Main / hero
------------------------------------------- */
.main {
  width: 100%;
  max-width: var(--container);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 3.4vw, 32px);
  padding: clamp(24px, 5vw, 40px) 0;
}

/* Monogram mark */
.mark {
  width: 64px;
  height: 64px;
  opacity: 0;
  animation: rise 900ms ease-out 100ms forwards;
}

.mark circle,
.mark path {
  stroke: var(--gold);
}

/* Wordmark */
.wordmark {
  font-family: var(--font-logo);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--ink);
  opacity: 0;
  animation: rise 900ms ease-out 220ms forwards;
}

.wordmark em {
  font-style: normal;
  color: var(--gold-bright);
}

.tagline {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  color: var(--ink-dim);
  max-width: 34ch;
  opacity: 0;
  animation: rise 900ms ease-out 340ms forwards;
}

.headline {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 6.4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: var(--ink);
  opacity: 0;
  animation: rise 900ms ease-out 440ms forwards;
}

.headline span {
  color: var(--gold);
}

/* -----------------------------------------
   Countdown — the signature element:
   an haute-boutique appointment card rather
   than a generic tech countdown widget.
------------------------------------------- */
.countdown {
  display: grid;
  grid-auto-flow: column;
  gap: clamp(10px, 2.6vw, 22px);
  margin-top: clamp(8px, 2vw, 16px);
  opacity: 0;
  animation: rise 900ms ease-out 560ms forwards;
}

.unit {
  position: relative;
  width: clamp(64px, 15vw, 108px);
  padding: clamp(14px, 3vw, 22px) 0 clamp(10px, 2vw, 16px);
  border: 1px solid var(--line);
}

.unit::before,
.unit::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1px solid var(--gold);
}
.unit::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.unit::after  { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

.unit .num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 5.4vw, 3rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.unit .label {
  display: block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.colon {
  align-self: center;
  font-family: var(--font-display);
  color: var(--ink-faint);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  transform: translateY(-8px);
}

@media (max-width: 480px) {
  .colon { display: none; }
  .countdown { gap: 10px; }
}

/* -----------------------------------------
   Notify form
------------------------------------------- */
.notify {
  width: 100%;
  max-width: 420px;
  margin-top: clamp(6px, 2vw, 10px);
  opacity: 0;
  animation: rise 900ms ease-out 680ms forwards;
}

.notify-row {
  display: flex;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}

.notify-row input[type="email"] {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 15px 16px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.01em;
}

.notify-row input[type="email"]::placeholder { color: var(--ink-faint); }

.notify-row button {
  flex-shrink: 0;
  background: var(--gold);
  color: #14110b;
  border: 0;
  padding: 0 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 160ms ease;
}

.notify-row button:hover { background: var(--gold-bright); }

.notify-note {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

.notify-success {
  display: none;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold-bright);
  padding: 14px 0;
}

.notify.is-submitted .notify-row,
.notify.is-submitted .notify-note { display: none; }
.notify.is-submitted .notify-success { display: block; }

/* -----------------------------------------
   Footer
------------------------------------------- */
.bottom {
  width: 100%;
  max-width: var(--container);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: clamp(24px, 5vw, 40px);
}

.socials {
  display: flex;
  gap: 22px;
}

.socials a {
  color: var(--ink-dim);
  transition: color 160ms ease;
}
.socials a:hover { color: var(--gold-bright); }
.socials svg { width: 17px; height: 17px; }

.fine-print {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

/* -----------------------------------------
   Motion
------------------------------------------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
