:root {
  --paper: #f3eee4;
  --paper-light: #faf7f0;
  --ink: #24231f;
  --muted: #6f6b63;
  --green: #263c31;
  --green-deep: #1d2f27;
  --sage: #a9b0a2;
  --wine: #6e2a38;
  --line: rgba(36, 35, 31, .16);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

::selection { background: var(--green); color: #fff; }

.content { width: min(1180px, calc(100% - 64px)); margin: 0 auto; }
.section { padding: 128px 0; }
.kicker,
.rsvp-overline {
  margin: 0 0 20px;
  color: var(--wine);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.kicker-light { color: #d9c6bd; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
h2 { font-size: clamp(3.2rem, 6vw, 5.8rem); line-height: .95; letter-spacing: -.04em; margin-bottom: 32px; }
h3 { font-size: 2rem; line-height: 1; }
.lead { font-family: var(--serif); font-size: clamp(1.6rem, 2.4vw, 2.15rem); line-height: 1.25; }

/* Navigation + hero */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: #fff;
  background: var(--green-deep);
}
.hero-image {
  position: absolute;
  inset: 0;
  background-image:
    url('/media/hero.jpg'),
    url('https://www.hofsypesteyn.nl/wp-content/uploads/2023/01/Ontdek-het-kasteel-Hof-Sypesteyn.jpg');
  background-size: cover, cover;
  background-position: center center, center center;
  transform: scale(1.025);
  animation: heroScale 14s ease-out both;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10, 19, 15, .28) 0%, rgba(10, 19, 15, .04) 42%, rgba(10, 19, 15, .5) 100%),
    linear-gradient(to right, rgba(10, 19, 15, .18), transparent 68%);
}
.nav {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 5vw;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.monogram {
  font-family: var(--serif);
  font-size: 2rem;
  text-decoration: none;
  line-height: 1;
}
.monogram span, .footer-monogram span { font-style: italic; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .16em;
}
.nav-rsvp { border: 1px solid rgba(255,255,255,.55); border-radius: 999px; padding: 10px 18px; }
.menu-toggle { display: none; border: 0; background: transparent; color: #fff; text-transform: uppercase; letter-spacing: .13em; font-size: .68rem; }
.hero-copy {
  position: absolute;
  z-index: 4;
  left: 7vw;
  bottom: 10vh;
  max-width: 950px;
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(5.2rem, 12vw, 10.8rem);
  line-height: .78;
  letter-spacing: -.055em;
  text-shadow: 0 10px 45px rgba(0,0,0,.12);
}
.hero-copy h1 em { font-weight: 400; color: #ddc1b8; }
.hero-subtitle { margin: 34px 0 26px; font-family: var(--serif); font-size: clamp(1.45rem, 2vw, 2rem); }
.scroll-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  text-transform: uppercase;
  font-size: .67rem;
  letter-spacing: .17em;
  border-bottom: 1px solid rgba(255,255,255,.65);
  padding-bottom: 8px;
}
.hero-corner {
  position: absolute;
  z-index: 4;
  right: 5vw;
  bottom: 9vh;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: .14em;
}
.hero-corner span + span::before { content: "/"; margin-right: 12px; opacity: .55; }
@keyframes heroScale { from { transform: scale(1.08); } to { transform: scale(1.025); } }

/* Personal invitation note */
.personal-note {
  padding: 96px 0 84px;
  background: #faf7f0;
  border-bottom: 1px solid var(--line);
}
.personal-note-inner {
  width: min(860px, calc(100% - 64px));
  text-align: center;
}
.personal-note-inner::before {
  content: "L&T";
  display: block;
  margin-bottom: 30px;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  letter-spacing: .06em;
}
.personal-salutation {
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 6vw, 4.8rem);
  line-height: 1;
  letter-spacing: -.035em;
}
.personal-message {
  max-width: 700px;
  margin: 0 auto;
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.28;
}
.personal-helper {
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.7;
}
.personal-signature {
  margin: 34px 0 0;
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.personal-signature span {
  display: inline-block;
  margin-top: 6px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
}

/* Welcome */
.welcome { background: var(--paper); }
.welcome-grid { display: grid; grid-template-columns: .35fr 1.5fr .85fr; gap: 70px; align-items: start; }
.section-number { font-family: var(--serif); font-size: 1rem; color: var(--muted); padding-top: 9px; }
.welcome-copy { max-width: 670px; }
.welcome-copy > p:last-child { max-width: 560px; color: var(--muted); }
.welcome-quote { margin: 70px 0 0; padding: 0 0 0 28px; border-left: 1px solid var(--line); }
.welcome-quote span { display: block; color: var(--wine); font-family: var(--serif); font-size: 3.5rem; line-height: .6; }
.welcome-quote p { font-family: var(--serif); font-style: italic; font-size: 1.45rem; line-height: 1.25; }

/* Editorial breathing space between welcome and programme */
.editorial-break {
  background: #d8dbd1;
  color: var(--green-deep);
  padding-top: 118px;
  padding-bottom: 118px;
  overflow: hidden;
}
.editorial-break-inner {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 9vw;
  align-items: end;
}
.editorial-date {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--serif);
  font-size: clamp(4.8rem, 10vw, 10rem);
  line-height: .75;
  letter-spacing: -.065em;
  color: rgba(29,47,39,.94);
  white-space: nowrap;
}
.editorial-date span + span::before {
  content: "/";
  margin-right: 18px;
  color: var(--wine);
  font-size: .5em;
  vertical-align: .28em;
}
.editorial-copy { max-width: 680px; }
.editorial-copy h2 {
  margin-bottom: 28px;
  font-size: clamp(3rem, 5.6vw, 5.8rem);
  line-height: .95;
}
.editorial-copy > p:last-child {
  max-width: 560px;
  margin: 0;
  color: rgba(29,47,39,.72);
}

/* Day */
.day { background: #f8f5ee; }
.section-head { display: grid; grid-template-columns: 1.35fr .65fr; gap: 80px; align-items: end; margin-bottom: 72px; }
.section-head h2 { max-width: 700px; margin-bottom: 0; }
.section-intro { color: var(--muted); max-width: 420px; margin-bottom: 8px; }
.day-list { border-top: 1px solid var(--line); }
.day-item {
  display: grid;
  grid-template-columns: .16fr 1fr .45fr;
  gap: 30px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition: padding .25s ease, background .25s ease;
}
.day-item:hover { padding-left: 16px; padding-right: 16px; background: rgba(38,60,49,.035); }
.day-index { color: var(--muted); font-size: .72rem; letter-spacing: .14em; }
.day-title h3 { margin-bottom: 8px; font-size: clamp(2rem, 3.4vw, 3.3rem); }
.day-title p, .day-detail { margin: 0; color: var(--muted); }
.day-detail { text-align: right; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }

/* Location */
.location { background: var(--green); color: #f7f1e8; overflow: hidden; }
.location-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 70px; align-items: end; }
.location-copy { padding: 0 5vw 30px 0; }
.location-copy h2 { font-size: clamp(4rem, 7vw, 7rem); }
.location-lead { font-family: var(--serif); font-size: 1.65rem; line-height: 1.3; color: #ebe3d7; }
.address-block { margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.2); display: flex; justify-content: space-between; gap: 30px; align-items: end; }
.address-block p { margin: 0; }
.text-link { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; font-size: .74rem; }
.light-link { color: #fff; }
.location-photo { margin: 0; overflow: hidden; background: #18271f; }
.location-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.location-photo:hover img { transform: scale(1.025); }
.location-photo-a { height: min(72vw, 760px); max-height: 760px; }
.location-photo-a img { object-position: center; }

/* Practical */
.practical { background: var(--paper); }
.practical-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 120px; }
.practical-heading { position: sticky; top: 80px; align-self: start; }
.practical-heading h2 { font-size: clamp(3.3rem, 5vw, 5rem); }
.practical-heading > p:last-child { max-width: 430px; color: var(--muted); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 25px 0; font-family: var(--serif); font-size: 1.75rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { font-family: var(--sans); font-size: 1.2rem; font-weight: 300; transition: transform .25s ease; }
.faq details[open] .faq-icon { transform: rotate(45deg); }
.faq details > div { overflow: hidden; }
.faq details p { max-width: 650px; margin: 0 0 28px; color: var(--muted); }

/* RSVP */
.rsvp { background: var(--green-deep); color: #f7f1e8; }
.rsvp-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 92px; align-items: start; }
.rsvp-intro { position: sticky; top: 80px; }
.rsvp-intro h2 { font-size: clamp(4rem, 7vw, 7rem); }
.rsvp-intro > p:not(.kicker) { color: #c9cbc4; max-width: 430px; }
.rsvp-small { font-size: .82rem; margin-top: 28px; }
.rsvp-panel { background: var(--paper-light); color: var(--ink); padding: 56px; min-height: 480px; box-shadow: 0 34px 90px rgba(0,0,0,.12); }
.rsvp-panel h3 { margin-bottom: 16px; font-size: clamp(2.7rem, 4vw, 4rem); }
.rsvp-panel > div > p { color: var(--muted); max-width: 620px; }
.code-form { margin-top: 38px; }
.code-form > label,
.household-note label,
.field label,
.field-label { display: block; margin-bottom: 8px; font-size: .66rem; font-weight: 500; text-transform: uppercase; letter-spacing: .13em; }
.code-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(36,35,31,.18);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  padding: 14px 15px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(38,60,49,.08); }
textarea { resize: vertical; min-height: 110px; }
.button {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 14px 22px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .65rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-1px); }
.dark-button { background: var(--ink); color: #fff; }
.outline-button { background: transparent; color: var(--ink); }
.button-wide { width: 100%; margin-top: 22px; }
.quiet-button { border: 0; background: transparent; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .72rem; }
.rsvp-form-head { display: flex; justify-content: space-between; gap: 30px; align-items: start; border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 8px; }
.people-list { display: grid; }
.person-card { padding: 28px 0; border-bottom: 1px solid var(--line); }
.person-header { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.person-name { margin: 0 0 5px; font-size: 2.15rem; }
.person-type { display: none; }
.locked-badge { flex: 0 0 auto; border: 1px solid rgba(38,60,49,.25); background: rgba(38,60,49,.08); color: var(--green); border-radius: 999px; padding: 6px 10px; font-size: .6rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; }
.attendance-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.radio-card { position: relative; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card span { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 16px; border: 1px solid rgba(36,35,31,.18); background: #fff; font-size: .8rem; transition: all .2s ease; }
.radio-card input:checked + span { background: var(--green); color: #fff; border-color: var(--green); }
.person-details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.other-diet { margin-top: 8px; }
.household-note { margin-top: 30px; }
.form-message { margin: 14px 0 0; padding: 12px 14px; font-size: .78rem; }
.form-message-error { background: #f7e7e5; color: #71372f; }
.privacy-note { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: .68rem; }
.state-view { text-align: center; padding: 72px 20px; }
.spinner { width: 34px; height: 34px; margin: 0 auto 20px; border-radius: 50%; border: 1px solid rgba(36,35,31,.15); border-top-color: var(--green); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.success-mark { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 26px; border: 1px solid var(--line); border-radius: 50%; font-family: var(--serif); font-size: 1.4rem; }
.success-view p { margin-left: auto; margin-right: auto; }

/* Footer */
.footer { background: #151f1a; color: #d9ddd7; padding: 58px 5vw 28px; }
.footer-main { display: grid; grid-template-columns: .3fr 1fr auto; gap: 50px; align-items: end; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-main p { margin-bottom: 3px; }
.footer-main div p:last-child { color: #8e9991; font-size: .8rem; }
.footer-monogram { font-family: var(--serif); font-size: 2.8rem; margin: 0 !important; }
.back-top { color: inherit; text-decoration: none; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; }
.photo-credits { margin-top: 20px; color: #77827b; font-size: .62rem; }
.photo-credits summary { cursor: pointer; display: inline-block; }
.photo-credits p { max-width: 900px; margin: 10px 0 0; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .75s ease, transform .75s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .content { width: min(100% - 40px, 760px); }
  .section { padding: 94px 0; }
  .welcome-grid { grid-template-columns: .2fr 1fr; gap: 30px; }
  .welcome-quote { grid-column: 2; margin-top: 0; }
  .section-head, .practical-grid, .rsvp-layout { grid-template-columns: 1fr; gap: 54px; }
  .practical-heading, .rsvp-intro { position: static; }
  .editorial-break-inner { grid-template-columns: 1fr; gap: 48px; }
  .editorial-date { font-size: clamp(5rem, 15vw, 8rem); }
  .location-grid { grid-template-columns: 1fr; }
  .location-copy { padding-right: 0; }
  .location-photo-a { height: 620px; }
  .rsvp-panel { padding: 44px; }
}

@media (max-width: 720px) {
  .section { padding: 76px 0; }
  .content { width: calc(100% - 32px); }
  .nav { padding: 22px 20px; }
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    background: rgba(29,47,39,.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; z-index: 10; }
  .nav-links a { font-size: .82rem; }
  .menu-toggle { position: relative; z-index: 20; }
  .monogram { position: relative; z-index: 20; }
  .hero-copy { left: 20px; right: 20px; bottom: 11vh; }
  .hero-copy h1 { font-size: clamp(4.6rem, 23vw, 7rem); line-height: .82; }
  .hero-subtitle { max-width: 290px; }
  .hero-corner { display: none; }
  .welcome-grid { grid-template-columns: 1fr; gap: 24px; }
  .section-number { display: none; }
  .welcome-quote { grid-column: auto; padding-left: 20px; }
  .section-head { gap: 28px; }
  .day-item { grid-template-columns: 42px 1fr; gap: 14px; }
  .day-detail { grid-column: 2; text-align: left; margin-top: -16px; }
  .day-item:hover { padding-left: 0; padding-right: 0; background: transparent; }
  .editorial-break { padding-top: 78px; padding-bottom: 78px; }
  .editorial-break-inner { gap: 36px; }
  .editorial-date { gap: 10px; font-size: clamp(4rem, 19vw, 6.3rem); }
  .editorial-date span + span::before { margin-right: 10px; }
  .location-grid { grid-template-columns: 1fr; }
  .location-photo-a { height: 420px; }
  .address-block { align-items: start; flex-direction: column; }
  .rsvp-panel { padding: 30px 20px; margin-left: -4px; margin-right: -4px; }
  .code-row { grid-template-columns: 1fr; }
  .attendance-options, .person-details { grid-template-columns: 1fr; }
  .rsvp-form-head { flex-direction: column; }
  .footer-main { grid-template-columns: 1fr auto; }
  .footer-main > div { grid-column: 1 / -1; grid-row: 2; }
  .back-top { grid-column: 2; grid-row: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 700px) {
  .personal-note { padding: 70px 0 64px; }
  .personal-note-inner { width: min(100% - 40px, 860px); }
}
