@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Great+Vibes&display=swap');

:root{
    --gold:#b78938;
    --gold-dark:#9c6a24;
    --gold-soft:#d7ba84;

    --cream:#fcf6ec;
    --cream-light:#fffcf7;
    --paper:#f7eee2;

    --ink:#8d6331;

    font-family:'Cormorant Garamond',Georgia,serif;
    color:var(--ink);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body{
    background:linear-gradient(
      90deg,
      #f2e4cf 0%,
      #f8f0e3 10%,
      #fdf8f0 50%,
      #f8f0e3 90%,
      #f2e4cf 100%);
      }
a {
  color: inherit;
  text-decoration: none;
}
body {
  margin: 0;
}
/* OUTER WEBSITE FRAME */
body::before {
  content: "";
  position: fixed;
  inset: 18px;
  pointer-events: none;
  z-index: 50;
  border: 1px solid rgba(140, 88, 25, .28);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.5),
    inset 0 0 38px rgba(168, 113, 36, .14);
}

body::after {
  content: "";
  position: fixed;
  inset: 30px;
  pointer-events: none;
  z-index: 49;
  border: 1px solid rgba(168, 113, 36, .18);
}

/* HEADER */
.site-header {
    position: relative;
    z-index: 5;
    max-width: 1280px;
    min-height: 145px;
    margin: 0 auto;
    overflow: hidden;

   background:linear-gradient(
    90deg,
    #f2e4cf 0%,
    #f8f0e3 10%,
    #fdf8f0 50%,
    #f8f0e3 90%,
    #f2e4cf 100%);

    border-left: 1px solid rgba(138,90,24,.22);
    border-right: 1px solid rgba(138,90,24,.22);
    border-bottom: 1px solid rgba(138,90,24,.20);
}

nav {
  max-width: 860px;
  min-height: 145px;
  margin: 0 auto;
  padding: 0 22px;

  display: grid;
  grid-template-columns: 1fr 1fr 132px 1fr 1fr;
  grid-template-areas: "home details logo photos rsvp";

  align-items: center;
  gap: 24px;
  text-align: center;
}

nav a:nth-of-type(1) {
  grid-area: home;
}

nav a:nth-of-type(2) {
  grid-area: details;
}

nav a:nth-of-type(3) {
  grid-area: photos;
}

nav a:nth-of-type(4) {
  grid-area: rsvp;
}

nav .monogram {
  grid-area: logo;
}

.nav-spacer{
    pointer-events:none;
}

nav a {
  transition: color .2s ease, transform .2s ease;
}

nav a:hover {
  color: var(--gold);
  transform: translateY(-1px);
}

/* MONOGRAM */
/* MONOGRAM - matches reference image */
/* ----------------------------- */
/* Custom Monogram Image */
/* ----------------------------- */

.monogram{
    width:128px;
    height:128px;

    display:flex;
    justify-content:center;
    align-items:center;

    margin:auto;
}

.monogram img{
    width:100%;
    height:auto;
}

.small-mono {
    width: 72px;
    height: 72px;
}

.small-mono img {
    width: 100%;
    height: auto;
}

/* ===========================================
   ROYAL FLOWER CORNERS
=========================================== */

/* ===========================================
   FOUR CORNER PNG SPRITE
=========================================== */

.floral-corner {
  position: absolute;
  width: 220px;
  height: 220px;
  pointer-events: none;
  z-index: 20;

  background-image: url("/src/assets/corners-frame.png");
  background-repeat: no-repeat;
  background-size: 200% 200%;
  opacity: .72;
}

/* hide old symbol decorations */
.floral-corner::before,
.floral-corner::after,
.rose,
.curl,
.leaf {
  display: none;
}

/* each corner uses one part of the same PNG */
.top-left {
  top: 0;
  left: 0;
  background-position: left top;
}

.top-right {
  top: 0;
  right: 0;
  background-position: right top;
}

.bottom-left {
  bottom: 0;
  left: 0;
  background-position: left bottom;
}

.bottom-right {
  bottom: 0;
  right: 0;
  background-position: right bottom;
}

/* HERO */
.hero {
  max-width: 1280px;
  min-height: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 43% 57%;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      #efe0ca 0%,
      #f4e7d5 18%,
      #f8efe2 38%,
      rgba(248,239,226,.95) 50%,
      rgba(248,239,226,.35) 66%,
      transparent 78%
    ),
    #f8efe2;
  border-left: 1px solid rgba(138, 90, 24, .22);
  border-right: 1px solid rgba(138, 90, 24, .22);
  border-bottom: 1px solid rgba(138, 90, 24, .22);
}

.hero-copy {
  align-self: center;
  text-align: center;
  padding: 56px 6vw 48px;
  position: relative;
  z-index: 1;
}

h1 {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(5.8rem, 9vw, 9.4rem);
  font-weight: 400;
  line-height: .76;
  color: #9c681e;
  margin: 0 0 42px;
  text-shadow: 0 2px 0 rgba(255,255,255,.8);
}

h1 span {
  display: block;
  font-size: .46em;
  line-height: 1.1;
}

.date {
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  letter-spacing: .33em;
  color: var(--gold-dark);
  margin: 18px 0 14px;
}

.hero-copy p:not(.date),
.story p {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  font-size: 1.12rem;
}

.hero-photo {
  min-height: 720px;
  background:
    linear-gradient(90deg, rgba(255,242,221,.25), transparent 35%),
    url('/src/assets/hero.jpg');

  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 35%;
}

/* DIVIDERS */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--gold);
  margin: 22px auto;
  max-width: 270px;
}

