:root {
  --ink: #1d1b17;
  --muted: #6d665c;
  --paper: #f4efe5;
  --paper-deep: #e7ddcd;
  --cream: #fbf8f1;
  --brass: #9b773d;
  --line: rgba(29, 27, 23, 0.16);
  --wine: #6f2d2d;
  --forest: #2f4a3b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 5%, rgba(155, 119, 61, 0.10), transparent 32rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }

.site-header {
  max-width: 1440px;
  margin: 0 auto;
  min-height: 84px;
  padding: 18px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.wordmark { display: inline-flex; align-items: center; gap: 13px; font-family: Georgia, serif; font-size: 17px; font-weight: 700; letter-spacing: .01em; }
.wordmark-mark { display: grid; place-items: center; width: 38px; height: 38px; color: var(--paper); background: var(--ink); border-radius: 50%; font-size: 20px; font-style: italic; }
.header-link { font-size: 13px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }

.hero {
  min-height: 690px;
  padding: 108px 44px 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(244,239,229,.91), rgba(244,239,229,.96)),
    url('/og.png') center 28% / cover;
}
.hero-kicker, .eyebrow, .content-label { color: var(--wine); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { max-width: 1050px; margin: 24px auto 26px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(58px, 8vw, 112px); font-weight: 400; line-height: .92; letter-spacing: -.055em; }
.hero h1 em { color: var(--wine); font-weight: 400; }
.hero-copy { max-width: 720px; margin: 0; color: #544e46; font-family: Georgia, serif; font-size: clamp(18px, 2vw, 23px); line-height: 1.6; }
.hero-stats { display: flex; margin-top: 62px; border: 1px solid var(--line); background: rgba(251,248,241,.76); backdrop-filter: blur(7px); }
.hero-stats div { min-width: 170px; padding: 18px 28px; display: flex; align-items: baseline; gap: 10px; border-right: 1px solid var(--line); }
.hero-stats div:last-child { border-right: 0; }
.hero-stats strong { font-family: Georgia, serif; font-size: 26px; }
.hero-stats span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

.directory { max-width: 1440px; margin: 0 auto; padding: 96px 44px 120px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-heading h2 { margin: 10px 0 0; font-family: Georgia, serif; font-size: clamp(42px, 5vw, 72px); font-weight: 400; letter-spacing: -.035em; }
.section-heading > p { color: var(--muted); font-size: 14px; }
.directory-controls { position: sticky; z-index: 5; top: 0; margin: 42px 0 72px; padding: 16px 0; background: rgba(244,239,229,.92); backdrop-filter: blur(16px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.search-field { height: 54px; display: flex; align-items: center; gap: 12px; padding: 0 18px; background: var(--cream); border: 1px solid var(--line); }
.search-field > span { color: var(--brass); font-family: Georgia, serif; font-size: 28px; line-height: 1; }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 15px; }
.search-field input::placeholder { color: #8b8378; }
.filter-row { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter { flex: 0 0 auto; border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 10px 14px; cursor: pointer; font-size: 12px; font-weight: 700; }
.filter:hover, .filter:focus-visible, .filter.active { color: var(--paper); background: var(--ink); outline: none; }

.category-section { margin-top: 80px; }
.category-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 25px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.category-heading h3 { margin: 0; font-family: Georgia, serif; font-size: 31px; font-weight: 400; }
.category-heading span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 11px; }
.profile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 38px 22px; }
.profile-card { min-width: 0; }
.portrait-wrap { position: relative; overflow: hidden; aspect-ratio: 1; background: var(--paper-deep); }
.portrait-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.view-profile { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; justify-content: space-between; padding: 12px 14px; color: var(--paper); background: rgba(29,27,23,.88); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; transform: translateY(calc(100% + 16px)); transition: transform .35s ease; }
.profile-card:hover .portrait-wrap img, .profile-card:focus-visible .portrait-wrap img { transform: scale(1.035); filter: saturate(1.08); }
.profile-card:hover .view-profile, .profile-card:focus-visible .view-profile { transform: translateY(0); }
.profile-card:focus-visible { outline: 2px solid var(--wine); outline-offset: 5px; }
.card-copy { padding: 16px 2px 0; }
.card-copy h4 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.card-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.empty-state { padding: 90px 20px; text-align: center; border: 1px solid var(--line); }
.empty-state p { font-family: Georgia, serif; font-size: 26px; }
.empty-state button { border: 0; border-bottom: 1px solid; background: transparent; cursor: pointer; }

.site-footer { max-width: 1440px; margin: 0 auto; padding: 42px 44px 55px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.6; }
.site-footer p { margin: 0; }
.footer-title { color: var(--ink); font-family: Georgia, serif; font-size: 20px; }
.footer-note { max-width: 590px; justify-self: end; }

.profile-page { min-height: 100vh; }
.profile-hero { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: minmax(340px, .9fr) 1.1fr; min-height: 670px; border-bottom: 1px solid var(--line); }
.profile-portrait { min-height: 600px; overflow: hidden; background: var(--paper-deep); }
.profile-portrait img { width: 100%; height: 100%; object-fit: cover; }
.profile-intro { padding: 80px clamp(44px, 7vw, 112px); display: flex; flex-direction: column; justify-content: center; }
.category-pill { align-self: flex-start; padding: 9px 12px; color: var(--wine); border: 1px solid rgba(111,45,45,.35); font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.profile-intro h1 { margin: 28px 0 24px; font-family: Georgia, serif; font-size: clamp(58px, 7vw, 106px); font-weight: 400; line-height: .93; letter-spacing: -.055em; }
.profile-intro > p { max-width: 630px; margin: 0; color: var(--muted); font-family: Georgia, serif; font-size: clamp(20px, 2.1vw, 29px); line-height: 1.45; }
.quote-library-button { width: min(100%, 430px); margin-top: 34px; padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--paper); background: var(--ink); border: 1px solid var(--ink); }
.quote-library-button span { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.quote-library-button strong { color: #d8bd8c; font-family: Georgia, serif; font-size: 15px; font-weight: 400; white-space: nowrap; }
.quote-library-button:hover, .quote-library-button:focus-visible { color: var(--ink); background: var(--cream); outline: 2px solid var(--brass); outline-offset: 3px; }
.quote-library-button:hover strong, .quote-library-button:focus-visible strong { color: var(--wine); }
.profile-route { margin-top: 58px; color: #81796e; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; letter-spacing: .03em; }
.profile-content { max-width: 1200px; margin: 0 auto; padding: 100px 44px 120px; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr); gap: clamp(55px, 8vw, 120px); align-items: start; }
.content-label { margin-bottom: 30px; }
.markdown > h1 { display: none; }
.markdown h2 { margin: 54px 0 16px; padding-top: 26px; border-top: 1px solid var(--line); font-family: Georgia, serif; font-size: 31px; font-weight: 400; letter-spacing: -.02em; }
.markdown h2:first-of-type { margin-top: 0; }
.markdown h3 { margin: 32px 0 10px; font-family: Georgia, serif; font-size: 22px; }
.markdown p, .markdown li { color: #4f4941; font-family: Georgia, serif; font-size: 17px; line-height: 1.78; }
.markdown ul, .markdown ol { padding-left: 22px; }
.markdown li { margin-bottom: 11px; padding-left: 5px; }
.markdown strong { color: var(--ink); font-family: Inter, ui-sans-serif, sans-serif; font-size: .86em; letter-spacing: .01em; }
.markdown blockquote { margin: 26px 0; padding: 21px 24px 21px 28px; border-left: 3px solid var(--brass); background: rgba(231,221,205,.58); }
.markdown blockquote p { margin: 0; color: var(--ink); font-size: 19px; font-style: italic; }
.markdown pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 18px 0; padding: 20px; color: #eee6d8; background: #25221d; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.7; }
.profile-sidebar { position: sticky; top: 28px; display: grid; gap: 20px; }
.visual-brief { border: 1px solid var(--line); background: rgba(251,248,241,.62); }
.visual-brief summary { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; cursor: pointer; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; list-style: none; }
.visual-brief summary::-webkit-details-marker { display: none; }
.visual-brief[open] summary { border-bottom: 1px solid var(--line); }
.visual-brief .compact { padding: 0 22px 22px; }
.visual-brief .markdown h2 { font-size: 20px; }
.visual-brief .markdown p, .visual-brief .markdown li { font-family: Inter, sans-serif; font-size: 13px; line-height: 1.6; }
.profile-pagination { max-width: 1200px; margin: 0 auto 100px; padding: 0 44px; display: grid; grid-template-columns: 1fr 1fr; }
.profile-pagination a { padding: 24px 28px; border: 1px solid var(--line); }
.profile-pagination a + a { text-align: right; border-left: 0; }
.profile-pagination span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.profile-pagination strong { font-family: Georgia, serif; font-size: 18px; font-weight: 400; }
.profile-pagination a:hover { color: var(--paper); background: var(--ink); }
.profile-footer a { justify-self: end; text-decoration: underline; text-underline-offset: 4px; }
.quotes-page { min-height: 100vh; }
.quotes-hero { max-width: 1200px; margin: 0 auto; padding: 72px 44px; display: grid; grid-template-columns: 260px 1fr; align-items: center; gap: clamp(42px, 7vw, 90px); border-bottom: 1px solid var(--line); }
.quotes-hero > img { width: 260px; aspect-ratio: 1; object-fit: cover; background: var(--paper-deep); }
.quotes-hero h1 { margin: 24px 0 18px; font-family: Georgia, serif; font-size: clamp(52px, 7vw, 92px); font-weight: 400; line-height: .95; letter-spacing: -.05em; }
.quotes-hero p { max-width: 690px; margin: 0; color: var(--muted); font-family: Georgia, serif; font-size: 20px; line-height: 1.55; }
.profile-return { display: inline-block; margin-top: 25px; padding-bottom: 4px; border-bottom: 1px solid var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.quotes-content { max-width: 1200px; margin: 0 auto; padding: 88px 44px 120px; }
.quotes-heading { margin-bottom: 44px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.quotes-heading h2 { margin: 10px 0 0; font-family: Georgia, serif; font-size: clamp(40px, 5vw, 65px); font-weight: 400; letter-spacing: -.04em; }
.quotes-heading > p { margin: 0; color: var(--muted); font-size: 13px; }
.quote-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.quote-card { min-width: 0; padding: 30px; display: flex; flex-direction: column; border: 1px solid var(--line); background: rgba(251,248,241,.72); }
.quote-number { color: var(--brass); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.quote-card blockquote { flex: 1; margin: 28px 0 32px; font-family: Georgia, serif; font-size: clamp(23px, 2.5vw, 32px); line-height: 1.35; }
.quote-source { padding-top: 18px; border-top: 1px solid var(--line); }
.quote-source p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.bible-reference { display: inline-block; padding: 6px 8px; color: var(--paper); background: var(--wine); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.quote-actions { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.quote-actions a { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.copy-quote { padding: 11px 13px; border: 1px solid var(--ink); color: var(--paper); background: var(--ink); cursor: pointer; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.copy-quote:hover, .copy-quote:focus-visible { color: var(--ink); background: transparent; outline: none; }
.no-quotes { padding: clamp(50px, 8vw, 100px); text-align: center; border: 1px solid var(--line); background: rgba(251,248,241,.55); }
.quote-mark { display: block; height: 50px; color: var(--brass); font-family: Georgia, serif; font-size: 88px; line-height: 1; }
.no-quotes h2 { max-width: 700px; margin: 20px auto; font-family: Georgia, serif; font-size: clamp(30px, 4vw, 48px); font-weight: 400; line-height: 1.16; }
.no-quotes p { max-width: 690px; margin: 0 auto; color: var(--muted); font-family: Georgia, serif; font-size: 17px; line-height: 1.7; }
.no-quotes a { display: inline-block; margin-top: 28px; padding-bottom: 4px; border-bottom: 1px solid; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

@media (max-width: 1050px) {
  .profile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-hero { grid-template-columns: 1fr 1fr; min-height: 560px; }
  .profile-intro { padding: 55px; }
  .profile-content { gap: 55px; }
}

@media (max-width: 760px) {
  .site-header { min-height: 70px; padding: 14px 20px; }
  .wordmark { font-size: 15px; }
  .wordmark-mark { width: 34px; height: 34px; }
  .header-link { font-size: 10px; }
  .hero { min-height: auto; padding: 88px 20px 72px; }
  .hero h1 { font-size: clamp(50px, 15vw, 72px); }
  .hero-stats { width: 100%; flex-direction: column; }
  .hero-stats div { width: 100%; justify-content: center; border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-stats div:last-child { border-bottom: 0; }
  .directory { padding: 72px 20px 90px; }
  .section-heading { align-items: flex-start; }
  .directory-controls { margin-top: 30px; }
  .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 13px; }
  .category-section { margin-top: 60px; }
  .category-heading h3 { font-size: 25px; }
  .card-copy h4 { font-size: 18px; }
  .card-copy p { font-size: 12px; }
  .site-footer { padding: 35px 20px; grid-template-columns: 1fr; }
  .footer-note { justify-self: start; }
  .profile-hero { display: block; }
  .profile-portrait { min-height: auto; aspect-ratio: 1; }
  .profile-intro { padding: 50px 20px 64px; }
  .profile-intro h1 { font-size: clamp(52px, 16vw, 78px); }
  .profile-route { margin-top: 38px; overflow-wrap: anywhere; }
  .profile-content { padding: 72px 20px 80px; display: block; }
  .profile-sidebar { position: static; margin-top: 55px; }
  .profile-pagination { margin-bottom: 72px; padding: 0 20px; grid-template-columns: 1fr; }
  .profile-pagination a + a { text-align: left; border-left: 1px solid var(--line); border-top: 0; }
  .profile-footer a { justify-self: start; }
  .quote-library-button { align-items: flex-start; flex-direction: column; }
  .quotes-hero { padding: 50px 20px 58px; grid-template-columns: 100px 1fr; gap: 24px; align-items: start; }
  .quotes-hero > img { width: 100px; }
  .quotes-hero h1 { margin-top: 18px; }
  .quotes-hero p, .profile-return { grid-column: 1 / -1; }
  .quotes-content { padding: 70px 20px 90px; }
  .quotes-heading { align-items: flex-start; flex-direction: column; }
  .quote-grid { grid-template-columns: 1fr; }
  .quote-card { padding: 24px; }
  .no-quotes { padding: 52px 24px; }
}

@media (max-width: 430px) {
  .profile-grid { grid-template-columns: 1fr; }
  .portrait-wrap { aspect-ratio: 1.08; }
  .section-heading > p { display: none; }
}

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

[hidden] { display: none !important; }
.profile-card[hidden] { display: none !important; }
.not-found > section { min-height: 68vh; max-width: 920px; margin: 0 auto; padding: 120px 44px; display: flex; flex-direction: column; justify-content: center; }
.not-found h1 { max-width: 800px; margin: 20px 0; font-family: Georgia, serif; font-size: clamp(54px, 8vw, 100px); font-weight: 400; line-height: .95; letter-spacing: -.05em; }
.not-found section p { color: var(--muted); font-family: Georgia, serif; font-size: 21px; }
.back-home { align-self: flex-start; margin-top: 30px; padding-bottom: 5px; border-bottom: 1px solid; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
