/* =========================================================
   Rock & Tammie — A Decade of Love & Adventure
   Shared stylesheet
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Pinyon+Script&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ---------- Palette ---------- */
:root {
  --cream:        #f5efe3;
  --cream-dark:   #ece4d2;
  --paper:        #fbf7ee;
  --forest:       #1e3a2f;
  --forest-mid:   #3b5a42;
  --sage:         #8a9d7a;
  --gold:         #b08d57;
  --ink:          #2a2620;
  --muted:        #6b6557;
  --rule:         rgba(30, 58, 47, 0.35);
}

/* ---------- Base ---------- */
body {
  font-family: 'Lora', Georgia, serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--forest); text-decoration: none; border-bottom: 1px solid var(--rule); transition: color .2s, border-color .2s; }
a:hover { color: var(--gold); border-color: var(--gold); }

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

/* ---------- Typography ---------- */
.display,
h1, h2, h3 {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--forest);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.08; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); line-height: 1.2; margin-bottom: 0.75rem; }
h3 { font-size: 1.4rem; line-height: 1.3; margin-bottom: 0.5rem; color: var(--forest-mid); }

.script {
  font-family: 'Pinyon Script', cursive;
  font-weight: 400;
  color: var(--forest-mid);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.3;
}

.eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  display: inline-block;
}

.lede {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.55;
}

.amp { font-family: 'Pinyon Script', cursive; font-style: normal; color: var(--forest-mid); font-size: 1.3em; line-height: 0; vertical-align: -0.1em; padding: 0 0.05em; }

/* ---------- Layout ---------- */
.frame {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 4.5rem 0;
}
.section--tight { padding: 2.5rem 0; }

/* Decorative border frame — echoes the invite's green border + thin inner line */
.page-border {
  border: 1px solid var(--forest);
  box-shadow: inset 0 0 0 6px var(--cream), inset 0 0 0 7px var(--rule);
  min-height: 100vh;
  margin: 18px;
}
@media (max-width: 640px) {
  .page-border { margin: 10px; box-shadow: inset 0 0 0 4px var(--cream), inset 0 0 0 5px var(--rule); }
}

/* ---------- Navigation ---------- */
.nav {
  padding: 1.75rem 2rem 0.5rem;
  text-align: center;
  border-bottom: 1px solid var(--rule);
  margin: 0 2rem 0;
}
.nav__monogram {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--forest);
  display: block;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}
.nav__tagline {
  font-family: 'Pinyon Script', cursive;
  font-size: 1.3rem;
  color: var(--forest-mid);
  display: block;
  margin-bottom: 1rem;
}
.nav__links {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem 2rem;
  padding: 1rem 0 0.75rem;
}
.nav__links a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--forest);
  border: none;
  padding: 0.3rem 0.2rem;
  border-bottom: 1px solid transparent;
}
.nav__links a:hover,
.nav__links a.is-active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ---------- Hero (home page) ---------- */
.hero {
  text-align: center;
  padding: 4rem 1rem 3rem;
}
.hero__eyebrow { margin-bottom: 1.2rem; }
.hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  line-height: 1.05;
  color: var(--forest);
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.hero__script { display: block; margin: 0.5rem 0 1rem; }
.hero__names {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--forest);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0.5rem 0 1.5rem;
  font-weight: 500;
}
.hero__meta {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.hero__rule {
  width: 80px;
  height: 1px;
  background: var(--forest);
  margin: 1.5rem auto;
  border: 0;
}

.hero__image {
  max-width: 520px;
  margin: 2.5rem auto 0;
  padding: 0 1rem;
}
.hero__image img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 20px 50px -20px rgba(30,58,47,0.35), 0 6px 15px -8px rgba(0,0,0,0.15);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  text-align: center;
  padding: 3.5rem 1rem 2.5rem;
}
.page-hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--forest);
  margin: 0.4rem 0 0.75rem;
}

/* ---------- Cards / blocks ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1.8rem 1.75rem;
  border-radius: 2px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(30,58,47,0.35); }
.card h3 { margin-bottom: 0.35rem; font-size: 1.3rem; color: var(--forest); }
.card .card__sub { font-style: italic; color: var(--muted); margin-bottom: 0.6rem; font-size: 0.95rem; }
.card p { margin-bottom: 0.6rem; }
.card p:last-child { margin-bottom: 0; }
.card .pill {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}

/* ---------- Info lists ---------- */
.info-list { list-style: none; padding: 0; }
.info-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  gap: 1rem;
  align-items: baseline;
}
.info-list li:last-child { border-bottom: 0; }
.info-list .label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  min-width: 110px;
  flex-shrink: 0;
}
.info-list .value { flex: 1; }

/* ---------- Block quote / pull ---------- */
.pull {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.pull .ornament { font-family: 'Cormorant Garamond', serif; color: var(--gold); font-size: 1.4rem; letter-spacing: 0.4em; }

/* ---------- Section title ---------- */
.section-title {
  text-align: center;
  margin-bottom: 2.75rem;
}
.section-title .script { display: block; margin-bottom: 0.25rem; }
.section-title h2 { margin-bottom: 0.6rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }
.section-title__rule {
  width: 60px; height: 1px; background: var(--forest); margin: 1rem auto 0; border: 0;
}

/* ---------- Buttons ---------- */
.btn-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.btn {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--forest);
  border: 1px solid var(--forest);
  padding: 0.85rem 1.5rem;
  background: transparent;
  transition: all .2s;
  cursor: pointer;
}
.btn:hover { background: var(--forest); color: var(--cream); border-color: var(--forest); }

/* ---------- Photo gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.9rem;
}
.gallery__item {
  aspect-ratio: 1 / 1;
  background: var(--cream-dark);
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  transition: transform .3s;
}
.gallery__item:hover { transform: scale(1.015); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__item--tall { aspect-ratio: 3 / 4; }
.gallery__item--wide { aspect-ratio: 4 / 3; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--rule);
  padding: 3rem 2rem;
  text-align: center;
  margin: 3rem 2rem 0;
  color: var(--muted);
}
.footer .script { margin-bottom: 0.5rem; }
.footer__meta {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--forest);
}
.footer__note { margin-top: 0.75rem; font-size: 0.9rem; font-style: italic; }

/* ---------- Misc utilities ---------- */
.center { text-align: center; }
.mb-1 { margin-bottom: 0.75rem; }
.mb-2 { margin-bottom: 1.5rem; }
.mb-3 { margin-bottom: 2.25rem; }

/* ---------- Countdown (home) ---------- */
.countdown {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2.5rem 0 1.5rem;
  flex-wrap: wrap;
}
.countdown__cell { min-width: 80px; }
.countdown__num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--forest);
  font-weight: 400;
}
.countdown__label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.4rem;
}

/* ---------- Watercolor horizon ornament (CSS-only) ---------- */
.ornament-mtns {
  display: block;
  margin: 2rem auto;
  max-width: 260px;
  opacity: 0.55;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .section { padding: 3rem 0; }
  .nav { padding: 1.25rem 1rem 0; margin: 0 0.5rem; }
  .nav__links { gap: 0.25rem 1.1rem; font-size: 0.85rem; }
  .nav__links a { font-size: 0.8rem; letter-spacing: 0.2em; }
  .frame { padding: 0 1.25rem; }
  .hero { padding: 2rem 0.5rem 2rem; }
  .hero__image { padding: 0 0.25rem; }
  .info-list li { flex-direction: column; gap: 0.15rem; }
  .info-list .label { min-width: 0; }
}