.divider span {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.divider b {
  font-weight: 400;
  font-size: .9rem;
}

/* BUTTONS */
.gold-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 210px;
  padding: 12px 22px;
  border: 0;
  border-radius: 3px;
  background:linear-gradient(
    #caa463,
    #b78534
    );
  color: #fff5df;
  text-transform: uppercase;
  letter-spacing: .08em;
  font: 700 .98rem 'Cormorant Garamond', serif;
  box-shadow: 0 5px 12px rgba(92, 57, 13, .22);
  cursor: pointer;
}

.gold-button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.gold-button.small {
  min-width: 198px;
  padding: 10px 18px;
}

/* SECTIONS */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 31px 24px 56px;
  text-align: center;

  background:
    linear-gradient(
      90deg,
      #efe0ca 0%,
      #f4e7d5 18%,
      #f8efe2 38%,
      rgba(248,239,226,.95) 50%,
      rgba(248,239,226,.35) 66%,
      transparent 78%
    ),
    #f8efe2;

  border-left: 1px solid rgba(138,90,24,.22);
  border-right: 1px solid rgba(138,90,24,.22);
  border-bottom: 1px solid rgba(138,90,24,.20);
}

h2 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .065em;
  color: var(--gold-dark);
  font-size: clamp(2.05rem, 3.2vw, 2.9rem);
  line-height: 1;
}

.story {
  padding-block: 0;
  max-height: 0;
  overflow: hidden;
  border: 0;
}

.story h2,
.story .divider,
.story p {
  display: none;
}

/* CELEBRATION */
.event-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1060px;
  margin: 5px auto 20px;
}

.event-card {
  min-height: 540px;
  padding: 8px 42px 18px;
  position: relative;
}

.event-card + .event-card {
  border-left: 1px solid rgba(140, 88, 25, .32);
}

.event-card h3 {
  margin: 7px 0;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 1.72rem;
}

.time {
  font-size: 2.85rem;
  color: var(--gold);
  margin: 8px 0;
}

.venue {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 1.16rem;
  margin-bottom: 24px;
}

.venue-card-image {
  width: min(100%, 460px);
  aspect-ratio: 1.34 / 1;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
  border: 0;
  filter: sepia(.16) saturate(.92);
  mix-blend-mode: multiply;
}

.calendar {
  margin-top: 4px;
}

/* PHOTOS */
.photos {
  padding-bottom: 31px;
}

.photos .photo-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 18px auto 14px;
  max-width: 1240px;
}

.photo-strip img {
  width: 100%;
  aspect-ratio: 1.18 / 1;
  object-fit: cover;
  object-position: center;
}

.photo-strip img:nth-child(1) {
  object-position: center 68%;
}

.photo-strip img:nth-child(2) {
  object-position: center 20%;
}

.photo-strip img:nth-child(3) {
  object-position: center 25%;
}

.photo-strip img:nth-child(4) {
  object-position: center 40%;
}

.photo-strip img:nth-child(5) {
  object-position: center 20%;
}

/* RSVP */
.rsvp {
  padding-bottom: 34px;
}

.heart {
  color: var(--gold);
  font-size: 1.25rem;
  line-height: 1;
  margin-top: 2px;
}

.rsvp-grid {
  display: grid;
  grid-template-columns: minmax(320px, 560px) minmax(300px, 480px);
  gap: 70px;
  align-items: center;
  max-width: 1080px;
  margin: 16px auto 0;
}

form {
  display: grid;
  gap: 16px;
  text-align: left;
}

.hidden,
label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

