/* Wedding site styles. Shared photo, map and bead-strand styles live beside their scripts. */

:root {
  --paper: #f4f2e7;
  --white: #fffdf7;
  --sand: #eee7dd;
  --line: #dfd5ca;
  --ink: #32282a;
  --text-soft: #645759;
  --text-muted: #736568;
  --red: #d2042d;
  --red-dark: #a50324;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, Helvetica, sans-serif;
}

/* Base */

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
}
button,
input,
select {
  font: inherit;
}
a {
  color: inherit;
}
img,
svg {
  display: block;
  max-width: 100%;
}
button,
a {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}
section[id] {
  scroll-margin-top: 90px;
}
.wrap {
  width: min(1320px, calc(100% - 96px));
  margin: auto;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.19em;
  font-weight: 700;
  text-transform: uppercase;
}
.intro h2,
.section-heading {
  font: 400 clamp(38px, 4.5vw, 64px)/1.1 var(--serif);
  letter-spacing: -0.035em;
  margin: 20px 0;
  color: var(--red);
}
.button,
.nav .nav-rsvp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 25px;
  background: var(--red);
  color: white;
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--red);
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.button:hover,
.nav .nav-rsvp:hover {
  background: var(--red-dark);
}
.button.outline {
  background: transparent;
  color: var(--red);
}
.button.outline:hover {
  background: var(--red);
  color: white;
}

/* Header */

