/* Stay the Course · at the Pease Hastings House
   Victorian elegance: ivory, plum, antique gold, pine */

:root {
  --ivory: #F8F4EA;
  --parchment: #EFE7D6;
  --parchment-2: #E4D9C2;
  --plum: #43324E;
  --plum-2: #5A4568;
  --lavender: #A496B2;
  --gold: #B3925A;
  --gold-2: #C9AB74;
  --pine: #24382B;
  --ink: #241F2B;
  --muted: #6E6558;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, sans-serif;
  --maxw: 1160px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans); background: var(--ivory); color: var(--ink);
  line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, .display { font-family: var(--serif); font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.7rem, 6.6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

.kicker {
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; display: block; margin-bottom: 1.1rem;
}
.lede { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--muted); max-width: 60ch; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }

/* ornamental rule */
.orn { display: flex; align-items: center; gap: 14px; justify-content: center; margin: 1.6rem auto; color: var(--gold); }
.orn::before, .orn::after { content: ""; height: 1px; width: min(90px, 20vw); background: linear-gradient(to right, transparent, var(--gold)); }
.orn::after { background: linear-gradient(to left, transparent, var(--gold)); }
.orn svg { width: 22px; height: 22px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.92rem; padding: 0.95rem 2rem; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), background 0.25s, color 0.25s;
  white-space: nowrap; font-family: var(--sans);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn-plum { background: var(--plum); color: var(--ivory); }
