/* ==========================================================================
   Brook Church Koegel — brookchurchkoegel.com
   Editorial system: warm paper, warm ink, bronze. Fraunces + Inter.
   ========================================================================== */

:root {
  --paper: #F5F1EA;
  --paper-soft: #EFE9DE;
  --card: #FAF7F1;
  --ink: #181510;
  --ink-2: #5D5646;
  --line: rgba(24, 21, 16, 0.13);
  --dark: #14110C;
  --dark-2: #1B1711;
  --line-dark: rgba(242, 237, 227, 0.15);
  --paper-on-dark: #F2EDE3;
  --mute-on-dark: #A79D89;
  --gold: #8A6430;         /* accessible bronze on paper */
  --gold-mid: #A87C3F;
  --gold-bright: #D8B274;  /* bronze on dark */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
  --nav-h: 76px;
}

/* ---------- Reset-lite ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.profile-name-link { text-decoration: underline; text-underline-offset: 0.15em; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
ul, ol { list-style: none; }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--gold-mid); color: var(--paper); }
:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 0.75rem 1.25rem;
}
.skip-link:focus { left: 0; }

.container { width: min(1160px, 100% - 3rem); margin-inline: auto; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.04; letter-spacing: -0.015em; }
h1 em, h2 em { font-style: italic; font-weight: 500; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}
.eyebrow::before { content: ""; width: 2.2rem; height: 1px; background: var(--gold-mid); }
.on-dark .eyebrow { color: var(--gold-bright); }
.on-dark .eyebrow::before { background: var(--gold-bright); }

.lead { font-size: 1.16rem; color: var(--ink-2); max-width: 56ch; }
.on-dark .lead { color: var(--mute-on-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600;
  padding: 0.95rem 1.7rem; border-radius: 4px;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-solid { background: var(--gold-mid); color: #14110C; }
.btn-solid:hover { background: var(--gold-bright); }
.btn-ghost { border: 1px solid rgba(242, 237, 227, 0.35); color: var(--paper-on-dark); }
.btn-ghost:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.btn-ghost-ink { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost-ink:hover { border-color: var(--gold-mid); color: var(--gold); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.35s var(--ease), border-color 0.35s, color 0.35s;
  color: var(--paper-on-dark);
  border-bottom: 1px solid transparent;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav.scrolled {
  background: rgba(245, 241, 234, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  color: var(--ink);
}
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; letter-spacing: 0.01em; }
.brand .dot { color: var(--gold-mid); }
.nav-links { display: flex; align-items: center; gap: 2.1rem; }
.nav-links a { font-size: 0.92rem; font-weight: 500; opacity: 0.85; transition: opacity 0.2s, color 0.2s; }
.nav-links a:hover { opacity: 1; color: var(--gold-mid); }
.nav-cta {
  font-size: 0.88rem; font-weight: 600;
  border: 1px solid currentColor; border-radius: 4px;
  padding: 0.5rem 1.05rem; opacity: 0.95;
}
.nav-cta:hover { color: var(--gold-mid); }

.menu-btn { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 120; }
.menu-btn span { display: block; width: 24px; height: 2px; background: currentColor; transition: transform 0.3s var(--ease), opacity 0.3s; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 110;
  background: var(--dark);
  display: flex; flex-direction: column; justify-content: center;
  padding: 2rem;
  opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease);
}
.mobile-menu a {
  font-family: var(--serif); font-size: 2.2rem; font-weight: 500;
  color: var(--paper-on-dark); padding: 0.55rem 0;
}
.mobile-menu a:hover { color: var(--gold-bright); }
body.menu-open { overflow: hidden; }
body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
body.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
body.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.menu-open .menu-btn { color: var(--paper-on-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--dark);
  color: var(--paper-on-dark);
  min-height: 100svh;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.hero-inner {
  flex: 1;
  display: flex; align-items: center;
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: 3rem;
  position: relative; z-index: 2;
}
.hero-copy { max-width: 640px; }
.hero h1 {
  font-size: clamp(3.1rem, 8.4vw, 6.4rem);
  font-weight: 600;
  color: var(--paper-on-dark);
  margin: 0.4rem 0 1.6rem;
}
.hero h1 em { display: block; color: var(--gold-bright); }
.hero .dek {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--mute-on-dark);
  max-width: 54ch;
  margin-bottom: 2.3rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero-loc {
  margin-top: 2.6rem;
  font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mute-on-dark);
  display: flex; align-items: center; gap: 0.6rem;
}
.hero-loc::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-bright); }

.hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 47%; z-index: 1; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  filter: grayscale(1) contrast(1.03) brightness(0.94);
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--dark) 2%, rgba(20, 17, 12, 0.55) 22%, rgba(20, 17, 12, 0) 52%),
    linear-gradient(0deg, var(--dark) 0%, rgba(20, 17, 12, 0) 30%),
    linear-gradient(180deg, rgba(20, 17, 12, 0.6) 0%, rgba(20, 17, 12, 0) 24%);
}

.hero-stats {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line-dark);
  background: rgba(20, 17, 12, 0.4);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hero-stats .container {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; padding-block: 1.5rem;
}
.stat .num { display: block; font-family: var(--serif); font-style: italic; font-size: 1.85rem; color: var(--gold-bright); line-height: 1.1; }
.stat .lbl { display: block; font-size: 0.76rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--mute-on-dark); margin-top: 0.3rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(5rem, 11vh, 8rem); }
.section-dark { background: var(--dark); color: var(--paper-on-dark); }
.section-head { max-width: 720px; margin-bottom: 3.4rem; }
.section-head h2 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); margin-bottom: 1.1rem; }
.section-head h2 em { color: var(--gold); }
.section-dark .section-head h2 em { color: var(--gold-bright); }

/* ---------- Ventures ---------- */
.ventures-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}
.venture {
  background: var(--paper);
  padding: 2.6rem 2.4rem;
  transition: background 0.3s var(--ease);
  position: relative;
}
.venture:hover { background: var(--card); }
.venture .num {
  font-family: var(--serif); font-style: italic;
  font-size: 1rem; color: var(--gold);
  display: block; margin-bottom: 1.6rem;
}
.venture h3 { font-size: 1.55rem; margin-bottom: 0.4rem; }
.venture .role {
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold);
  display: block; margin-bottom: 1rem;
}
.venture p { color: var(--ink-2); font-size: 0.99rem; max-width: 44ch; }

