/* Phoenix Seminary Design System — shared tokens & components
   Extracted from ps.edu (real CSS), 2026-05-06
   Free-font substitutes: Fraunces (display), EB Garamond (serif body), Inter (UI)
   Original Adobe Typekit: ivypresto-display, le-monde-livre-std */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,800&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* color — extracted hex frequencies from ps.edu CSS */
  --brand-orange: #d67719;        /* primary accent — 109 hits */
  --brand-orange-bright: #e88c2a; /* hover/lift */
  --brand-orange-deep: #b25e0b;   /* pressed */
  --brand-navy: #1d345e;          /* institutional anchor — 35 hits */
  --brand-navy-deep: #131f3a;
  --brand-tan: #a17c4b;           /* quote / scripture — 17 hits */
  --brand-putty: #d9d4d2;         /* warm parchment — 49 hits */
  --brand-putty-soft: #ece8e6;
  --brand-brick: #c02b0a;         /* sparing emphasis — 18 hits */
  --ink: #262626;                 /* body — 14 hits */
  --ink-soft: #374047;            /* secondary — 7 hits */
  --ink-quiet: #607382;           /* tertiary, captions — 15 hits */
  --bg: #ffffff;
  --surface: #f9f9fa;             /* 7 hits */
  --surface-2: #efefef;           /* 11 hits */
  --border: #e8e8e8;              /* 12 hits */
  --border-strong: #d2d2d2;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: rgba(255, 255, 255, 0.78);

  /* type */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* layout */
  --container: 1240px;
  --container-narrow: 880px;
  --container-prose: 680px;
  --gutter: 32px;
  --section: 120px;
  --section-sm: 72px;

  /* radii */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-orange); text-decoration: none; }
a:hover { color: var(--brand-orange-deep); }

/* TYPOGRAPHY ----------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: "opsz" 144;
  font-size: clamp(56px, 7.6vw, 104px);
  line-height: 1.0;
  letter-spacing: -0.022em;
  color: var(--brand-navy);
  margin: 0;
}
.h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: "opsz" 96;
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.018em;
  color: var(--brand-navy);
  margin: 0 0 0.4em;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "opsz" 72;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--brand-navy);
  margin: 0 0 0.5em;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "opsz" 36;
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.22;
  color: var(--brand-navy);
  margin: 0 0 12px;
}
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin: 0 0 14px;
  display: inline-block;
}
.eyebrow.on-dark { color: var(--brand-orange-bright); }
.eyebrow.tan { color: var(--brand-tan); }

.lede {
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 32px;
  max-width: 56ch;
}
.lede.sans {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
}

p { margin: 0 0 1.1em; max-width: 70ch; }

.prose {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
}
.prose p { font-family: var(--font-serif); }
.prose a { color: var(--brand-navy); border-bottom: 1px solid var(--brand-orange); }
.prose a:hover { background: rgba(214, 119, 25, 0.08); }
.prose .scripture { margin: 32px 0; }

.scripture {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.45;
  color: var(--brand-navy);
  border-left: 3px solid var(--brand-tan);
  padding-left: 28px;
  max-width: 36ch;
}
.scripture .ref {
  display: block;
  font-style: normal;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-tan);
  margin-top: 18px;
}

/* ACCENT RULE (signature) --------------------------------- */
.accent-rule {
  width: 56px;
  height: 3px;
  background: var(--brand-orange);
  margin: 0 0 22px;
  border: 0;
  display: block;
}
.accent-rule.center { margin: 0 auto 22px; }
.accent-rule.tan { background: var(--brand-tan); }
.accent-rule.on-dark { background: var(--brand-orange-bright); }
.accent-rule.thin { height: 1px; width: 96px; }

