/* ==========================================================================
   The BlackPrint Project: main site design system
   Brand source of truth: stories.theblackprintproject.com
   ========================================================================== */

@font-face {
  font-family: "Geist";
  src: url("../fonts/GeistVF.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand palette (matches stories.theblackprintproject.com) */
  --bp-50:  #FDF8EC;
  --bp-100: #FAF0D3;
  --bp-200: #F4E0A6;
  --bp-300: #EDCE78;
  --bp-400: #E5BB4A;
  --bp-500: #C4932A;
  --bp-600: #A87A1E;
  --bp-700: #8C6215;
  --bp-800: #704C0E;
  --bp-900: #543808;
  --bp-black: #111111;
  --bp-ink: #1A1A1A;
  --bp-white: #FFFFFF;
  --bp-line: #E7E1D3;

  /* Type */
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --font-body: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 7rem;

  --max-width: 1180px;
  --max-width-narrow: 760px;
  --radius: 6px;
  --transition: 220ms ease;

  /* Text-role tokens (light-background default). WCAG AA checked against their
     actual backgrounds; .section-black below overrides every one of these for
     dark sections so contrast is corrected at the token level, not per instance. */
  --text-lede: #3A3A3A;      /* on white/cream: 11.4:1 / 10.7:1 */
  --text-muted: #55534B;     /* on white/cream: 7.7:1 / 7.3:1 */
  --text-eyebrow: var(--bp-700);  /* on white/cream: 5.4:1 / 5.1:1 */
  --text-link: var(--bp-700);     /* on white/cream: 5.4:1 / 5.1:1 */
  --text-cite: var(--bp-700);
}

.section-black, .hero, .page-hero {
  --text-lede: #EDEAE1;      /* on black: 15.7:1, was #D8D3C4 (12.6:1) kept generous for readability */
  --text-muted: #B5B0A0;     /* on black: 8.7:1, was #8C887C (5.3:1) */
  --text-eyebrow: var(--bp-400); /* on black: 10.4:1 */
  --text-link: var(--bp-400);    /* on black: 10.4:1 */
  --text-cite: var(--bp-300);
}

/* ---- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--bp-ink);
  background: var(--bp-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--bp-500); outline-offset: 2px; }
.section-black :focus-visible, .hero :focus-visible, .page-hero :focus-visible { outline-color: var(--bp-400); }

/* Inline links inside prose (not nav/footer/buttons/cards, which style their own links)
   need to stay visibly distinct and high-contrast wherever they appear. */
p a, li a, .lede a, .small a { color: var(--text-link); text-decoration: underline; text-underline-offset: 2px; }
p a:hover, li a:hover, .lede a:hover, .small a:hover { color: var(--bp-600); }
.section-black p a:hover, .section-black li a:hover, .section-black .lede a:hover, .section-black .small a:hover,
.hero p a:hover, .page-hero p a:hover { color: var(--bp-200); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0 0 var(--space-2); color: var(--bp-black); }
p { margin: 0 0 var(--space-2); }
ul, ol { margin: 0 0 var(--space-2); padding-left: 1.2em; }
button { font-family: inherit; }

/* ---- Type scale ---------------------------------------------------------*/
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-eyebrow);
  margin: 0 0 var(--space-2);
  display: block;
}
h1, .h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2, .h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3, .h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-lede); }
.small { font-size: 0.9rem; color: var(--text-muted); }

