/* ==========================================================================
   Edward Agyeman Ministry — site styles
   Crisp ink, warm neutrals, a quiet evergreen accent.
   ========================================================================== */

/* Fonts (Inter + Newsreader) are loaded with <link> tags in each page's <head>. */

:root {
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Newsreader", ui-serif, Georgia, serif;

  /* Black & white palette. The old colour names are kept so every component
     picks up the monochrome values automatically. */
  --ink: #0a0a0a;
  --ink-soft: #262626;
  --bone: #f5f5f5;
  --mist: #f2f2f2;
  --pine: #000;
  --pine-bright: #404040;
  --pine-tint: #f0f0f0;
  --gold: #fff;
  --ember: #262626;
  --sapphire: #262626;

  --radius: 0.75rem;
  --background: #fff;
  --foreground: #0a0a0a;
  --card: #fff;
  --primary: #000;
  --primary-foreground: #fff;
  --secondary: #f2f2f2;
  --secondary-foreground: #0a0a0a;
  --muted: #f4f4f4;
  --muted-foreground: #595959;
  --accent: #f0f0f0;
  --destructive: #000;
  --border: #e5e5e5;
  --input: #dcdcdc;
  --ring: #000;

  --shadow-card: 0 1px 2px 0 rgb(16 24 40 / 0.04), 0 2px 8px -2px rgb(16 24 40 / 0.06);
  --shadow-lifted: 0 2px 4px -1px rgb(16 24 40 / 0.05), 0 10px 24px -4px rgb(16 24 40 / 0.1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --glow-hero: radial-gradient(52rem 30rem at 85% -10%, rgb(255 255 255 / 0.12), transparent 60%),
    radial-gradient(44rem 26rem at -10% 110%, rgb(255 255 255 / 0.06), transparent 60%);
  --glow-page: radial-gradient(46rem 24rem at 88% -10%, rgb(255 255 255 / 0.12), transparent 60%),
    radial-gradient(28rem 18rem at 0% 115%, rgb(255 255 255 / 0.06), transparent 62%);
  --glow-card: radial-gradient(20rem 14rem at 90% 0%, rgb(255 255 255 / 0.1), transparent 65%),
    radial-gradient(16rem 10rem at 0% 100%, rgb(255 255 255 / 0.05), transparent 60%);
  --glow-band: radial-gradient(36rem 18rem at 100% 100%, rgb(255 255 255 / 0.1), transparent 60%),
    radial-gradient(24rem 14rem at 0% 0%, rgb(255 255 255 / 0.06), transparent 60%);
}

/* ------------------------------- base ---------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, blockquote, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; }
button:not([disabled]), [role="button"]:not([disabled]) { cursor: pointer; }
[hidden] { display: none !important; }
em { font-style: italic; }

:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--ring) 60%, transparent);
  outline-offset: 2px;
}

.icon { width: 1rem; height: 1rem; flex-shrink: 0; }
.icon-xs { width: 0.75rem; height: 0.75rem; }
.icon-sm { width: 0.875rem; height: 0.875rem; }
.icon-lg { width: 1.25rem; height: 1.25rem; }
.icon-xl { width: 1.5rem; height: 1.5rem; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.container-narrow { max-width: 64rem; }

.section { padding-block: 6rem; }
.section-tail { padding-bottom: 6rem; }
@media (min-width: 640px) {
  .section { padding-block: 7rem; }
  .section-tail { padding-bottom: 7rem; }
}

.band-mist { background: var(--mist); border-block: 1px solid color-mix(in oklab, var(--border) 70%, transparent); }
.band-bone { background: var(--bone); border-block: 1px solid color-mix(in oklab, var(--border) 70%, transparent); }
.band-top { border-top: 1px solid color-mix(in oklab, var(--border) 70%, transparent); }

.text-gold { color: var(--gold); }
.text-primary { color: var(--primary); }
.muted { color: var(--muted-foreground); }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mt-20 { margin-top: 5rem; }

/* ------------------------------ motion --------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s var(--ease-out) var(--delay, 0s),
    transform 0.55s var(--ease-out) var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

.fade-up { animation: fade-up 0.5s ease both; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .fade-up { animation: none; }
}

/* ------------------------------ buttons -------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.25rem;
  padding: 0 1rem;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 2px);
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s;
}
.btn:hover { background: #262626; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.btn-lg { height: 2.5rem; padding: 0 1.5rem; }
.btn-sm { height: 2rem; padding: 0 0.75rem; gap: 0.375rem; }
.btn-block { width: 100%; }

.btn-outline {
  background: var(--background);
  color: var(--foreground);
  border-color: var(--border);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
.btn-outline:hover { background: #000; border-color: #000; color: #fff; }

.btn-light {
  background: transparent;
  color: #fff;
  border-color: rgb(255 255 255 / 0.25);
}
.btn-light:hover { background: rgb(255 255 255 / 0.1); color: #fff; }

.btn-ghost { background: transparent; color: var(--foreground); }
.btn-ghost:hover { background: var(--accent); }

.btn-icon { width: 2.25rem; padding: 0; }

.btn .icon-shift { transition: transform 0.2s; }
.btn:hover .icon-shift { transform: translateX(2px); }
.btn:hover .icon-drop { transform: translateY(2px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
}
.link-arrow .icon { transition: transform 0.2s; }
.link-arrow:hover .icon { transform: translateX(2px); }
.link-arrow:hover .icon-diag { transform: translate(2px, -2px); }

/* ------------------------------- header -------------------------------- */
/* Dark with white text at the top of the page; white with black text once
   scrolled (site.js toggles .is-scrolled). Every colour comes from these vars. */

.site-header {
  --hdr-bg: rgb(0 0 0 / 0.92);
  --hdr-fg: #fff;
  --hdr-muted: rgb(255 255 255 / 0.75);
  --hdr-active: var(--gold);
  --hdr-line: rgb(255 255 255 / 0.1);
  --hdr-hover: rgb(255 255 255 / 0.1);
  --hdr-menu-bg: #0b0b0b;
  --hdr-note: rgb(255 255 255 / 0.5);
  --hdr-btn-line: rgb(255 255 255 / 0.3);
  --hdr-height: 5rem;
  --logo-height: 3.25rem;

  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--hdr-bg);
  color: var(--hdr-fg);
  border-bottom: 1px solid var(--hdr-line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.site-header.is-scrolled {
  --hdr-bg: rgb(255 255 255 / 0.97);
  --hdr-fg: #000;
  --hdr-muted: rgb(0 0 0 / 0.7);
  --hdr-active: #000;
  --hdr-line: rgb(0 0 0 / 0.08);
  --hdr-hover: rgb(0 0 0 / 0.05);
  --hdr-menu-bg: #fff;
  --hdr-note: rgb(0 0 0 / 0.5);
  --hdr-btn-line: rgb(0 0 0 / 0.2);
  --hdr-height: 4rem;
  --logo-height: 2.75rem;
  box-shadow: 0 4px 20px -8px rgb(0 0 0 / 0.15);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--hdr-height);
  transition: height 0.35s ease;
}

.brand { display: inline-flex; align-items: center; color: inherit; }
.brand-logo {
  display: block;
  height: var(--logo-height);
  width: auto;
  aspect-ratio: 500 / 570.25;
  transition: height 0.35s ease;
}
.brand-footer { color: #fff; }
.brand-footer .brand-logo { height: 5.5rem; }

/* Kept for the workspace header badge. */
.wordmark-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--pine), var(--pine-bright));
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  box-shadow: var(--shadow-card);
}

