/* Allie & Jeremy — shared design system
   Serif, black-on-white, generous whitespace — matches the look of the
   couple's original Zola site.

   Palette: "Lake Como Romance" — Dusty Blue, Olive, Stone, Champagne, Ivory.
   Olive and Ivory are the two text colors (dark-on-light / light-on-dark,
   per the reference swatches); Champagne and Stone are surface/border
   tones; Dusty Blue is a small accent (the "&", countdown dividers). */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,500&family=Quicksand:wght@300;400;500;600&family=Alex+Brush&display=swap');

:root {
  --ink: #49523c;          /* deep olive — primary text on light tones, tuned for real contrast */
  --paper: #FAF7F2;         /* Ivory — light backgrounds, and text on dark tones */
  --muted: #586248;         /* deep olive, a touch lighter — secondary/meta text */
  --line: #C8C0B5;          /* Stone — borders and dividers */
  --crocodile: #49523c;     /* deep olive — headings, buttons, links, accent text */
  --tan: #ffffff;           /* white — page background */
  --olive: #7A8864;         /* Olive — dark contrast section background (bg-olive) */
  --champagne: #E5D5BC;     /* Champagne — alternating section background, card/surface fill */
  --stone: #C8C0B5;         /* Stone — alternating section background */
  --dusty-blue: #A9BDD1;    /* Dusty Blue — small accent only (countdown dividers) */
  --max-width: 880px;
  --serif-display: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --serif-body: 'Quicksand', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --script: 'Alex Brush', 'Brush Script MT', cursive;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

main {
  width: 100%;
}

.section {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

body {
  margin: 0;
  background: var(--tan);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Faint paper-grain texture over the whole page, so it reads a little more
   like card stock than a plain web page. Kept very subtle on purpose. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  background: var(--tan);
  border-bottom: 1px solid var(--line);
}

.monogram-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.monogram-text {
  font-family: var(--script);
  font-size: 34px;
  line-height: 1;
  color: var(--crocodile);
  opacity: 0.85;
}

.monogram-img {
  height: 48px;
  width: auto;
  display: block;
}

.nav-wrapper {
  position: relative;
}

.nav-toggle {
  background: none;
  border: 1px solid var(--crocodile);
  color: var(--crocodile);
  font-family: var(--serif-body);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, color 0.15s;
}

.nav-toggle:hover {
  background: var(--crocodile);
  color: var(--paper);
}

.nav-chevron {
  font-size: 11px;
  transition: transform 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
}

.site-nav {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  flex-direction: column;
  min-width: 210px;
  background: var(--tan);
  border: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(0,0,0,0.10);
}

.site-nav.open {
  display: flex;
}

.site-nav a {
  font-family: var(--serif-body);
  font-size: 17px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  transition: color 0.12s, background 0.12s;
}

.site-nav a:last-child {
  border-bottom: none;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--crocodile);
  background: rgba(122,136,100,0.08);
}

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

.hero {
  position: relative;
  text-align: center;
  padding: 90px 24px 70px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  bottom: 30px;
  width: 90px;
  height: 200px;
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: contain;
  opacity: 0.38;
  pointer-events: none;
}

.hero::before {
  left: 18px;
  background-image: url("../images/heron-standing-dark.png");
}

.hero::after {
  right: 18px;
  background-image: url("../images/heron-branch-dark.png");
  transform: scaleX(-1);
}

@media (max-width: 760px) {
  .hero::before,
  .hero::after { display: none; }
}

.hero .eyebrow {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: clamp(15px, 2vw, 18px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.hero .names {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.hero-illustration {
  max-width: 680px;
  width: 92%;
  margin: 44px auto 0;
}

.hero .amp {
  display: block;
  font-size: clamp(24px, 4vw, 36px);
  font-style: italic;
  margin: 18px 0;
  font-family: var(--serif-body);
  color: var(--crocodile);
}

.hero .date {
  margin-top: 56px;
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: 0.02em;
}

.hero .date-note {
  margin-top: 6px;
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0.03em;
  color: var(--crocodile);
}

.hero .location {
  margin-top: 6px;
  color: var(--muted);
  font-size: 19px;
}

/* Countdown — quiet editorial numerals, no chrome */

.countdown {
  margin-top: 52px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.countdown .unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 26px;
  border-right: 1px solid var(--dusty-blue);
}

.countdown .unit:last-child {
  border-right: none;
}

.countdown .num {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 36px;
  line-height: 1;
  color: var(--crocodile);
  font-variant-numeric: tabular-nums;
  transition: opacity 0.4s ease;
}

.countdown .label {
  margin-top: 9px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.countdown .unit.tick .num {
  opacity: 0.55;
}

@media (max-width: 600px) {
  .countdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 0;
    justify-items: center;
  }
  .countdown .unit {
    border-right: none;
    padding: 0;
  }
  .countdown .num { font-size: 28px; }
  .countdown .label { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .countdown .num { transition: none; }
}

/* ---------- Page sections ---------- */

.page-section {
  position: relative;
  width: 100%;
  scroll-margin-top: 84px;
}

/* Margin herons — one quiet accent per section, alternating sides */
#rsvp::before,
#lodging::before,
#registry::before,
#photos::before,
#guestbook::before,
#faq::before {
  content: "";
  position: absolute;
  top: 78px;
  width: 52px;
  height: 118px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.3;
  pointer-events: none;
}

#rsvp::before      { right: 24px; background-image: url("../images/heron-drinking-dark.png"); }
#lodging::before   { left: 24px;  background-image: url("../images/heron-standing-light.png"); }
#registry::before  { right: 24px; background-image: url("../images/heron-branch-dark.png"); transform: scaleX(-1); }
#photos::before    { left: 24px;  background-image: url("../images/heron-drinking-dark.png"); transform: scaleX(-1); }
#guestbook::before { right: 24px; background-image: url("../images/heron-standing-dark.png"); transform: scaleX(-1); }
#faq::before        { left: 24px;  background-image: url("../images/heron-branch-light.png"); }

@media (max-width: 900px) {
  #rsvp::before,
  #lodging::before,
  #registry::before,
  #photos::before,
  #guestbook::before,
  #faq::before {
    display: none;
  }
}

.bg-tan   { background: var(--champagne); }
.bg-white { background: #ffffff; }
.bg-stone { background: var(--stone); }
.bg-dusty { background: var(--dusty-blue); }
.bg-olive { background: var(--olive); color: var(--paper); }

/* Dark olive section — override all child text/element colors */
.bg-olive .section-header h1       { color: var(--paper); }
.bg-olive .section-header p        { color: rgba(250,247,242,0.85); }
.bg-olive h2                       { color: var(--paper); }
.bg-olive .section h2              { color: var(--paper); }
.bg-olive p,
.bg-olive .meta                    { color: rgba(250,247,242,0.85); }
.bg-olive .muted,
.bg-olive [style*="color:var(--muted)"] { color: rgba(250,247,242,0.85) !important; }
.bg-olive .story-label             { color: rgba(250,247,242,0.75); }
.bg-olive .faq-item h3             { color: var(--paper); }
.bg-olive .faq-item p              { color: rgba(250,247,242,0.85); }
.bg-olive .card {
  background: rgba(250,247,242,0.12);
  border-color: rgba(250,247,242,0.25);
}
.bg-olive .card h3                 { color: var(--paper); }
.bg-olive .card .meta              { color: rgba(250,247,242,0.85); }
.bg-olive .card a.btn,
.bg-olive a.btn {
  border-color: rgba(250,247,242,0.7);
  color: var(--paper);
}
.bg-olive .card a.btn:hover,
.bg-olive a.btn:hover {
  background: rgba(250,247,242,0.18);
}
.bg-olive .field label             { color: rgba(250,247,242,0.8); }
.bg-olive .field input,
.bg-olive .field textarea,
.bg-olive .field select {
  background: rgba(250,247,242,0.12);
  border-color: rgba(250,247,242,0.3);
  color: var(--paper);
}
.bg-olive .guestbook-entry         { border-bottom-color: rgba(250,247,242,0.2); }
.bg-olive .gb-name                 { color: var(--paper); }
.bg-olive .gb-message              { color: rgba(250,247,242,0.9); }
.bg-olive .gb-date                 { color: rgba(250,247,242,0.7); }
.bg-olive .form-status.ok          { color: #a8d8a8; }
.bg-olive .form-status.err         { color: #f4a0a0; }
.bg-olive .placeholder-flag {
  background: rgba(250,247,242,0.1);
  border-color: rgba(250,247,242,0.25);
  color: rgba(250,247,242,0.8);
}
.bg-olive button.btn {
  background: rgba(250,247,242,0.18);
  border-color: rgba(250,247,242,0.6);
  color: var(--paper);
}
.bg-olive button.btn:hover { background: rgba(250,247,242,0.3); }
.bg-olive .photo-empty             { border-color: rgba(250,247,242,0.25); color: rgba(250,247,242,0.8); }

.section-header {
  text-align: center;
  padding: 56px 24px 8px;
}

.section-header h1 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 46px);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 10px;
  color: var(--crocodile);
}

.section-header p {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}


.section {
  padding: 48px 24px;
}

.section + .section {
  position: relative;
}

.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100px;
  height: 58px;
  transform: translate(-50%, -50%);
  background-image: url("../images/heron-divider-dark.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100px auto;
}

.bg-olive.section + .bg-olive.section::before,
.bg-olive .section + .section::before {
  background-image: url("../images/heron-divider-light.png");
}

.section + .section.no-divider::before {
  content: none;
}

/* Standalone divider — same heron ornament, usable anywhere without
   needing two adjacent .section siblings */
.squiggle {
  width: 100px;
  height: 58px;
  margin: 2px auto 0;
  background-image: url("../images/heron-divider-dark.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100px auto;
}

.bg-olive .squiggle {
  background-image: url("../images/heron-divider-light.png");
}

.section h2 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 26px;
  text-align: center;
  margin: 0 0 28px;
}

.card {
  border: 1px solid var(--line);
  padding: 32px;
  text-align: center;
  margin-bottom: 24px;
  background: rgba(229,213,188,0.55);
}

.card h3 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 8px;
}

.card .meta {
  color: var(--muted);
  font-size: 17px;
  margin: 2px 0;
}

.card a.btn,
a.btn {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 26px;
  border: 1px solid var(--crocodile);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--crocodile);
  transition: background 0.15s ease, color 0.15s ease;
}

a.btn:hover {
  background: var(--crocodile);
  color: var(--paper);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.hotel-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 680px;
  margin: 0 auto;
}

.hotel-grid .hotel-card {
  flex: 1 1 280px;
  max-width: 320px;
}

.hotel-card {
  padding: 0 0 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #DADED4;
}

.hotel-card img,
.hotel-card-photo-placeholder {
  width: 100%;
  height: 190px;
  object-fit: cover;
  margin-bottom: 20px;
}

.hotel-card-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--champagne);
  color: var(--muted);
  font-size: 14px;
}

