/* ============================================================
   the good house — event page styles
   Mobile-first (designed at 390px), scales up at 640px / 960px.
   ============================================================ */

:root {
  /* BRAND PALETTE — hex values read from an image of the brand
     guide, PENDING CONFIRMATION against the source design file.
     Correct them here and the whole page updates. */
  --terracotta: #B86E4B;   /* accent only: buttons, rules, labels */
  --dusty-clay: #C79B84;   /* primary brand bg for feature sections */
  --olive:      #7B7F5B;   /* accent only */
  --sandstone:  #9BB19B;   /* quiet secondary */
  --cashmere:   #D8CCC2;   /* soft background */
  --sage-gray:  #9FA5B8;   /* quiet secondary */
  --off-white:  #E8E2D6;   /* background */
  --warm-white: #F3EFE6;   /* primary page background */

  /* Derived — dark warm ink for high-contrast text everywhere */
  --ink:        #33291F;
  --ink-soft:   #4E4337;

  /* SWAP TO CANELA / NEUE MONTREAL BEFORE LAUNCH */
  --font-display: "Cormorant Garamond", "Canela", Georgia, serif;
  --font-body:    "Archivo", "Neue Montreal", -apple-system, Helvetica, Arial, sans-serif;
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--warm-white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }

/* ---------- shared ---------- */
.container {
  width: 100%;
  max-width: 60rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.container.narrow { max-width: 38rem; }

.section { padding-block: 4rem; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 1rem;
  text-transform: lowercase;
}
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
}

.wordmark {
  font-family: var(--font-display);
  text-transform: lowercase;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
}

.btn {
  display: inline-block;
  background: var(--terracotta);
  color: #FFFDF8;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 2.2rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.btn:hover { background: #A05C3C; }
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--olive);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- hero ---------- */
.hero {
  min-height: 88svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--warm-white);
}
/* Warm-white scrim keeps hero text dark-on-light per brand rules */
.hero.has-photo {
  background: linear-gradient(rgba(243,239,230,0.86), rgba(243,239,230,0.86)),
              url("assets/hero.jpg") center / cover no-repeat;
}
.hero .wordmark {
  font-size: 0.85rem;
  font-family: var(--font-body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.event-title {
  font-size: clamp(3.25rem, 14vw, 6.5rem);
  margin: 0.5rem 0 0.75rem;
}
.hero-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}
.hero-date {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2.25rem;
}

/* ---------- experience ---------- */
.experience {
  background: var(--off-white);
  text-align: center;
}
.experience p {
  color: var(--ink-soft);
  max-width: 34rem;
  margin-inline: auto;
}
.experience p:not(:last-of-type) { margin-bottom: 1.25rem; }
.experience-photo {
  margin: 2.5rem auto 0;
  border-radius: 0.5rem;
}

/* ---------- schedule ---------- */
.schedule { background: var(--warm-white); }
.schedule-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.schedule-list li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  padding-block: 1.25rem;
}
.schedule-list li + li { border-top: 1px solid var(--cashmere); }
.schedule-time {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  padding-top: 0.35rem;
  white-space: nowrap;
}
.schedule-item h3 { margin-bottom: 0.25rem; }
.schedule-item p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- guide ---------- */
.guide { background: var(--dusty-clay); }
.guide .eyebrow { color: var(--ink); }
.guide-layout {
  display: grid;
  gap: 2rem;
  margin-top: 1.5rem;
}
.guide-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 0.5rem;
  object-fit: cover;
  object-position: center 20%; /* keep her face in frame in the 4:5 crop */
}
.guide-bio p { color: var(--ink); }
.pull-quote {
  margin: 1.75rem 0 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--terracotta);
}
.pull-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.5;
}
.pull-quote cite {
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

/* ---------- good to know ---------- */
.good-to-know { background: var(--warm-white); }
.gtk-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}
.gtk-list h3 { color: var(--ink); }
.gtk-list h3::after {
  content: "";
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--olive);
  margin-top: 0.4rem;
}
.gtk-list p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- rsvp ---------- */
.rsvp { background: var(--cashmere); }
.rsvp-subline {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  margin-bottom: 0.35rem;
}
.field .optional { color: var(--ink-soft); letter-spacing: 0.02em; }
.req { color: var(--terracotta); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--warm-white);
  border: 1px solid var(--sandstone);
  border-radius: 0.375rem;
  padding: 0.75rem 0.9rem;
}
.field textarea { resize: vertical; }
.field input::placeholder { color: var(--sage-gray); }
.field-error {
  color: #8A3B22;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}
.field input[aria-invalid="true"] { border-color: #8A3B22; }
.btn-submit { width: 100%; margin-top: 0.5rem; }
.form-status { margin-top: 1rem; font-size: 0.95rem; }
.form-status.error { color: #8A3B22; }

.rsvp-success {
  text-align: center;
  padding: 2.5rem 1rem;
}
.rsvp-success h3 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}
.rsvp-success .tagline { font-size: 1.15rem; }
.success-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 1.5rem;
}

/* ---------- footer ---------- */
.footer {
  background: var(--off-white);
  border-top: 1px solid var(--cashmere);
  padding-block: 3rem;
  text-align: center;
  font-size: 0.9rem;
}
.footer address { font-style: normal; margin-bottom: 0.75rem; }
.footer a { color: var(--ink); text-underline-offset: 3px; }
.footer .footer-links { margin-bottom: 1.25rem; }
.footer .tagline { font-size: 1rem; }

/* ---------- scroll reveal (subtle, optional) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/* no-JS fallback: content is never hidden if script fails to load */
.no-observer .reveal { opacity: 1; transform: none; }

/* ---------- larger screens ---------- */
@media (min-width: 640px) {
  .section { padding-block: 5.5rem; }
  h2 { font-size: 2.5rem; }
  .gtk-list { grid-template-columns: repeat(2, 1fr); gap: 2.25rem; }
  .btn-submit { width: auto; }
}

@media (min-width: 960px) {
  .guide-layout {
    grid-template-columns: minmax(0, 320px) 1fr;
    gap: 3.5rem;
    align-items: start;
  }
  .gtk-list { grid-template-columns: repeat(4, 1fr); }
}
