/* ============================================================
   Martin & Valeriya — Thornbury Castle
   Gothic / Medieval styling: stone, parchment, gold.
   ============================================================ */

:root {
  --stone-900: #14110d;
  --stone-800: #1e1a14;
  --stone-700: #2b2620;
  --stone-500: #4a4136;
  --parchment: #f3e9d2;
  --parchment-deep: #e7d8b5;
  --ink: #2a2013;
  --ink-soft: #4d3f2a;
  --gold: #b08a3e;
  --gold-bright: #d8b45a;
  --gold-deep: #8a6a29;
  --wine: #5a1f24;
  --shadow: rgba(0, 0, 0, 0.45);

  --font-black: 'UnifrakturMaguntia', 'MedievalSharp', serif;
  --font-head: 'Cinzel Decorative', 'Cinzel', serif;
  --font-sub: 'Cinzel', serif;
  --font-body: 'Cormorant Garamond', Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--stone-900);
  -webkit-font-smoothing: antialiased;
}

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

/* ---- Section shells --------------------------------------- */
section { position: relative; padding: 6rem 1.5rem; overflow: hidden; }

.parchment {
  background-color: var(--parchment);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(176, 138, 62, 0.10), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(90, 31, 36, 0.07), transparent 50%),
    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)' opacity='0.05'/%3E%3C/svg%3E");
  color: var(--ink);
}

.stone {
  background-color: var(--stone-800);
  background-image:
    radial-gradient(circle at 50% -10%, rgba(216, 180, 90, 0.14), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  color: var(--parchment);
}

/* ---- Navigation ------------------------------------------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.6rem;
  background: linear-gradient(180deg, rgba(20,17,13,0.92), rgba(20,17,13,0.55) 70%, transparent);
  backdrop-filter: blur(2px);
}
.site-nav .brand {
  font-family: var(--font-black);
  font-size: 1.9rem;
  color: var(--gold-bright);
  text-decoration: none;
  letter-spacing: 1px;
}
.site-nav nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-nav nav a {
  font-family: var(--font-sub);
  font-size: 0.82rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--parchment);
  text-decoration: none;
  opacity: 0.85;
  transition: color 0.25s, opacity 0.25s;
}
.site-nav nav a:hover { color: var(--gold-bright); opacity: 1; }

/* ---- Hero -------------------------------------------------- */
.hero {
  min-height: 100vh; padding: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--parchment);
  background: var(--stone-900);
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(10,8,6,0.35), rgba(10,8,6,0.78) 100%),
    linear-gradient(180deg, rgba(10,8,6,0.55), rgba(10,8,6,0.35) 40%, rgba(10,8,6,0.85));
}
.hero__content { position: relative; z-index: 2; padding: 2rem 1.4rem; }
.hero__eyebrow {
  font-family: var(--font-sub);
  letter-spacing: 5px; text-transform: uppercase;
  font-size: 0.8rem; color: var(--gold-bright); margin: 0 0 1.4rem;
}
.hero__names {
  font-family: var(--font-black);
  font-weight: 400;
  font-size: clamp(3.4rem, 12vw, 8.5rem);
  line-height: 0.95; margin: 0;
  color: var(--parchment);
  text-shadow: 0 4px 30px rgba(0,0,0,0.7);
}
.hero__names .amp {
  display: block;
  font-size: clamp(1.6rem, 4vw, 3rem);
  color: var(--gold-bright);
  margin: 0.1em 0;
}
.hero__sub {
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  font-style: italic; margin: 1.2rem 0 0.4rem; color: var(--parchment);
}
.hero__date {
  font-family: var(--font-sub);
  letter-spacing: 3px; text-transform: uppercase;
  font-size: clamp(0.72rem, 1.6vw, 0.95rem);
  color: var(--gold-bright); margin-top: 0.6rem;
}
.hero__scroll { margin-top: 2.6rem; }
.hero__scroll a {
  color: var(--gold-bright); font-size: 1.4rem; text-decoration: none;
  display: inline-block; animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ---- Section titles & rules ------------------------------- */
.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  text-align: center;
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  letter-spacing: 2px;
  margin: 0 0 2.5rem;
  color: var(--wine);
}
.section-title.light { color: var(--gold-bright); }

