/* ===================================================
   Design tokens
=================================================== */
:root {
  --bg: #FFFFFF;
  --bg-soft: #F5F7F8;
  --ink: #22303A;
  --ink-soft: #4B5B63;
  --lavender: #5B4B8A;
  --lavender-deep: #3F2E66;
  --rose: #A6597A;
  --border: #E4E9EB;

  --serif: 'Merriweather', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;

  --max-width: 760px;
  --wide: 1100px;
  --radius: 14px;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  background-color: var(--bg);
  background-image:
    radial-gradient(760px 420px at 8% -6%, rgba(91, 75, 138, 0.10), transparent 60%),
    radial-gradient(680px 460px at 96% 8%, rgba(166, 89, 122, 0.09), transparent 60%),
    radial-gradient(900px 520px at 50% 40%, rgba(91, 75, 138, 0.06), transparent 65%),
    radial-gradient(700px 460px at 90% 92%, rgba(166, 89, 122, 0.08), transparent 60%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* subtle dot texture layered on top, tying the whole page together */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(34, 48, 58, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  z-index: 0;
}

.site-header, main, .site-footer { position: relative; z-index: 1; }

a { color: var(--lavender); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--lavender);
  outline-offset: 3px;
}

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

.eyebrow {
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lavender);
  margin: 0 0 0.75rem;
}

/* ===================================================
   Header
=================================================== */
.site-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.header-inner { max-width: var(--wide); margin: 0 auto; }
.brand {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}

/* ===================================================
   Hero — asymmetric two column
=================================================== */
.hero {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.15;
  margin: 0 0 1.25rem;
}

.hero-intro {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 42ch;
  margin: 0 0 1.75rem;
}

.hero-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -24px rgba(34, 48, 58, 0.3);
  background: var(--bg-soft);
}
.hero-image img { width: 100%; height: 100%; object-fit: contain; }

.btn-primary {
  display: inline-block;
  font-weight: 600;
  color: #fff;
  background: var(--lavender);
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  text-decoration: none;
}
.btn-primary:hover { background: var(--lavender-deep); }

.btn-secondary {
  display: inline-block;
  font-weight: 600;
  color: var(--lavender);
  background: #fff;
  border: 1.5px solid var(--lavender);
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  text-decoration: none;
}
.btn-secondary:hover { background: var(--lavender); color: #fff; }

/* ===================================================
   Quick-link cards
=================================================== */
.quick-links {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.quick-card {
  display: block;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.quick-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -20px rgba(34, 48, 58, 0.25);
}

.quick-icon { font-size: 1.75rem; }

.quick-card h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 0.75rem 0 0.5rem;
  color: var(--ink);
}

.quick-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ===================================================
   Records (text sections)
=================================================== */
.record {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  border-top: 1px solid var(--border);
}

.record h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 1.9rem);
  margin: 0 0 1.5rem;
}

.record-body p { margin: 0 0 1.25rem; color: var(--ink-soft); }
.record-body p:last-child { margin-bottom: 0; }

.pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--lavender-deep);
  border-left: 3px solid var(--rose);
  padding-left: 1.25rem;
  margin: 2rem 0 !important;
}

/* ===================================================
   News-card grid (press coverage)
=================================================== */
.news-grid {
  max-width: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.news-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

.news-card img {
  width: 100%;
  height: 340px;
  object-fit: contain;
  background: var(--bg-soft);
  cursor: zoom-in;
  transition: opacity 0.15s ease;
}
.news-card a:hover img { opacity: 0.85; }

.news-card-body { padding: 1.1rem 1.25rem 1.4rem; }

.tag {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--lavender);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.date {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 0.15rem 0 0.6rem;
}

.news-card-body p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ===================================================
   Feature block — image + text, alternating sides
=================================================== */
.feature-block {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  border-top: 1px solid var(--border);
}

.feature-block.reverse { direction: rtl; }
.feature-block.reverse > * { direction: ltr; }

.feature-block.cta { background: var(--bg-soft); max-width: none; }
.feature-block.cta > .feature-text,
.feature-block.cta > .feature-image {
  max-width: calc(var(--wide) / 2 - 1.5rem);
}

.feature-image img {
  border-radius: var(--radius);
  box-shadow: 0 20px 40px -20px rgba(34, 48, 58, 0.25);
}

.feature-image.quiet img { opacity: 0.92; }

.feature-text h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin: 0 0 1rem;
}

.feature-text p {
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}

/* ===================================================
   Footer
=================================================== */
.site-footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--border);
}

/* ===================================================
   Responsive
=================================================== */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-image { order: -1; aspect-ratio: 16/10; }
  .quick-links { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .feature-block, .feature-block.reverse { grid-template-columns: 1fr; direction: ltr; }
  .feature-block.reverse .feature-image { order: -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .record, .hero, .quick-links, .feature-block { padding-left: 1.25rem; padding-right: 1.25rem; }
}

/* ===================================================
   Hero mosaic variant — for comparing multi-image hero
   (used only by index-multi-image-hero-preview.html)
=================================================== */
.hero-mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.6rem;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 48px -24px rgba(34, 48, 58, 0.3);
}
.hero-mosaic img { border-radius: 0; box-shadow: none; }
.mosaic-main { grid-row: 1 / 3; grid-column: 1; width: 100%; height: 100%; object-fit: cover; }
.mosaic-small { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .hero-mosaic { aspect-ratio: 16/10; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; }
}

/* ===================================================
   Then and Now — side by side comparison photos
=================================================== */
.then-now-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.then-now-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 16px 32px -18px rgba(34, 48, 58, 0.28);
}

.then-now-grid figcaption {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 0.75rem;
  text-align: center;
}

@media (max-width: 640px) {
  .then-now-grid { grid-template-columns: 1fr; }
}

/* ===================================================
   Contact list
=================================================== */
.contact-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.contact-list li {
  margin-bottom: 0.6rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.contact-list a { font-weight: 600; }

/* ===================================================
   Hero photo credit
=================================================== */
.hero-photo-credit {
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-align: center;
  margin: 0.6rem 0 0;
}

/* ===================================================
   Header tagline
=================================================== */
.brand-tagline {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.contact-title {
  margin: -1rem 0 1.25rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.hint {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: -1rem 0 1.5rem;
}

/* ===================================================
   Community photo grid
=================================================== */
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.community-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 10px;
  cursor: zoom-in;
  box-shadow: 0 10px 22px -12px rgba(34, 48, 58, 0.25);
  transition: opacity 0.15s ease;
}
.community-grid a:hover img { opacity: 0.85; }

.community-grid figcaption {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.6rem;
  text-align: center;
}

@media (max-width: 860px) {
  .community-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===================================================
   Plain text link (not styled as a button)
=================================================== */
.text-link {
  display: inline-block;
  font-weight: 600;
  color: var(--lavender);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-link:hover { color: var(--lavender-deep); }

/* ===================================================
   Smaller contact photo (50% size, per El's request)
=================================================== */
.small-photo {
  max-width: 50%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 860px) {
  .small-photo { max-width: 60%; }
}
