/* Warm botanical art direction: sunlit wood, ivory paper and eucalyptus. */
:root {
  --petrol: #2c493f;
  --deep: #20372f;
  --ink: #293f35;
  --paper: #f8f3e8;
  --gold: #98733a;
  --light-gold: #e4ce9a;
  --muted: #576052;
}

.site-header {
  color: #23392e;
  background: linear-gradient(180deg, #f8edcfde, #f8edcf88 60%, transparent);
}
.site-header.opened { background: #f8f3e8f5; border-bottom-color: #9d895140; }
.motion-toggle { border-color: #293f3560; background: #fff9ea6b; }
.site-header.opened .motion-toggle { background: transparent; }

.paper { background-image: radial-gradient(ellipse at top left, #ffdf8730, transparent 50%), url('assets/noise.svg'); }
.invitation { padding-top: 85px; padding-bottom: 95px; }
.invitation-frame { border-color: #9f855f70; }
.invitation-frame:after { border-color: #a188513d; }
.botanical-left { width: clamp(240px, 30vw, 480px); left: -70px; top: -70px; opacity: .98; transform: rotate(156deg); }
.botanical-right { width: clamp(230px, 29vw, 460px); right: -60px; bottom: -75px; opacity: 1; transform: rotate(-22deg); }
.invitation-flowers { position: absolute; width: 360px; height: auto; left: -100px; bottom: -68px; transform: rotate(15deg); pointer-events: none; filter: drop-shadow(6px 9px 5px #5e582530); }
.invitation-copy { text-shadow: 0 1px 0 #fff8e840; }

.section-foliage, .section-flowers { position: absolute; height: auto; pointer-events: none; z-index: 0; filter: drop-shadow(5px 8px 5px #182a1a33); }
.countdown-section { overflow: hidden; padding-top: 65px; padding-bottom: 62px; background: radial-gradient(ellipse at 15% 0, #6b775247, transparent 60%), #2c493f; }
.countdown-section > :not(img) { position: relative; z-index: 1; }
.countdown-foliage-left { width: 280px; left: -85px; top: -150px; transform: rotate(150deg); opacity: .8; }
.countdown-foliage-right { width: 275px; right: -80px; bottom: -150px; transform: rotate(-20deg); opacity: .8; }
.countdown strong { color: #f0dfb6; }
.countdown-subtitle { color: #fff6e4; }

.details, .dress-code, .keepsake{ position: relative; isolation: isolate; overflow: hidden; }
.section-heading, .event-grid, .dress-heading, .fashion-grid, .palette, .photo-credits { position: relative; z-index: 1; }
.details { padding-top: 110px; padding-bottom: 110px; }
.details-flowers { width: 330px; right: -115px; top: -65px; transform: rotate(-45deg); opacity: .96; }
.event-grid article { border-color: #9c8d624d; }
.dress-code { background: radial-gradient(ellipse at top right, #fff2cc77, transparent 55%), #e9eadf; }
.dress-foliage { width: 320px; left: -155px; top: 10px; transform: rotate(170deg); opacity: .62; }
.dress-heading { padding-left: 40px; }
.fashion-card figure { border: 8px solid #f8f3e8; box-shadow: 0 10px 30px #35432d20; }
.palette { border-color: #65755544; }
.palette li span { box-shadow: 0 0 0 4px #e9eadf, 0 0 0 5px #7b866c66; }
.keepsake { padding-top: 110px; padding-bottom: 105px; }
.keepsake > :not(img) { position: relative; z-index: 1; }
.keepsake-flowers { width: 390px; left: -105px; bottom: -80px; transform: rotate(14deg); }
.keepsake-foliage { width: 350px; right: -115px; top: -95px; transform: rotate(165deg); }


@media (max-width: 1000px) {
  .details-flowers { width: 240px; right: -115px; }
  .dress-heading { padding-left: 25px; }
  .countdown-foliage-left, .countdown-foliage-right { width: 220px; opacity: .55; }
  .keepsake-flowers { width: 290px; left: -125px; }
  .keepsake-foliage { width: 260px; right: -140px; }
}
@media (max-width: 650px) {
  .site-header { padding-left: 20px; padding-right: 20px; gap: 10px; background: linear-gradient(#faf0d9f2, #f6e5c3b0 75%, transparent); }
  .site-header nav { gap: 14px; }
  .site-header.opened { background: #f8f3e8f7; }
  .invitation { padding: 76px 26px 85px; }
  .botanical-left { width: 210px; left: -120px; top: -80px; opacity: .9; }
  .botanical-right { width: 210px; right: -125px; bottom: -70px; }
  .invitation-flowers { width: 155px; left: -68px; bottom: -25px; opacity: .9; }
  .countdown-section { padding: 50px 18px; }
  .countdown-foliage-left { width: 150px; left: -105px; top: -85px; }
  .countdown-foliage-right { width: 150px; right: -100px; bottom: -75px; }
  .details { padding-top: 86px; padding-bottom: 75px; }
  .details-flowers { width: 185px; top: -42px; right: -97px; }
  .details .section-heading { padding: 0 8px; }
  .dress-heading { padding-left: 0; }
  .dress-foliage { width: 180px; right: -110px; left: auto; top: -47px; transform: rotate(8deg); opacity: .7; }
  .fashion-card figure { border-width: 5px; }
  .keepsake { padding: 88px 25px 110px; }
  .keepsake-flowers { width: 175px; left: -75px; bottom: -30px; }
  .keepsake-foliage { width: 190px; right: -120px; top: -60px; }
}


/* A photographic keepsake of the class, framed without covering any faces. */
.class-section { position: relative; overflow: hidden; padding-top: 75px; background-color: #ecebdf; }
.class-section .section-heading { margin-bottom: 48px; }
.class-section .section-heading h2 { margin-bottom: 0; }
.class-portrait { position: relative; max-width: 1160px; margin: auto; }
.class-photo-link { position: relative; z-index: 1; display: block; padding: 12px; background: #fbf7ed; box-shadow: 0 12px 38px #3b442323, 0 0 0 1px #ae955a55; }
.class-photo-crop { position: relative; display: block; width: 100%; aspect-ratio: 1300 / 640; overflow: hidden; }
/* Keep original pixels: show only x=150..1450, y=440..1080 of the 1600×1200 source. */
.class-photo-crop .class-photo { position: absolute; width: 123.076923%; max-width: none; height: 187.5%; left: -11.538462%; top: -68.75%; display: block; }
.class-photo-foliage, .class-photo-flowers { position: absolute; pointer-events: none; height: auto; filter: drop-shadow(4px 6px 3px #35452a24); }
.class-photo-foliage { width: 220px; top: -135px; left: -150px; transform: rotate(152deg); }
.class-photo-flowers { width: 270px; right: -160px; bottom: 84px; transform: rotate(-22deg); }
.class-portrait figcaption { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding-top: 22px; }
.class-portrait figcaption > span { font: italic 1.65rem var(--serif); }
.class-portrait figcaption .text-link { flex-shrink: 0; }
@media (max-width: 650px) {
  .class-section { padding: 60px 20px 64px; }
  .class-section .section-heading { margin-bottom: 32px; }
  .class-photo-link { padding: 7px; }
  .class-photo-foliage { width: 130px; left: -95px; top: -60px; }
  .class-photo-flowers { width: 170px; right: -110px; bottom: 38px; }
  .class-portrait figcaption { flex-direction: column; gap: 9px; text-align: center; padding-top: 20px; }
  .class-portrait figcaption > span { font-size: 1.5rem; }
}