.main-nav { display: none; align-items: center; gap: 1.5rem; }
@media (min-width: 1024px) { .main-nav { display: flex; } }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--hdr-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--hdr-fg); }
.nav-link.is-active { color: var(--hdr-fg); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }

.nav-dropdown { position: relative; }
.nav-dropdown .icon { transition: transform 0.2s; }
.nav-dropdown [aria-expanded="true"] .icon { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: -0.75rem;
  min-width: 15rem;
  padding: 0.25rem;
  border: 1px solid var(--hdr-line);
  border-radius: calc(var(--radius) - 2px);
  background: var(--hdr-menu-bg);
  color: var(--hdr-fg);
  box-shadow: var(--shadow-lifted);
}
.dropdown-label { padding: 0.375rem 0.5rem; color: var(--hdr-note); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.375rem;
}
.dropdown-item:hover, .dropdown-item:focus-visible { background: var(--hdr-hover); }
.dropdown-item.is-active .dropdown-item-title { text-decoration: underline; text-underline-offset: 4px; }
.dropdown-item-title { font-size: 0.875rem; font-weight: 600; }
.dropdown-item-note { color: var(--hdr-note); font-size: 0.75rem; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.header-login { display: none; }
@media (min-width: 640px) { .header-login { display: inline-flex; } }
.site-header .btn-light { color: var(--hdr-fg); border-color: var(--hdr-btn-line); }
.site-header .btn-light:hover { background: var(--hdr-hover); color: var(--hdr-fg); }

.menu-toggle {
  padding: 0.375rem;
  border-radius: 0.375rem;
  color: var(--hdr-fg);
}
.menu-toggle:hover { background: var(--hdr-hover); }
.menu-toggle .icon { transition: transform 0.2s; }
.menu-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

.mobile-nav {
  padding-block: 1rem;
  border-top: 1px solid var(--hdr-line);
  background: var(--hdr-menu-bg);
}
@media (min-width: 1024px) { .mobile-nav { display: none !important; } }
.mobile-nav-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
@media (min-width: 640px) { .mobile-nav-grid { grid-template-columns: repeat(3, 1fr); } }
.mobile-nav-grid a {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  color: var(--hdr-muted);
  font-size: 0.875rem;
  transition: background-color 0.15s, color 0.15s;
}
.mobile-nav-grid a:hover { background: var(--hdr-hover); color: var(--hdr-fg); }
.mobile-nav-grid a.is-active { color: var(--hdr-fg); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.mobile-login { margin-top: 0.75rem; width: 100%; }
@media (min-width: 640px) { .mobile-login { display: none; } }

/* ------------------------------ headings ------------------------------- */

.eyebrow {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.eyebrow-gold { color: var(--gold); }

.section-heading { max-width: 42rem; }
.section-heading h2,
.heading-lg {
  margin-top: 0.75rem;
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.kicker { margin-top: 0.75rem; color: var(--muted-foreground); line-height: 1.75rem; }
@media (min-width: 640px) {
  .section-heading h2, .heading-lg { font-size: 2.25rem; line-height: 2.5rem; }
}

.heading-md, .card .heading-md {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}
@media (min-width: 640px) { .heading-md, .card .heading-md { font-size: 1.875rem; line-height: 2.25rem; } }

.head-row { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 640px) {
  .head-row { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .head-row .link-arrow { white-space: nowrap; }
}
.head-row-wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.only-sm-up { display: none !important; }
@media (min-width: 640px) { .only-sm-up:not([hidden]) { display: inline-flex !important; } }

.prose-lead { margin-top: 1.25rem; color: var(--muted-foreground); line-height: 1.75rem; }
.prose-lead + .prose-lead { margin-top: 1rem; }
.lede { font-size: 1.125rem; line-height: 2rem; color: color-mix(in oklab, var(--foreground) 90%, transparent); }

/* -------------------------------- heroes ------------------------------- */

.hero, .page-hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.hero::before, .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.7;
  background: var(--glow-page);
  pointer-events: none;
}
.hero::before { background: var(--glow-hero); }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.page-hero-inner { position: relative; padding-block: 5rem; }
@media (min-width: 640px) { .page-hero-inner { padding-block: 6rem; } }
.page-hero h1 {
  margin-top: 0.75rem;
  max-width: 48rem;
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.page-hero-intro { margin-top: 1.25rem; max-width: 42rem; color: rgb(255 255 255 / 0.75); line-height: 1.75rem; }
@media (min-width: 640px) {
  .page-hero h1 { font-size: 3rem; line-height: 1.1; }
  .page-hero-intro { font-size: 1.125rem; }
}

/* YouTube background video (homepage hero). Hidden until it is actually playing. */
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}
.hero-video.is-playing { opacity: 1; }
.hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 0;
  transform: translate(-50%, -50%);
}
.hero-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.6);
}
.hero::before, .hero::after { z-index: 1; }

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 3.5rem;
  padding-block: 6rem;
}
@media (min-width: 640px) { .hero-inner { padding-block: 8rem; } }
@media (min-width: 1024px) { .hero-inner { grid-template-columns: 1.25fr 0.75fr; align-items: center; } }

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid rgb(255 255 255 / 0.15);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.05);
  color: rgb(255 255 255 / 0.8);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.025em;
}
.hero-chip::before { content: ""; width: 0.375rem; height: 0.375rem; border-radius: 999px; background: var(--pine-bright); }
.hero h1 {
  margin-top: 1.5rem;
  max-width: 42rem;
  font-size: 2.25rem;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero-lead { margin-top: 1.5rem; max-width: 36rem; color: rgb(255 255 255 / 0.7); line-height: 1.75rem; }
@media (min-width: 640px) {
  .hero h1 { font-size: 3.75rem; }
  .hero-lead { font-size: 1.125rem; }
}
.hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Homepage hero — matches enagyeman.com: Reey script "Hope", wide-tracked
   subtitle, white pill buttons over the background video. */
@font-face {
  font-family: "Reey";
  src: url("../fonts/Reey-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 5rem);
  min-height: calc(100svh - 5rem);
  text-align: center;
}
.hero .hero-hope { margin: 0; max-width: none; display: flex; flex-direction: column; align-items: center; }
.hope-word {
  display: block;
  margin-bottom: 38px;
  color: #fff;
  font-family: "Reey", var(--font-serif);
  font-size: 80px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  animation: hope-in 1s var(--ease-out) both;
}
.hope-sub {
  display: block;
  margin-top: 33px;
  color: #fff;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 24px;
  text-transform: uppercase;
  text-wrap: balance;
  animation: fade-up 0.9s ease 0.15s both;
}
@media (max-width: 1024px) { .hope-sub { letter-spacing: 18px; } }
@media (max-width: 767px) {
  .hope-word { font-size: 70px; }
  .hope-sub { font-size: 23px; letter-spacing: 12px; }
}

.hero-socials {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  animation: fade-up 0.9s ease 0.3s both;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 11px 30px;
  border-radius: 100px;
  background: #fff;
  color: #000;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  text-transform: uppercase;
  transition: background-color 0.2s, color 0.2s;
}
.hero-pill:hover, .hero-pill:focus-visible { background: #000; color: #fff; }

/* Once the video plays, drop the decorative glow/grid so the footage shows cleanly. */
.hero:has(.hero-video.is-playing)::before,
.hero:has(.hero-video.is-playing)::after { opacity: 0; transition: opacity 1.2s ease; }

@keyframes hope-in {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hope-word, .hope-sub, .hero-socials { animation: none; }
}

.hero-quote {
  padding: 1.75rem;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 1rem;
  background: rgb(255 255 255 / 0.05);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.hero-quote p { font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.625; color: rgb(255 255 255 / 0.9); }
.hero-quote footer, .quote-ref {
  margin-top: 1rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* -------------------------------- cards -------------------------------- */

.card {
  border: 1px solid color-mix(in oklab, var(--border) 80%, transparent);
  border-radius: 1rem;
  background: var(--card);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}
.card-lift { transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.card-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lifted); }
.card-link:hover { border-color: color-mix(in oklab, var(--primary) 30%, transparent); }
.card-pad-lg { padding: 2rem; }
@media (min-width: 640px) { .card-pad-lg { padding: 2.5rem; } }
.card-flex { display: flex; flex-direction: column; height: 100%; }
.card-flex .grow { flex: 1; }
.card h2, .card h3 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; letter-spacing: -0.025em; }
.card-title-gap { margin-top: 1.25rem; }
.card-body { margin-top: 0.75rem; color: var(--muted-foreground); font-size: 0.875rem; line-height: 1.5rem; }
.card-eyebrow {
  margin-top: 1.25rem;
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.card-eyebrow + h3 { margin-top: 0.25rem; }
.h-full { height: 100%; }

.icon-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: var(--pine-tint);
  color: var(--primary);
  transition: background-color 0.2s, color 0.2s;
}
.tone-pine { background: #f0f0f0; color: #000; }
.tone-gold { background: #000; color: #fff; }
.tone-sapphire { background: #404040; color: #fff; }
.tone-ink { background: #e5e5e5; color: #000; }
.card-link:hover .icon-tile.hover-fill { background: var(--primary); color: #fff; }

.ink-card {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border-radius: 1.5rem;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-lifted);
}
@media (min-width: 640px) { .ink-card { padding: 2.5rem; } }
.ink-card::before, .cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--glow-card);
  pointer-events: none;
}
.ink-card > *, .cta-band > * { position: relative; }
.quote-mark { display: block; color: var(--gold); font-family: var(--font-serif); font-size: 4.5rem; line-height: 1; font-weight: 600; }
.quote-text { margin-top: 0.5rem; font-family: var(--font-serif); font-size: 1.5rem; line-height: 2rem; color: rgb(255 255 255 / 0.9); }
.quote-note { margin-top: 1.5rem; color: rgb(255 255 255 / 0.6); font-size: 0.875rem; font-weight: 500; line-height: 1.5rem; }
.ink-card .icon-tile { background: rgb(255 255 255 / 0.1); color: var(--gold); }
.ink-card h2 { margin-top: 1.25rem; font-size: 1.5rem; line-height: 2rem; font-weight: 700; letter-spacing: -0.025em; }
.ink-card .ink-body { margin-top: 1rem; color: rgb(255 255 255 / 0.75); line-height: 1.75rem; }

.cta-band {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 3.5rem 2rem;
  border-radius: 1.5rem;
  background: var(--ink);
  color: #fff;
}
.cta-band::before { background: var(--glow-band); }
.cta-band h2 { margin-top: 0.75rem; font-size: 1.875rem; line-height: 2.25rem; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
.cta-band .cta-copy { max-width: 42rem; }
.cta-band .cta-copy p:last-child { margin-top: 1rem; color: rgb(255 255 255 / 0.7); line-height: 1.75rem; }
.cta-actions { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) {
  .cta-band { padding: 4rem 3.5rem; }
  .cta-band h2 { font-size: 2.25rem; line-height: 2.5rem; }
  .cta-actions { flex-direction: row; }
}
@media (min-width: 1024px) {
  .cta-band { flex-direction: row; align-items: center; justify-content: space-between; }
  .cta-actions { flex-direction: column; }
}

.panel {
  display: grid;
  gap: 3rem;
  padding: 2rem;
  border: 1px solid color-mix(in oklab, var(--border) 80%, transparent);
  border-radius: 1.5rem;
  background: var(--card);
  box-shadow: var(--shadow-card);
}
@media (min-width: 640px) { .panel { padding: 3rem; } }
@media (min-width: 1024px) { .panel { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.panel-single { display: block; }
@media (min-width: 640px) { .panel-single { padding: 2.5rem; } }

/* -------------------------------- grids -------------------------------- */

.grid { display: grid; gap: 1.25rem; }
.gap-4 { gap: 1rem; }
.gap-3 { gap: 0.75rem; }
@media (min-width: 640px) { .sm-2 { grid-template-columns: repeat(2, 1fr); } .sm-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .md-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) {
  .lg-2 { grid-template-columns: repeat(2, 1fr); }
  .lg-3 { grid-template-columns: repeat(3, 1fr); }
  .lg-4 { grid-template-columns: repeat(4, 1fr); }
  .lg-5 { grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
}

.split { display: grid; gap: 3.5rem; }
@media (min-width: 1024px) { .split-about { grid-template-columns: 0.9fr 1.1fr; } }
.split-even { gap: 3rem; }
@media (min-width: 1024px) { .split-even { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.split-media { gap: 3rem; }
@media (min-width: 1024px) { .split-media { grid-template-columns: 1fr 1.2fr; gap: 4rem; } }

.role-grid { margin-top: 2rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 640px) { .role-grid { grid-template-columns: repeat(3, 1fr); } }
.role-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid color-mix(in oklab, var(--border) 80%, transparent);
  border-radius: 0.75rem;
  background: var(--card);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-card);
}
.role-chip .icon, .check-list .icon { color: var(--primary); }

/* ------------------------------ links/pills ---------------------------- */

.social-list { margin-top: 2rem; display: grid; gap: 0.75rem; }
.social-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  border-radius: 0.75rem;
  background: var(--background);
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color 0.15s, background-color 0.15s;
}
.social-list a .icon { color: var(--muted-foreground); transition: transform 0.2s, color 0.2s; }
.social-list a:hover { border-color: color-mix(in oklab, var(--primary) 40%, transparent); background: color-mix(in oklab, var(--pine-tint) 50%, transparent); }
.social-list a:hover .icon { color: var(--primary); transform: translate(2px, -2px); }

.pill-row { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s, color 0.15s;
}
.pill:hover { border-color: color-mix(in oklab, var(--primary) 40%, transparent); color: var(--primary); }
.pill .icon-trail { color: var(--muted-foreground); transition: transform 0.2s; }
.pill:hover .icon-trail { transform: translateY(-2px); }
.pill-lg { padding: 0.625rem 1.25rem; box-shadow: none; background: var(--background); }
.pill-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill-ink:hover { color: #fff; opacity: 0.9; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
  white-space: nowrap;
}
.badge-primary { background: var(--primary); border-color: transparent; color: var(--primary-foreground); }
.badge-secondary { background: var(--secondary); border-color: transparent; color: var(--secondary-foreground); }
.badge-tiny { font-size: 10px; letter-spacing: 0.025em; text-transform: uppercase; }
.cat-service { background: #000; color: #fff; border-color: #000; }
.cat-conference { background: #fff; color: #000; border-color: #000; }
.cat-worship { background: #f0f0f0; color: #000; border-color: #d4d4d4; }
.cat-summit { background: #404040; color: #fff; border-color: #404040; }
.cat-visitation { background: #e5e5e5; color: #000; border-color: #e5e5e5; }
.cat-other { background: var(--muted); color: var(--muted-foreground); }
.badge-update { color: var(--primary); text-transform: capitalize; }

.region-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.region-list { margin-top: 1rem; display: grid; gap: 0.5rem; }
.region-list li { font-size: 0.875rem; font-weight: 500; line-height: 1.5rem; }

/* ------------------------------- events -------------------------------- */

.date-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background: color-mix(in oklab, var(--primary) 10%, transparent);
  color: var(--primary);
}
.date-tile-lg { width: 4rem; height: 4rem; }
.date-tile .m { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.date-tile .d { font-family: var(--font-serif); font-size: 1.5rem; line-height: 1; font-weight: 600; }
.date-tile .y { font-size: 10px; font-weight: 500; }

.event-card { padding: 1.5rem; height: 100%; }
.event-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.event-card h3 { margin-top: 1.25rem; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.event-card .card-body { margin-top: 0.5rem; }
.event-meta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  display: grid;
  gap: 0.375rem;
  color: var(--muted-foreground);
  font-size: 13px;
}
.event-meta p { display: flex; align-items: center; gap: 0.5rem; }
.event-meta .icon { width: 0.875rem; height: 0.875rem; color: var(--primary); }

.event-row { display: flex; flex-direction: column; gap: 1.25rem; padding: 1.5rem; transition: box-shadow 0.2s; }
.event-row:hover { box-shadow: var(--shadow-lifted); }
@media (min-width: 640px) { .event-row { flex-direction: row; align-items: center; padding: 1.75rem; } }
.event-row-body { flex: 1; min-width: 0; }
.event-row-title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.event-row .line { margin-top: 0.25rem; color: var(--muted-foreground); font-size: 0.875rem; }
.event-row .card-body { margin-top: 0.75rem; }

.past-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  border-radius: 0.75rem;
  background: color-mix(in oklab, var(--card) 60%, transparent);
}
@media (min-width: 640px) { .past-row { flex-direction: row; align-items: center; justify-content: space-between; } }
.past-row .t { font-weight: 500; }
.past-row .l { color: var(--muted-foreground); font-size: 0.75rem; }
.past-row .when { color: var(--muted-foreground); font-size: 0.875rem; }

.update-card { display: flex; flex-direction: column; height: 100%; }
.update-card-top { display: flex; align-items: center; gap: 0.5rem; }
.update-card-top time { color: var(--muted-foreground); font-size: 0.75rem; }
.update-card h3 { margin-top: 1rem; }
.update-card .card-body { flex: 1; }

.empty-state {
  margin-top: 2.5rem;
  padding: 2.5rem;
  border: 1px dashed var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  color: var(--muted-foreground);
  font-size: 0.875rem;
  text-align: center;
}

/* -------------------------------- books -------------------------------- */

.book-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 640px) { .book-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .book-grid.lg-5 { grid-template-columns: repeat(5, 1fr); gap: 1.25rem; } }
.book-grid-roomy { column-gap: 1.25rem; row-gap: 2.5rem; }
.book-item { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; height: 100%; }
.book-item > a:first-child { display: block; width: 100%; }
.book-name { font-size: 0.875rem; font-weight: 500; line-height: 1.25rem; letter-spacing: -0.025em; }
.book-dl { margin-top: 0.25rem; display: inline-flex; align-items: center; gap: 0.25rem; color: var(--primary); font-size: 0.75rem; font-weight: 500; }
.book-dl:hover { text-decoration: underline; }

.book-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.1rem 1rem 1.1rem 1.9rem;
  border-radius: 0.35rem 0.7rem 0.7rem 0.35rem;
  box-shadow: 0 1px 2px 0 rgb(16 24 40 / 0.1), 0 12px 24px -6px rgb(16 24 40 / 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.book-cover:hover, .book-item:hover .book-cover { transform: translateY(-4px) rotate(-0.5deg); }
.book-spine {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.85rem;
  border-radius: 0.35rem 0 0 0.35rem;
  background: rgb(0 0 0 / 0.22);
  border-right: 1px solid rgb(255 255 255 / 0.12);
}
.book-title { font-family: var(--font-serif); font-size: 0.95rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
.book-author { font-size: 0.58rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; opacity: 0.75; }
.cover-pine { background: linear-gradient(160deg, #3a3a3a, #141414); color: #fff; }
.cover-ink { background: linear-gradient(160deg, #1f1f1f, #000); color: #fff; }
.cover-bone { background: linear-gradient(160deg, #fafafa, #e2e2e2); color: #0a0a0a; }
.cover-sage { background: linear-gradient(160deg, #8c8c8c, #5c5c5c); color: #fff; }
.cover-pine-bright { background: linear-gradient(160deg, #5a5a5a, #2c2c2c); color: #fff; }
.cover-ember { background: linear-gradient(160deg, #6e6e6e, #3a3a3a); color: #fff; }

.also-available { margin-top: 2.5rem; color: var(--muted-foreground); font-size: 0.875rem; }
.also-available a { color: var(--primary); }
.also-available a:hover { text-decoration: underline; }

.library-list { margin-top: 2rem; display: grid; column-gap: 2.5rem; row-gap: 0.5rem; }
@media (min-width: 640px) { .library-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .library-list { grid-template-columns: repeat(3, 1fr); } }
.library-list p {
  padding-block: 0.625rem;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.5rem;
}

/* -------------------------------- media -------------------------------- */

.teaching-tile { display: flex; align-items: center; gap: 0.75rem; padding: 1.25rem; transition: border-color 0.15s; }
.teaching-tile:hover { border-color: color-mix(in oklab, var(--primary) 30%, transparent); }
.teaching-tile .n { font-family: var(--font-serif); font-size: 1.5rem; color: color-mix(in oklab, var(--primary) 40%, transparent); }
.teaching-tile p { font-size: 0.875rem; font-weight: 500; line-height: 1.25rem; }
.watch-label { margin-top: 1.25rem; color: var(--primary); font-size: 0.875rem; font-weight: 500; }

/* --------------------------- partner / invite -------------------------- */

.check-list { margin-top: 2rem; display: grid; gap: 0.75rem; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  border-radius: 0.75rem;
  background: var(--card);
  font-size: 0.875rem;
  line-height: 1.5rem;
  box-shadow: var(--shadow-card);
}
.check-list .icon { margin-top: 0.25rem; }
.closing-line { margin-top: 2rem; font-size: 1.125rem; font-weight: 500; line-height: 2rem; color: color-mix(in oklab, var(--foreground) 90%, transparent); }
.note-box {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  border-radius: 0.75rem;
  background: var(--background);
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.5rem;
}
.divider-top { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid color-mix(in oklab, var(--border) 70%, transparent); }
.btn-row { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* -------------------------------- forms -------------------------------- */

.form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } .form-row-3 { grid-template-columns: repeat(3, 1fr); } }
.field { display: grid; gap: 0.375rem; }
.field label, .label { font-size: 0.875rem; font-weight: 500; line-height: 1; }
.input, .textarea, .select {
  width: 100%;
  min-width: 0;
  height: 2.25rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--input);
  border-radius: calc(var(--radius) - 2px);
  background: var(--background);
  font-size: 0.875rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.textarea { height: auto; min-height: 4rem; padding-block: 0.5rem; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--muted-foreground); }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
}
[data-contact-form] > .btn[type="submit"] { width: 100%; }
@media (min-width: 640px) { [data-contact-form] > .btn[type="submit"] { width: fit-content; align-self: flex-end; } }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* -------------------------------- toast -------------------------------- */

.toasts {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  display: grid;
  gap: 0.5rem;
  width: min(22rem, calc(100vw - 2rem));
}
.toast {
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  background: var(--card);
  box-shadow: var(--shadow-lifted);
  font-size: 0.875rem;
  animation: fade-up 0.25s ease both;
}
.toast strong { display: block; font-weight: 600; }
.toast span { display: block; margin-top: 0.125rem; color: var(--muted-foreground); font-size: 0.8125rem; }
.toast-error strong { color: var(--destructive); }

/* -------------------------------- footer ------------------------------- */

.site-footer { background: var(--ink); color: rgb(255 255 255 / 0.7); }
.footer-grid { display: grid; gap: 2.5rem; padding-block: 3.5rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-text { margin-top: 1rem; font-size: 0.875rem; line-height: 1.5rem; }
.footer-socials { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.footer-socials a {
  padding: 0.25rem 0.75rem;
  border: 1px solid rgb(255 255 255 / 0.15);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: border-color 0.15s, color 0.15s;
}
.footer-socials a:hover { border-color: color-mix(in oklab, var(--gold) 50%, transparent); color: #fff; }
.footer-heading { color: #fff; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.footer-links { margin-top: 1rem; display: grid; gap: 0.5rem; }
.footer-links a { font-size: 0.875rem; transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / 0.1); }
.footer-bottom .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-block: 1.5rem;
  font-size: 0.75rem;
}
@media (min-width: 640px) { .footer-bottom .container { flex-direction: row; } }
.footer-bottom a { text-decoration: underline; text-decoration-color: rgb(255 255 255 / 0.3); text-underline-offset: 4px; }
.footer-bottom a:hover { color: #fff; }

/* -------------------------------- 404 ---------------------------------- */

.center-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; }
.center-screen h1 { margin-bottom: 1rem; font-size: 2.25rem; font-weight: 700; }
.center-screen p { color: var(--muted-foreground); font-size: 1.125rem; }

/* ----------------------------- about edward ---------------------------- */




/* Black & white: on dark surfaces the main button flips to white. */
:is(.hero, .page-hero, .cta-band, .ink-card, .site-footer) .btn:not(.btn-light):not(.btn-outline) { background: #fff; color: #000; }
:is(.hero, .page-hero, .cta-band, .ink-card, .site-footer) .btn:not(.btn-light):not(.btn-outline):hover { background: #e5e5e5; }
::selection { background: #000; color: #fff; }

.about-bio { max-width: 46rem; display: grid; gap: 1.5rem; }
.about-bio p { color: var(--muted-foreground); font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); line-height: 1.8; }