.btn-plum:hover { background: var(--plum-2); }
.btn-gold { background: var(--gold); color: #2A2118; }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { border-color: rgba(248,244,234,0.55); color: var(--ivory); background: rgba(36,31,43,0.18); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(248,244,234,0.16); }
.btn-line { border-color: var(--gold); color: var(--plum); background: transparent; }
.btn-line:hover { background: rgba(179,146,90,0.12); }

/* nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background 0.4s, box-shadow 0.4s; }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 1rem var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav.scrolled { background: rgba(248,244,234,0.92); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(67,50,78,0.14); }
.brand { text-decoration: none; line-height: 1.15; }
.brand .b1 { font-family: var(--serif); font-size: 1.15rem; color: var(--ivory); display: block; }
.brand .b2 { font-size: 0.6rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; }
.nav.scrolled .brand .b1 { color: var(--plum); }
.nav-links { display: flex; align-items: center; gap: 1.7rem; list-style: none; }
.nav-links a:not(.btn) {
  font-size: 0.85rem; font-weight: 500; text-decoration: none; color: var(--ivory);
  text-shadow: 0 1px 10px rgba(20,16,26,0.5); position: relative; padding: 0.3rem 0;
}
.nav.scrolled .nav-links a:not(.btn) { color: var(--plum); text-shadow: none; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--gold); transition: width 0.3s; }
.nav-links a:not(.btn):hover::after { width: 100%; }
.nav-links .btn { padding: 0.62rem 1.3rem; font-size: 0.82rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ivory); margin: 5px 0; transition: 0.3s; }
.nav.scrolled .nav-toggle span { background: var(--plum); }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--ivory);
    flex-direction: column; align-items: flex-start; padding: 1.2rem var(--gutter) 1.6rem; gap: 1rem;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: 0.3s;
    box-shadow: 0 12px 24px rgba(36,31,43,0.14);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links.open a:not(.btn) { color: var(--plum); text-shadow: none; }
}

/* hero */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  align-items: center; text-align: center; position: relative; overflow: hidden;
  padding: 7rem var(--gutter) 8rem; color: var(--ivory);
}
.hero-photos { position: absolute; inset: 0; z-index: 0; background: #2A2231; }
.hero-photos figure, .hero-photos video { position: absolute; inset: 0; opacity: 0; transition: opacity 2.2s ease; }
.hero-photos figure.on, .hero-photos video.on { opacity: 1; }
.hero-photos img, .hero-photos video { width: 100%; height: 100%; object-fit: cover; }
.hero-photos figure.on img { animation: kenburns 10s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.11) translate(-1%, 0.8%); } }
.hero-tint { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgba(30,23,38,0.5), rgba(30,23,38,0.22) 45%, rgba(30,23,38,0.62)); pointer-events: none; }
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero .over { font-size: 0.72rem; letter-spacing: 0.34em; text-transform: uppercase; font-weight: 600; color: #EFE3C8; text-shadow: 0 1px 12px rgba(20,16,26,0.6); display: block; margin-bottom: 1.5rem; }
.hero h1 { text-shadow: 0 3px 30px rgba(20,16,26,0.5); }
.hero h1 .it { font-style: italic; color: var(--gold-2); }
.hero .lede { color: rgba(248,244,234,0.92); margin: 1.6rem auto 2.4rem; text-shadow: 0 1px 16px rgba(20,16,26,0.6); }
.hero-ctas { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.scroll-cue {
  position: absolute; bottom: 1.7rem; left: 50%; transform: translateX(-50%); z-index: 2;
  font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600;
  color: rgba(248,244,234,0.85); animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue { 0%,100% { transform: translate(-50%,0); opacity: 0.7; } 50% { transform: translate(-50%,6px); opacity: 1; } }

/* pillars */
.grid { display: grid; gap: clamp(1.1rem, 2.4vw, 2rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }

.card {
  background: #FFFDF6; border: 1px solid var(--parchment-2); border-radius: 4px;
  padding: 2rem; position: relative;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s;
}
.card::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(179,146,90,0.35); pointer-events: none; }
.card:hover { transform: translateY(-5px); box-shadow: 0 28px 55px -30px rgba(36,31,43,0.4); }
.card h3 { color: var(--plum); margin-bottom: 0.6rem; }
.card p { font-size: 0.94rem; color: var(--muted); }

.photo-card { padding: 0; overflow: hidden; }
.photo-card::before { display: none; }
.photo-card .img { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.photo-card .img img, .photo-card .img figure { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-card .img figure { opacity: 0; transition: opacity 1.8s; }
.photo-card .img figure.on { opacity: 1; }
.photo-card .body { padding: 1.5rem 1.7rem 1.7rem; }

.dyn-photo { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 3; border: 1px solid var(--parchment-2); }
.dyn-photo figure { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.dyn-photo figure.on { opacity: 1; }
.dyn-photo img { width: 100%; height: 100%; object-fit: cover; }
.dyn-photo figure.on img { animation: kenburns 9s ease-out forwards; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* itinerary */
.day-strip { border-left: 1px solid var(--parchment-2); margin-top: 3rem; }
.day {
  display: grid; grid-template-columns: 130px 1fr; gap: 1.6rem; padding: 1.9rem 0 1.9rem 2rem;
  position: relative; border-bottom: 1px solid var(--parchment-2);
}
.day:last-child { border-bottom: none; }
.day::before { content: ""; position: absolute; left: -5px; top: 2.5rem; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.day .when { font-family: var(--serif); font-size: 1.3rem; color: var(--plum); font-style: italic; }
.day h3 { font-size: 1.15rem; margin-bottom: 0.3rem; color: var(--plum); }
.day p { font-size: 0.94rem; color: var(--muted); max-width: 64ch; }
@media (max-width: 640px) { .day { grid-template-columns: 1fr; gap: 0.4rem; } }

/* dark estate band */
.band { background: var(--plum); color: var(--ivory); }
.band h2, .band h3 { color: var(--ivory); }
.band .lede { color: rgba(248,244,234,0.78); }
.band .kicker { color: var(--gold-2); }
.band .card { background: rgba(248,244,234,0.05); border-color: rgba(179,146,90,0.3); }
.band .card h3 { color: var(--ivory); }
.band .card p { color: rgba(248,244,234,0.72); }

blockquote { font-family: var(--serif); font-size: clamp(1.35rem, 2.7vw, 2rem); line-height: 1.35; color: var(--plum); max-width: 36ch; }
blockquote .attr { display: block; font-family: var(--sans); font-size: 0.84rem; color: var(--muted); margin-top: 1.2rem; }
.band blockquote { color: var(--ivory); }
.band blockquote .attr { color: var(--lavender); }

/* form */
.form-wrap {
  background: #FFFDF6; border: 1px solid var(--parchment-2); border-radius: 4px;
  padding: clamp(1.8rem, 4vw, 3rem); position: relative;
}
.form-wrap::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(179,146,90,0.35); pointer-events: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; position: relative; z-index: 1; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--plum); display: block; margin-bottom: 0.4rem; }
input, select, textarea {
  width: 100%; font-family: var(--sans); font-size: 0.95rem; color: var(--ink);
  background: var(--ivory); border: 1px solid var(--parchment-2); border-radius: 4px;
  padding: 0.85rem 1rem; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(179,146,90,0.18); }
textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 0.9rem; }
.form-success { text-align: center; padding: 3rem 1rem; display: none; }
.form-success.show { display: block; }
.form-success h3 { color: var(--plum); font-size: 1.7rem; margin-bottom: 0.6rem; }
.form-success p { color: var(--muted); max-width: 46ch; margin: 0 auto; }

/* footer */
footer { background: var(--ink); color: var(--ivory); padding: clamp(3.5rem, 7vw, 5rem) 0 2.4rem; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.4rem; margin-bottom: 3rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
footer h4 { font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 1rem; font-weight: 600; }
footer ul { list-style: none; }
footer li { margin-bottom: 0.55rem; font-size: 0.9rem; color: rgba(248,244,234,0.8); }
footer a { color: rgba(248,244,234,0.85); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--gold-2); }
.foot-brand { font-family: var(--serif); font-size: 1.5rem; }
.foot-brand small { display: block; font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-2); margin-top: 0.3rem; }
.foot-note { border-top: 1px solid rgba(248,244,234,0.16); padding-top: 1.6rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; font-size: 0.78rem; color: rgba(248,244,234,0.5); }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(.2,.8,.2,1), transform 0.8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.12s; } .reveal-d2 { transition-delay: 0.24s; } .reveal-d3 { transition-delay: 0.36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue { display: none; }
  .hero-photos figure.on img, .dyn-photo figure.on img { animation: none; }
  html { scroll-behavior: auto; }
}
