/* ==========================================================================
   The Kingship Family — shared styles
   Palette: royal navy (from brand logo) + gold + cream
   Type: Fraunces (display) / Inter (body)
   ========================================================================== */

:root {
  --bg: #0a1442;
  --bg-elevated: #101c56;
  --bg-panel: #0d1850;
  --maroon: #060c33;
  --gold: #dba744;
  --gold-bright: #f0c469;
  --cream: #f5ede0;
  --text-muted: #a7b0d4;
  --hairline: rgba(219, 167, 68, 0.3);

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  color: var(--cream);
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
  max-width: 62ch;
  color: var(--cream);
}

.lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 46ch;
}

/* ---- focus & motion ---- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

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

/* ---- nav ---- */
.site-header {
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  background: rgba(10, 20, 66, 0.92);
  backdrop-filter: blur(6px);
  z-index: 20;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--cream);
}

.wordmark img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 2px;
}

.wordmark strong {
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--text-muted);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  color: var(--cream);
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
  cursor: pointer;
}

@media (max-width: 700px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--hairline);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open {
    max-height: 300px;
  }
  .nav-links a {
    display: block;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--hairline);
  }
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--gold);
  color: #1a1410;
}

.btn-primary:hover {
  background: var(--gold-bright);
}

.btn-ghost {
  border-color: var(--hairline);
  color: var(--cream);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* ---- layout sections ---- */
section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--hairline);
}

section:last-of-type {
  border-bottom: none;
}

.eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold-bright);
  margin: 0 0 0.6rem;
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

/* ---- hero: text hero (About / Give pages) ---- */
.hero {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(240, 196, 105, 0.35);
  pointer-events: none;
}

.hero-photo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.9rem 1.1rem;
  background: linear-gradient(to top, rgba(10, 20, 66, 0.92), rgba(10, 20, 66, 0));
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--gold-bright);
  margin: 0;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero .lede {
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

.gather-times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 480px;
  border-top: 1px solid var(--hairline);
  padding-top: 1.5rem;
}

.gather-times dt {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-bright);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.gather-times dd {
  margin: 0;
  color: var(--cream);
  font-size: 0.92rem;
}

.gather-times dd + dt {
  margin-top: 0;
}

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

/* ---- hero: full-bleed photo hero (Home page only) ---- */
.hero-full {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: saturate(0.82) contrast(1.06) brightness(0.55);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 20, 66, 0.2) 0%, rgba(10, 20, 66, 0.62) 58%, rgba(10, 20, 66, 0.98) 100%);
}

.hero-full .wrap {
  position: relative;
  z-index: 1;
  padding-top: 11rem;
  padding-bottom: 3.5rem;
}

.hero-full h1 {
  margin-bottom: 1rem;
}

.hero-full .lede {
  margin-bottom: 2rem;
  color: var(--cream);
}

.hero-full .gather-times {
  border-top-color: rgba(245, 237, 224, 0.25);
}

@media (max-width: 700px) {
  .hero-full {
    min-height: 0;
  }
  .hero-full .wrap {
    padding-top: 7rem;
  }
}

/* ---- info panel (reused: hero side panels, give panel) ---- */
.info-panel,
.give-panel {
  background: var(--bg-panel);
  border: 1px solid var(--hairline);
  padding: 2rem;
}

.info-panel h3,
.give-panel h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.info-panel dl,
.give-panel dl {
  margin: 0;
}

.info-panel dt,
.give-panel dt {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 1rem;
}

.info-panel dt:first-child,
.give-panel dt:first-child {
  margin-top: 0;
}

.info-panel dd,
.give-panel dd {
  margin: 0.15rem 0 0;
  font-size: 1rem;
}

.people-preview {
  display: flex;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.people-preview img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border: 2px solid var(--bg);
  box-shadow: inset 0 0 0 1px rgba(240, 196, 105, 0.35);
}

.people-preview img:first-child {
  margin-right: -1.5rem;
  z-index: 1;
}

/* ---- section rhythm ---- */
.section-tint {
  background: var(--bg-elevated);
}

/* ---- icon line marks ---- */
.icon-line {
  width: 30px;
  height: 30px;
  color: var(--gold);
  margin-bottom: 0.9rem;
  display: block;
}

/* ---- CTA band (single bold color moment) ---- */
.cta-band {
  background: var(--gold);
  border-bottom: none;
}

.cta-band .eyebrow {
  color: rgba(10, 20, 66, 0.65);
}

.cta-band h2 {
  color: var(--bg);
}

.cta-band p {
  color: rgba(10, 20, 66, 0.82);
}

.cta-band .btn-primary {
  background: var(--bg);
  color: var(--gold-bright);
}

.cta-band .btn-primary:hover {
  background: #132057;
  color: var(--gold-bright);
}

/* ---- three-up (aims / whats on) ---- */
.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
}

.trio > * {
  padding: 2.25rem 1.75rem 2.25rem 0;
  border-right: 1px solid var(--hairline);
}

.trio > *:last-child {
  border-right: none;
  padding-right: 0;
}

.trio > *:not(:first-child) {
  padding-left: 1.75rem;
}

.trio h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.trio p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 32ch;
}

@media (max-width: 760px) {
  .trio {
    grid-template-columns: 1fr;
  }
  .trio > * {
    border-right: none;
    border-bottom: 1px solid var(--hairline);
    padding: 1.75rem 0;
  }
  .trio > *:not(:first-child) {
    padding-left: 0;
  }
  .trio > *:last-child {
    border-bottom: none;
  }
}

/* ---- pull quote ---- */
.pull-quote {
  background: var(--maroon);
  border-bottom: 1px solid var(--hairline);
}

.pull-quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.4;
  max-width: 44ch;
  color: var(--gold-bright);
}

.pull-quote cite {
  display: block;
  margin-top: 1.25rem;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---- leadership / people ---- */
.people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 1rem;
}

.person {
  border-top: 1px solid var(--hairline);
  padding-top: 1.25rem;
}

.person-photo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 1px solid var(--hairline);
  box-shadow: inset 0 0 0 1px rgba(240, 196, 105, 0.35);
  margin-bottom: 1rem;
}

.person .role {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-bright);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.person h3 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.person p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .people {
    grid-template-columns: 1fr;
  }
}

/* ---- give / connect blocks ---- */
.give-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 800px) {
  .give-block {
    grid-template-columns: 1fr;
  }
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  border-top: 1px solid var(--hairline);
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-list li:last-child {
  border-bottom: 1px solid var(--hairline);
}

.contact-list .label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-list a {
  text-decoration: none;
  color: var(--gold-bright);
}

.contact-list a:hover {
  text-decoration: underline;
}

/* ---- footer ---- */
.site-footer {
  padding: 3rem 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-grid nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.footer-grid nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-grid nav a:hover {
  color: var(--gold-bright);
}

.footer-fine {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 0;
}

.person-photo-lg {
  width: 100%;
  max-width: 260px;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--hairline);
  box-shadow: inset 0 0 0 1px rgba(240, 196, 105, 0.35);
  margin-bottom: 1rem;
}