/* ==========================================================================
   WEARAURA — BRAND COLOR SYSTEM & RESETS
   ========================================================================== */

:root {
  /* Restrained color palette from primary WearAura site */
  --bg-color: #F6F4EF;          /* Warm Ivory/Off-white */
  --text-primary: #1C1917;      /* Deep Stone / Charcoal Black */
  --text-secondary: #78716C;    /* Muted Slate Grey */
  --accent-gold: #8E6D42;       /* Premium Muted Gold */
  --divider-color: rgba(28, 25, 23, 0.12); /* Subtle line separator */
  
  /* Fonts */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Premium text selection highlighting */
::selection {
  background-color: #C5A059;
  color: #121212;
}

/* ==========================================================================
   PAGE WRAPPER & CENTRAL LAYOUT
   ========================================================================== */

.page-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(1rem, 3vh, 2.5rem) 2rem;
}

/* Header & Brand Logo Mark */
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: auto; /* Pushes central content to middle */
  padding-bottom: 2rem;
  opacity: 0;
  animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-logo {
  height: 24px;
  width: auto;
  object-fit: contain;
}

/* Text fallback matching primary brand aesthetics */
.logo-text {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
}

/* Central Editorial Canvas */
.main-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  text-align: center;
  padding: 0;
}

.editorial-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  width: 100%;
}

/* Headline - "WE'LL BE BACK." */
.headline {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}

/* Paragraph (supporting-text) */
.supporting-text {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(0.85rem, 1.3vw, 1.05rem);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2.5rem;
  max-width: 520px;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
}

.desktop-br {
  display: block;
}

/* Return Date Eyebrow Label */
.return-date-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.65s forwards;
}

.return-date-label {
  font-size: clamp(0.75rem, 1vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--accent-gold);
  text-transform: uppercase;
}

/* Subtle editorial markers flanking the return date */
.return-date-container::before,
.return-date-container::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1px;
  background-color: var(--accent-gold);
  opacity: 0.4;
}

/* ==========================================================================
   COUNTDOWN TIMER DISPLAY
   ========================================================================== */

.countdown-container {
  width: 100%;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.85s forwards;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1.2rem, 4.5vw, 3.5rem);
}

.countdown-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
}

.countdown-number {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7.5vw, 5.5rem);
  font-weight: 300;
  line-height: 1;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.75rem;
}

.countdown-label {
  font-size: clamp(0.6rem, 1vw, 0.7rem);
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--text-secondary);
}

/* Subtle Editorial Separators */
.countdown-divider {
  width: 1px;
  height: clamp(35px, 6vw, 60px);
  background-color: var(--divider-color);
  align-self: center;
}

/* Signoff Italic Typography */
.signoff-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(12px);
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.05s forwards;
}

/* ==========================================================================
   FOOTER (QUIET BRANDING)
   ========================================================================== */

.footer {
  margin-top: auto; /* Pushes central content to middle */
  padding-top: 2rem;
  text-align: center;
  opacity: 0;
  animation: fadeIn 1.5s ease 1.25s forwards;
}

.copyright {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */

@media (max-width: 768px) {
  .page-wrapper {
    padding: 2rem 1.5rem;
  }

  .desktop-br {
    display: none;
  }

  .headline {
    margin-bottom: 1.25rem;
  }

  .supporting-text {
    margin-bottom: 2rem;
  }

  .return-date-container {
    margin-bottom: 2rem;
  }

  /* Reflow countdown into a balanced 2 x 2 grid for tablets/mobile */
  .countdown-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(100px, 150px));
    gap: 2.2rem 1.5rem;
    justify-content: center;
  }

  .countdown-segment {
    min-width: unset;
  }

  .countdown-number {
    font-size: clamp(3rem, 12vw, 4rem);
  }

  /* Hide vertical dividers on mobile grid layout */
  .countdown-divider {
    display: none;
  }

  .countdown-container {
    margin-bottom: 2rem;
  }
}

@media (max-width: 360px) {
  /* Fine-tuning for ultra-small viewports (e.g. iPhone SE, Moto G4) */
  .page-wrapper {
    padding: 1rem 0.75rem;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, minmax(80px, 120px));
    gap: 1.5rem 0.75rem;
  }

  .countdown-number {
    font-size: 2.6rem;
  }
  
  .return-date-container::before,
  .return-date-container::after {
    width: 8px;
  }
}

/* Landscape & Short Height Viewport Optimization */
@media (max-height: 660px) {
  .page-wrapper {
    padding: 1rem 2rem;
  }
  
  .header {
    padding-bottom: 0.5rem;
  }
  
  .headline {
    margin-bottom: 1rem;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
  
  .supporting-text {
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
  }
  
  .return-date-container {
    margin-bottom: 1.25rem;
  }
  
  .countdown-container {
    margin-bottom: 1.25rem;
  }
  
  .countdown-number {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
  }
  
  .countdown-grid {
    gap: clamp(1rem, 3vw, 2rem);
  }
  
  .signoff-text {
    font-size: 1.1rem;
  }
  
  .footer {
    padding-top: 1rem;
  }
}