/* ---------- Quote band ---------- */
.quote-band { padding-block: clamp(5rem, 12vh, 8rem); }
.quote-band blockquote {
  max-width: 880px; margin-inline: auto; text-align: center;
  position: relative;
}
.quote-band .mark {
  font-family: var(--serif); font-style: italic;
  font-size: 5rem; line-height: 0.5; color: var(--gold-bright);
  display: block; margin-bottom: 1.6rem;
}
.quote-band p {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.9rem, 4.4vw, 3.1rem); line-height: 1.2;
  color: var(--paper-on-dark);
}
.quote-band cite {
  display: inline-flex; align-items: center; gap: 0.9rem;
  margin-top: 2.2rem; font-style: normal;
  font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mute-on-dark);
}
.quote-band cite::before { content: ""; width: 2.2rem; height: 1px; background: var(--gold-bright); }

/* ---------- Timeline ---------- */
.timeline { max-width: 760px; position: relative; padding-left: 2.6rem; }
.timeline::before {
  content: ""; position: absolute; left: 0.28rem; top: 0.5rem; bottom: 0.5rem;
  width: 1px; background: var(--line);
}
.tl-item { position: relative; padding-bottom: 2.8rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -2.6rem; top: 0.52rem;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold-mid);
  box-shadow: 0 0 0 4px var(--paper);
}
.tl-item .year {
  font-family: var(--serif); font-style: italic;
  font-size: 1.05rem; color: var(--gold);
  display: block; margin-bottom: 0.35rem;
}
.tl-item h3 { font-size: 1.4rem; margin-bottom: 0.55rem; }
.tl-item p { color: var(--ink-2); max-width: 58ch; }
.story-cta { margin-top: 3.2rem; padding-left: 2.6rem; }

/* ---------- Insights ---------- */
.insights-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.8rem; }
.insights-head .section-head { margin-bottom: 0; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 0.4rem; }
.post-card {
  border: 1px solid var(--line); background: var(--card);
  padding: 1.8rem; display: flex; flex-direction: column; gap: 0.7rem;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.post-card:hover { transform: translateY(-4px); border-color: var(--gold-mid); }
.post-card time { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.post-card h3 { font-size: 1.28rem; line-height: 1.25; }
.post-card p { font-size: 0.93rem; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .more { margin-top: auto; font-size: 0.88rem; font-weight: 600; color: var(--gold); }

/* ---------- Connect ---------- */
.connect { text-align: center; }
.connect .eyebrow { justify-content: center; }
.connect .eyebrow::after { content: ""; width: 2.2rem; height: 1px; background: var(--gold-bright); }
.connect h2 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); margin-bottom: 1.4rem; }
.connect h2 em { color: var(--gold-bright); }
.connect .lead { margin-inline: auto; margin-bottom: 2.6rem; }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.4rem; }
.social-pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  border: 1px solid var(--line-dark); border-radius: 999px;
  padding: 0.62rem 1.25rem;
  font-size: 0.9rem; font-weight: 500; color: var(--paper-on-dark);
  transition: border-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.social-pill:hover { border-color: var(--gold-bright); color: var(--gold-bright); transform: translateY(-2px); }