.hotel-card h3,
.hotel-card .meta,
.hotel-card a.btn {
  margin-left: 24px;
  margin-right: 24px;
}

.hotel-card h3 {
  min-height: 3.2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hotel-card a.btn {
  margin-top: auto;
  padding-top: 16px;
}

/* ---------- Photo gallery ---------- */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

@media (min-width: 640px) {
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.photo-empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 24px;
  border: 1px dashed var(--line);
}

.closing-photo {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: block;
}

/* ---------- Forms ---------- */

form {
  max-width: 520px;
  margin: 0 auto;
}

.field {
  margin-bottom: 22px;
}

.field label {
  display: block;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--serif-body);
  font-size: 18px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.field textarea { resize: vertical; min-height: 90px; }

.radio-row {
  display: flex;
  gap: 24px;
}

.radio-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
  font-size: 18px;
  color: var(--ink);
}

button.btn {
  cursor: pointer;
  font-family: var(--serif-body);
  background: var(--crocodile);
  color: var(--paper);
  border: 1px solid var(--crocodile);
}

button.btn:hover { opacity: 0.85; }

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

.form-status.ok { color: #2f6b3f; }
.form-status.err { color: #b23b3b; }

/* ---------- Admin ---------- */

.admin-table-wrap { overflow-x: auto; }

table.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

table.admin-table th,
table.admin-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  white-space: nowrap;
}

table.admin-table th {
  background: var(--champagne);
  font-family: var(--serif-display);
  font-weight: 400;
}

.stat-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin: 24px 0 40px;
  flex-wrap: wrap;
}

