/* ===========================================================
   Brandy Rosine Memorial — shared styles
   A calm, warm, photo-forward memorial site.
   =========================================================== */

:root {
  --bg:        #faf7f1;   /* warm ivory            */
  --surface:   #ffffff;   /* cards / panels        */
  --soft:      #f1eadd;   /* soft section tint     */
  --ink:       #322e29;   /* primary text          */
  --muted:     #74695c;   /* secondary text        */
  --line:      #e6ddcd;   /* hairlines / borders   */
  --accent:    #9a6a43;   /* warm wood (the bench) */
  --accent-deep:#7a5233;
  --gold:      #c39a3f;   /* candlelight           */
  --maxw: 1080px;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(50, 40, 30, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1.1em; }

a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.6em;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
  line-height: 1;
}
.brand small {
  display: block;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 4px;
  font-weight: 600;
}
.nav-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.96rem;
}
.nav-links a {
  color: var(--ink);
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { text-decoration: none; border-bottom-color: var(--accent); }
.nav-links a.active { border-bottom-color: var(--accent); color: var(--accent-deep); }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-soft { background: var(--soft); }
.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--muted); }
.measure { max-width: 680px; }
.measure.center { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(1200px 400px at 50% -10%, #fff8ec 0%, rgba(255,248,236,0) 70%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-portrait {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}
.hero h1 { margin-bottom: 0.15em; }
.dates {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  color: var(--accent-deep);
  font-style: italic;
  margin-bottom: 1em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--accent-deep); text-decoration: none; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--accent-deep);
  border: 1.5px solid var(--accent);
}
.btn-ghost:hover { background: var(--accent); color: #fff; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Save the Date banner ---------- */
.std {
  background: linear-gradient(160deg, #2f2a24 0%, #45382b 100%);
  color: #f6efe2;
  border-radius: var(--radius);
  padding: 40px 36px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.std .eyebrow { color: var(--gold); }
.std h2, .std h3 { color: #fdf7ea; }
.std .date {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--gold);
  margin: 6px auto 14px;
  text-align: center;
}
.std p { color: #e7dcc9; max-width: 620px; margin-left: auto; margin-right: auto; }
.std .tentative { font-size: 0.85rem; opacity: 0.8; font-style: italic; }
.flame { font-size: 1.6rem; }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 8px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 0.3em; }
.card p { color: var(--muted); margin-bottom: 0.6em; font-size: 0.98rem; }

/* ---------- Media / video ---------- */
.video-frame {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Prose / story blocks ---------- */
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; color: var(--accent-deep); }
.figure { margin: 28px 0; }
.figure img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.figure figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 8px; font-style: italic; text-align: center; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}
.pull {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-style: italic;
  color: var(--accent-deep);
  border-left: 3px solid var(--gold);
  padding-left: 22px;
  margin: 28px 0;
  line-height: 1.4;
}

/* ---------- Photo gallery ---------- */
.gallery {
  columns: 3 240px;
  column-gap: 16px;
}
.gallery figure {
  break-inside: avoid;
  margin: 0 0 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(50,40,30,0.05);
}
.gallery img { width: 100%; }
.gallery figcaption { font-size: 0.85rem; color: var(--muted); padding: 8px 12px 12px; }

/* ---------- Content warning ---------- */
.notice {
  background: #fbf3e6;
  border: 1px solid #e9d3ad;
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 18px 22px;
  color: #5e4a2a;
  font-size: 0.98rem;
  margin: 0 0 28px;
}

/* ---------- Brandy's words (blog) ---------- */
.entry {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 32px;
  margin-bottom: 26px;
  box-shadow: 0 2px 10px rgba(50,40,30,0.04);
  display: flow-root;
}
.entry-thumb {
  float: left;
  width: 116px;
  height: 116px;
  object-fit: cover;
  border-radius: 10px;
  margin: 4px 22px 12px 0;
  border: 1px solid var(--line);
}
@media (max-width: 560px) {
  .entry-thumb { width: 80px; height: 80px; margin-right: 16px; }
}

/* ---------- Her Words scroll timeline ---------- */
.words-layout {
  display: grid;
  grid-template-columns: 88px minmax(0, 680px);
  gap: 26px;
  justify-content: center;
  align-items: start;
}
.timeline {
  position: sticky;
  top: 96px;
  height: calc(100vh - 150px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tl-date {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent-deep);
  margin-bottom: 8px;
  text-align: center;
}
.tl-cap { color: var(--accent); font-size: 0.8rem; line-height: 1; }
.tl-track {
  position: relative;
  flex: 1 1 auto;
  width: 3px;
  margin: 8px 0;
  border-radius: 3px;
  background: linear-gradient(var(--accent), rgba(154, 106, 67, 0.18));
}
.tl-marker {
  position: absolute;
  left: 50%;
  top: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent-deep);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(154, 106, 67, 0.16);
  transition: top 0.15s ease;
}
.tl-foot {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
  line-height: 1.3;
}
.entries { min-width: 0; }
@media (max-width: 820px) {
  .words-layout { display: block; }
  .timeline { display: none; }
}
.entry h3 { font-size: 1.7rem; margin-bottom: 0.1em; }
.entry .meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 1em; letter-spacing: 0.02em; }
.entry .note { font-size: 0.92rem; color: var(--muted); font-style: italic; margin-bottom: 1.1em; }
.entry .body {
  white-space: pre-line;
  font-size: 1.04rem;
  clear: left;
  background: #16130f;
  color: #ece4d6;
  padding: 22px 24px;
  border-radius: 10px;
  margin-top: 8px;
  line-height: 1.8;
}

/* ---------- Contact ---------- */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #2f2a24;
  color: #d9cfbe;
  padding: 48px 0 32px;
  font-size: 0.95rem;
}
.site-footer a { color: #ecdcc0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
.site-footer h4 {
  font-family: "Source Sans 3", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--gold);
  margin: 0 0 12px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.footer-bottom {
  border-top: 1px solid #4a4034;
  padding-top: 20px;
  font-size: 0.85rem;
  color: #a99c89;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 360px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  section { padding: 48px 0; }
  body { font-size: 17px; }
}
