/* liamandkatherine.com: design tokens and components per DESIGN.md */

:root {
  --cream: #f8f4ea;
  --paper: #fdfbf4;
  --ink: #3b352c;
  --ink-soft: #6b6355;
  --gold: #a3823f;
  --gold-soft: #c2a468;
  --blush: #c98d84;
  --periwinkle: #7f92c0;
  --olive: #86865c;
  --terracotta: #b96f4a;
  --line: #e2d9c4;
  --ease: 160ms ease;
  --measure: 44rem;
  --shadow-deep: 0 20px 50px rgba(59, 53, 44, 0.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.1875rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  background-image: radial-gradient(rgba(163, 130, 63, 0.045) 1px, transparent 1px);
  background-size: 5px 5px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, .display {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  line-height: 1.2;
}

/* The signature small-caps treatment */
.sc {
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.18em;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--ease);
}
a:hover { color: var(--terracotta); }

.amp {
  font-style: italic;
  color: var(--gold);
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.container {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.measure { max-width: var(--measure); }
.measure p + p { margin-top: 1rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: 'EB Garamond', Georgia, serif;
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  padding: 0.7rem 1.9rem;
  border-radius: 2px;
  border: 1px solid var(--gold);
  transition: background-color var(--ease), color var(--ease), border-color var(--ease);
  cursor: pointer;
}
.btn-solid {
  background: var(--gold);
  color: var(--paper);
}
.btn-solid:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--paper);
}
.btn-ghost {
  background: transparent;
  color: var(--gold);
}
.btn-ghost:hover {
  background: var(--gold);
  color: var(--paper);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 244, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  max-width: 90rem;
  margin: 0 auto;
}

.monogram {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  white-space: nowrap;
}
.monogram:hover { color: var(--ink); }
.monogram .amp { font-size: 1.15rem; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.site-nav a.nav-link {
  font-size: 0.92rem;
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.16em;
  color: var(--ink);
  padding-bottom: 0.2rem;
  border-bottom: 1px solid transparent;
}
.site-nav a.nav-link:hover { color: var(--terracotta); }
.site-nav a.nav-link.active {
  color: var(--ink);
  border-bottom-color: var(--gold);
}
.nav-rsvp { font-size: 0.85rem; padding: 0.5rem 1.3rem; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  background: var(--paper);
}
.lang-toggle:hover { border-color: var(--gold-soft); color: var(--ink); }
.lang-toggle .flag { font-size: 0.95rem; line-height: 1; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}

/* Textile band */
.band {
  height: 14px;
  background-image: url('/assets/band.svg');
  background-repeat: repeat-x;
  background-size: auto 100%;
  opacity: 0.85;
}
.band-footer {
  height: 22px;
  opacity: 1;
}

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

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 3.5rem 1.5rem 3rem;
  margin-top: 4rem;
}
.site-footer .footer-monogram {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.7rem;
  letter-spacing: 0.14em;
}
.site-footer .footer-note {
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 0.9rem;
}
.site-footer .footer-fine {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.22em;
  color: var(--gold);
}

/* ---------- Shared page scaffolding ---------- */

.page-head { padding: 4rem 0 0; }
.page-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.18em;
  font-weight: 500;
}
.page-intro { margin-top: 1.6rem; max-width: var(--measure); }
.page-intro p + p { margin-top: 1rem; }

.section {
  padding: 3.5rem 0;
}
.section + .section { border-top: 1px solid var(--line); }

.section-heading {
  font-size: 1.55rem;
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  margin-bottom: 1.4rem;
}

.muted { color: var(--ink-soft); }
.italic { font-style: italic; }

/* ---------- Home: hero ---------- */

.hero { padding-top: 4.5rem; padding-bottom: 4rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-kicker {
  font-size: 0.9rem;
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.22em;
  color: var(--gold);
}
.hero-names {
  margin-top: 1.4rem;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  line-height: 1.15;
}
.hero-names .joiner {
  font-style: italic;
  font-variant: normal;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--gold);
  font-size: 0.55em;
  margin-right: 0.35rem;
}
.hero-date {
  margin-top: 1.3rem;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-soft);
}
.hero-buttons {
  margin-top: 2.2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Gallery-mat photo frame */
.mat {
  background: var(--paper);
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow-deep);
}
.mat img {
  border: 1px solid var(--gold-soft);
  width: 100%;
}

/* ---------- Home: story gallery ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.split .text p + p { margin-top: 1rem; }

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.gallery figure {
  overflow: hidden;
  border-radius: 2px;
}
.gallery figure.wide { grid-column: 1 / -1; }
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
  transition: transform 400ms ease;
}
.gallery figure.wide img { aspect-ratio: 3 / 2; }
.gallery figure:hover img { transform: scale(1.04); }

/* ---------- Home: essentials cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1.8rem 1.6rem;
  transition: transform var(--ease), box-shadow var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(59, 53, 44, 0.12);
}
.card h3 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.2em;
  font-weight: 500;
}
.card p { margin-top: 0.8rem; color: var(--ink-soft); font-size: 1.05rem; }
.card .read-more {
  display: inline-block;
  margin-top: 1rem;
  font-style: italic;
  font-size: 1rem;
}

/* ---------- Home: RSVP banner ---------- */

.rsvp-banner {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 4rem 1.5rem;
  margin-top: 3.5rem;
}
.rsvp-banner h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.16em;
}
.rsvp-banner p {
  margin: 1.2rem auto 0;
  max-width: 34rem;
  color: var(--ink-soft);
}
.rsvp-banner .btn { margin-top: 1.8rem; }

/* ---------- Schedule ---------- */