input,
select,
textarea,
fieldset {
  width: 100%;
  border: 1px solid rgba(140, 88, 25, .32);
  border-radius: 3px;
  background: rgba(255,248,236,.58);
  color: var(--ink);
  font: 600 1.08rem 'Cormorant Garamond', serif;
  padding: 14px 18px;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

fieldset {
  display: flex;
  gap: 34px;
  align-items: center;
}

legend {
  float: left;
  margin-right: 26px;
}

fieldset label {
  display: flex;
  align-items: center;
  gap: 8px;
}

input[type='radio'] {
  width: 20px;
  height: 20px;
  accent-color: var(--gold);
}

.select-wrap {
  position: relative;
  display: block;
}

.select-wrap em {
  position: absolute;
  right: 16px;
  top: 10px;
  color: var(--gold);
  pointer-events: none;
  font-size: 1.6rem;
  font-style: normal;
}

select {
  appearance: none;
}

.thanks {
  color: var(--gold-dark);
  font-weight: 700;
}

.adults-only {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  position: relative;
  border: 1px solid rgba(140, 88, 25, .28);
  background: rgba(255,248,236,.33);
  padding: 48px;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.55;
  overflow: hidden;
}

.adults-only::before,
.adults-only::after {
  content: "";
  position: absolute;
  width: 118px;
  height: 118px;
  border-color: rgba(168, 113, 36, .62);
  border-style: solid;
}

.adults-only::before {
  left: 16px;
  top: 16px;
  border-width: 1px 0 0 1px;
  border-radius: 85px 0 0 0;
}

.adults-only::after {
  right: 16px;
  bottom: 16px;
  border-width: 0 1px 1px 0;
  border-radius: 0 0 85px 0;
}

.adults-only strong {
  font-family: 'Great Vibes', cursive;
  color: var(--gold);
  font-size: 3.35rem;
  font-weight: 400;
  line-height: .88;
  text-transform: none;
  letter-spacing: 0;
}

/* FOOTER */
footer {
  position: relative;
  min-height: 230px;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  text-align: center;
  background: linear-gradient(
      90deg,
      #f2e4cf 0%,
      #f8f0e3 10%,
      #fdf8f0 50%,
      #f8f0e3 90%,
      #f2e4cf 100%
  );
  overflow: hidden;
  border-left: 1px solid rgba(138, 90, 24, .22);
  border-right: 1px solid rgba(138, 90, 24, .22);
}

.small-mono {
  width: 72px;
  height: 72px;
  font-size: 1.45rem;
}

footer .date {
  font-size: 1.65rem;
  margin: -5px 0 0;
}

footer p {
  margin: 0;
  font-size: 0.7rem;   
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}

nav{
    position:relative;
    z-index:50;
}

.floral-corner{

    opacity:.72;

    filter:
        sepia(.2)
        saturate(.9)
        brightness(1.05);
}




/* ===========================================
   MOBILE
=========================================== */

.mobile-label {
    display: none;
}

@media (max-width: 860px) {

   .adults-only {
        min-height: 260px;
        padding: 34px 18px;
        font-size: .62rem;
        position: relative;
        z-index: 1;
    }

    .adults-only > * {
        position: relative;
        z-index: 2;
    }

    .adults-only::before,
    .adults-only::after {
        width: 54px;
        height: 54px;
        z-index: 0;
    }

    .adults-only::before {
        left: 8px;
        top: 8px;
        border-radius: 42px 0 0 0;
    }

    .adults-only::after {
        right: 8px;
        bottom: 8px;
        border-radius: 0 0 42px 0;
    }
    body {
        margin: 0;
        width: 100%;
        overflow-x: hidden;
    }

    body::before {
        inset: 6px;
    }

    body::after {
        inset: 12px;
    }

    .site-header,
    .hero,
    .section,
    footer {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .site-header {
        position: relative;
        min-height: auto;
        padding: 8px 0 10px;
        overflow: hidden;
    }

    /* ---------- MOBILE NAV ---------- */

    .site-header nav {
        width: 100%;
        max-width: none;
        min-height: auto;
        margin: 0;
        padding: 6px 12px;

        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-areas:
            "logo logo logo logo"
            "home details photos rsvp";

        row-gap: 8px;
        column-gap: 0;

        align-items: center;
        justify-items: center;

        font-size: .62rem;
        letter-spacing: 0;
        text-align: center;
    }

    .site-header nav .monogram {
        grid-area: logo;
        width: 58px;
        height: 58px;
        margin: 0 auto;
        justify-self: center;
    }

    .site-header nav a {
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 4px 0;

        display: flex;
        align-items: center;
        justify-content: center;

        text-align: center;
        white-space: nowrap;
    }

    .site-header nav a:nth-of-type(1) {
        grid-area: home;
    }

    .site-header nav a:nth-of-type(2) {
        grid-area: details;
    }

    .site-header nav a:nth-of-type(3) {
        grid-area: photos;
    }

    .site-header nav a:nth-of-type(4) {
        grid-area: rsvp;
    }

    /* ---------- FLORAL CORNERS ---------- */

    .floral-corner.top-left,
    .floral-corner.top-right,
    .floral-corner.bottom-left,
    .floral-corner.bottom-right {
        width: 82px;
        height: 82px;
        opacity: .14;
        z-index: 1;
    }

    /* ---------- HERO ---------- */

    .hero {
        grid-template-columns: 44% 56%;
        min-height: 430px;
    }

    .hero-copy {
        padding: 18px 7px;
    }

    h1 {
        font-size: clamp(2.8rem, 11vw, 4.2rem);
        margin-bottom: 18px;
    }

    .hero-copy p:not(.date) {
        font-size: .55rem;
        line-height: 1.3;
        letter-spacing: .04em;
    }

    .hero-copy .date {
        font-size: 1.25rem;
        letter-spacing: .18em;
        margin: 10px 0;
    }

    .hero-photo {
        min-height: 430px;
        background-position: center 35%;
    }

    /* ---------- GENERAL SECTIONS ---------- */

    .divider {
        max-width: 150px;
        margin: 12px auto;
    }

    .gold-button {
        min-width: 118px;
        padding: 8px 9px;
        font-size: .66rem;
    }

    .section {
        padding: 22px 8px 30px;
    }

    h2 {
        font-size: 1.6rem;
    }

    /* ---------- EVENT DETAILS ---------- */

    .event-grid {
        grid-template-columns: 1fr 1fr;
        width: 100%;
        gap: 0;
    }

    .event-card {
        min-height: auto;
        padding: 8px 5px 14px;
    }

    .event-card + .event-card {
        border-top: 0;
        border-left: 1px solid rgba(140, 88, 25, .32);
    }

    .venue-card-image {
        width: 100%;
        margin-bottom: 6px;
    }

    .event-card h3 {
        font-size: .85rem;
    }

    .time {
        font-size: 1.35rem;
    }

    .venue {
        font-size: .62rem;
        margin-bottom: 12px;
    }

    .gold-button.small {
        min-width: 112px;
        padding: 7px 4px;
        font-size: .58rem;
    }

    /* ---------- PHOTOS ---------- */

    .photos .photo-strip {
        grid-template-columns: repeat(5, 1fr);
        gap: 2px;
        margin-inline: 0;
    }

    .photo-strip img {
        border-width: 0;
    }

    /* ---------- RSVP ---------- */

    .rsvp-grid {
        grid-template-columns: 58% 42%;
        gap: 7px;
        width: 100%;
    }

    form {
        gap: 8px;
    }

    input,
    select,
    textarea,
    fieldset {
        padding: 8px;
        font-size: .72rem;
    }

    textarea {
        min-height: 72px;
    }

    fieldset {
        display: grid;
        gap: 4px;
    }

    legend {
        float: none;
        margin: 0 0 4px;
    }

    .adults-only {
        min-height: 260px;
        padding: 10px 5px;
        font-size: .56rem;
    }

    .adults-only strong {
        font-size: 1.55rem;
    }

    /* ---------- FOOTER ---------- */

    footer {
        min-height: 170px;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 520px) {

    .site-header nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-areas:
            "logo logo logo logo"
            "home details photos rsvp";

        padding: 5px 10px;
        row-gap: 6px;
        column-gap: 0;
        font-size: .52rem;
    }

    .site-header nav .monogram {
        width: 52px;
        height: 52px;
    }
     .adults-only {
        padding: 28px 12px;
        font-size: .54rem;
    }

    .adults-only::before,
    .adults-only::after {
        width: 42px;
        height: 42px;
    }

    .adults-only strong {
        font-size: 1.45rem;
    }

    .site-header nav a {
        padding: 3px 0;
    }

    .desktop-label {
        display: none;
    }

    .mobile-label {
        display: inline;
    }

    .hero {
        grid-template-columns: 45% 55%;
        min-height: 390px;
    }

    .hero-photo {
        min-height: 390px;
    }

    h1 {
        font-size: 2.8rem;
    }

    .hero-copy p:not(.date) {
        font-size: .48rem;
    }

    .event-card h3 {
        font-size: .72rem;
    }

    .time {
        font-size: 1.15rem;
    }

    .venue {
        font-size: .53rem;
    }

    .floral-corner.top-left,
    .floral-corner.top-right,
    .floral-corner.bottom-left,
    .floral-corner.bottom-right {
        width: 72px;
        height: 72px;
    }
}