
:root {
  --forest: #203a31;
  --forest-deep: #142a23;
  --moss: #71806b;
  --sage: #aeb9a3;
  --cream: #f4f0e7;
  --paper: #faf8f2;
  --ink: #26312c;
  --line: rgba(38, 49, 44, 0.2);
  --gold: #b79a62;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.hero {
  min-height: 100vh;
  color: var(--cream);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 20%, rgba(174,185,163,.15) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 75%, rgba(174,185,163,.12) 0 2px, transparent 3px),
    linear-gradient(145deg, var(--forest-deep), var(--forest) 58%, #385044);
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(244,240,231,.1);
  border-radius: 50%;
}
.hero::before { left: -250px; top: 18%; box-shadow: 0 0 0 45px rgba(244,240,231,.025), 0 0 0 90px rgba(244,240,231,.018); }
.hero::after { right: -290px; bottom: -140px; box-shadow: 0 0 0 55px rgba(244,240,231,.02); }

.nav {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(244,240,231,.2);
  position: relative;
  z-index: 2;
}
.wordmark { font-family: Georgia, serif; font-size: 18px; font-style: italic; text-decoration: none; }
.nav-rsvp { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-decoration: none; border-bottom: 1px solid var(--sage); }

.hero-content {
  width: min(850px, calc(100% - 40px));
  margin: auto;
  padding: 70px 0 80px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.kicker, .eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.hero .kicker { color: var(--sage); }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1 { margin: 0; font-size: clamp(58px, 11vw, 132px); line-height: .95; letter-spacing: -.045em; }
.memorial-portrait {
  width: 190px;
  aspect-ratio: 2 / 2.65;
  margin: 30px auto 24px;
  padding: 5px;
  border: 1px solid rgba(244,240,231,.42);
  border-radius: 50% 50% 46% 46% / 42% 42% 58% 58%;
  box-shadow: 0 18px 50px rgba(0,0,0,.24);
  overflow: hidden;
}
.memorial-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center 22%;
}
.years { margin: 0 0 18px; color: var(--sage); font-size: 13px; font-weight: 700; letter-spacing: .32em; }
.intro { max-width: 600px; margin: 26px auto 34px; color: rgba(244,240,231,.82); font-family: Georgia, serif; font-size: clamp(19px, 2.5vw, 25px); line-height: 1.55; }
.primary-button, .submit-button {
  display: inline-block;
  border: 1px solid var(--sage);
  background: transparent;
  color: var(--cream);
  padding: 15px 24px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}
.primary-button:hover, .primary-button:focus-visible, .submit-button:hover, .submit-button:focus-visible { background: var(--cream); color: var(--forest); outline: none; }
.scroll-cue { position: absolute; bottom: 20px; left: 50%; color: var(--sage); }

.leaf-mark { display: flex; justify-content: center; gap: 3px; height: 28px; }
.leaf-mark span { display: block; width: 10px; height: 23px; background: var(--sage); border-radius: 100% 0 100% 0; transform: rotate(-35deg); opacity: .8; }
.leaf-mark span:nth-child(2) { height: 28px; transform: translateY(-5px); }
.leaf-mark span:nth-child(3) { transform: rotate(35deg) scaleX(-1); }
.leaf-mark.small { transform: scale(.7); }

.events { padding: 110px 24px 120px; }
.section-heading { max-width: 660px; margin: 0 auto 58px; text-align: center; }
.section-heading h2 { margin: 0 0 18px; font-size: clamp(40px, 6vw, 68px); line-height: 1.08; letter-spacing: -.035em; }
.section-heading > p:last-child { color: #65706a; }
.event-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; width: min(1040px, 100%); margin: auto; }
.event-card { min-height: 430px; padding: 54px; background: var(--cream); border-top: 3px solid var(--moss); position: relative; }
.event-card:nth-child(2) { background: #e8ebdf; }
.event-number { position: absolute; top: 30px; right: 35px; color: rgba(32,58,49,.2); font-family: Georgia, serif; font-size: 44px; }
.event-card h3 { margin: 0 0 26px; font-size: 39px; }
.event-detail { margin: 4px 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.event-copy { margin-top: 28px; max-width: 410px; color: #5a665f; }
.map-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--forest);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(32,58,49,.35);
}
.map-link:hover, .map-link:focus-visible { border-color: var(--forest); outline: none; }

.photos-section {
  padding: 72px max(7vw, 24px) 88px;
  background: #ddd9cd;
  overflow: hidden;
}
.photos-section .section-heading { margin-bottom: 28px; }
.photo-gallery { width: min(1080px, 100%); margin: 0 auto; }
.photo-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 20px; }
.photo-frame {
  margin: 0;
  padding: 7px;
  border: 1px solid rgba(32,58,49,.28);
  background: rgba(250,248,242,.34);
  box-shadow: 0 24px 60px rgba(32,58,49,.14);
}
.photo-featured { width: min(820px, 100%); margin: 0 auto; transform: rotate(-.5deg); }
.photo-row .photo-frame:first-child { transform: rotate(.6deg); }
.photo-row .photo-frame:last-child { transform: rotate(-.7deg); }
.photo-frame img { display: block; width: 100%; height: auto; }