.rule {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin: 0 auto 1.6rem; max-width: 340px; color: var(--gold);
}
.rule::before, .rule::after {
  content: ''; height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.rule span { font-size: 1.1rem; }
.rule.light { color: var(--gold-bright); }
.rule.light::before, .rule.light::after {
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
}

/* ---- The marriage line & timers --------------------------- */
.marry-line {
  text-align: center;
  font-family: var(--font-sub);
  font-size: clamp(1.15rem, 3vw, 1.7rem);
  letter-spacing: 1px;
  color: var(--ink-soft);
  margin: 0 auto 3rem;
  max-width: 40ch;
}
.marry-line strong { color: var(--wine); font-weight: 600; }

.timers {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  max-width: 1000px; margin: 0 auto;
}
.timer { text-align: center; }
.timer__label {
  font-family: var(--font-sub);
  text-transform: uppercase; letter-spacing: 3px;
  font-size: 0.82rem; color: var(--gold-deep); margin: 0 0 1.3rem;
}
.timer__foot {
  font-style: italic; color: var(--ink-soft); margin-top: 1rem; font-size: 1rem;
}
.clock { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.unit {
  min-width: 78px;
  display: flex; flex-direction: column; align-items: center;
  padding: 1rem 0.6rem;
  background: linear-gradient(180deg, #fff8ea, var(--parchment-deep));
  border: 1px solid var(--gold);
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 6px 16px rgba(90,60,20,0.18);
}
.unit .num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  line-height: 1; color: var(--wine);
}
.unit .cap {
  font-family: var(--font-sub);
  text-transform: uppercase; letter-spacing: 2px;
  font-size: 0.62rem; color: var(--gold-deep); margin-top: 0.5rem;
}
.wedded {
  font-family: var(--font-black); font-size: 2rem; color: var(--wine); margin: 0;
}

/* ---- Story ------------------------------------------------- */
.story {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
  max-width: 1050px; margin: 0 auto;
}
.story__col p { margin: 0 0 1.2rem; font-size: 1.22rem; }
.dropcap::first-letter {
  font-family: var(--font-black);
  font-size: 3.6rem; float: left; line-height: 0.8;
  padding: 0.05em 0.12em 0 0; color: var(--gold-bright);
}
.story__figure {
  position: relative; margin: 0;
  border: 6px solid var(--gold-deep);
  box-shadow: 0 14px 40px var(--shadow);
}
.story__figure img { display: none; }        /* placeholder hidden; video shows */
.story__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.story__figure figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  font-family: var(--font-sub); letter-spacing: 2px; text-transform: uppercase;
  font-size: 0.7rem; text-align: center; color: var(--parchment);
  padding: 0.6rem; background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
}

/* ---- Timeline / order of the day -------------------------- */
.timeline {
  list-style: none; counter-reset: none;
  max-width: 640px; margin: 0 auto; padding: 0;
  border-left: 2px solid var(--gold);
}
.timeline li {
  position: relative; padding: 0.9rem 0 0.9rem 2rem; display: flex; gap: 1.2rem;
  align-items: baseline;
}
.timeline li::before {
  content: '\2726'; position: absolute; left: -0.72rem; top: 1rem;
  color: var(--gold); font-size: 0.9rem;
  background: var(--parchment); line-height: 1;
}
.timeline__time {
  font-family: var(--font-head); font-weight: 700; color: var(--wine);
  min-width: 4.5ch; font-size: 1.15rem;
}
.timeline__event { font-size: 1.18rem; color: var(--ink-soft); }

/* ---- Venue ------------------------------------------------- */
.venue {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  max-width: 1000px; margin: 0 auto 3rem;
}
.venue__card, .venue__travel {
  padding: 2rem;
  border: 1px solid var(--gold-deep);
  background: rgba(243, 233, 210, 0.06);
}
.venue__card h3 {
  font-family: var(--font-black); font-size: 2.2rem; margin: 0 0 0.6rem;
  color: var(--gold-bright);
}
.venue__card address {
  font-style: normal; font-family: var(--font-sub); letter-spacing: 1px;
  color: var(--parchment); margin-bottom: 1rem;
}
.venue__travel h4 {
  font-family: var(--font-sub); text-transform: uppercase; letter-spacing: 2px;
  font-size: 0.8rem; color: var(--gold-bright); margin: 0 0 0.5rem;
}
.venue__travel h4 + p { margin-top: 0; }
.venue__travel p, .venue__card p { color: var(--parchment); opacity: 0.92; }
.map-embed {
  max-width: 1000px; margin: 0 auto;
  border: 6px solid var(--gold-deep); box-shadow: 0 14px 40px var(--shadow);
}
.map-embed iframe { width: 100%; height: 380px; border: 0; filter: sepia(0.25) contrast(1.02); }

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-block; margin-top: 1rem;
  font-family: var(--font-sub); letter-spacing: 2px; text-transform: uppercase;
  font-size: 0.8rem; text-decoration: none; cursor: pointer;
  padding: 0.85rem 1.6rem;
  color: var(--parchment); border: 1px solid var(--gold);
  background: transparent; transition: all 0.25s;
}
.btn:hover { background: var(--gold); color: var(--stone-900); }
.btn--gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  color: var(--stone-900); border: none; font-weight: 600;
  box-shadow: 0 6px 18px rgba(90,60,20,0.35); font-size: 0.9rem; padding: 1rem 2.4rem;
}
.btn--gold:hover { filter: brightness(1.08); }