.social-pill svg { width: 17px; height: 17px; fill: currentColor; }
.connect-loc { margin-top: 2.8rem; font-size: 0.84rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--mute-on-dark); }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: var(--mute-on-dark); border-top: 1px solid var(--line-dark); }
.footer-main {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 2rem; flex-wrap: wrap;
  padding-block: 3.2rem 2.4rem;
}
.footer .brand { color: var(--paper-on-dark); font-size: 1.35rem; }
.footer-tag { font-size: 0.88rem; margin-top: 0.5rem; max-width: 34ch; }
.footer-nav { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.footer-nav a { font-size: 0.9rem; color: var(--paper-on-dark); opacity: 0.75; }
.footer-nav a:hover { opacity: 1; color: var(--gold-bright); }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: 1.4rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.8rem;
}
.footer-bottom .ventures-line { letter-spacing: 0.08em; }

/* ---------- About page ---------- */
.page-hero {
  background: var(--dark); color: var(--paper-on-dark);
  padding-top: calc(var(--nav-h) + clamp(3.5rem, 9vh, 6rem));
  padding-bottom: clamp(3.5rem, 8vh, 5.5rem);
}
.page-hero h1 { font-size: clamp(2.7rem, 6.6vw, 5rem); color: var(--paper-on-dark); max-width: 15ch; }
.page-hero h1 em { color: var(--gold-bright); }
.page-hero .dek { margin-top: 1.4rem; font-size: 1.12rem; color: var(--mute-on-dark); max-width: 56ch; }

.article { max-width: 720px; margin-inline: auto; }
.article-figure { margin-block: 0 3rem; }
.article-figure img { width: 100%; filter: grayscale(1) contrast(1.02); }
.article-figure figcaption {
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-2); margin-top: 0.9rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.article-figure figcaption::before { content: ""; width: 1.8rem; height: 1px; background: var(--gold-mid); }
.article h2 {
  font-size: 1.9rem; margin: 3rem 0 1.1rem;
}
.article p { color: #3E392E; margin-bottom: 1.35rem; }
.article > p:first-of-type::first-letter {
  font-family: var(--serif); font-weight: 600;
  font-size: 3.6em; line-height: 0.82;
  float: left; padding: 0.08em 0.12em 0 0;
  color: var(--gold);
}
.article .pull {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 1.7rem; line-height: 1.3; color: var(--ink);
  border-left: 2px solid var(--gold-mid);
  padding-left: 1.6rem; margin: 2.6rem 0;
}
.about-cta { text-align: center; }
.about-cta h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1.8rem; }
.about-cta h2 em { color: var(--gold-bright); }
.about-cta .hero-actions { justify-content: center; }


/* ---------- Article lists (dash bullets; the global reset removes list-style) ---------- */
.article ul { margin: 0 0 1.35rem; display: grid; gap: 0.55rem; }
.article ul li { display: flex; gap: 0.8rem; color: #3E392E; }
.article ul li::before { content: "—"; color: var(--gold-mid); flex-shrink: 0; }
.article ol { margin: 0 0 1.35rem 1.4rem; list-style: decimal; color: #3E392E; display: grid; gap: 0.55rem; }

/* ---------- 404 ---------- */
.err {
  min-height: 100svh; background: var(--dark); color: var(--paper-on-dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2rem;
}
.err .eyebrow { justify-content: center; }
.err .eyebrow::after { content: ""; width: 2.2rem; height: 1px; background: var(--gold-bright); }
.err h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); font-style: italic; font-weight: 500; color: var(--paper-on-dark); margin-bottom: 1rem; }
.err p { color: var(--mute-on-dark); margin-bottom: 2.4rem; }

/* ---------- Reveal (progressive: only hides when JS is running) ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(22px); }
html.js .revealed { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .btn, .post-card, .social-pill { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .ventures-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .hero-media { width: 52%; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-btn { display: flex; }
  .hero { min-height: auto; }
  .hero-inner { flex-direction: column; align-items: stretch; padding-top: var(--nav-h); }
  .hero-media {
    position: relative; width: calc(100% + 3rem); margin-inline: -1.5rem;
    height: min(64vw, 460px); order: -1;
  }
  .hero-media img { object-position: center 18%; }
  .hero-media::after {
    background:
      linear-gradient(0deg, var(--dark) 4%, rgba(20, 17, 12, 0) 42%),
      linear-gradient(180deg, rgba(20, 17, 12, 0.45) 0%, rgba(20, 17, 12, 0) 26%);
  }
  .hero-copy { padding-top: 1.2rem; }
  .hero-stats .container { grid-template-columns: 1fr 1fr; gap: 1.4rem 1rem; }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 2.4rem); }
  .venture { padding: 2rem 1.5rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-main { flex-direction: column; }
}