.stat-row .stat { text-align: center; }
.stat-row .stat .n { font-family: var(--serif-display); font-weight: 400; font-size: 34px; display: block; }
.stat-row .stat .l { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; }

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

.site-footer {
  text-align: center;
  padding: 48px 24px 64px;
  color: var(--crocodile);
  font-size: 15px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.hero-green {
  background: var(--tan);
  border-top: 4px solid var(--crocodile);
}

.hero-green .names {
  color: var(--crocodile);
}

.hero-green .amp {
  color: var(--crocodile);
}

.hero-green a.btn {
  border-color: var(--crocodile);
  color: var(--crocodile);
}

.hero-green a.btn:hover {
  background: var(--crocodile);
  color: var(--paper);
}

.placeholder-flag {
  background: #fff6e5;
  border: 1px solid #e8cf8a;
  color: #6b5416;
  font-size: 14px;
  padding: 10px 14px;
  margin-bottom: 18px;
  text-align: center;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Our Story ---------- */

.story {
  max-width: 640px;
  margin: 0 auto;
}

.story-item {
  text-align: center;
  margin-bottom: 44px;
}

.story-item:last-child {
  margin-bottom: 0;
}

.story-item .story-label {
  font-family: var(--serif-body);
  font-style: italic;
  color: var(--crocodile);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
  margin-bottom: 10px;
}

.story-item p {
  margin: 0;
  color: var(--ink);
}

/* ---------- FAQ ---------- */

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

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

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item h3 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 19px;
  margin: 0 0 8px;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Wedding party ---------- */

.party-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px 24px;
}

.party-member {
  text-align: center;
}

.party-photo,
.party-photo-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin: 0 auto 18px;
  object-fit: cover;
}

.party-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--champagne);
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 13px;
  padding: 12px;
  text-align: center;
}

.party-member h3 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 20px;
  margin: 0 0 4px;
}

.party-member .role {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--crocodile);
  margin-bottom: 10px;
}

.party-member .fun-fact {
  font-size: 16px;
  color: var(--muted);
}

/* ---------- Guestbook ---------- */

.guestbook-list {
  max-width: 640px;
  margin: 40px auto 0;
}

.guestbook-entry {
  text-align: left;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.guestbook-entry:last-child {
  border-bottom: none;
}

.guestbook-entry .gb-name {
  font-family: var(--serif-display);
  font-weight: 400;
  margin-bottom: 4px;
}

.guestbook-entry .gb-message {
  color: var(--ink);
  margin: 0;
}

.guestbook-entry .gb-date {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}

.guestbook-empty {
  text-align: center;
  color: var(--muted);
}