/* ---- Layout -------------------------------------------------------------*/
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-3); }
.container-narrow { max-width: var(--max-width-narrow); margin: 0 auto; padding: 0 var(--space-3); }
.section { padding: var(--space-6) 0; }
.section-tight { padding: var(--space-5) 0; }
@media (max-width: 640px) {
  .section { padding: var(--space-5) 0; }
}
.section-black { background: var(--bp-black); color: var(--bp-white); }
.section-black h1, .section-black h2, .section-black h3 { color: var(--bp-white); }
.section-cream { background: var(--bp-50); }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; }
.grid { display: grid; gap: var(--space-4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-7 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4, .grid-7 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .grid-7 { grid-template-columns: 1fr; }
}
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-5); align-items: center; }
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ---- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--bp-500); color: var(--bp-black); border-color: var(--bp-500); }
.btn-primary:hover { background: var(--bp-400); }
.btn-outline { background: transparent; color: var(--bp-black); border-color: var(--bp-black); }
.btn-outline:hover { background: var(--bp-black); color: var(--bp-white); }
.section-black .btn-outline { color: var(--bp-white); border-color: var(--bp-white); }
.section-black .btn-outline:hover { background: var(--bp-white); color: var(--bp-black); }
.btn-text { color: var(--text-link); font-weight: 600; text-decoration: none; }
.btn-text:hover { text-decoration: underline; }
.btn-row { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* ---- Header / nav ------------------------------------------------------*/
.site-header {
  background: var(--bp-black);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #2a2a2a;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: var(--space-1); padding-bottom: var(--space-1); gap: var(--space-3); }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--bp-white); line-height: 1.1; }
.brand-tagline { display: block; font-size: 0.68rem; letter-spacing: 0.08em; color: var(--bp-500); text-transform: uppercase; margin-top: 2px; }
.main-nav { display: flex; align-items: center; gap: var(--space-4); }
.main-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: var(--space-3); }
.main-nav a { color: #E8E4D8; text-decoration: none; font-size: 0.93rem; font-weight: 500; padding: 0.4em 0; border-bottom: 2px solid transparent; transition: border-color var(--transition), color var(--transition); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--bp-white); border-color: var(--bp-500); }
.nav-cta { display: flex; gap: 0.6rem; align-items: center; }
.nav-toggle { display: none; background: none; border: 1px solid #444; color: var(--bp-white); padding: 0.4em 0.7em; border-radius: var(--radius); }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--bp-black); flex-direction: column; align-items: stretch; padding: var(--space-2) var(--space-3) var(--space-3); border-bottom: 1px solid #2a2a2a; display: none; }
  .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 0.75em 0; border-bottom: 1px solid #232323; }
  .nav-cta { flex-direction: column; align-items: stretch; margin-top: var(--space-2); }
  .site-header .container { position: relative; flex-wrap: wrap; }
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--bp-500); color: var(--bp-black);
  padding: 0.75em 1.2em; z-index: 100; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: var(--space-2); top: var(--space-1); }

/* ---- Hero ---------------------------------------------------------------*/
.hero { background: var(--bp-black); color: var(--bp-white); padding: var(--space-7) 0 var(--space-6); }
.hero h1 { color: var(--bp-white); max-width: 16ch; }
.hero .lede { max-width: 58ch; }
.hero-grid { align-items: start; }
.hero-logo { display: flex; justify-content: center; }
.hero-logo img { margin-top: var(--space-1); }
.hero-logo img { width: 100%; max-width: 420px; }
@media (max-width: 860px) {
  .hero-logo { margin-top: var(--space-5); }
  .hero-logo img { max-width: 320px; }
}
.page-hero { background: var(--bp-black); color: var(--bp-white); padding: var(--space-6) 0 var(--space-5); }
.page-hero h1 { color: var(--bp-white); }

/* ---- Cards ----------------------------------------------------------- */
.card {
  background: var(--bp-white);
  border: 1px solid var(--bp-line);
  border-radius: var(--radius);
  padding: var(--space-3);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.card:hover { box-shadow: 0 8px 28px rgba(17,17,17,0.07); border-color: var(--bp-300); }
.card h3 { margin-bottom: var(--space-1); }
.card-number { font-family: var(--font-display); font-size: 1.6rem; color: var(--bp-700); margin-bottom: var(--space-1); }
.sector-card { background: var(--bp-black); color: var(--bp-white); border-radius: var(--radius); padding: var(--space-3); border: 1px solid #2a2a2a; --text-lede: #EDEAE1; --text-muted: #B5B0A0; --text-link: var(--bp-400); }
.sector-card h3 { color: var(--bp-white); }
.sector-card p { color: var(--text-muted); }
.sector-card a { color: var(--text-link); font-weight: 600; text-decoration: none; }
.sector-card a:hover { text-decoration: underline; }

/* ---- Pull quote / editorial devices ------------------------------------*/
.pull-quote { font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.4; color: var(--bp-black); max-width: 34ch; margin: 0 auto; }
.section-black .pull-quote { color: var(--bp-white); }
.pull-quote cite { display: block; font-style: normal; font-size: 0.85rem; color: var(--text-cite); margin-top: var(--space-2); }
.divider { height: 1px; background: var(--bp-line); border: 0; margin: var(--space-5) 0; }
.section-black .divider { background: #2a2a2a; }

/* ---- Image placeholder (used until real photography is supplied) -------*/
.image-frame {
  border: 1.5px dashed var(--bp-400);
  background: var(--bp-50);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  min-height: 260px;
  color: var(--bp-700);
  text-align: center;
}
.image-frame .frame-label { max-width: 32ch; font-size: 0.9rem; line-height: 1.5; }
.image-frame .frame-label strong { display: block; font-family: var(--font-display); font-size: 1rem; margin-bottom: 0.4em; color: var(--bp-800); }
.image-frame.portrait { aspect-ratio: 3/4; min-height: 0; }
.image-frame.wide { aspect-ratio: 16/9; min-height: 0; }
.photo-frame { border-radius: var(--radius); overflow: hidden; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Standalone prominence statement (breathing-room sections) ---------*/
.statement-section { padding: var(--space-7) 0; text-align: center; }
@media (max-width: 640px) {
  .statement-section { padding: var(--space-6) 0; }
}
.statement {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  line-height: 1.35;
  max-width: 30ch;
  margin: 0 auto;
}
.statement-wide { max-width: 46ch; }

/* ---- Standalone short-line sequences (non-bulleted, emotional pacing) ---*/
.line-sequence p { margin: 0 0 0.6em; }
.line-sequence p:last-child { margin-bottom: 0; }

/* ---- Pathway split -------------------------------------------------------*/
.pathways { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
@media (max-width: 720px) { .pathways { grid-template-columns: 1fr; } }
.pathway { border-radius: var(--radius); padding: var(--space-4); border: 1px solid var(--bp-line); }
.pathway.gold { background: var(--bp-black); color: var(--bp-white); border-color: var(--bp-black); --text-lede: #EDEAE1; --text-muted: #B5B0A0; --text-link: var(--bp-400); }
.pathway.gold h3 { color: var(--bp-white); }
.pathway.gold p { color: var(--text-muted); }
.pathway.cream { background: var(--bp-50); }

/* ---- Steps / progression -------------------------------------------------*/
.progression { display: flex; flex-wrap: wrap; align-items: stretch; gap: var(--space-2); justify-content: center; }
.progression .step { flex: 1 1 140px; text-align: center; padding: var(--space-2); }
.progression .step .word { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--bp-black); }
.section-black .progression .step .word { color: var(--bp-white); }
.progression .step .desc { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.3em; }
.progression .arrow { align-self: center; color: var(--text-link); font-size: 1.4rem; }

/* ---- Footer ---------------------------------------------------------- */
.site-footer {
  background: var(--bp-black);
  color: var(--bp-white);
  padding: var(--space-6) 0 var(--space-4);
  --text-lede: #EDEAE1;
  --text-muted: #B5B0A0;   /* on black: 8.7:1 */
  --text-link: var(--bp-400);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-4); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--bp-400); font-family: var(--font-body); text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.1em; margin-bottom: var(--space-2); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.6em; }
.footer-grid a { color: var(--text-muted); text-decoration: none; font-size: 0.92rem; }
.footer-grid a:hover, .footer-grid a:focus-visible { color: var(--bp-white); text-decoration: underline; }
.footer-brand { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: var(--space-2); }
.footer-brand img { width: 40px; height: 40px; object-fit: contain; }
.footer-brand-name { color: var(--bp-white); font-family: var(--font-display); font-weight: 700; }
.footer-brand-tagline { color: var(--text-muted); }
.footer-blurb { color: var(--text-muted); max-width: 34ch; }
.footer-bottom { border-top: 1px solid #2a2a2a; margin-top: var(--space-5); padding-top: var(--space-3); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2); font-size: 0.82rem; color: var(--text-muted); }
.footer-bottom a { color: var(--text-muted); text-decoration: underline; }
.footer-bottom a:hover, .footer-bottom a:focus-visible { color: var(--bp-white); }

/* ---- Utility ------------------------------------------------------------*/
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.badge { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.3em 0.7em; border-radius: 999px; background: var(--bp-100); color: var(--bp-800); }
.note { font-size: 0.85rem; color: #6B6858; border-left: 3px solid var(--bp-300); padding-left: var(--space-2); }