.photo-banner {
  position: relative;
  height: clamp(280px, 42vw, 480px);
  overflow: hidden;
}
.photo-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Grade the photo toward the site palette: muted, warm, hand-tinted-postcard feel */
  filter: sepia(0.38) saturate(0.52) contrast(0.9) brightness(1.02);
}
.photo-banner .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(59, 53, 44, 0.38), rgba(59, 53, 44, 0.52));
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: clamp(2.2rem, 7vw, 5.5rem);
}
.photo-banner h1 {
  color: #fdfbf4;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.3em;
  font-weight: 500;
  text-align: center;
  padding: 0 1rem;
}
.photo-banner .credit {
  position: absolute;
  right: 0.9rem;
  bottom: 0.6rem;
  font-size: 0.72rem;
  font-style: italic;
  color: rgba(253, 251, 244, 0.85);
}

.timeline {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.tl-event {
  display: grid;
  grid-template-columns: 11rem 2.5rem 1fr;
  align-items: start;
}
.tl-when {
  text-align: right;
  padding-top: 0.2rem;
}
.tl-when .day {
  font-size: 0.85rem;
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.tl-when .time {
  margin-top: 0.5rem;
  font-style: italic;
  color: var(--ink-soft);
}
.tl-rail {
  position: relative;
  align-self: stretch;
}
.tl-rail::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: -3rem;
  width: 1px;
  background: var(--gold-soft);
  transform: translateX(-50%);
}
.tl-event:last-child .tl-rail::before { bottom: 0; }
.tl-rail::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0.45rem;
  width: 9px;
  height: 9px;
  background: var(--gold);
  transform: translateX(-50%) rotate(45deg);
}
.tl-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 2rem 2.2rem;
  box-shadow: 0 8px 24px rgba(59, 53, 44, 0.06);
}
.tl-card h2 {
  font-size: 1.7rem;
  font-weight: 500;
}
.tl-card .venue { margin-top: 1rem; font-weight: 600; }
.tl-card .address { color: var(--ink); }
.tl-card .dress {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.22em;
  color: var(--periwinkle);
}
.tl-card .note { margin-top: 0.9rem; color: var(--ink-soft); }
.tl-card .map-link {
  display: inline-block;
  margin-top: 1rem;
  font-style: italic;
}

/* ---------- Travel accordions ---------- */

.acc-group { margin-top: 3rem; }
.acc-group > h2 {
  font-size: 1.1rem;
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.24em;
  color: var(--gold);
  font-weight: 500;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.acc {
  border-bottom: 1px solid var(--line);
}
.acc summary {
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  padding: 1.3rem 0.2rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 500;
  transition: color var(--ease);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--terracotta); }
.acc summary::after {
  content: '+';
  color: var(--gold);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.acc[open] summary::after { content: '−'; }
.acc .acc-body {
  padding: 0 0.2rem 1.5rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}
.acc .acc-body p + p { margin-top: 1rem; }

/* ---------- Hotels ---------- */

.hotel-cards { display: flex; flex-direction: column; gap: 1.6rem; margin-top: 3rem; }
.hotel-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 2.2rem 2.4rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 2.5rem;
  align-items: center;
}
.hotel-card .tier {
  font-size: 0.8rem;
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.24em;
  color: var(--periwinkle);
}
.hotel-card h2 { font-size: 1.8rem; font-weight: 500; margin-top: 0.5rem; }
.hotel-card .address { font-style: italic; color: var(--ink-soft); margin-top: 0.5rem; }
.hotel-card .desc { margin-top: 1rem; max-width: 48rem; }
.hotel-outro { margin-top: 2.6rem; font-style: italic; color: var(--ink-soft); max-width: var(--measure); }

/* ---------- Guide pages (Things to Do, Cuisine) ---------- */

.guide-section { margin-top: 3.2rem; max-width: 58rem; }
.guide-section > h2 {
  font-size: 1.1rem;
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.24em;
  color: var(--gold);
  font-weight: 500;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.guide-section .section-note {
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 0.9rem;
}
.guide-entry { margin-top: 1.8rem; }
.guide-entry h3 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
}
.guide-entry p { margin-top: 0.45rem; color: var(--ink-soft); }

/* ---------- Q & A ---------- */

.qa-list { margin-top: 2.5rem; max-width: 52rem; }
.qa-item { padding: 1.7rem 0; border-bottom: 1px solid var(--line); }
.qa-item:first-child { border-top: 1px solid var(--line); }
.qa-item h2 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
}
.qa-item p { margin-top: 0.55rem; color: var(--ink-soft); }

/* ---------- RSVP ---------- */

.rsvp-page { padding-top: 4.5rem; padding-bottom: 4.5rem; }
.rsvp-page .page-title { text-align: center; }
.rsvp-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  max-width: 40rem;
  margin: 3rem auto 0;
  padding: 3rem 2.8rem;
  text-align: center;
}
.rsvp-panel p + p { margin-top: 1.1rem; }
.rsvp-panel .btn { margin-top: 2rem; }
.rsvp-panel .help {
  margin-top: 1.6rem;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .cards { grid-template-columns: 1fr; }
  .hotel-card { grid-template-columns: 1fr; }
  .hotel-card .btn { justify-self: start; }
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 1.2rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1.6rem 1.5rem 2rem;
    text-align: center;
    box-shadow: 0 18px 34px rgba(59, 53, 44, 0.1);
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }

  .tl-event {
    grid-template-columns: 2rem 1fr;
  }
  .tl-when {
    grid-column: 2;
    text-align: left;
    order: -1;
    padding-bottom: 0.7rem;
  }
  .tl-rail { grid-row: 1 / span 2; grid-column: 1; }
  .tl-rail::after { top: 0.45rem; left: 50%; }

  .gallery { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 3rem; }
  .rsvp-panel { padding: 2.4rem 1.6rem; }
}