.remembrance {
  padding: 105px max(7vw, 24px) 115px;
  background: #f2efe7;
}
.remembrance-copy { max-width: 820px; margin: 0 auto; }
.remembrance-copy h2 { margin: 0 0 30px; font-size: clamp(36px, 4.5vw, 58px); line-height: 1.06; letter-spacing: -.035em; }
.glimpse-list { margin: 0; }
.glimpse-list > div { display: grid; grid-template-columns: 115px 1fr; gap: 18px; padding: 15px 0; border-top: 1px solid rgba(32,58,49,.16); }
.glimpse-list > div:last-child { border-bottom: 1px solid rgba(32,58,49,.16); }
.glimpse-list dt { color: #7f6c45; font-size: 10px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.glimpse-list dd { margin: 0; color: #4f5b55; font-family: Georgia, serif; font-size: 16px; line-height: 1.5; }
.glimpse-list cite { color: var(--ink); font-style: italic; }
.glimpse-list ol { margin: 0; padding-left: 20px; }
.glimpse-list li + li { margin-top: 5px; }
.glimpse-list li span { color: #68736d; font-size: 14px; }
.rsvp-section { padding: 110px 24px; color: var(--cream); background: var(--forest-deep); }
.section-heading.light > p:last-child { color: rgba(244,240,231,.7); }
.rsvp-form { width: min(760px, 100%); margin: 0 auto; }
.field { display: flex; flex-direction: column; }
.field.full { margin-bottom: 28px; }
.field label, fieldset legend { margin-bottom: 8px; color: var(--sage); font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.field label span { opacity: .65; text-transform: none; letter-spacing: 0; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(244,240,231,.45);
  border-radius: 0;
  background: transparent;
  color: var(--cream);
  padding: 12px 4px;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--sage); box-shadow: 0 1px 0 var(--sage); }
select { color-scheme: dark; }
fieldset { margin: 0 0 32px; padding: 0; border: 0; }
fieldset legend { margin-bottom: 2px; }
.field-help { margin: 0 0 14px; font-family: Georgia, serif; font-size: 21px; }
.choice-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.choice-row label { cursor: pointer; }
.choice-row input { position: absolute; opacity: 0; }
.choice-row span { display: block; border: 1px solid rgba(244,240,231,.3); padding: 14px 18px; text-align: center; font-size: 13px; }
.choice-row input:checked + span { border-color: var(--sage); background: rgba(174,185,163,.16); }
.choice-row input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.form-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 28px; margin-bottom: 28px; }
.submit-button { width: 100%; margin-top: 12px; background: var(--cream); color: var(--forest); }
.submit-button:disabled { cursor: wait; opacity: .65; }
.privacy-note { color: rgba(244,240,231,.55); font-size: 12px; text-align: center; }
.demo-status { display: flex; flex-direction: column; gap: 5px; margin-top: 24px; padding: 18px; border-left: 3px solid var(--gold); background: rgba(183,154,98,.12); }
.demo-status span { color: rgba(244,240,231,.72); font-size: 13px; }
.demo-status.sent { border-color: var(--sage); }
.demo-status.error { border-color: #d6a08e; }
.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.upload-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 74px;
  padding: 16px;
  border: 1px dashed rgba(244,240,231,.45);
  color: var(--cream) !important;
  cursor: pointer;
  letter-spacing: .08em !important;
  text-transform: none !important;
}
.upload-button:hover, .file-input:focus-visible + .upload-button { border-color: var(--sage); background: rgba(174,185,163,.08); }
.upload-button > span { color: var(--sage); font-size: 24px; font-weight: 400; }

footer { padding: 65px 24px; text-align: center; background: var(--paper); }
footer p { margin: 5px 0; font-family: Georgia, serif; font-size: 20px; }
.footer-name { display: inline-block; margin-top: 3px; font-size: 30px; line-height: 1.2; }
footer .footer-note { color: #737b76; font-family: Arial, sans-serif; font-size: 12px; }
.footer-divider { width: min(360px, 70%); margin: 35px auto 35px; border: 0; border-top: 1px solid var(--line); }
footer .special-thanks { color: #737b76; font-family: Arial, sans-serif; font-size: 12px; }
.special-thanks a { color: var(--forest); font-weight: 700; text-underline-offset: 3px; }
.special-thanks a:hover, .special-thanks a:focus-visible { color: var(--moss); }

@media (max-width: 720px) {
  .nav { width: calc(100% - 32px); }
  .hero { min-height: 760px; }
  .hero-content { padding-top: 80px; }
  .memorial-portrait { width: 160px; margin-top: 26px; }
  .events, .rsvp-section { padding: 80px 18px; }
  .event-grid { grid-template-columns: 1fr; }
  .event-card { min-height: 0; padding: 42px 28px; }
  .photos-section { padding: 62px 24px 68px; }
  .remembrance { padding: 80px 24px; }
  .photo-row { grid-template-columns: 1fr; gap: 18px; margin-top: 18px; }
  .photo-featured, .photo-row .photo-frame:first-child, .photo-row .photo-frame:last-child { transform: none; }
  .remembrance-copy h2 { font-size: clamp(36px, 11vw, 48px); }
  .glimpse-list > div { grid-template-columns: 1fr; gap: 5px; padding: 14px 0; }
  .form-grid, .choice-row { grid-template-columns: 1fr; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
