:root {
  --ink: #11110f; --charcoal: #1b1b18; --ivory: #f3eee4; --cream: #e7dece;
  --stone: #afa99d; --amber: #bf9561;
  --serif: "Bodoni 72", Didot, "Iowan Old Style", "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 16px/1.6 var(--sans); text-rendering: optimizeLegibility; }
a { color: inherit; }
button, input { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 99; top: 1rem; left: 1rem; padding: .7rem 1rem; background: var(--ivory); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.kicker { margin: 0; text-transform: uppercase; letter-spacing: .29em; font-size: .68rem; font-weight: 700; }

.access-page { background: var(--ink); color: #f8f4ec; }
.access-shell { position: relative; min-height: 100svh; display: grid; place-items: center; isolation: isolate; overflow: hidden; }
.access-image, .access-veil { position: absolute; inset: 0; }
.access-image { z-index: -3; background: url("porto-douro.jpg") center 55% / cover no-repeat; filter: saturate(.72) contrast(1.06); animation: image-arrive 2.2s cubic-bezier(.2,.75,.2,1) both; }
.access-veil { z-index: -2; background: linear-gradient(180deg, rgba(8,8,7,.69), rgba(8,8,7,.82)), radial-gradient(circle at 50% 38%, transparent, rgba(0,0,0,.5)); }
.access-shell::after { content: ""; position: absolute; inset: 1.25rem; z-index: -1; border: 1px solid rgba(255,255,255,.19); pointer-events: none; }
.access-card { width: min(31rem, calc(100% - 4rem)); text-align: center; animation: copy-arrive 1s .25s ease both; }
.access-card .kicker { color: #d8c5a2; }
.access-card h1 { margin: 1.5rem 0 .8rem; font: 400 clamp(2rem,5vw,3rem)/1.05 var(--serif); letter-spacing: -.02em; }
.access-card h1 span { color: var(--amber); padding: 0 .18em; }
.access-card > p { margin: 0 0 2.5rem; color: rgba(255,255,255,.7); font: italic 1.05rem/1.5 var(--serif); }
.access-form { width: min(22rem,100%); margin: auto; text-align: left; }
.access-form label { display: block; margin-bottom: .45rem; color: rgba(255,255,255,.58); text-transform: uppercase; letter-spacing: .2em; font-size: .62rem; font-weight: 700; }
.access-control { display: grid; grid-template-columns: 1fr 3.3rem; border-bottom: 1px solid rgba(255,255,255,.55); }
.access-control input { min-width: 0; padding: .8rem .2rem .75rem; border: 0; outline: 0; color: #fff; background: transparent; letter-spacing: .24em; text-transform: uppercase; font-size: 1rem; }
.access-control button { display: grid; place-items: center; border: 0; color: #fff; background: transparent; cursor: pointer; }
.access-control button:hover { color: #d8c5a2; }
.access-control svg { width: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.35; }
.access-error { margin: .85rem 0 0 !important; color: #edc9b7 !important; font: .76rem/1.4 var(--sans) !important; }
.access-date { position: absolute; bottom: 2.1rem; left: 50%; margin: 0; transform: translateX(-50%); letter-spacing: .3em; font-size: .61rem; }

.site-header { position: fixed; z-index: 30; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 1.5rem clamp(1.4rem,4vw,4.5rem); color: #fff; transition: padding .3s, background .3s, color .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.scrolled { padding-top: 1rem; padding-bottom: 1rem; background: rgba(243,238,228,.96); color: var(--ink); border-color: rgba(17,17,15,.13); backdrop-filter: blur(14px); }
.couple-mark { text-decoration: none; font: 400 1.22rem/1 var(--serif); letter-spacing: .08em; }
.couple-mark i { color: var(--amber); font-weight: 400; }
.site-nav { display: flex; gap: clamp(1.15rem,2.5vw,2.6rem); }
.site-nav a { position: relative; text-decoration: none; text-transform: uppercase; letter-spacing: .18em; font-size: .63rem; font-weight: 700; }
.site-nav a::after { content: ""; position: absolute; left: 0; bottom: -.5rem; width: 100%; height: 1px; background: var(--amber); transform: scaleX(0); transform-origin: right; transition: transform .25s; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.menu-button { display: none; }

.title-frame { position: relative; min-height: 100svh; display: grid; place-items: center; isolation: isolate; overflow: hidden; color: #fff; background: var(--ink); }
.title-image, .title-veil { position: absolute; inset: 0; }
.title-image { z-index: -3; background: url("porto-douro.jpg") center 55% / cover no-repeat; filter: saturate(.83) contrast(1.02); animation: image-arrive 2s ease both; }
.title-veil { z-index: -2; background: linear-gradient(180deg, rgba(5,5,4,.47), rgba(5,5,4,.2) 45%, rgba(5,5,4,.61)); }
.title-frame::after { content: ""; position: absolute; inset: 5.7rem clamp(1.2rem,4vw,4.5rem) 2rem; border: 1px solid rgba(255,255,255,.18); }
.title-copy { position: relative; z-index: 1; width: calc(100% - 3rem); text-align: center; animation: copy-arrive 1.1s .18s ease both; }
.place, .date { margin: 0; text-transform: uppercase; letter-spacing: .31em; font-size: .68rem; font-weight: 700; }
.title-copy h1 { display: flex; align-items: center; justify-content: center; gap: clamp(.6rem,2vw,1.8rem); margin: 2.1rem 0 1.7rem; font: 400 clamp(4.5rem,10vw,10rem)/.8 var(--serif); letter-spacing: -.055em; text-shadow: 0 4px 35px rgba(0,0,0,.25); }
.title-copy h1 i { color: #e1c99f; font-size: .39em; font-weight: 400; }
.invitation-line { margin: 2.2rem 0 0; font: italic clamp(1.05rem,1.6vw,1.35rem)/1.5 var(--serif); }
.explore { position: absolute; z-index: 2; bottom: 3rem; left: 50%; transform: translateX(-50%); text-decoration: none; text-transform: uppercase; letter-spacing: .2em; font-size: .62rem; }
.explore span { margin-left: .55rem; color: #dec69e; }

.editorial-section { position: relative; padding: clamp(7rem,12vw,11rem) clamp(1.5rem,8vw,9rem); background: var(--ivory); }
.section-index { position: absolute; top: 2.5rem; right: clamp(1.5rem,8vw,9rem); color: rgba(17,17,15,.26); font: 400 .85rem var(--serif); }
.section-heading { display: grid; grid-template-columns: .45fr 1fr; gap: 1rem 5rem; align-items: end; }
.section-heading .kicker { align-self: start; padding-top: .7rem; color: #87683f; }
.section-heading h2, .stay h2, .travel h2, .reply h2 { margin: 0; max-width: 12ch; font: 400 clamp(3.3rem,7vw,7rem)/.94 var(--serif); letter-spacing: -.045em; }
.section-heading > p:last-child { grid-column: 2; max-width: 34rem; margin: 1rem 0 0; color: #625d54; font: italic 1.12rem/1.65 var(--serif); }
.itinerary { margin-top: 6rem; border-top: 1px solid rgba(17,17,15,.2); }
.day { display: grid; grid-template-columns: .43fr 1fr; gap: 5rem; padding: 3.5rem 0; border-bottom: 1px solid rgba(17,17,15,.2); }
.day-date { display: flex; align-items: baseline; gap: 1rem; font-family: var(--serif); }
.day-date span { font-size: clamp(4rem,7vw,7rem); line-height: .75; }
.day-date small { text-transform: uppercase; letter-spacing: .2em; font: 700 .64rem var(--sans); }
.day-name { margin: 0 0 .55rem; color: #87683f; text-transform: uppercase; letter-spacing: .2em; font-size: .64rem; font-weight: 700; }
.day h3 { margin: 0; font: 400 clamp(2rem,3.3vw,3.25rem)/1 var(--serif); }
.day-copy > p:last-child { max-width: 34rem; margin: 1.2rem 0 0; color: #625d54; }

.photo-section { min-height: 90vh; display: grid; grid-template-columns: 1.12fr .88fr; background: var(--charcoal); color: #f8f4ec; }
.stay-image { min-height: 42rem; background: linear-gradient(rgba(0,0,0,.08),rgba(0,0,0,.12)), url("porto-cellar.jpg") center / cover no-repeat; }
.stay-copy { align-self: center; padding: clamp(4rem,8vw,9rem); }
.stay-copy .kicker, .travel .kicker { color: #caa672; }
.stay h2 { margin-top: 1.5rem; }
.lede { max-width: 32rem; margin: 2rem 0 3rem; color: #c8c2b7; font: italic 1.15rem/1.65 var(--serif); }
.hotel-status { padding-top: 1.7rem; border-top: 1px solid rgba(255,255,255,.2); }
.hotel-status span { display: block; color: #caa672; text-transform: uppercase; letter-spacing: .19em; font-size: .63rem; font-weight: 700; }
.hotel-status strong { display: block; margin-top: .7rem; font: 400 1.9rem var(--serif); }
.hotel-status p { max-width: 26rem; color: #a9a399; }

.porto-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(3rem,8vw,8rem); align-items: start; margin-top: 6rem; }
.porto-figure { margin: 0; }
.porto-figure img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: saturate(.7) contrast(1.04); }
.porto-figure figcaption { margin-top: .75rem; color: #736d63; font: italic .85rem var(--serif); }
.porto-list article { display: grid; grid-template-columns: 2rem 1fr; gap: 1.5rem; padding: 1.7rem 0; border-bottom: 1px solid rgba(17,17,15,.18); }
.porto-list article:first-child { border-top: 1px solid rgba(17,17,15,.18); }
.porto-list article > span { color: #9a794f; font: italic .85rem var(--serif); }
.porto-list p { margin: 0 0 .3rem; color: #87683f; text-transform: uppercase; letter-spacing: .2em; font-size: .6rem; font-weight: 700; }
.porto-list h3 { margin: 0; font: 400 clamp(1.75rem,2.8vw,2.7rem)/1 var(--serif); }
.porto-list small { display: block; margin-top: .65rem; color: #6d675e; font-size: .85rem; }
.porto-note { margin: 4rem 0 0 50%; color: #6d675e; font: italic 1rem var(--serif); }

.travel { padding: clamp(7rem,12vw,11rem) clamp(1.5rem,8vw,9rem); color: #f6f1e8; background: #171714; }
.travel-inner { max-width: 92rem; margin: auto; }
.travel-heading { display: flex; justify-content: space-between; align-items: end; gap: 3rem; }
.travel-grid { display: grid; grid-template-columns: repeat(2,1fr); margin-top: 6rem; border-top: 1px solid rgba(255,255,255,.18); border-left: 1px solid rgba(255,255,255,.18); }
.travel-grid article { min-height: 17rem; padding: 2.5rem; border-right: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); }
.travel-grid p { margin: 0 0 3.5rem; color: #caa672; text-transform: uppercase; letter-spacing: .2em; font-size: .62rem; font-weight: 700; }
.travel-grid h3 { margin: 0 0 1rem; font: 400 clamp(1.65rem,2.6vw,2.5rem)/1.05 var(--serif); }
.travel-grid span { color: #aaa49b; }

.reply { position: relative; min-height: 86vh; display: grid; place-items: center; padding: 7rem 1.5rem; text-align: center; background: var(--ivory); overflow: hidden; }
.reply-card { max-width: 48rem; }
.reply .kicker { color: #87683f; }
.reply h2 { max-width: none; margin-top: 1.5rem; }
.reply-card > p:not(.kicker) { max-width: 36rem; margin: 2rem auto; color: #625d54; font: italic 1.12rem/1.65 var(--serif); }
.reply button { margin-top: 1rem; padding: 1.05rem 1.4rem; border: 1px solid rgba(17,17,15,.28); color: #7f786d; background: transparent; text-transform: uppercase; letter-spacing: .15em; font-size: .64rem; font-weight: 700; cursor: not-allowed; }
.reply-rule { position: absolute; width: min(42rem,78vw); aspect-ratio: 1; border: 1px solid rgba(145,107,63,.24); border-radius: 50%; }
.reply-rule::before, .reply-rule::after { content: ""; position: absolute; inset: 8%; border: 1px solid rgba(145,107,63,.12); border-radius: 50%; transform: rotate(31deg) scaleX(1.35); }
.reply-rule::after { transform: rotate(-31deg) scaleX(1.35); }
.reply-date { position: absolute; bottom: 2.5rem; letter-spacing: .26em; text-transform: uppercase; font-size: .61rem; }
.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: center; padding: 2rem clamp(1.5rem,4vw,4.5rem); color: #9d978e; background: var(--ink); font-size: .65rem; letter-spacing: .1em; }
.site-footer p { margin: 0; }
.site-footer p:nth-child(2) { text-transform: uppercase; letter-spacing: .2em; }
.credits { justify-self: end; max-width: 31rem; text-align: right; letter-spacing: 0; font-size: .58rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.75,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
@keyframes image-arrive { from { opacity: 0; transform: scale(1.035); } to { opacity: 1; transform: scale(1); } }
@keyframes copy-arrive { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 840px) {
  .site-header { padding: 1.15rem 1.2rem; }
  .site-header.scrolled { background: rgba(17,17,15,.97); color: #fff; border-color: rgba(255,255,255,.12); }
  .menu-button { display: grid; gap: .36rem; place-content: center; width: 2.6rem; height: 2.6rem; padding: 0; border: 0; color: inherit; background: transparent; }
  .menu-button span:not(.sr-only) { display: block; width: 1.3rem; height: 1px; background: currentColor; transition: transform .25s; }
  .menu-button[aria-expanded="true"] span:nth-child(2) { transform: translateY(.21rem) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-.21rem) rotate(-45deg); }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; gap: 0; padding: 1rem 1.25rem 1.5rem; color: #fff; background: rgba(17,17,15,.97); border-bottom: 1px solid rgba(255,255,255,.12); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .8rem 0; }
  .title-image { background-position: 62% center; }
  .title-veil { background: linear-gradient(180deg, rgba(5,5,4,.58), rgba(5,5,4,.19) 42%, rgba(5,5,4,.66)); }
  .title-frame::after { inset: 4.8rem .9rem 1rem; }
  .title-copy h1 { flex-direction: column; gap: .06em; font-size: clamp(4.5rem,21vw,7.2rem); line-height: .68; margin: 2.2rem 0 2rem; }
  .title-copy h1 i { font-size: .34em; margin: .24em 0; }
  .place, .date { font-size: .6rem; letter-spacing: .27em; }
  .invitation-line { width: 80%; margin: 2rem auto 0; }
  .explore { bottom: 2.2rem; }
  .section-heading, .day { grid-template-columns: 1fr; gap: 1.2rem; }
  .section-heading > p:last-child { grid-column: 1; }
  .itinerary { margin-top: 4rem; }
  .day { padding: 2.7rem 0; }
  .day-date span { font-size: 4rem; }
  .photo-section { grid-template-columns: 1fr; }
  .stay-image { min-height: 60vh; }
  .stay-copy { padding: 5.5rem 1.5rem; }
  .porto-layout { grid-template-columns: 1fr; gap: 4rem; margin-top: 4rem; }
  .porto-note { margin-left: 0; }
  .travel-heading { display: block; }
  .travel-heading h2 { margin-top: 1.3rem; }
  .travel-grid { grid-template-columns: 1fr; margin-top: 4rem; }
  .travel-grid article { min-height: 14rem; }
  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .credits { justify-self: center; text-align: center; }
}
@media (max-width: 460px) {
  .access-shell::after { inset: .75rem; }
  .access-image { background-position: 65% center; }
  .access-card { width: calc(100% - 3.2rem); }
  .access-card h1 { font-size: 2.25rem; }
  .title-copy { transform: translateY(-1rem); }
  .editorial-section, .travel { padding-left: 1.25rem; padding-right: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
