/* ==========================================================================
   Eris & Isaac — Wedding Site
   Palette and type sampled directly from the design PNGs.
   ========================================================================== */

:root {
  --navy:      #0b1722;   /* nav + footer bars */
  --page:      #ecefef;   /* page background   */
  --ink:       #34332c;   /* body copy         */
  --ink-soft:  #5b5a51;
  --rust:      #9c3b28;   /* typewriter accents */
  --rule:      #c9cdcd;

  --serif-display: "Playfair Display", "Didot", "Bodoni MT", Georgia, serif;
  --serif-body:    "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  --typewriter:    "Special Elite", "Courier New", Courier, monospace;

  --nav-h: 80px;
  --maxw: 1366px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

/* ---------- Nav ---------------------------------------------------------- */

.nav {
  background: var(--navy);
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(18px, 3.6vw, 56px);
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-family: var(--serif-display);
  font-size: clamp(15px, 1.35vw, 19px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible { border-bottom-color: #fff; }

.nav a[aria-current="page"] { border-bottom-color: rgba(255,255,255,0.65); }

/* Mobile nav toggle */
.nav-toggle { display: none; }

/* ---------- Hero band ---------------------------------------------------- */

.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1366 / 383;
  min-height: 190px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero--details        { background-image: url("../images/hero-details.jpg"); }
.hero--accommodations { background-image: url("../images/hero-accommodations.jpg"); }
.hero--faq            { background-image: url("../images/hero-faq.jpg"); }
.hero--registry       { background-image: url("../images/hero-details.jpg"); }

/* ---------- Layout ------------------------------------------------------- */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: 24px;
}

.section { padding-block: 56px; }

.narrow { max-width: 620px; margin-inline: auto; }

/* ---------- Typography --------------------------------------------------- */

h1, h2, h3 { font-weight: 400; margin: 0; }

.eyebrow-title {
  font-family: var(--serif-body);
  font-size: 26px;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 6px;
  margin-bottom: 28px;
}

.body-center { text-align: center; }

.body-center p { margin: 0 0 22px; }

.label {
  font-family: var(--serif-body);
  font-size: 20px;
  margin-bottom: 2px;
}

/* ---------- Footer ------------------------------------------------------- */

.footer {
  background: var(--navy);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  font-family: var(--serif-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
  text-align: center;
  padding: 40px 24px;
}

/* ---------- Reusable: polaroid ------------------------------------------- */

.polaroid {
  background: #fdfdfa;
  padding: 14px 14px 0;
  box-shadow: 0 10px 26px rgba(0,0,0,0.22);
  display: inline-block;
}

.polaroid img { width: 100%; }

.polaroid figcaption {
  font-family: var(--typewriter);
  font-size: 17px;
  text-align: center;
  padding: 14px 6px 18px;
  line-height: 1.45;
  color: #2e2d28;
}

/* ---------- Tape / pin accents ------------------------------------------- */

.tape {
  position: absolute;
  width: 118px;
  height: 34px;
  background: rgba(202,186,140,0.72);
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

/* ==========================================================================
   HOME — interactive collage
   ========================================================================== */

.home-body { background: #1c1a17; }

.collage {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  aspect-ratio: 1366 / 925;
  background: url("../images/home-bg.jpg") center / cover no-repeat;
}

/* Hotspots are positioned in % of the collage box so they scale with it. */
.hot {
  position: absolute;
  display: block;
  /* Empty links named via aria-label, so nothing can render as a tooltip.
     No hover/tap highlight: the collage art should look untouched. */
  -webkit-tap-highlight-color: transparent;
}

/* Keyboard users still need to see where they are, so keep a focus ring for
   :focus-visible only — it never appears for mouse or touch. */
.hot:focus-visible {
  outline: 2px solid rgba(255,255,255,0.9);
  outline-offset: 2px;
}

.hot--accom    { left: 3.4%;  top: 2.7%;  width: 22.8%; height: 32.5%; }
.hot--registry { left: 71.5%; top: 6.0%;  width: 21.5%; height: 22.5%; }
.hot--rsvp     { left: 31.3%; top: 21.6%; width: 34.0%; height: 43.0%; }
.hot--details  { left: 73.4%; top: 51.3%; width: 19.0%; height: 37.0%; }
.hot--faq      { left: 7.9%;  top: 68.5%; width: 22.5%; height: 25.0%; }

/* Fallback text nav for small screens / accessibility */
.collage-nav {
  background: var(--navy);
  padding: 18px 24px 26px;
}

.collage-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 900px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 34px;
}

.collage-nav a {
  color: #fff;
  text-decoration: none;
  font-family: var(--serif-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  padding-bottom: 3px;
}

.collage-nav a:hover { border-bottom-color: #fff; }

/* ==========================================================================
   DETAILS
   ========================================================================== */

.venue-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

.venue-copy { text-align: center; max-width: 560px; margin-inline: auto; }

.venue-copy p { margin: 0 0 20px; }

.chapel-shot {
  position: relative;
  padding-top: 34px;
  display: flex;
  justify-content: center;
}

.chapel-shot .polaroid {
  transform: rotate(3.2deg);
  max-width: 260px;
}

.chapel-shot .polaroid img {
  aspect-ratio: 300 / 322;
  object-fit: cover;
}

.clip {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-46%);
  width: 58px;
  height: 76px;
  z-index: 3;
}

.map-row {
  display: grid;
  grid-template-columns: minmax(0, 700px) minmax(220px, 300px);
  gap: 48px;
  align-items: end;
  justify-content: center;
  margin-top: 20px;
}

.map-row .note-cell { padding-bottom: 90px; }

.map-frame {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0,0,0,0.2);
}

.note {
  position: relative;
  background: #f4efe2;
  padding: 34px 26px 30px;
  font-family: var(--typewriter);
  font-size: 17px;
  line-height: 1.7;
  text-align: center;
  transform: rotate(2deg);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.note::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 120px;
  height: 34px;
  background: rgba(196,178,132,0.85);
}

.band {
  width: 100%;
  aspect-ratio: 1366 / 220;
  background: url("../images/band-farmhouse.jpg") center / cover no-repeat;
  margin-block: 30px;
}

/* Timeline */

.timeline-head { text-align: center; margin-bottom: 26px; }

.timeline-head .the {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-soft);
  display: block;
  margin-bottom: -2px;
}

.timeline-head h2 {
  font-family: var(--serif-display);
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
}

.timeline-intro {
  max-width: 430px;
  margin: 0 auto 34px;
  font-size: 13px;
  line-height: 1.85;
  text-align: justify;
  color: var(--ink-soft);
}

.timeline {
  max-width: 300px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.timeline li {
  border-top: 1px solid var(--rule);
  padding: 16px 0 14px;
  text-align: center;
}

.timeline li:last-child { border-bottom: 1px solid var(--rule); }

.timeline .time {
  font-family: var(--serif-display);
  font-size: 21px;
  letter-spacing: 0.02em;
  display: block;
}

.timeline .what {
  font-family: var(--serif-body);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
  margin-top: 4px;
}

/* ==========================================================================
   ACCOMMODATIONS
   ========================================================================== */

.intro-copy {
  max-width: 690px;
  margin: 0 auto 54px;
  text-align: center;
  font-size: 19px;
  line-height: 1.65;
}

.lodging {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 340px));
  justify-content: center;
  gap: 64px 120px;
  margin-bottom: 80px;
}

.lodging .polaroid { width: 100%; }

.lodging .polaroid img { aspect-ratio: 1 / 1; object-fit: cover; }

.lodging li:nth-child(1) .polaroid { transform: rotate(-2.2deg); }
.lodging li:nth-child(2) .polaroid { transform: rotate(1.8deg); }
.lodging li:nth-child(3) .polaroid { transform: rotate(-1.4deg); }
.lodging li:nth-child(4) .polaroid { transform: rotate(2.4deg); }

.lodging { list-style: none; padding: 0; }

/* Airbnb doily card */

.airbnb-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 70px;
  padding: 10px;
}

.airbnb-doily {
  position: relative;
  background: #dfe7eb;
  padding: 26px;
  filter: drop-shadow(0 12px 26px rgba(0,0,0,0.16));
  /* scalloped lace edge */
  -webkit-mask:
    radial-gradient(circle at 13px 13px, #000 11px, transparent 12px) 0 0 / 26px 26px,
    linear-gradient(#000 0 0) 13px 13px / calc(100% - 26px) calc(100% - 26px) no-repeat;
  mask:
    radial-gradient(circle at 13px 13px, #000 11px, transparent 12px) 0 0 / 26px 26px,
    linear-gradient(#000 0 0) 13px 13px / calc(100% - 26px) calc(100% - 26px) no-repeat;
  max-width: 600px;
  width: 100%;
}

.airbnb {
  position: relative;
  background: #f7f4ec;
  width: 100%;
  padding: 40px 44px 44px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.10);
}

.airbnb-stack {
  position: relative;
  max-width: 600px;
  width: 100%;
  transform: rotate(-1.2deg);
}

.airbnb-stack::after {
  content: "";
  position: absolute;
  top: -14px;
  right: 34px;
  width: 150px;
  height: 54px;
  background: rgba(190,172,120,0.92);
  transform: rotate(-8deg);
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  z-index: 4;
}

.airbnb h2 {
  font-family: var(--typewriter);
  font-size: 25px;
  text-align: center;
  margin-bottom: 20px;
}

.airbnb ul {
  font-family: var(--typewriter);
  font-size: 16.5px;
  line-height: 2;
  padding-left: 22px;
  margin: 0;
}

.airbnb a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fineprint {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  font-size: 15.5px;
  line-height: 1.6;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list { max-width: 1090px; margin: 0 auto; }

.faq-item { margin-bottom: 40px; }

.faq-item h2 {
  font-family: var(--serif-body);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.09em;
  margin-bottom: 10px;
}

.faq-item p {
  font-size: 18px;
  letter-spacing: 0.075em;
  line-height: 1.75;
  margin: 0 0 12px;
}

.faq-deco {
  position: absolute;
  pointer-events: none;
  opacity: 0.95;
}

.faq-section { position: relative; overflow: hidden; }

.faq-deco--butterfly { top: 30px;   right: 60px;  width: 88px; }
.faq-deco--bow       { top: 560px;  right: 112px; width: 86px; }
.faq-deco--camera    { top: 1035px; right: 52px;  width: 92px; }

@media (max-width: 1100px) { .faq-deco { display: none; } }

/* ==========================================================================
   RSVP
   ========================================================================== */

.rsvp-title {
  font-family: var(--typewriter);
  font-size: clamp(38px, 5vw, 52px);
  text-align: center;
  line-height: 1.05;
  margin: 46px 0 26px;
  color: #2e2d28;
}

.rsvp-title span { display: block; }
.rsvp-title .l2 { margin-left: 26px; }

.rsvp-lede {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 46px;
  font-size: 20px;
  line-height: 1.5;
}

.rsvp-form {
  max-width: 594px;
  margin: 0 auto 70px;
  font-family: var(--serif-body);
}

.field { margin-bottom: 34px; }

.field > label,
.fieldset-legend {
  display: block;
  font-size: 19px;
  color: #4a4a42;
  margin-bottom: 12px;
}

.req { color: #4a4a42; }

.rsvp-form input[type="text"],
.rsvp-form input[type="email"],
.rsvp-form input[type="number"],
.rsvp-form textarea {
  width: 100%;
  font-family: var(--serif-body);
  font-size: 18px;
  color: var(--ink);
  background: transparent;
  border: 1px solid #6e6e66;
  border-radius: 12px;
  padding: 14px 16px;
}

.rsvp-form textarea { min-height: 96px; resize: vertical; line-height: 1.5; }

.rsvp-form input::placeholder,
.rsvp-form textarea::placeholder { color: #9a9a91; }

.field-hint {
  font-size: 14.5px;
  color: #6f6f67;
  margin: 8px 2px 0;
  line-height: 1.45;
}

/* the count field is hidden when a guest declines */
#guestCountField[hidden] { display: none; }

.rsvp-form input:focus,
.rsvp-form textarea:focus {
  outline: 2px solid #2e2d28;
  outline-offset: 1px;
}

fieldset { border: 0; padding: 0; margin: 0 0 34px; }

.choice {
  display: block;
  background: #d8d8d6;
  border-radius: 12px;
  padding: 30px 24px;
  margin-bottom: 18px;
  cursor: pointer;
  font-size: 19px;
  color: #3a3a34;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.choice input { margin-right: 12px; accent-color: #2e2d28; }

.choice:hover { background: #cfcfcc; }

.choice:has(input:checked) {
  background: #c3c8c6;
  box-shadow: inset 0 0 0 2px #2e2d28;
}

.choice:has(input:focus-visible) { outline: 2px solid #2e2d28; outline-offset: 2px; }

.btn-rsvp {
  width: 100%;
  background: #fff;
  border: 0;
  border-radius: 999px;
  padding: 20px;
  font-family: var(--serif-body);
  font-size: 21px;
  color: #3a3a34;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: background 0.18s ease, transform 0.12s ease;
}

.btn-rsvp:hover { background: #f4f4f2; }
.btn-rsvp:active { transform: translateY(1px); }

.form-note {
  text-align: center;
  font-size: 13px;
  color: #6f6f67;
  margin-top: 14px;
}

.form-status {
  text-align: center;
  margin-top: 20px;
  font-size: 18px;
  min-height: 1.5em;
}

.form-status.ok    { color: #2f6b4f; }
.form-status.error { color: #8c3126; }

/* ==========================================================================
   REGISTRY
   ========================================================================== */

.registry-inner { text-align: center; max-width: 640px; margin: 0 auto; }

.registry-inner h1 {
  font-family: var(--serif-display);
  font-size: clamp(34px, 4.6vw, 54px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.registry-inner p { margin: 0 0 26px; }

.registry-links {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.registry-links a {
  font-family: var(--typewriter);
  font-size: 19px;
  color: var(--rust);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .venue-grid { grid-template-columns: 1fr; }
  .chapel-shot { padding-top: 16px; }
  .map-row { grid-template-columns: 1fr; gap: 34px; }
  .note { max-width: 420px; margin-inline: auto; }
  .lodging { gap: 48px 40px; }
}

@media (max-width: 680px) {
  body { font-size: 17px; }
  .lodging { grid-template-columns: minmax(0, 330px); }
  .airbnb { padding: 32px 26px 34px; }
  .airbnb ul { font-size: 15px; }
  .faq-item h2 { font-size: 19px; letter-spacing: 0.05em; }
  .faq-item p { font-size: 16.5px; letter-spacing: 0.04em; }
  .section { padding-block: 40px; }
  .footer { min-height: 140px; }
  /* Collage hotspots get too small to hit reliably — hide the art, show list nav */
  .collage { display: none; }
  .collage-nav { padding-block: 40px; }
  .collage-nav ul { flex-direction: column; align-items: center; gap: 20px; }
  .collage-nav a { font-size: 18px; }
}

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