.header {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.brand {
  color: var(--red);
  text-decoration: none;
  font: italic 27px/1 var(--serif);
  white-space: nowrap;
}
.brand span {
  font-size: 17px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav a {
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav a:not(.nav-rsvp):hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.menu-button {
  display: none;
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
  background: var(--paper);
}
.hero-copy {
  padding: 75px 30px 75px clamp(30px, 6vw, 90px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.hero-copy .eyebrow {
  color: var(--red);
  margin: 0 0 30px;
}
.hero h1 {
  font: 400 clamp(54px, 6.8vw, 99px)/0.98 var(--serif);
  letter-spacing: -0.055em;
  margin: 0 0 25px;
  color: var(--red);
}
.hero h1 em {
  font-weight: 400;
}
.hero-intro {
  max-width: 370px;
  color: var(--text-soft);
  font: 18px/1.6 var(--serif);
  margin: 0 0 33px;
}
.hero-date {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0 0 35px;
  font-size: 10px;
  letter-spacing: 0.15em;
  font-weight: 700;
  text-transform: uppercase;
}
.hero-date::before {
  content: '';
  width: 33px;
  height: 1px;
  background: var(--red);
}
.hero-image {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: #c1b5a5;
}
.hero-image img,
.registry-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-image img {
  object-position: 49% center;
}

/* Welcome */

.intro {
  text-align: center;
  padding: 115px 20px 112px;
}
.intro .eyebrow {
  color: var(--red-dark);
}
.intro p:last-child {
  max-width: 575px;
  margin: 22px auto 0;
  color: var(--text-soft);
  font: 17px/1.8 var(--serif);
}
.little-flower {
  color: var(--red);
  font-size: 28px;
  line-height: 1;
}

/* The wedding day: ivory text on a red band */

.details {
  background: var(--red);
  color: var(--paper);
  padding: 96px 0;
}
.details-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 48px;
}
.details-top h2 {
  margin: 14px 0 0;
  color: inherit;
}
.details-top p {
  color: var(--paper);
  max-width: 340px;
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #ffffff55;
  border-bottom: 1px solid #ffffff55;
}
.detail-card {
  padding: 37px 38px 41px 0;
}
.detail-card + .detail-card {
  border-left: 1px solid #ffffff55;
  padding-left: 38px;
}
.detail-card .eyebrow {
  color: var(--paper);
}
.detail-card h3 {
  font: 400 31px/1.15 var(--serif);
  margin: 17px 0 12px;
}
.detail-card p {
  color: var(--paper);
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
}
.detail-card .detail-note {
  margin-top: 13px;
  color: #ffdbdf;
  font-size: 11px;
}

/* Photos: heart collage */

.story {
  padding: 115px 0;
}
.story-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 38px;
}
.story-head h2 {
  margin: 13px 0 0;
}
.story-head p {
  max-width: 300px;
  color: var(--text-muted);
  font-family: var(--serif);
  font-size: 16px;
  margin: 0;
}
/* One shared composition preserves the heart silhouette at every screen width:
   each print is placed and sized as a percentage of the collage. */
.gallery {
  --print-border: clamp(2px, 0.55vw, 7px);
  position: relative;
  isolation: isolate;
  aspect-ratio: 1.06;
  max-width: 1100px;
  margin: 45px auto 60px;
}
.gallery-card {
  position: absolute;
  margin: 0;
  padding: var(--print-border);
  background: var(--white);
  border: 1px solid #e4ded4;
  box-shadow:
    0 2px 5px #32282a30,
    0 9px 18px #32282a16;
  transform: rotate(var(--tilt));
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-card video {
  padding: var(--print-border);
}
/* What is written on a print's back; photo-interactions.css shows it when the print turns. */
.gallery-card figcaption {
  display: none;
}
.gallery-card:nth-child(1) {
  left: 19%;
  top: 4%;
  width: 24%;
  height: 22%;
  --tilt: -10deg;
  z-index: 4;
}
.gallery-card:nth-child(2) {
  left: 59%;
  top: 5%;
  width: 24%;
  height: 22%;
  --tilt: 8deg;
  z-index: 4;
}
.gallery-card:nth-child(3) {
  left: 6%;
  top: 15%;
  width: 23%;
  height: 24%;
  --tilt: -20deg;
  z-index: 3;
}
.gallery-card:nth-child(4) {
  left: 73%;
  top: 17%;
  width: 23%;
  height: 23%;
  --tilt: 18deg;
  z-index: 3;
}
.gallery-card:nth-child(5) {
  left: 29%;
  top: 16%;
  width: 23%;
  height: 23%;
  --tilt: 16deg;
  z-index: 2;
}
.gallery-card:nth-child(6) {
  left: 51%;
  top: 17%;
  width: 23%;
  height: 23%;
  --tilt: -17deg;
  z-index: 2;
}
.gallery-card:nth-child(7) {
  left: 3%;
  top: 34%;
  width: 23%;
  height: 23%;
  --tilt: -13deg;
  z-index: 4;
}
.gallery-card:nth-child(8) {
  left: 76%;
  top: 35%;
  width: 22%;
  height: 24%;
  --tilt: 15deg;
  z-index: 4;
}
.gallery-card:nth-child(9) {
  left: 16%;
  top: 37%;
  width: 25%;
  height: 23%;
  --tilt: 10deg;
  z-index: 5;
}
.gallery-card:nth-child(10) {
  left: 60%;
  top: 38%;
  width: 25%;
  height: 23%;
  --tilt: -12deg;
  z-index: 5;
}
.gallery-card:nth-child(11) {
  left: 15%;
  top: 56%;
  width: 24%;
  height: 23%;
  --tilt: -16deg;
  z-index: 4;
}
.gallery-card:nth-child(12) {
  left: 64%;
  top: 55%;
  width: 23%;
  height: 24%;
  --tilt: 18deg;
  z-index: 4;
}
.gallery-card:nth-child(13) {
  left: 27%;
  top: 69%;
  width: 25%;
  height: 21%;
  --tilt: -12deg;
  z-index: 5;
}
.gallery-card:nth-child(14) {
  left: 51%;
  top: 68%;
  width: 24%;
  height: 23%;
  --tilt: 12deg;
  z-index: 5;
}
.gallery-card:nth-child(15) {
  left: 39%;
  top: 83%;
  width: 23%;
  height: 18%;
  --tilt: 17deg;
  z-index: 6;
}
.gallery-card:nth-child(16) {
  left: 37%;
  top: 59%;
  width: 27%;
  height: 23%;
  --tilt: -6deg;
  z-index: 4;
}
/* The central print. */
.gallery-card:nth-child(17) {
  left: 33%;
  top: 33%;
  width: 34%;
  height: 27%;
  --tilt: -3deg;
  z-index: 10;
}
/* The earliest selfie: a small print tucked low into the cleft, under the two lobes.
   It stays short so the cleft reads as a notch and the faces below it stay in view. */
.gallery-card:nth-child(18) {
  left: 43.25%;
  top: 14.5%;
  width: 13.5%;
  height: 11%;
  --tilt: 3deg;
  z-index: 3;
}
.gallery-card:nth-child(18) img {
  object-position: 50% 40%;
}
/* Must follow the placements above: the print being viewed lifts over its neighbors. */
.gallery-card.photo-emphasis {
  z-index: 20;
}

/* Registry */

.registry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--sand);
  min-height: 430px;
}
.registry-art {
  position: relative;
  overflow: hidden;
  background: #d8d4c4;
}
.registry-copy {
  padding: 70px clamp(45px, 7vw, 110px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.registry-copy h2 {
  margin: 17px 0;
}
.registry-copy p:not(.eyebrow) {
  max-width: 440px;
  color: var(--text-soft);
  font: 16px/1.8 var(--serif);
  margin: 0 0 26px;
}
.placeholder-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 15px;
}

/* FAQs */

.faq-section {
  padding: 120px 0;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 12%;
}
.faq-section h2 {
  margin: 16px 0;
}
.faq-intro p:not(.eyebrow) {
  font: 16px/1.8 var(--serif);
  color: var(--text-muted);
  max-width: 290px;
}
.faq-list {
  border-top: 1px solid var(--line);
}
details {
  border-bottom: 1px solid var(--line);
}
summary {
  cursor: pointer;
  list-style: none;
  padding: 23px 35px 23px 0;
  position: relative;
  font: 20px/1.3 var(--serif);
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '+';
  position: absolute;
  right: 3px;
  top: 19px;
  font: 300 25px var(--sans);
  color: var(--red-dark);
}
details[open] summary::after {
  content: '−';
}
details p {
  margin: 0 45px 22px 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.8;
}
.hotels {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 22px;
}
.hotel {
  display: block;
  color: inherit;
  text-decoration: none;
}
.hotel img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin-bottom: 12px;
}
.hotel span {
  display: block;
}
.hotel-name {
  font: 18px/1.3 var(--serif);
}
.hotel:hover .hotel-name {
  color: var(--red-dark);
}
.hotel-distance {
  margin-top: 6px;
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 700;
}
.hotel-address {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.8;
}

/* RSVP */

.rsvp {
  background: var(--sand);
  text-align: center;
  padding: 105px 24px;
}
.rsvp .section-heading {
  margin: 18px 0;
}
.rsvp-lede {
  max-width: 620px;
  margin: 0 auto 30px;
  font: clamp(20px, 2.2vw, 26px)/1.5 var(--serif);
  color: var(--text-soft);
}
.demo-box {
  max-width: 610px;
  margin: 35px auto 0;
  text-align: left;
  background: var(--white);
  padding: 32px;
  border: 1px solid var(--line);
}
.demo-box .eyebrow {
  color: var(--red);
  margin: 0 0 8px;
}
.demo-box p {
  color: var(--text-soft);
  font-size: 12px;
  margin: 0 0 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.field label {
  display: block;
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.field input,
.field select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  border-radius: 0;
}
.field-wide {
  grid-column: 1 / -1;
}
.field[hidden] {
  display: none;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.6;
  cursor: pointer;
}
.check input {
  flex: none;
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--red);
}
.check strong {
  color: var(--ink);
}
.demo-box button {
  margin-top: 20px;
}
.demo-box .result-action {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.rsvp-guests {
  max-width: 610px;
  margin: 22px auto 0;
  color: var(--text-soft);
  font: italic 14px/1.7 var(--serif);
}
.rsvp-guests[hidden] {
  display: none;
}
.demo-box .result {
  margin: 18px 0 0;
  padding: 12px 14px;
  background: #f8e5e7;
  color: #8e0424;
}
.demo-box .result[hidden] {
  display: none;
}

/* Footer */

.footer {
  background: var(--paper);
  text-align: center;
  padding: 55px 24px;
}
.footer .brand {
  display: inline-block;
  margin-bottom: 14px;
}
.footer p {
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 8px 0;
}
.footer .small {
  letter-spacing: 0;
  text-transform: none;
}

/* Tablet */

@media (max-width: 900px) {
  .wrap {
    width: min(100% - 48px, 1320px);
  }
  .nav {
    gap: 18px;
  }
  .nav a {
    font-size: 10px;
  }
  .hero {
    min-height: 520px;
  }
  .hero-copy {
    padding-block: 55px;
  }
  .hero-image {
    min-height: 520px;
  }
  .registry-copy {
    padding: 60px 40px;
  }
}

/* Phone */

@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .header {
    height: 72px;
    position: relative;
  }
  .menu-button {
    display: block;
  }
  .nav {
    display: none;
    position: absolute;
    z-index: 5;
    top: 66px;
    left: -18px;
    right: -18px;
    background: var(--paper);
    padding: 18px;
    box-shadow: 0 8px 10px #32282a15;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 13px 8px;
  }
  .nav .nav-rsvp {
    margin-top: 8px;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding-block: 72px 65px;
  }
  .hero h1 {
    font-size: clamp(60px, 16vw, 86px);
  }
  .hero-image {
    min-height: 0;
    aspect-ratio: 3/2;
  }
  .intro {
    padding: 85px 18px;
  }
  .details {
    padding: 75px 0;
  }
  .details-top {
    display: block;
  }
  .details-top p {
    margin-top: 20px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-card,
  .detail-card + .detail-card {
    padding: 25px 0;
    border-left: 0;
  }
  .detail-card + .detail-card {
    border-top: 1px solid #ffffff55;
  }
  .detail-card h3 {
    margin: 10px 0;
  }
  .story {
    padding: 85px 0;
  }
  .story-head {
    display: block;
  }
  .story-head p {
    margin-top: 15px;
  }
  .gallery {
    margin: 35px auto 45px;
  }
  .gallery-card {
    box-shadow: 0 2px 5px #32282a30;
  }
  .registry {
    grid-template-columns: 1fr;
  }
  .registry-art {
    min-height: 300px;
  }
  .registry-copy {
    padding: 65px 30px;
  }
  .faq-section {
    padding: 85px 0;
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .faq-intro p:not(.eyebrow) {
    max-width: 480px;
  }
  .hotels {
    grid-template-columns: 1fr;
  }
  .rsvp {
    padding: 80px 18px;
  }
  .demo-box {
    padding: 24px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
