:root {
  color-scheme: light;
  --cream: #f9edd9;
  --ink: #392a2c;
  --muted: #634840;
  --plum: #6c397d;
  --coral: #fc9b73;
  --pink: #df8ca6;
  --blue: #9bccd3;
  --fuchsia: #b42c67;
  --gold: #bf882d;
  --line: #d5bda5;
  --display: "Arial Black", "Avenir Next Heavy", system-ui, sans-serif;
  --hand: "Bradley Hand", "Segoe Print", Georgia, serif;
}

* { box-sizing: border-box; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  background-image:
    repeating-linear-gradient(13deg, transparent 0 6px, #73472407 7px 8px),
    radial-gradient(ellipse at 30% 0%, #fff9e9, transparent 65%);
  font: 1rem/1.55 system-ui, sans-serif;
}

p, figure, h1, h2, h3 { margin: 0; }
a { color: inherit; }
img { display: block; width: 100%; }
a:focus-visible { outline: 2px solid var(--plum); outline-offset: 5px; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link { position: absolute; z-index: 5; top: .75rem; left: .75rem; padding: .5rem; background: var(--cream); }

.site-header, .page { width: min(69rem, calc(100% - 2rem)); margin-inline: auto; }
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  padding: 1.1rem 0 .8rem;
}
.wordmark {
  color: var(--plum);
  font: italic 700 1.5rem var(--hand);
  text-decoration: none;
  white-space: nowrap;
}
nav { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: .9rem; font-weight: 700; }
nav a { text-decoration: none; padding: .2rem .1rem; border-bottom: 3px solid transparent; }
nav a:hover, nav a[aria-current] { border-color: var(--fuchsia); }

.page { flex: 1; padding-bottom: clamp(2rem, 6vw, 5rem); }
.garland {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  gap: clamp(.35rem, 2vw, 1.5rem);
  padding: .75rem 0 0;
  width: min(100%, 50rem);
  margin: 0 auto clamp(2rem, 4.5vw, 3.6rem);
}
.garland::before {
  content: "";
  position: absolute;
  top: 0;
  width: 100%;
  height: 1.2rem;
  border-bottom: 2px solid #7d5d49;
  border-radius: 0 0 50% 50%;
}
.garland span {
  display: block;
  height: clamp(2.6rem, 10vw, 6.4rem);
  background: var(--flag);
  background-image: repeating-linear-gradient(22deg, transparent 0 5px, #fff2 6px 7px);
  clip-path: polygon(evenodd,
    0 0, 100% 0, 98% 100%, 86% 88%, 74% 100%, 61% 88%, 49% 100%,
    37% 88%, 25% 100%, 13% 88%, 2% 100%, 0 0,
    50% 16%, 69% 43%, 50% 70%, 31% 43%, 50% 16%, 0 0,
    15% 28%, 22% 43%, 15% 58%, 8% 43%, 15% 28%, 0 0,
    85% 28%, 92% 43%, 85% 58%, 78% 43%, 85% 28%);
  transform: rotate(var(--tilt));
}
.garland span:nth-child(1) { --flag: #8261a9; --tilt: 7deg; }
.garland span:nth-child(2) { --flag: var(--pink); --tilt: 3deg; margin-top: .5rem; }
.garland span:nth-child(3) { --flag: var(--blue); --tilt: -2deg; margin-top: .55rem; }
.garland span:nth-child(4) { --flag: var(--fuchsia); --tilt: -5deg; margin-top: .25rem; }
.garland span:nth-child(5) { --flag: var(--coral); --tilt: -8deg; }

.invitation {
  display: grid;
  align-items: center;
  gap: clamp(1.25rem, 3.5vw, 3.5rem);
  padding: clamp(1rem, 3vw, 2.5rem) 0;
}
.invitation:has(.cover) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hero-copy { text-align: center; min-width: 0; }
.paper-label, .button {
  display: inline-block;
  position: relative;
  padding: .52em .95em;
  font: 850 .9rem/1.25 var(--display);
  letter-spacing: .08em;
  text-transform: uppercase;
  clip-path: polygon(0 6%, 97% 0, 100% 92%, 2% 100%);
}
.paper-label { background: #efc54e; color: #3e3023; transform: rotate(-4deg); }
.hero-names {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: .13em;
  margin: .42em 0 .36em;
  font: 900 clamp(2rem, 9.8vw, 7rem)/1 var(--display);
  text-transform: uppercase;
}
.invitation:has(.cover) .hero-names { font-size: clamp(1.8rem, 5.65vw, 4.8rem); }
.hero-person { display: block; min-width: 0; }
.cut-paper { display: flex; justify-content: center; gap: .025em; }
.paper-letter {
  display: inline-block;
  color: var(--ink);
  background: var(--coral);
  padding: .03em .055em .08em;
  clip-path: polygon(3% 3%, 98% 0, 100% 93%, 0 100%);
  transform: rotate(-6deg);
}
.paper-letter:nth-child(2n) { background: var(--pink); transform: translateY(.06em) rotate(4deg); }
.paper-letter:nth-child(3n) { background: var(--blue); transform: rotate(-4deg); }
.paper-letter:nth-child(4n) { background: #8261a9; color: #fff9e9; transform: translateY(.04em) rotate(5deg); }
.hero-person:last-child .paper-letter:first-child { background: var(--plum); color: #fff9e9; }
.hero-person:last-child .paper-letter:last-child { background: var(--fuchsia); color: #fff9e9; }
.name-plus { color: var(--plum); font: italic 700 .56em var(--hand); margin-top: .29em; }
.hero-surname {
  display: block;
  margin-top: .68em;
  color: var(--muted);
  font: 700 clamp(.7rem, 2.3vw, 1.2rem)/1.1 var(--display);
  letter-spacing: .13em;
}
.date-card {
  width: fit-content;
  margin: 0 auto;
  padding: .6rem 1rem .7rem;
  border-block: 2px solid #bf882da0;
  transform: rotate(-2deg);
  font: italic 700 clamp(1.15rem, 3.5vw, 1.8rem)/1.2 var(--hand);
}
.location { margin-top: .25rem; font: 700 .85rem/1.35 system-ui, sans-serif; }
.intro { max-width: 35ch; margin: 1.35rem auto 0; color: var(--muted); }
.button { margin-top: 1.1rem; color: #fff9e9; background: #76224e; text-decoration: none; }
.button:hover { background: var(--plum); }
.button:focus-visible { outline: none; background: var(--ink); text-decoration: underline; }
.cover {
  grid-column: 1;
  grid-row: 1;
  padding: clamp(.32rem, .9vw, .75rem);
  background: repeating-linear-gradient(113deg, #b78023 0 2px, #efcc66 3px 5px, #d2a747 6px 9px);
  box-shadow: .4rem .55rem 0 #72512a29;
  transform: rotate(-3deg);
}
.cover img { max-height: 35rem; object-fit: contain; background: #563c32; }

.page-title { display: grid; gap: .45rem; padding-bottom: 1.1rem; border-bottom: 2px solid var(--line); }
.page-title h1 {
  width: fit-content;
  padding: .08em .13em .12em;
  background: var(--pink);
  color: var(--ink);
  font: 900 clamp(2.25rem, 8vw, 5rem)/1 var(--display);
  letter-spacing: -.04em;
  text-transform: uppercase;
  clip-path: polygon(1% 6%, 98% 0, 100% 92%, 0 100%);
}
.eyebrow { color: #76224e; font-size: .78rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.details section { padding: clamp(.9rem, 3vw, 1.7rem); background: #fff7e9; border-top: 5px solid var(--plum); box-shadow: 4px 4px 0 #cfae9159; }
.details section + section { border-color: var(--gold); }
.details h2, .details h3 { font-family: var(--hand); }
.details p { margin-top: .6rem; color: var(--muted); white-space: pre-line; }
.schedule { margin: 0; padding: 0; list-style: none; }
.schedule li { padding-block: .8rem; border-bottom: 1px solid var(--line); }
.schedule .eyebrow { color: #76224e; }
.text-link { display: inline-block; margin-top: .7rem; font-weight: 700; text-underline-offset: .2em; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.gallery figure { max-width: 32rem; padding: .6rem; background: #fff7e9; border-bottom: 4px solid var(--gold); box-shadow: 4px 4px 0 #cfae9159; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption, .empty { margin-top: .75rem; color: var(--muted); }

@media (max-width: 45rem) {
  .invitation:has(.cover), .details { grid-template-columns: 1fr; }
  .invitation:has(.cover) .hero-names { font-size: clamp(2rem, 9.8vw, 4.8rem); }
  .cover { grid-row: auto; width: 91%; margin: 1rem auto 0; }
}