/* BUTTONS -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border: 1.5px solid var(--brand-orange);
  background: var(--brand-orange);
  color: #fff;
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
  cursor: pointer;
}
.btn:hover { background: var(--brand-orange-deep); border-color: var(--brand-orange-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--brand-orange); }
.btn.ghost:hover { background: var(--brand-orange); color: #fff; }
.btn.on-photo { background: transparent; border-color: #fff; color: #fff; }
.btn.on-photo:hover { background: #fff; color: var(--brand-navy); border-color: #fff; }
.btn.navy { background: var(--brand-navy); border-color: var(--brand-navy); }
.btn.navy:hover { background: var(--brand-navy-deep); border-color: var(--brand-navy-deep); }
.btn.brick { background: var(--brand-brick); border-color: var(--brand-brick); }
.btn.brick:hover { background: #9c1c00; border-color: #9c1c00; }

.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-orange);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: color 160ms ease, border-color 160ms ease;
}
.btn-arrow .arrow { display: inline-block; transition: transform 200ms ease; }
.btn-arrow:hover { color: var(--brand-brick); border-color: var(--brand-orange); }
.btn-arrow:hover .arrow { transform: translateX(4px); }
.btn-arrow.on-dark { color: var(--brand-orange-bright); }
.btn-arrow.on-dark:hover { color: #fff; border-color: var(--brand-orange-bright); }
.btn-arrow.navy { color: var(--brand-navy); }
.btn-arrow.navy:hover { color: var(--brand-orange); border-color: var(--brand-navy); }

/* LAYOUT --------------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.container-prose  { max-width: var(--container-prose);  margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section-sm { padding: var(--section-sm) 0; }
.section.putty { background: var(--brand-putty); }
.section.surface { background: var(--surface); }
.section.navy { background: var(--brand-navy); color: var(--text-on-dark); }
.section.navy .display, .section.navy .h1, .section.navy .h2, .section.navy .h3 { color: #fff; }
.section.navy .lede, .section.navy p { color: var(--text-on-dark-muted); }
.section.navy .scripture { color: #fff; border-color: var(--brand-orange-bright); }
.section.navy .scripture .ref { color: var(--brand-orange-bright); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }

/* NAVIGATION ----------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 36px;
  background: transparent;
  transition: background 220ms ease, box-shadow 220ms ease, padding 220ms ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: #fff;
  border-bottom-color: var(--border);
  padding: 12px 36px;
}
.nav-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-brand img { height: 44px; width: auto; }
.nav-brand .wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--brand-navy);
  line-height: 1;
}
.nav-brand .wordmark .sub {
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.32em;
  color: var(--brand-orange);
  margin-top: 4px;
  text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--brand-navy);
  text-decoration: none;
  transition: color 140ms ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--brand-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}
.nav-links a:hover { color: var(--brand-orange); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav.over-photo { color: #fff; }
.nav.over-photo .nav-brand .wordmark { color: #fff; }
.nav.over-photo .nav-links a { color: rgba(255, 255, 255, 0.92); }
.nav.over-photo .nav-links a:hover { color: #fff; }
.nav.over-photo.scrolled .nav-brand .wordmark { color: var(--brand-navy); }
.nav.over-photo.scrolled .nav-links a { color: var(--brand-navy); }

.nav-cta {
  padding: 11px 20px;
  font-size: 11px;
  letter-spacing: 0.16em;
}

/* CARDS ---------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -16px rgba(29, 52, 94, 0.22);
}
.card .img {
  aspect-ratio: 4/3;
  background: var(--surface-2);
  background-size: cover;
  background-position: center;
}
.card .body { padding: 28px 28px 32px; }
.card .body .eyebrow { margin-bottom: 8px; }
.card .body .h3 { margin-bottom: 12px; }
.card .body p { color: var(--ink-soft); font-size: 15px; line-height: 1.55; margin-bottom: 18px; }

/* CHIP / TAG ----------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(214, 119, 25, 0.10);
  border: 1px solid rgba(214, 119, 25, 0.24);
  color: var(--brand-orange-deep);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
}
.chip.tan {
  background: rgba(161, 124, 75, 0.10);
  border-color: rgba(161, 124, 75, 0.26);
  color: var(--brand-tan);
}
.chip.navy {
  background: rgba(29, 52, 94, 0.08);
  border-color: rgba(29, 52, 94, 0.2);
  color: var(--brand-navy);
}
.chip.brick {
  background: rgba(192, 43, 10, 0.10);
  border-color: rgba(192, 43, 10, 0.24);
  color: var(--brand-brick);
}

/* DARK SECTION (footer, feature block) -------------------- */
.dark {
  background: var(--brand-navy);
  color: var(--text-on-dark);
}
.dark .h1, .dark .h2, .dark .h3, .dark .display { color: #fff; }
.dark .lede { color: var(--text-on-dark-muted); }
.dark .scripture { color: #fff; border-color: var(--brand-orange-bright); }
.dark .scripture .ref { color: var(--brand-orange-bright); }

/* FOOTER --------------------------------------------------- */
.footer {
  background: var(--brand-navy);
  color: var(--text-on-dark);
  padding: 84px 0 36px;
}
.footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}
.footer h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-orange-bright);
  margin: 0 0 22px;
  font-weight: 700;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 12px; }
.footer ul a { color: rgba(255, 255, 255, 0.78); font-size: 14px; transition: color 140ms; }
.footer ul a:hover { color: var(--brand-orange-bright); }
.footer .footer-brand img { height: 56px; margin-bottom: 22px; }
.footer .footer-brand p { color: rgba(255, 255, 255, 0.66); font-size: 14px; max-width: 320px; line-height: 1.55; font-family: var(--font-serif); font-style: italic; }
.footer .footer-brand .tagline {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 600;
  color: var(--brand-orange-bright);
  font-size: 19px;
  margin-bottom: 14px;
  letter-spacing: -0.005em;
}
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom .socials { display: flex; gap: 14px; }
.footer-bottom .socials a {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.74);
  transition: all 160ms ease;
  font-family: var(--font-sans);
  font-size: 12px;
}
.footer-bottom .socials a:hover {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
}

