/* ============================================
   Portayto d-site — Sarah & Rees, 25 Nov 2028
   Brand system: Ivory / Sage / Charcoal / Rust
   Type: Snell Roundhand (script) + Optima Nova (sans)
   Temporary stand-ins: Mrs Saint Delafield / Jost
   ============================================ */

:root {
  --ivory: #F7F3EA;
  --sage: #9CAE93;
  --charcoal: #3A3532;
  --rust: #9E4B32;
  --charcoal-deep: #1A1816;

  --script: 'snell-roundhand', 'Mrs Saint Delafield', cursive;
  --sans: 'optima-nova', 'Jost', sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-image: url('assets/hero-duotone.jpg');
  background-size: cover;
  background-position: center 40%;
  overflow: hidden;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(26, 24, 22, 0.72) 0%,
      rgba(26, 24, 22, 0.42) 32%,
      rgba(26, 24, 22, 0.38) 55%,
      rgba(26, 24, 22, 0.78) 100%
    );
  z-index: 1;
}

.corner-mark {
  position: relative;
  display: block;
  width: 36px;
  height: auto;
  margin: 1.8rem auto 0;
  opacity: 0.9;
  z-index: 2;
  filter:
    drop-shadow(0 1px 3px rgba(0,0,0,0.75))
    drop-shadow(0 2px 10px rgba(0,0,0,0.55));
}

@media (min-width: 640px) {
  .corner-mark {
    position: absolute;
    top: 2.6rem;
    right: 2.6rem;
    width: 52px;
    margin: 0;
    z-index: 2;
  }
}

@media (min-width: 640px) {
  .corner-mark {
    top: 2.6rem;
    right: 2.6rem;
    width: 52px;
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4.5vh 6vw 2.5vh;
  color: var(--ivory);
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sage);
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
  margin: 0 0 1.1rem;
}

.couple-names {
  font-family: var(--script);
  font-weight: 400;
  margin: 0 0 1.1rem;
  color: var(--ivory);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.08em;
}

.couple-names__name {
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  line-height: 1.15;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}

.couple-names__amp {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--rust);
  line-height: 1;
  margin: 0.05em 0;
}

.date-line {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.8vw, 1.55rem);
  letter-spacing: 0.04em;
  color: var(--sage);
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
  margin: 0 0 0.3rem;
}

.venue-line {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(0.92rem, 2vw, 1.1rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
  margin: 0;
}

/* ---------- Countdown band ---------- */

.countdown-band {
  position: relative;
  z-index: 2;
  padding: 1.6rem 6vw 1.1rem;
  text-align: center;
  border-top: 1px solid rgba(247, 243, 234, 0.18);
  background: rgba(26, 24, 22, 0.35);
  backdrop-filter: blur(2px);
}

.countdown-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 1.3rem 2.2rem 1.1rem;
  margin-bottom: 1.6rem;
  border: 1px solid rgba(156, 174, 147, 0.35);
  border-radius: 2rem;
  background: rgba(247, 243, 234, 0.05);
}

@media (min-width: 640px) {
  .countdown-pill {
    padding-left: 3.2rem;
    padding-right: 3.2rem;
  }
}

.countdown-heading {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  margin: 0 0 0.7rem;
}

.countdown {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.4rem 1.8rem;
}

.countdown__unit {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.32em;
  font-size: clamp(1.9rem, 6vw, 3.2rem);
  font-weight: 600;
  line-height: 1;
  position: relative;
}

.countdown__unit--extended {
  font-size: clamp(1.2rem, 3.6vw, 1.9rem);
}

.countdown__unit + .countdown__unit::before {
  content: "";
  position: absolute;
  left: calc(clamp(0.5rem, 1.5vw, 1.2rem) * -1);
  top: 0.1em;
  width: 1px;
  height: 0.9em;
  background: rgba(247, 243, 234, 0.25);
}

.countdown__value {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  color: var(--ivory);
  letter-spacing: 0.01em;
  margin-right: 0.28em;
}

.countdown__label {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sage);
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  white-space: nowrap;
}

.countdown__unit--extended {
  animation: fade-in-unit 0.5s ease forwards;
}

@keyframes fade-in-unit {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.holding-line {
  font-family: var(--sans);
  max-width: 32em;
  margin: 0 auto;
  color: var(--ivory);
}

.holding-line__lead {
  display: block;
  font-weight: 600;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  line-height: 1.5;
  margin-bottom: 0.3rem;
  opacity: 0.96;
}

.holding-line__sub {
  display: block;
  font-weight: 300;
  font-size: clamp(0.95rem, 2.2vw, 1.12rem);
  line-height: 1.6;
  opacity: 0.88;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  z-index: 2;
  padding: 0.9rem 0 1.1rem;
  text-align: center;
}

.monogram-mark {
  display: block;
  width: 44px;
  height: auto;
  margin: 0 auto;
  opacity: 0.85;
}

/* ---------- Responsive tightening ---------- */

@media (max-width: 480px) {
  .countdown { gap: 0.85rem 1.1rem; }
  .countdown__label { font-size: 0.6rem; letter-spacing: 0.1em; }
  .countdown-pill { padding-left: 1.3rem; padding-right: 1.3rem; }
}

/* ---------- Keyboard focus visibility (no interactive elements yet, but future-proofed) ---------- */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}
