:root {
  --ivory: #fbf8f1;
  --paper: #fffdf8;
  --emerald: #173f36;
  --wine: #743747;
  --gold: #b59355;
  --rose: #f2e4e2;
  --sage: #e7efe9;
  --coffee: #5a4237;
  --muted: #726c63;
  --rule: #d8cfbf;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 20px 55px rgba(63, 48, 40, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--coffee); font-family: var(--sans); font-size: 16px; line-height: 1.7; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link { position: fixed; top: 10px; left: 10px; z-index: 50; padding: 8px 12px; background: var(--emerald); color: white; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: minmax(180px, 1fr) auto minmax(90px, 1fr); align-items: center; gap: 22px; min-height: 86px; padding: 14px clamp(20px, 4vw, 68px); background: rgba(251, 248, 241, .95); border-bottom: 1px solid rgba(181,147,85,.32); backdrop-filter: blur(14px); }
.wordmark { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; color: var(--emerald); }
.wordmark span { font-family: var(--serif); font-size: 20px; letter-spacing: .05em; }
.wordmark small { padding-left: 13px; border-left: 1px solid var(--gold); color: var(--muted); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.main-nav { display: flex; gap: clamp(14px, 2vw, 28px); align-items: center; }
.main-nav a { position: relative; color: var(--emerald); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.main-nav a::after { content: ""; position: absolute; right: 50%; bottom: -8px; left: 50%; height: 1px; background: var(--gold); transition: .2s ease; }
.main-nav a:hover::after, .main-nav a.active::after { right: 0; left: 0; }
.site-header > .button { justify-self: end; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 25px; border: 1px solid var(--emerald); background: var(--emerald); color: var(--paper); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(23,63,54,.18); background: #0d342c; }
.button-small { min-height: 40px; padding: 9px 19px; }
.text-link { display: inline-flex; gap: 8px; align-items: center; padding: 10px 0; color: var(--wine); font-family: var(--serif); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--gold); }

.page { display: none; min-height: calc(100vh - 86px); padding-bottom: 100px; animation: page-in .45s ease both; }
.page.active { display: block; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hero-page { padding: clamp(24px, 5vw, 70px) 0 clamp(40px, 7vw, 90px); }
.hero-frame { position: relative; display: flex; flex-direction: column; align-items: center; max-width: 880px; margin: 0 auto; padding: clamp(65px, 9vw, 105px) clamp(30px, 8vw, 100px); text-align: center; background: var(--paper); border: 1px solid var(--gold); box-shadow: var(--shadow); }
.wedding-home { justify-content: center; min-height: min(720px, calc(100svh - 150px)); }
.hero-frame::before, .hero-frame::after { content: ""; position: absolute; width: 90px; height: 90px; opacity: .72; pointer-events: none; }
.hero-frame::before { top: 12px; right: 12px; border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); background: radial-gradient(ellipse at 85% 15%, transparent 57%, rgba(111,131,118,.38) 58% 61%, transparent 62%); }
.hero-frame::after { bottom: 12px; left: 12px; border-bottom: 1px solid var(--gold); border-left: 1px solid var(--gold); background: radial-gradient(ellipse at 15% 85%, transparent 57%, rgba(111,131,118,.38) 58% 61%, transparent 62%); }
.monogram { display: grid; place-items: center; width: 112px; height: 112px; margin-bottom: 26px; color: var(--emerald); border: 1px solid var(--gold); border-radius: 50%; outline: 1px solid rgba(181,147,85,.35); outline-offset: 7px; }
.monogram span { font-family: var(--serif); font-size: 25px; }
.monogram.small { width: 82px; height: 82px; }
.monogram.small span { font-size: 19px; }
.eyebrow { margin: 0 0 13px; color: var(--gold); font-size: 11px; font-weight: 750; letter-spacing: .24em; text-transform: uppercase; }
.hero-frame h1 { margin: 0; color: var(--wine); font-family: var(--serif); font-size: clamp(58px, 8vw, 96px); line-height: .94; letter-spacing: -.04em; text-transform: uppercase; }
.wedding-home h1 { max-width: 760px; font-size: clamp(55px, 8vw, 91px); line-height: .98; text-transform: none; }
.wedding-home h1 span { display: inline-block; padding: 0 .06em; color: var(--gold); font-size: .72em; font-style: italic; font-weight: 400; }
.wedding-date { display: flex; width: min(470px, 90%); gap: 18px; align-items: center; margin-top: 38px; color: var(--emerald); }
.wedding-date span { flex: 1; height: 1px; background: var(--gold); }
.wedding-date strong { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.wedding-location { margin: 19px 0 0; color: var(--emerald); font-family: var(--serif); font-size: clamp(23px, 3vw, 31px); }
.wedding-welcome { margin: 25px 0 0; color: var(--muted); font-family: var(--serif); font-size: 18px; font-style: italic; }
.hero-kicker { margin: 32px 0 0; color: var(--emerald); font-family: var(--serif); font-size: 21px; font-style: italic; }
.hero-copy { max-width: 640px; margin: 31px auto 0; color: var(--muted); font-family: var(--serif); font-size: 17px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; align-items: center; margin-top: 36px; }

.section-shell { width: min(940px, calc(100% - 40px)); margin: 86px auto 0; padding: clamp(35px, 6vw, 68px); background: var(--paper); box-shadow: var(--shadow); border-top: 4px solid var(--gold); }
.section-heading { margin-bottom: 36px; }
.section-heading h2, .section-shell > h2, .stay-section > h2 { margin: 0; color: var(--wine); font-family: var(--serif); font-size: clamp(34px, 5vw, 54px); line-height: 1.1; }
.section-heading > p:last-child, .section-intro { max-width: 670px; color: var(--muted); font-family: var(--serif); font-style: italic; }
.guide-links { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.guide-card { display: grid; grid-template-columns: 48px 1fr; gap: 0 12px; min-height: 135px; padding: 25px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.guide-card:hover { transform: translateY(-4px); box-shadow: 0 16px 35px rgba(63,48,40,.10); }
.guide-card.sage { background: var(--sage); color: var(--emerald); }
.guide-card.rose { background: var(--rose); color: var(--wine); }
.guide-card > span { grid-row: 1 / 3; font-size: 11px; font-weight: 750; letter-spacing: .14em; }
.guide-card strong { align-self: end; font-family: var(--serif); font-size: 23px; }
.guide-card small { color: var(--muted); font-size: 12px; }
.number-list { display: grid; gap: 0; padding: 0; list-style: none; counter-reset: short; }
.number-list li { position: relative; min-height: 56px; padding: 14px 10px 14px 54px; border-bottom: 1px solid var(--rule); counter-increment: short; }
.number-list li::before { content: counter(short, decimal-leading-zero); position: absolute; left: 8px; color: var(--gold); font-family: var(--serif); font-size: 18px; }

.page-intro { padding: clamp(70px, 10vw, 135px) 20px clamp(55px, 7vw, 95px); text-align: center; background: var(--emerald); color: var(--paper); }
.page-intro h1 { max-width: 1000px; margin: 0 auto; font-family: var(--serif); font-size: clamp(46px, 7vw, 82px); line-height: 1.03; }
.page-intro > p:last-child { max-width: 740px; margin: 25px auto 0; color: #dce8e2; font-family: var(--serif); font-size: 18px; font-style: italic; }

.stay-section > p { max-width: 790px; }
.hotel-list { display: grid; gap: 13px; margin-top: 34px; }
.hotel-card { padding: 24px 27px; overflow: hidden; }
.hotel-card.sage { background: var(--sage); }
.hotel-card.rose { background: var(--rose); }
.hotel-photo { width: auto; max-width: min(100%, 520px); height: auto; max-height: 260px; margin: 0 auto 20px; object-fit: contain; background: var(--paper); border: 1px solid rgba(181,147,85,.34); box-shadow: 0 9px 24px rgba(63,48,40,.08); }
.hotel-heading { display: flex; gap: 25px; align-items: baseline; justify-content: space-between; }
.hotel-card h3 { margin: 0; color: var(--emerald); font-family: var(--serif); font-size: 22px; }
.hotel-card.rose h3 { color: var(--wine); }
.hotel-card span { color: var(--gold); font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.hotel-card em { display: inline-block; margin-top: 8px; padding: 4px 10px; color: var(--wine); background: rgba(255,255,255,.55); border-radius: 20px; font-size: 11px; font-style: normal; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hotel-card p { margin: 9px 0 0; color: var(--muted); }
.hotel-booking-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 19px; }
.hotel-booking-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 8px 13px; border: 1px solid var(--gold); background: rgba(255,255,255,.52); color: var(--emerald); font-size: 10px; font-weight: 750; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; transition: background .2s ease, color .2s ease, transform .2s ease; }
.hotel-booking-links a:hover { transform: translateY(-1px); background: var(--emerald); color: white; }
.subsection-copy { margin-top: 44px; padding: 35px; border-left: 3px solid var(--gold); background: #fcf7ee; }
.subsection-copy h3 { margin: 0 0 12px; color: var(--wine); font-family: var(--serif); font-size: 31px; }
.pull-quote { margin: 35px 0 0; color: var(--wine); font-family: var(--serif); font-size: 20px; font-style: italic; }
.map-legend { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; }
.map-legend span { padding: 7px 12px; font-size: 10px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.legend-sage { background: var(--sage); color: var(--emerald); }
.legend-rose { background: var(--rose); color: var(--wine); }
.map-image-link { display: block; padding: 8px; border: 1px solid var(--gold); background: white; }
.map-image-link img { width: 100%; max-height: 560px; object-fit: cover; object-position: center; }
.note-card { margin-top: 24px; padding: 32px; background: var(--rose); }
.note-card h3 { margin: 0; color: var(--wine); font-family: var(--serif); font-size: 25px; }
.note-card p { color: var(--muted); }

.qa-shell { max-width: 1060px; }
.category-tabs { display: flex; gap: 8px; margin: -6px 0 35px; padding-bottom: 8px; overflow-x: auto; scrollbar-width: thin; }
.category-tabs button { flex: 0 0 auto; padding: 12px 17px; border: 1px solid var(--rule); background: transparent; color: var(--emerald); cursor: pointer; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.category-tabs button:hover, .category-tabs button.active { border-color: var(--emerald); background: var(--emerald); color: white; }
.qa-category { display: none; }
.qa-category.active { display: block; animation: page-in .3s ease both; }
.qa-category h2 { margin: 0 0 24px; color: var(--wine); font-family: var(--serif); font-size: clamp(31px, 5vw, 49px); }
details { border-top: 1px solid var(--rule); }
details:last-child { border-bottom: 1px solid var(--rule); }
summary { position: relative; padding: 24px 52px 24px 0; color: var(--emerald); cursor: pointer; font-family: var(--serif); font-size: 20px; font-weight: 700; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; top: 20px; right: 6px; color: var(--gold); font-family: var(--sans); font-size: 25px; font-weight: 300; transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details > div { padding: 0 45px 24px 0; color: var(--muted); }
details p { margin: 0 0 13px; }
details li { margin-bottom: 7px; }

.collection { padding-top: 54px; padding-bottom: 54px; }
.collection > h2 { margin-bottom: 15px; }
.collection article { padding: 27px 0; border-bottom: 1px solid var(--rule); }
.collection article:last-of-type { border-bottom: 0; }
.collection article h3 { margin: 0 0 8px; color: var(--emerald); font-family: var(--serif); font-size: 22px; line-height: 1.3; }
.collection article p { max-width: 790px; margin: 0; color: var(--muted); }
.last-note { margin-top: 34px; padding: 34px; background: var(--sage); color: var(--emerald); text-align: center; }
.last-note p:last-child { max-width: 660px; margin: 0 auto; font-family: var(--serif); font-size: 20px; font-style: italic; }

[data-page="schedule"], [data-page="rsvp"] { padding: clamp(55px, 8vw, 100px) 20px 110px; background: var(--emerald); }
.maintenance-card, .rsvp-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: min(800px, 100%); min-height: 610px; margin: 0 auto; padding: 65px 35px; text-align: center; background: var(--paper); border: 1px solid var(--gold); outline: 1px solid rgba(181,147,85,.65); outline-offset: -14px; box-shadow: 0 26px 70px rgba(0,0,0,.18); }
.maintenance-card h1, .rsvp-card h1 { margin: 0; color: var(--wine); font-family: var(--serif); font-size: clamp(58px, 10vw, 98px); line-height: 1; }
.maintenance-line { display: flex; width: min(520px, 90%); gap: 15px; align-items: center; margin-top: 42px; color: var(--emerald); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.maintenance-line span { flex: 1; height: 1px; background: var(--gold); }
.maintenance-line strong { white-space: nowrap; }
.deadline { margin: 26px 0; color: var(--emerald); font-family: var(--serif); font-size: 21px; font-style: italic; }
.rsvp-note { max-width: 520px; margin: 27px auto 0; color: var(--muted); font-size: 13px; }

.site-footer { display: flex; justify-content: space-between; gap: 30px; align-items: center; padding: 42px clamp(22px, 5vw, 72px); background: #102f29; color: var(--paper); }
.site-footer div { display: flex; gap: 13px; align-items: center; }
.site-footer strong { font-family: var(--serif); font-size: 23px; }
.site-footer span { padding-left: 13px; border-left: 1px solid var(--gold); color: #b8c8c2; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.site-footer a { color: #e9d5ae; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: auto 1fr auto; gap: 16px; }
  .main-nav { gap: 15px; overflow-x: auto; padding: 10px 4px 12px; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .wordmark small { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  .site-header { min-height: 72px; padding: 10px 14px; }
  .wordmark span { font-size: 17px; }
  .main-nav { order: 3; grid-column: 1 / -1; margin: -2px -14px -10px; padding: 11px 14px 14px; border-top: 1px solid rgba(181,147,85,.22); }
  .main-nav a { font-size: 10px; }
  .site-header > .button { grid-column: 3; grid-row: 1; }
  .button-small { min-height: 36px; padding: 8px 13px; font-size: 10px; }
  .page { min-height: calc(100vh - 112px); }
  .hero-page { padding-top: 18px; }
  .hero-frame { width: calc(100% - 28px); padding: 55px 22px; }
  .hero-frame h1 { font-size: clamp(47px, 15vw, 68px); }
  .wedding-home { min-height: calc(100svh - 150px); }
  .wedding-home h1 { font-size: clamp(49px, 14.5vw, 67px); }
  .wedding-home h1 span { display: block; margin: .11em 0; line-height: .55; }
  .wedding-date { width: 94%; gap: 12px; margin-top: 30px; }
  .wedding-date strong { font-size: 10px; }
  .wedding-location { font-size: 24px; }
  .hero-copy { font-size: 15px; }
  .monogram { width: 92px; height: 92px; }
  .guide-links { grid-template-columns: 1fr; }
  .section-shell { width: calc(100% - 24px); margin-top: 38px; padding: 31px 23px; }
  .page-intro { padding-top: 70px; }
  .page-intro h1 { font-size: clamp(40px, 12vw, 58px); }
  .hotel-card { padding: 20px; }
  .hotel-photo { max-width: 100%; max-height: 210px; margin-bottom: 17px; }
  .hotel-heading { display: block; }
  .hotel-card span { display: block; margin-top: 4px; white-space: normal; }
  .subsection-copy, .note-card, .last-note { padding: 25px 20px; }
  .map-image-link img { min-height: 340px; object-fit: cover; }
  .category-tabs { margin-right: -23px; }
  .qa-category h2 { font-size: 35px; }
  summary { padding: 20px 42px 20px 0; font-size: 18px; }
  details > div { padding-right: 0; }
  .collection article h3 { font-size: 20px; }
  [data-page="schedule"], [data-page="rsvp"] { padding: 22px 14px 55px; }
  .maintenance-card, .rsvp-card { min-height: 560px; padding: 55px 25px; }
  .site-footer { display: block; text-align: center; }
  .site-footer div { justify-content: center; margin-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