/* HERO ----------------------------------------------------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding: 180px 0 100px;
  color: #fff;
  overflow: hidden;
}
.hero .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(29, 52, 94, 0.28) 0%, rgba(29, 52, 94, 0.0) 32%, rgba(29, 52, 94, 0.78) 100%);
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; }
.hero .display { color: #fff; max-width: 18ch; }
.hero .lede { color: rgba(255, 255, 255, 0.92); max-width: 50ch; font-family: var(--font-sans); }
.hero .accent-rule { background: var(--brand-orange-bright); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 36px; }

/* FEATURE BAND (full-bleed photo + serif quote) ------------ */
.feature-band {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 120px 0;
  color: #fff;
  overflow: hidden;
}
.feature-band .bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.feature-band .scrim { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(29, 52, 94, 0.85) 30%, rgba(29, 52, 94, 0.55) 100%); z-index: 1; }
.feature-band .container { position: relative; z-index: 2; }

/* STAT GRID ----------------------------------------------- */
.stat {
  border-top: 2px solid var(--brand-orange);
  padding-top: 22px;
}
.stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: "opsz" 96;
  font-size: clamp(40px, 4.4vw, 60px);
  line-height: 1;
  color: var(--brand-navy);
  letter-spacing: -0.02em;
}
.stat .label {
  display: block;
  margin-top: 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

/* DEFINITION LIST (program facts) ------------------------- */
.deflist {
  border-top: 1px solid var(--border-strong);
}
.deflist > div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.deflist dt {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}
.deflist dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--ink);
}

/* RESPONSIVE ---------------------------------------------- */
@media (max-width: 880px) {
  .nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 80px 0; }
  .deflist > div { grid-template-columns: 1fr; gap: 6px; }
  .hero { padding: 140px 0 80px; min-height: 80vh; }
}

/* ============ SIGNATURE PATTERNS ============ */
/* PS-edu-only extensions to the canonical section catalog.
   See brand-spec.md → "Signature patterns (PS-edu-only)" for field schemas. */

/* sig-scripture-quote ------------------------------------- */
/* Block scripture/quote set-piece: optional editorial lead-in,
   then a warm-tan left rule with EB Garamond italic body, then attribution. */
.sig-scripture-quote {
  border-left: 3px solid var(--brand-tan);
  padding-left: 32px;
  margin: 56px 0;
  max-width: 44ch;
}
.sig-scripture-quote .lead-in {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--brand-navy);
  margin: 0 0 18px;
  text-transform: none;
}
.sig-scripture-quote .quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.45;
  color: var(--brand-navy);
  margin: 0;
}
.sig-scripture-quote .attribution {
  display: block;
  margin-top: 22px;
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-tan);
}
.sig-scripture-quote.on-dark {
  border-left-color: var(--brand-orange-bright);
}
.sig-scripture-quote.on-dark .lead-in,
.sig-scripture-quote.on-dark .quote { color: #fff; }
.sig-scripture-quote.on-dark .attribution { color: var(--brand-orange-bright); }

/* sig-editorial-listing ----------------------------------- */
/* Vertical "academic prospectus" stack. Each item: 56x3 orange top-rule,
   Inter eyebrow, Fraunces serif title (h3), EB Garamond body. */
.sig-editorial-listing {
  display: flex;
  flex-direction: column;
  gap: 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sig-editorial-listing > .item {
  margin: 0;
  padding: 0;
  max-width: 64ch;
}
.sig-editorial-listing > .item::before {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: var(--brand-orange);
  margin: 0 0 20px;
}
.sig-editorial-listing .eyebrow {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin: 0 0 12px;
  display: block;
}
.sig-editorial-listing .title {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "opsz" 36;
  font-size: clamp(24px, 2.2vw, 28px);
  line-height: 1.18;
  color: var(--brand-navy);
  margin: 0 0 14px;
  letter-spacing: -0.005em;
}
.sig-editorial-listing .title a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
.sig-editorial-listing .title a:hover {
  color: var(--brand-navy);
  border-bottom-color: var(--brand-orange);
}
.sig-editorial-listing .body {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
  max-width: 60ch;
}
.sig-editorial-listing.on-dark > .item::before { background: var(--brand-orange-bright); }
.sig-editorial-listing.on-dark .eyebrow { color: var(--brand-orange-bright); }
.sig-editorial-listing.on-dark .title { color: #fff; }
.sig-editorial-listing.on-dark .title a { color: rgba(255, 255, 255, 0.92); }
.sig-editorial-listing.on-dark .title a:hover { color: #fff; border-bottom-color: var(--brand-orange-bright); }
.sig-editorial-listing.on-dark .body { color: var(--text-on-dark-muted); }

/* sig-accent-rule ----------------------------------------- */
/* Standalone 56x3 orange decorative div for use above eyebrows.
   Functionally equivalent to .accent-rule but expressed as a <div>
   so the sprinkle pipeline can emit it as a discrete pattern. */
.sig-accent-rule {
  width: 56px;
  height: 3px;
  background: var(--brand-orange);
  margin: 0 0 16px;
  display: block;
}
.sig-accent-rule.tan { background: var(--brand-tan); }
.sig-accent-rule.on-dark { background: var(--brand-orange-bright); }
.sig-accent-rule.center { margin-left: auto; margin-right: auto; }
