:root {
  --paper: #f5f1e9;
  --paper-light: #fffdf8;
  --paper-warm: #ebe2d5;
  --sage: #39412e;
  --sage-deep: #303827;
  --ink: #303a30;
  --body: #53564d;
  --muted: #77776d;
  --line: #d6d0c5;
  --peach: #e4c5aa;
  --serif: "Newsreader", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --page: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--body); font: 400 1rem/1.68 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }
section { scroll-margin-top: 70px; }
:focus-visible { outline: 2px solid #b4835e; outline-offset: 4px; }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 16px; background: var(--paper-light); color: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 70px;
  padding-inline: max(32px, calc((100vw - var(--page)) / 2 + 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: var(--sage);
  color: var(--paper-light);
  border-bottom: 1px solid rgba(255, 253, 248, .22);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 25px rgba(17, 25, 14, .18); }
.wordmark { flex: 0 0 auto; text-decoration: none; font: 400 1.55rem/1 var(--serif); letter-spacing: .04em; }
.wordmark span { color: var(--peach); font-style: italic; }
.desktop-nav { display: flex; align-items: center; gap: clamp(20px, 2.5vw, 38px); }
.desktop-nav a, .mobile-nav summary, .mobile-nav a { font-size: .78rem; font-weight: 600; letter-spacing: .025em; text-decoration: none; }
.desktop-nav a:not(.nav-rsvp) { position: relative; }
.desktop-nav a:not(.nav-rsvp)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: var(--peach); transition: right .25s ease; }
.desktop-nav a:not(.nav-rsvp):hover::after, .desktop-nav a[aria-current="location"]::after { right: 0; }
.desktop-nav .nav-rsvp { padding: 8px 18px; border: 1px solid rgba(255, 253, 248, .65); transition: background .25s ease, color .25s ease; }
.desktop-nav .nav-rsvp:hover { background: var(--paper-light); color: var(--sage); }
.mobile-nav { display: none; }
.reading-progress { position: absolute; left: 0; bottom: -1px; width: var(--progress, 0%); height: 2px; background: var(--peach); pointer-events: none; }

.hero { position: relative; overflow: hidden; background: var(--sage); color: var(--paper-light); }
.hero-frame { position: absolute; z-index: 3; inset: 23px; border: 1px solid rgba(255, 253, 248, .22); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; width: min(var(--page), 100%); min-height: min(800px, calc(100svh - 70px)); margin: auto; display: grid; grid-template-columns: .92fr 1.08fr; gap: 2vw; }
.hero-copy { padding: clamp(100px, 12vh, 145px) 20px 80px 62px; display: flex; flex-direction: column; align-items: flex-start; }
.eyebrow, .section-index { font-size: .76rem; font-weight: 600; letter-spacing: .19em; text-transform: uppercase; }
.eyebrow { margin: 0 0 46px; color: var(--peach); }
.hero h1 { margin: 0; color: var(--paper-light); font: 400 clamp(5rem, 8vw, 8.2rem)/.89 var(--serif); letter-spacing: -.055em; }
.hero h1 span { color: var(--peach); font-style: italic; font-size: .87em; }
.hero-place { margin: 44px 0 0; padding-top: 26px; border-top: 1px solid rgba(228, 197, 170, .75); color: #f2e9db; font: 400 clamp(1.3rem, 1.9vw, 1.7rem)/1.33 var(--serif); }
.hero-place strong { font-weight: 400; color: var(--paper-light); }
.hero-links { margin-top: auto; padding-top: 46px; display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.primary-link, .quiet-link, .text-link { font-size: .85rem; font-weight: 600; text-decoration: none; }
.primary-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; min-width: 217px; padding: 13px 19px; border: 1px solid var(--peach); background: var(--peach); color: var(--sage-deep); transition: background .25s ease, transform .25s ease; }
.primary-link:hover { background: #f0d8c1; transform: translateY(-2px); }
.primary-link span { font-size: 1.1rem; font-weight: 400; }
.quiet-link { padding-bottom: 4px; border-bottom: 1px solid rgba(255, 253, 248, .65); transition: border-color .25s ease, color .25s ease; }
.quiet-link:hover { color: var(--peach); border-color: var(--peach); }
.hero-visual { display: grid; place-items: center; padding: 50px 60px 50px 0; }
.hero-arch { position: relative; width: min(100%, 540px); height: min(650px, 69vh); min-height: 430px; overflow: hidden; border: 1px solid rgba(245, 235, 219, .68); border-radius: 48% 48% 0 0 / 33% 33% 0 0; background: radial-gradient(ellipse at 50% 80%, rgba(234, 216, 192, .13), transparent 61%); }
.hero-arch::before { content: ""; position: absolute; z-index: 2; inset: 16px; border: 1px solid rgba(245, 235, 219, .31); border-radius: 48% 48% 0 0 / 33% 33% 0 0; pointer-events: none; }
.hero-arch::after { content: "HOF SYPESTEYN"; position: absolute; z-index: 2; bottom: 26px; left: 0; right: 0; color: #f6e9d9; text-align: center; font: 600 .62rem/1 var(--sans); letter-spacing: .23em; }
.hero-arch img { position: absolute; width: 133%; max-width: none; bottom: -4%; left: -16%; opacity: .82; filter: brightness(0) invert(91%) sepia(14%) saturate(346%) hue-rotate(330deg); }
.hero-foot { position: relative; z-index: 4; width: min(var(--page), calc(100% - 100px)); margin: 0 auto; padding: 17px 0 22px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255, 253, 248, .26); color: #e5dccc; font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.hero-foot a { text-decoration: none; }
.hero-foot a span { margin-left: 10px; font-size: 1rem; }
.hero-copy > .eyebrow { animation: rise-in .65s ease both; }
.hero h1 { animation: rise-in .8s .09s ease both; }
.hero-place { animation: rise-in .8s .18s ease both; }
.hero-links { animation: rise-in .8s .27s ease both; }
.hero-arch { animation: arch-in 1s .16s ease both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes arch-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

.section { padding: clamp(100px, 9vw, 150px) 40px; }
.section-index { color: #92755a; }
.story { position: relative; overflow: hidden; background: var(--paper); }
.story::before { content: ""; position: absolute; left: max(40px, calc((100vw - 1200px) / 2)); top: 0; height: 72px; width: 1px; background: #bca083; }
.story-grid { width: min(1200px, 100%); margin: 0 auto; display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(50px, 6vw, 100px); }
.story-copy { padding: 32px 0 55px; }
.story-copy h2, .memory h2, .section-aside h2, .venue-content h2, .practical-heading h2, .rsvp-heading h2 { margin: 24px 0; color: var(--ink); font: 400 clamp(3.35rem, 5vw, 5rem)/1.02 var(--serif); letter-spacing: -.045em; }
.story-copy p { max-width: 490px; margin: 0 0 20px; }
.story-copy .lead { color: var(--ink); font: 400 clamp(1.4rem, 2vw, 1.75rem)/1.36 var(--serif); }
.story-copy .signature { margin-top: 45px; color: #8e6549; font: italic 400 1.65rem/1 var(--serif); }
.memory { min-width: 0; padding: 4px 0 0 clamp(34px, 4vw, 65px); border-left: 1px solid var(--line); }
.memory h2 { margin: 0; max-width: 580px; font-size: clamp(3.4rem, 4.7vw, 5.1rem); line-height: .98; }
.polaroids { position: relative; height: 545px; max-width: 600px; margin: 25px auto 0; }
.polaroid { position: absolute; width: 38%; min-width: 0; padding: 9px 9px 39px; border: 0; background: #fffefa; color: var(--ink); box-shadow: 0 20px 40px rgba(57, 52, 40, .19); cursor: pointer; transition: transform .4s ease, box-shadow .4s ease; }
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.polaroid span { display: block; height: 4px; }
.polaroid-a { top: 112px; left: 2%; z-index: 2; transform: rotate(-9deg); }
.polaroid-b { top: 15px; left: 30%; z-index: 3; transform: rotate(3deg); }
.polaroid-c { top: 126px; right: 1%; z-index: 1; transform: rotate(10deg); }
.polaroid:hover, .polaroid:focus-visible { z-index: 9; transform: translateY(-18px) rotate(0) scale(1.04); box-shadow: 0 26px 48px rgba(57, 52, 40, .23); }
.polaroid.is-active { z-index: 10; transform: translateY(-23px) rotate(0) scale(1.07); box-shadow: 0 29px 54px rgba(57, 52, 40, .26); }
.memory-note { margin: 0; color: var(--muted); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }

.schedule { background: var(--paper-light); }
.section-grid { width: min(1150px, 100%); margin: 0 auto; display: grid; grid-template-columns: .83fr 1.17fr; gap: clamp(60px, 8vw, 130px); }
.section-aside { align-self: start; }
.section-aside h2 { margin-bottom: 22px; }
.section-aside > p { max-width: 330px; margin: 0 0 26px; }
.text-link { display: inline-block; padding-bottom: 3px; border-bottom: 1px solid currentColor; color: var(--ink); }
.text-link:hover { color: #956748; }
.schedule-list { position: relative; border-top: 1px solid var(--line); }
.schedule-list::before { content: ""; position: absolute; top: 48px; bottom: 60px; left: 3px; width: 1px; background: #c9b69e; }
.schedule-row { position: relative; display: grid; grid-template-columns: 95px 1fr; gap: 20px; padding: 27px 12px 28px 28px; border-bottom: 1px solid var(--line); transition: background .3s ease; }
.schedule-row::before { content: ""; position: absolute; z-index: 1; top: 39px; left: 0; width: 7px; height: 7px; border: 1px solid #a57a58; border-radius: 50%; background: var(--paper-light); transition: background .3s ease, transform .3s ease; }
.schedule-row:hover, .schedule-row.is-current { background: #f7f0e6; }
.schedule-row:hover::before, .schedule-row.is-current::before { background: #a57a58; transform: scale(1.2); }
.schedule-row time { padding-top: 3px; color: #946c50; font: 400 1.35rem/1.2 var(--serif); }
.schedule-row h3 { margin: 0 0 5px; color: var(--ink); font: 400 2rem/1.08 var(--serif); }
.schedule-row p { margin: 0; max-width: 420px; font-size: .94rem; }

.venue { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 640px; background: var(--paper-warm); }
.venue-image { position: relative; overflow: hidden; min-height: 640px; }
.venue-image::after { content: ""; position: absolute; inset: 25px; border: 1px solid rgba(255, 253, 248, .72); pointer-events: none; }
.venue-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 1s ease; }
.venue:hover .venue-image img { transform: scale(1.035); }
.venue-content { align-self: center; max-width: 660px; padding: 90px clamp(55px, 7vw, 110px); }
.venue-content h2 { margin-bottom: 17px; }
.venue-content p { margin: 0 0 22px; }
.venue-content .venue-lead { color: #876244; font: italic 400 1.65rem/1.2 var(--serif); }
.venue-content address { margin: 35px 0 24px; padding-top: 23px; border-top: 1px solid #c4b7a6; color: var(--ink); font-style: normal; }

.practical { background: var(--paper); }
.practical-heading, .practical-grid { width: min(1150px, 100%); margin-inline: auto; }
.practical-heading { margin-bottom: 60px; }
.practical-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 70px; }
.practical-item { min-width: 0; border-top: 1px solid var(--line); }
.practical-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 4px 25px 0; color: var(--ink); cursor: pointer; list-style: none; font: 400 1.85rem/1.12 var(--serif); transition: color .25s ease; }
.practical-item summary::-webkit-details-marker { display: none; }
.practical-item summary:hover, .practical-item[open] summary { color: #9a7152; }
.details-mark { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid #bcae9d; border-radius: 50%; font: 400 1rem/1 var(--sans); transition: transform .25s ease; }
.practical-item[open] .details-mark { transform: rotate(45deg); }
.practical-answer { padding: 0 38px 28px 0; }
.practical-answer p { max-width: 480px; margin: 0 0 12px; }
.practical-answer a { font-size: .85rem; font-weight: 600; text-underline-offset: 5px; }
.dresscode { grid-column: 1 / -1; }
.dresscode .practical-answer { display: grid; grid-template-columns: .62fr 1.38fr; gap: 60px; align-items: start; }
.palette { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.swatch { min-width: 0; display: grid; justify-items: start; gap: 10px; color: var(--ink); }
.swatch::before { content: ""; width: 42px; height: 42px; border: 1px solid rgba(48, 58, 48, .12); border-radius: 50%; background: var(--swatch); }
.swatch span { font-size: .7rem; line-height: 1.25; overflow-wrap: anywhere; }
.peach { --swatch: #ffd6a1; }
.rose { --swatch: #f8d6de; }
.sand { --swatch: #dfd5c7; }
.lavender { --swatch: #e3d6f7; }
.mint { --swatch: #deeee3; }
.sage { --swatch: #a8c9a0; }

.rsvp { position: relative; background: var(--sage); color: var(--paper-light); }
.rsvp::before { content: ""; position: absolute; inset: 24px; border: 1px solid rgba(255, 253, 248, .19); pointer-events: none; }
.rsvp-grid { position: relative; z-index: 1; width: min(1150px, 100%); margin: 0 auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(60px, 7vw, 110px); align-items: start; }
.rsvp .section-index { color: var(--peach); }
.rsvp-heading h2 { color: var(--paper-light); }
.rsvp-heading p { max-width: 330px; color: #e5e4d8; }
.rsvp-box { min-width: 0; padding: clamp(28px, 4vw, 50px); background: var(--paper-light); color: var(--body); box-shadow: 16px 16px 0 rgba(255, 253, 248, .09); }
.state, .success { padding: 24px 0; }
#rsvpFallback > p { margin-top: 0; }
#codeForm { display: grid; justify-items: start; gap: 11px; }
#codeForm input { width: min(100%, 350px); }
.notes-field { display: block; margin: 28px 0 8px; }
input:not([type="radio"]), select, textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #beb9b0; border-radius: 0; background: #fff; color: var(--ink); }
textarea { resize: vertical; }
.button { min-height: 46px; padding: 11px 19px; border: 1px solid var(--sage); border-radius: 0; background: var(--sage); color: var(--paper-light); cursor: pointer; font-size: .84rem; font-weight: 600; transition: background .25s ease; }
.button:hover { background: #52603a; }
.button:disabled { cursor: wait; opacity: .65; }
#rsvpForm > .button { margin-top: 18px; }
.person-card { padding: 0 0 27px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.person-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.person-top h3 { margin: 0; color: var(--ink); font: 400 1.65rem/1.15 var(--serif); }
.fixed-badge { padding: 4px 9px; background: #e2e8da; color: var(--sage); font-size: .7rem; }
.fixed-copy { margin: 14px 0 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 15px 24px; margin-top: 18px; }
.choice-row label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.choice-row input { accent-color: var(--sage); width: 18px; height: 18px; margin: 0; }
.person-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; margin-top: 22px; }
.person-details label { display: grid; gap: 7px; font-size: .86rem; }
.full-row { grid-column: 1 / -1; }
.form-error { margin: 16px 0; padding: 11px 13px; background: #f4ddd5; color: #70332d; }
.success h3 { margin: 0 0 8px; color: var(--ink); font: 400 2.15rem/1.15 var(--serif); }
.success p { margin: 0 0 20px; }
.edit-button { display: block; margin-top: 24px; padding: 0; border: 0; background: none; color: var(--ink); text-decoration: underline; text-underline-offset: 5px; cursor: pointer; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; padding: 29px max(40px, calc((100vw - var(--page)) / 2 + 40px)) 36px; border-top: 1px solid rgba(255, 253, 248, .22); background: var(--sage); color: #e8e4d8; font-size: .78rem; letter-spacing: .06em; }

@media (max-width: 1050px) {
  .hero-copy { padding-left: 44px; }
  .hero h1 { font-size: clamp(4.8rem, 8vw, 7rem); }
  .hero-visual { padding-right: 42px; }
  .story-grid { gap: 45px; }
  .memory { padding-left: 36px; }
  .section-grid, .rsvp-grid { gap: 55px; }
}
@media (max-width: 760px) {
  .site-header { height: 66px; padding-inline: 20px; }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; position: relative; }
  .mobile-nav summary { padding: 8px 0 8px 12px; cursor: pointer; list-style: none; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav nav { position: absolute; top: calc(100% + 10px); right: 0; width: 200px; padding: 18px; display: grid; gap: 15px; background: var(--sage-deep); border: 1px solid rgba(255, 253, 248, .3); box-shadow: 0 16px 25px rgba(20, 25, 17, .24); }
  .mobile-nav a:hover { color: var(--peach); }
  .hero-frame { inset: 12px; }
  .hero-inner { min-height: 0; grid-template-columns: 1fr; gap: 0; }
  .hero-copy { min-height: 500px; padding: 78px 34px 45px; }
  .eyebrow { margin-bottom: 34px; }
  .hero h1 { font-size: clamp(4.4rem, 12vw, 6.2rem); }
  .hero-place { margin-top: 34px; }
  .hero-links { margin-top: 45px; padding-top: 0; }
  .hero-visual { padding: 0 50px 50px; }
  .hero-arch { height: 470px; min-height: 0; max-width: 490px; }
  .hero-foot { width: calc(100% - 62px); }
  .section { padding: 100px 25px; }
  .story::before { left: 25px; height: 55px; }
  .story-grid, .section-grid, .rsvp-grid { grid-template-columns: 1fr; gap: 45px; }
  .story-copy { padding: 0; }
  .story-copy h2, .memory h2, .section-aside h2, .venue-content h2, .practical-heading h2, .rsvp-heading h2 { font-size: clamp(3.4rem, 9vw, 4.7rem); }
  .memory { padding: 52px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .polaroids { height: 500px; }
  .section-aside > p { max-width: none; }
  .venue { grid-template-columns: 1fr; }
  .venue-image { min-height: 380px; height: 52vw; max-height: 550px; }
  .venue-content { max-width: none; padding: 85px 35px 95px; }
  .practical-grid { gap: 0 35px; }
  .dresscode .practical-answer { grid-template-columns: 1fr; gap: 20px; }
  .rsvp-heading p { max-width: 520px; }
}
@media (max-width: 520px) {
  .hero-copy { min-height: 430px; padding: 66px 28px 35px; }
  .hero h1 { font-size: clamp(3.75rem, 13vw, 5.3rem); }
  .hero-place { font-size: 1.35rem; }
  .hero-links { gap: 19px; margin-top: 36px; }
  .primary-link { min-width: 0; }
  .hero-visual { padding: 0 35px 36px; }
  .hero-arch { height: 370px; }
  .hero-foot { width: calc(100% - 50px); font-size: .58rem; }
  .hero-foot span:first-child { max-width: 165px; }
  .section { padding: 84px 22px; }
  .story::before { left: 22px; }
  .story-copy h2, .memory h2, .section-aside h2, .venue-content h2, .practical-heading h2, .rsvp-heading h2 { font-size: clamp(3rem, 11.5vw, 4rem); }
  .memory { padding-top: 46px; }
  .polaroids { height: 360px; margin-top: 26px; }
  .polaroid { width: 45%; padding: 6px 6px 24px; }
  .polaroid-a { top: 90px; left: 0; }
  .polaroid-b { top: 8px; left: 27%; }
  .polaroid-c { top: 95px; right: 0; }
  .schedule-row { grid-template-columns: 68px 1fr; gap: 12px; padding-left: 21px; }
  .schedule-row time { font-size: 1.16rem; }
  .schedule-row h3 { font-size: 1.7rem; }
  .schedule-row p { font-size: .88rem; }
  .venue-image { min-height: 320px; }
  .venue-content { padding: 70px 24px 82px; }
  .practical-grid { grid-template-columns: 1fr; }
  .practical-item summary { font-size: 1.7rem; }
  .dresscode { grid-column: auto; }
  .palette { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 10px; }
  .rsvp::before { inset: 10px; }
  .rsvp-box { padding: 27px; }
  .person-details { grid-template-columns: 1fr; }
  .full-row { grid-column: auto; }
  .site-footer { flex-direction: column; gap: 5px; padding: 24px 22px 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
