:root {
  --purple: #6a2383; --purple-dark: #4e1763; --yellow: #e6e000; --blue: #0075a9;
  --ink: #1d1d1b; --slate: #2d3748; --muted: #667085; --line: #e2e8f0;
  --paper: #fff; --mist: #f5f6f3; --shadow: 0 14px 40px rgba(29,29,27,.10);
}
* { box-sizing: border-box;}
html { scroll-behavior: smooth; }
body {cursor: default; margin: 0; color: var(--ink); background: var(--paper); font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
img { max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { margin-top: 0; font-family: "Alegreya Sans", system-ui, sans-serif; line-height: 1.12; letter-spacing: -.025em; }
h1 { font-size: clamp(2.4rem, 7vw, 5rem); }
h2 { margin-bottom: .75rem; color: var(--purple); font-size: clamp(1.8rem, 4vw, 3rem); }
.container { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; color: #fff; background: var(--purple); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.sitebar { position: sticky; top: 0; z-index: 20; border-bottom: 5px solid var(--yellow); background: rgba(255,255,255,.97); }
.sitebar__inner { width: min(1120px, calc(100% - 36px)); min-height: 78px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: flex; align-items: center; gap: 12px; color: var(--purple); text-decoration: none; }
.wordmark__logo { width: 62px; height: 44px; display: block; object-fit: contain; flex-shrink: 0; }
.wordmark strong, .wordmark small { display: block; }
.wordmark strong { font-size: 1.05rem; letter-spacing: .03em; }
.wordmark small { color: var(--ink); font-size: .72rem; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 9px 12px; border-radius: 4px; color: var(--ink); font-size: .92rem; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: var(--purple); }
.intro { position: relative; min-height: 560px; display: grid; align-items: end; color: #fff; background: linear-gradient(90deg, rgba(15,25,17,.86) 0 43%, rgba(15,25,17,.22) 70%), url("./img/home/test.jpg") center 50% / cover; }
.intro::after { content: ""; position: absolute; inset: auto 0 0; height: 7px; background: var(--yellow); }
.intro__inner { width: min(1120px, calc(100% - 36px)); margin: 0 auto; padding: 90px 0 78px; }
.intro h1 { max-width: 780px; margin-bottom: 18px; }
.intro p:not(.eyebrow) { max-width: 650px; margin: 0 0 28px; font-size: 1.15rem; }
.eyebrow { margin: 0 0 10px; color: var(--yellow); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow--dark { color: var(--purple); }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 20px; border: 2px solid transparent; border-radius: 4px; font-weight: 750; text-align: center; text-decoration: none; }
.button--light { color: var(--ink); background: #fff; }
.button--light:hover { border-color: var(--yellow); }
.button--purple { color: #fff; background: var(--purple); }
.button--purple:hover { background: var(--purple-dark); }
.section { padding-block: 76px 88px; }
.section__heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.section__heading h2 { max-width: 680px; }
.search input { width: min(320px, 80vw); min-height: 48px; padding: 10px 44px 10px 14px; border: 2px solid var(--slate); border-radius: 3px; font: inherit; background: #fff; }
.search input:focus { outline: 3px solid var(--yellow); outline-offset: 2px; }
.result-count { margin: 0 0 20px; color: var(--muted); }
.people-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.person-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-bottom: 5px solid var(--yellow); background: #fff; box-shadow: 0 5px 18px rgba(29,29,27,.07); transition: transform .2s ease, box-shadow .2s ease; }
.person-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.person-card--highlight { border-color: var(--purple); border-bottom-color: var(--yellow); box-shadow: 0 10px 28px rgba(106,35,131,.16); }
.person-card__link { display: block; color: inherit; text-decoration: none; }
.person-card__badge { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 6px 11px; border-radius: 3px; color: var(--purple-dark); background: var(--yellow); font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 3px 10px rgba(0,0,0,.16); }
.person-card__image { width: 100%; aspect-ratio: 4/3; display: block; object-fit: cover; background: var(--mist); }
.person-card__body { padding: 20px; }
.person-card h3 { margin-bottom: 7px; color: var(--purple); font-size: 1.5rem; }
.person-card p { margin: 0; color: var(--muted); }
.empty-state { padding: 32px; background: var(--mist); text-align: center; }
.footer { color: #fff; background: var(--slate); }
.footer__inner { min-height: 165px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 44px; padding-block: 36px; }
.footer p { margin: 0; }
.footer span { color: #cbd5e1; }
.footer a { color: #fff; }
.footer__brand strong, .footer__brand span { display: block; }
.footer__brand span { margin-top: 4px; }
.footer__links a { text-underline-offset: 4px; }
.footer__links a:hover { color: var(--yellow); }
.footer__credit { padding-left: 20px; border-left: 4px solid var(--yellow); }
.footer__credit span, .footer__credit strong { display: block; }
.footer__credit span { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.footer__credit strong { margin-top: 3px; color: #fff; font-size: 1rem; }
.detail-wrap { padding-block: 28px 78px; }
.back-link { display: inline-block; margin-bottom: 24px; font-weight: 700; }
.hero { position: relative; min-height: min(72vh,720px); overflow: hidden; background: var(--slate); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,15,15,.86), rgba(15,15,15,0) 68%); }
.hero__content { position: absolute; right: 0; bottom: 0; left: 0; padding: clamp(24px,5vw,58px); color: #fff; }
.hero__title { max-width: 900px; margin-bottom: 12px; }
.hero__dates { margin: 0; font-size: 1.1rem; }
.story, .gallery-section { width: min(850px,100%); margin: 0 auto; padding-top: 64px; }
.story__text { white-space: pre-line; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.06rem,2vw,1.22rem); line-height: 1.9; }
.photo-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.photo-frame { margin: 0; overflow: hidden; background: var(--mist); }
.photo { width: 100%; height: 100%; min-height: 280px; display: block; object-fit: cover; opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.photo.is-visible { opacity: 1; transform: none; }
.not-found { min-height: 55vh; padding: 70px 0; text-align: center; }
.not-found h1 { color: var(--purple); }
.tool { width: min(650px,calc(100% - 36px)); margin: 46px auto 80px; padding: clamp(24px,5vw,46px); border-top: 7px solid var(--yellow); box-shadow: var(--shadow); }
.tool label { display: block; margin-bottom: 7px; font-weight: 750; }
.tool select { width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid var(--slate); font: inherit; background: #fff; }
.tool .button { margin-top: 16px; border: 0; cursor: pointer; }
.qr-output { overflow-wrap: anywhere; }
.qr-output img { width: 300px; max-width: 100%; padding: 12px; border: 1px solid var(--line); }
.about-section {position: relative; padding: 80px 0; background: var(--mist);}
.about-section::before {content: ""; position: absolute; top: 0; left: 0; width: 120px; height: 7px;}
.about-section__intro { max-width: 760px; margin-bottom: 42px;}
.about-section__intro h2 { margin-bottom: 18px;}
.about-section__lead { margin: 0; color: var(--slate); font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.8;}
.info-grid {display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;}
.info-card {position: relative; padding: 28px; border: 1px solid var(--line); border-bottom: 5px solid var(--yellow); background: var(--paper); box-shadow: 0 5px 18px rgba(29, 29, 27, 0.07);}
.info-card__number { display: block; margin-bottom: 18px; color: var(--purple); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em;}
.info-card h3 {margin-bottom: 12px; color: var(--purple); font-size: 1.45rem;}
.info-card p { margin: 0; color: var(--muted);}

@media (max-width: 760px) {
  .sitebar__inner { min-height: 68px; }
  .wordmark__logo { width: 53px; height: 38px; }
  .wordmark strong { font-size: .9rem; }
  .wordmark small { display: block; }
  .nav a { padding: 7px 8px; font-size: .82rem; }
  .intro { min-height: 500px; background-image: linear-gradient(0deg,rgba(15,25,17,.87),rgba(15,25,17,.18)), url("./img/home/test.jpg"); }
  .intro__inner { padding-bottom: 54px; }
  .section { padding-block: 54px 64px; }
  .section__heading { align-items: stretch; flex-direction: column; }
  .search input { width: 100%; }
  .people-grid, .photo-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; align-items: stretch; gap: 28px; padding-block: 38px; }
  .footer__credit { padding-top: 16px; padding-left: 0; border-top: 4px solid var(--yellow); border-left: 0; }
  .hero { min-height: 62vh; }
  .about-section { padding: 56px 0; }
  .about-section__intro { margin-bottom: 30px;  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
