/* ══════════════════════════════════════════
   BASE — Reset, Variables, Body, Grain, Cursor
   ══════════════════════════════════════════ */

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

:root {
  --cream:      #3A2D1A;
  --warm-white: #4A3A24;
  --gold:       #C4A472;
  --gold-light: #D4B896;
  --deep:       #F0E8DC;
  --charcoal:   #1A1410;
  --muted:      #9A8570;
  --border:     rgba(196, 164, 114, 0.2);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--cream);
  color: var(--deep);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Restore native cursor on form inputs & clickables */
input, textarea, select, [contenteditable] {
  cursor: text !important;
}
a, button, [role="button"], label {
  cursor: pointer !important;
}

/* ── Grain Overlay ── */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 900;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ── Custom Cursor ── */
#cursor {
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

#cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0.6;
}

/* ── Shared Utilities ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}

.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 24px;
}

.section-desc {
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--muted);
  max-width: 380px;
}

.status-msg {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 12px 0;
  display: none;
}
.status-msg.loading { color: var(--muted); }
.status-msg.error   { color: #c0392b; }
.status-msg.show    { display: block; }

/* ── Gated Content (hidden until valid slug) ── */
.gated-content {
  display: none !important;
}

.gated-content.revealed {
  display: revert !important;
}

/* ══════════════════════════════════════════
   OUR STORY SECTION
   ══════════════════════════════════════════ */

#story {
  padding: 120px 0;
  position: relative;
}

.story-container {
  max-width: 720px;
  width: 90%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  text-align: center;
}

.story-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

.story-photo {
  overflow: hidden;
  border-radius: 2px;
}

.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.story-photo:hover img {
  transform: scale(1.04);
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: linear-gradient(135deg, #4A3820, #3A2D18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--muted);
}

.story-photo-1 {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  aspect-ratio: 3 / 4;
}

.story-photo-2 {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  aspect-ratio: 2 / 3;
}

.story-photo-3 {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  aspect-ratio: 4 / 3;
}

.story-text {
  text-align: center;
}

.story-ornament {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 32px;
  letter-spacing: 0.3em;
}

.story-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.8;
  color: var(--deep);
  margin-bottom: 20px;
  border: none;
  padding: 0;
}

.story-cite {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
  margin-bottom: 32px;
}

.story-divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 32px;
  opacity: 0.5;
  transform: scaleX(0);
  transform-origin: center;
}

.story-note {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.9;
  color: var(--deep);
  font-style: italic;
  font-weight: 300;
  max-width: 380px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════
   COUNTDOWN SECTION
   ══════════════════════════════════════════ */

#countdown {
  padding: 100px 8vw;
  position: relative;
}

#countdown::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, transparent, var(--border));
}

.countdown-timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
}

.countdown-unit {
  text-align: center;
  min-width: 100px;
}

.countdown-value {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 300;
  color: var(--deep);
  line-height: 1;
  margin-bottom: 8px;
}

.countdown-label {
  font-size: 0.55rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
}

.countdown-sep {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--border);
  padding-bottom: 20px;
}
