/* vajihehvaezi.com — plain HTML version, keeping the WordPress (Astra + Spectra) look:
   Caudex throughout; gold #DCA54A, navy #0F172A, text #4A4A4A, cream #FAF5E5. */

@font-face { font-family: "Caudex"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/caudex-400.ttf") format("truetype"); }
@font-face { font-family: "Caudex"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("fonts/caudex-700.ttf") format("truetype"); }

:root {
  --gold: #DCA54A;
  --gold-dark: #D09A40;
  --navy: #0F172A;
  --text: #4A4A4A;
  --cream: #FAF5E5;
  --grey-band: #F1F1F1;
  --measure: 52rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Caudex", Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-dark); }
h1, h2, h3 { font-family: "Caudex", Georgia, serif; font-weight: 400; color: var(--navy); line-height: 1.2; }

/* ---------- hero ---------- */
.hero-banner {
  height: 16.5rem;
  background: url("img/hero-meadow.jpg") center 35% / cover no-repeat;
}
.hero {
  text-align: center;
  padding: 0 1.25rem 2.5rem;
}
.portrait {
  width: 10rem; height: 10rem;
  object-fit: cover;
  border-radius: 1.5rem;
  margin: -3.25rem auto 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 3rem); margin: 1rem 0 0; }
.hero .nee { font-size: 1.9rem; color: var(--navy); margin: .25rem 0 0; }
.hero .years { font-size: 1.6rem; color: var(--navy); margin: 1.25rem 0 0; }
.intro {
  max-width: var(--measure);
  margin: 2.5rem auto 0;
  text-align: center;
}
.intro p { margin: 0 0 1.25rem; }

/* ---------- funeral band ---------- */
.band-grey { background: var(--grey-band); padding: 3rem 1.25rem; }
.band-grey h2 { text-align: center; font-size: 2.3rem; margin: 0 0 2rem; }
.video {
  max-width: 34rem; margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-note { max-width: 34rem; margin: 1.25rem auto 0; font-size: .95rem; text-indent: 1.5rem; }

/* ---------- image bands (memories, life story) ---------- */
.band-image {
  position: relative;
  color: #fff;
  background-size: cover; background-position: center;
}
.band-image::before { content: ""; position: absolute; inset: 0; background: rgba(15, 23, 42, .35); }
.band-image > * { position: relative; }
.band-memories { background-image: url("img/memories-band.jpg"); background-position: center 78%; padding: 4.5rem 1.25rem; }
.band-memories .inner {
  max-width: 64rem; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.band-memories h2 { color: #fff; font-size: 2.2rem; margin: 0; max-width: 26rem; }
.button {
  display: inline-block;
  background: var(--navy); color: #fff;
  padding: .7rem 1.6rem;
  text-decoration: none; font-size: .95rem;
  border: 1px solid var(--navy);
}
.button:hover { background: #1e293b; }
.band-lifestory { background-image: url("img/lifestory-band.jpg"); padding: 3rem 1.25rem; text-align: center; }
.band-lifestory .kicker { letter-spacing: .25em; text-transform: uppercase; font-size: .8rem; margin: 0; }
.band-lifestory h2 { color: #fff; font-size: 3rem; margin: .4rem 0 0; }

/* ---------- photo grid (top) ---------- */
.grid9 {
  max-width: 64rem; margin: 2.5rem auto 4rem; padding: 0 1.25rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.grid9 button { padding: 0; border: 0; background: none; cursor: zoom-in; }
.grid9 img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: .6rem; }

/* ---------- life story ---------- */
.story { max-width: var(--measure); margin: 0 auto; padding: 1rem 1.25rem 3rem; }
.story h2 { font-size: 2rem; margin: 2.75rem 0 1.25rem; }
.story h3 { font-size: 1.45rem; margin: 2rem 0 .9rem; }
.story p { margin: 0 0 1.1rem; text-indent: 1.6rem; text-align: left; }
.story blockquote {
  margin: 2rem 0; padding: 2rem 1.5rem;
  border-left: 3px solid #ddd;
  text-align: center; font-style: italic;
}
.story blockquote::before { content: "\201C"; display: block; font-size: 3rem; line-height: 1; color: var(--text); font-style: normal; }
.story blockquote p { text-indent: 0; text-align: center; margin: 0 0 1rem; }
.story .attribution { text-indent: 0; }

/* ---------- galleries ---------- */
.gallery {
  margin: 2rem 0 2.25rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem;
}
.gallery.n1 { grid-template-columns: minmax(0, 28rem); justify-content: center; }
.gallery.n2 { grid-template-columns: repeat(2, 1fr); }
.gallery.n4 { grid-template-columns: repeat(4, 1fr); }
.gallery figure { margin: 0; position: relative; }
.gallery button { padding: 0; border: 0; background: #222; cursor: zoom-in; display: block; width: 100%; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery.portraitish img { aspect-ratio: 3 / 4; }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(17, 17, 17, .78); color: #fff;
  font-size: .82rem; line-height: 1.35; text-align: center;
  padding: .45rem .6rem;
  pointer-events: none;
}

/* ---------- memories page ---------- */
.page-head { text-align: center; padding: 3rem 1.25rem 1rem; }
.page-head h1 { font-size: 2.6rem; margin: 0; }
.memories { max-width: var(--measure); margin: 0 auto; padding: 1rem 1.25rem 3rem; }
.memory { border-top: 1px solid #e5e5e5; padding: 2rem 0; }
.memory h2 { font-size: 1.5rem; margin: 0 0 1rem; }
.memory p { margin: 0 0 1rem; }
.memory .meta { font-size: .85rem; color: #777; }
.share { background: var(--cream); padding: 2rem; margin: 2rem 0; }
.share h2 { margin-top: 0; }
.share label { display: block; margin: .75rem 0 .25rem; }
.share input, .share textarea { width: 100%; font: inherit; padding: .5rem; border: 1px solid #ccc; }
.share textarea { min-height: 10rem; }
.share .note { font-size: .9rem; color: #7a5a1e; }

/* ---------- footer ---------- */
footer { text-align: center; font-size: .85rem; color: #777; padding: 2rem 1.25rem 3rem; }
nav.top { position: absolute; top: .75rem; right: 1rem; z-index: 5; }
nav.top a { color: #fff; text-decoration: none; margin-left: 1rem; text-shadow: 0 1px 3px rgba(0,0,0,.6); font-size: .95rem; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0,0,0,.92);
  display: none; align-items: center; justify-content: center; flex-direction: column;
  padding: 2rem 4rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 82vh; max-width: 100%; object-fit: contain; }
.lightbox .cap { color: #eee; margin-top: 1rem; text-align: center; max-width: 50rem; }
.lightbox .cap strong { display: block; font-weight: normal; font-size: 1.05rem; }
.lightbox .cap .detail { display: block; margin-top: .35rem; font-size: .92rem; color: #cfcfcf; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff; font-size: 2.5rem; cursor: pointer; padding: .5rem 1rem;
}
.lightbox .close { top: .5rem; right: .75rem; }
.lightbox .prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: .5rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 700px) {
  .grid9 { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .gallery, .gallery.n4 { grid-template-columns: repeat(2, 1fr); }
  .gallery.n1 { grid-template-columns: 1fr; }
  .band-memories .inner { justify-content: center; text-align: center; }
  .lightbox { padding: 1rem; }
}

/* ---------- review tools (preview only; removed before publishing) ---------- */
.version-bar {
  position: sticky; top: 0; z-index: 40;
  background: #1f2937; color: #e5e7eb; font-family: Helvetica, Arial, sans-serif; font-size: .82rem;
  display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; padding: .45rem .9rem;
}
.version-bar a { color: #e5e7eb; text-decoration: none; padding: .15rem .5rem; border-radius: .25rem; }
.version-bar a.current { background: var(--gold); color: #111; }
.version-bar button { font: inherit; background: #fef3c7; color: #111; border: 0; padding: .25rem .7rem; border-radius: .25rem; cursor: pointer; }
.version-bar .legend { display: none; color: #cbd5e1; }
body.show-changes .version-bar .legend { display: inline; }
.version-bar .legend ins, .version-bar .legend del { padding: 0 .3rem; }
del.chg, p.chg-para { display: none; }
ins.chg { text-decoration: none; }
body.show-changes ins.chg { background: #c9efc0; color: #14361b; }
body.show-changes del.chg { display: inline; background: #f8d0d0; color: #6b1515; text-decoration: line-through; }
body.show-changes p.chg-para { display: block; }
.photo-src { display: none; }
body.show-changes .photo-src {
  display: block; position: absolute; top: .3rem; left: .3rem; right: .3rem;
  background: rgba(254, 243, 199, .95); color: #111; font: .68rem/1.3 Helvetica, Arial, sans-serif; padding: .2rem .35rem;
}
.version-note { background: #fef3c7; padding: .75rem 1rem; text-indent: 0 !important; font-size: .95rem; }
main.doc { padding-top: 2rem; }
main.doc h1 { font-size: 2rem; }
main.doc p, main.doc li { text-indent: 0; }
main.doc li { margin-bottom: .6rem; }
/* drafts for Lessan to vet (review build only) */
p.draft { border: 2px dashed var(--gold); background: #fffbeb; padding: .6rem .8rem; text-indent: 0 !important; }
p.draft::before { content: "Draft for you to check: "; font: 700 .75rem Helvetica, Arial, sans-serif; color: #92400e; text-transform: uppercase; letter-spacing: .04em; }
.ask { background: #fde68a; color: #78350f; font-style: italic; padding: 0 .2rem; }
/* comments under a memory */
.memory .comment { margin: 1rem 0 0 1.5rem; padding-left: 1rem; border-left: 3px solid var(--gold); }
.memory .comment .who { font-size: .85rem; color: #777; margin-bottom: .3rem; }
.share .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.share button[type=submit] { margin-top: 1rem; font: inherit; background: var(--gold); color: var(--navy); border: 0; padding: .6rem 1.6rem; cursor: pointer; }
.share button[type=submit]:disabled { opacity: .6; cursor: default; }
.share .form-status { margin-top: .75rem; }