/* ---- RSVP form -------------------------------------------- */
.rsvp__intro { text-align: center; font-style: italic; font-size: 1.25rem; margin-bottom: 2.5rem; }
.rsvp-form {
  max-width: 640px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem;
}
.field { display: flex; flex-direction: column; grid-column: 1 / -1; }
.field--half { grid-column: span 1; }
.field label, .field__legend {
  font-family: var(--font-sub); text-transform: uppercase; letter-spacing: 2px;
  font-size: 0.72rem; color: var(--gold-deep); margin-bottom: 0.5rem;
}
.field .opt { text-transform: none; letter-spacing: 0; opacity: 0.7; }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 1.1rem; color: var(--ink);
  padding: 0.7rem 0.85rem;
  background: #fffaf0; border: 1px solid var(--gold-deep); border-radius: 3px;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(176,138,62,0.25);
}
.choices { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.choice {
  font-family: var(--font-body); text-transform: none; letter-spacing: 0;
  font-size: 1.12rem; color: var(--ink); display: flex; align-items: center; gap: 0.5rem;
  margin: 0;
}
.rsvp-form .btn--gold { grid-column: 1 / -1; justify-self: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.flash {
  max-width: 640px; margin: 0 auto 2rem; text-align: center;
  padding: 1rem 1.4rem; border-radius: 4px; font-size: 1.15rem;
}
.flash--ok { background: rgba(90,138,60,0.16); border: 1px solid #5a8a3c; color: #2f5a1c; }
.flash--err { background: rgba(160,40,40,0.12); border: 1px solid var(--wine); color: var(--wine); }

/* ---- Footer ----------------------------------------------- */
.site-foot {
  background: var(--stone-900); color: var(--parchment);
  text-align: center; padding: 4rem 1.5rem;
}
.foot-names { font-family: var(--font-black); font-size: 2.6rem; color: var(--gold-bright); margin: 0; }
.foot-date {
  font-family: var(--font-sub); letter-spacing: 4px; text-transform: uppercase;
  font-size: 0.8rem; margin: 0.6rem 0 1.2rem; color: var(--parchment);
}
.foot-love { font-style: italic; opacity: 0.75; margin: 0; }

/* ---- Reveal animation ------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* ---- Responsive ------------------------------------------- */
@media (max-width: 820px) {
  .timers, .story, .venue { grid-template-columns: 1fr; gap: 2.4rem; }
  .site-nav { flex-direction: column; gap: 0.5rem; padding: 0.7rem 1rem; }
  .site-nav nav { gap: 0.9rem; justify-content: center; }
  section { padding: 4.5rem 1.2rem; }
  .rsvp-form { grid-template-columns: 1fr; }
  .field--half { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
