/* Tony & Francislyn — static stand-in for the Divi wedding one-pager. */

:root {
  --wine: #6c3049;
  --cream: #f8f4f3;
  --paper: #ffffff;
  --ink: #333333;
  --body: #666666;
  --footer: #222222;
  --footer-bar: #1f1f1f;
  --link: #2ea3f2;
  --sans: "Open Sans", Helvetica, Arial, sans-serif;
  --display: "Prata", Georgia, "Times New Roman", serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html,
body { overflow-x: clip; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.9;
  color: var(--body);
  background: var(--wine);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
}

.wrap.wide {
  width: min(1280px, calc(100% - 32px));
}

/* Hero — ocean card inset on the wine page, buttons hanging off the bottom */
.hero {
  padding: 80px 80px 0;
}

.hero-card {
  position: relative;
  z-index: 2;
  min-height: clamp(420px, 62vw, 720px);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.28)),
    url("/images/ocean.jpg") center / cover no-repeat;
  box-shadow: 0 40px 200px -20px rgba(0, 0, 0, 0.3);
  margin-bottom: -48px;
}

.hero-copy {
  max-width: 70%;
  padding: 10vw 5vw;
  color: #fff;
}

.eyebrow {
  margin: 0;
  font-size: clamp(11px, 1.1vw, 14px);
  font-weight: 700;
  letter-spacing: 0.5vw;
  text-transform: uppercase;
  line-height: 2;
  color: #fff;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 8vw;
  line-height: 1.2;
  color: #fff;
}

.hero-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0;
}

.btn {
  display: inline-block;
  padding: 30px 40px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  box-shadow: 0 12px 18px -6px rgba(138, 178, 211, 0.3);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-wine { background: var(--wine); color: #fff; }
.btn-white { background: #fff; color: #000; }

.btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* I do + videos on cream */
.ido,
.more-video,
.gallery,
.maps {
  background: var(--cream);
}

.ido {
  padding: 96px 0 48px;
}

.ido h2,
.story h2 {
  margin: 0 0 24px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0.1em 0.1em rgba(0, 0, 0, 0.4);
}

.lede {
  max-width: 48rem;
  margin: 0 auto 36px;
  font-size: 22px;
  line-height: 1.6;
  color: var(--ink);
  text-align: center;
}

.video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  margin: 0 0 20px;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Married story */
.story {
  background: var(--cream);
  padding: 48px 0 32px;
}

.story h2 { text-shadow: none; }

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.story-copy p {
  margin: 0 0 1.2em;
  color: var(--ink);
}

.story-copy p:last-child { margin-bottom: 0; }

.story-photo img {
  width: 100%;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.35);
}

.more-video { padding: 12px 0 36px; }

/* Gallery */
.gallery { padding: 12px 0 48px; }

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.grid a {
  display: block;
  overflow: hidden;
  background: #ddd;
  aspect-ratio: 400 / 284;
}

.grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease, opacity 300ms ease;
}

.grid a:hover img { transform: scale(1.04); opacity: 0.92; }

.grid a:focus-visible {
  outline: 3px solid var(--wine);
  outline-offset: 2px;
}

/* Maps + Instagram */
.maps { padding: 12px 0 64px; }

.map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.map-grid img {
  width: 100%;
  margin: 0 auto;
}

.follow {
  margin: 36px 0 0;
  text-align: center;
}

.ig {
  display: inline-block;
  padding: 12px 22px;
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ig:hover {
  text-decoration: none;
  background: var(--wine);
  color: #fff;
  border-color: var(--wine);
}

/* Footer */
.site-footer {
  background: var(--footer-bar);
  color: #fff;
  text-align: center;
  padding: 22px 16px;
  font-size: 14px;
}

.site-footer p { margin: 0; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(11, 11, 11, 0.88);
  padding: 48px 72px;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: min(1400px, 92vw);
  max-height: 88dvh;
  width: auto;
  height: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 42px;
  line-height: 1;
  padding: 8px 14px;
}

.lb-close { top: 8px; right: 12px; font-size: 36px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover { color: #ffd9e6; }

.miss {
  min-height: 70dvh;
  display: grid;
  place-items: center;
  padding: 48px 20px;
  text-align: center;
  background: var(--cream);
  color: var(--ink);
}

.miss h1 {
  font-family: var(--display);
  font-weight: 400;
  margin: 0 0 16px;
}

.miss a { font-weight: 700; color: var(--wine); }

@media (max-width: 980px) {
  .hero { padding: 20px 20px 0; }
  .hero h1 { font-size: 48px; }
  .hero-copy { max-width: 100%; padding: 60px 28px 80px; }
  .video-row { grid-template-columns: 1fr; }
  .story-grid,
  .map-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .ido { padding-top: 80px; }
}

@media (max-width: 767px) {
  .hero h1 { font-size: 32px; }
  .hero-copy { padding: 40px 20px 72px; }
  .eyebrow { letter-spacing: 0.18em; }
  .btn { padding: 22px 22px; letter-spacing: 3px; }
  .lede { font-size: 18px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .lightbox { padding: 56px 12px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn,
  .grid img { transition: none; }
}
