/* ==========================================================================
   Rainbow Families — stylesheet
   Tokens follow mockups/rainbow-families-visual-direction.md exactly.
   Single light theme by design: the brand is specified as warm-white / blush.
   ========================================================================== */

:root {
  color-scheme: light;

  /* Primary palette */
  --navy:        #17213F;
  --violet:      #5B2BA8;
  --violet-dark: #462080;
  --page:        #FFFDFC;
  --blush:       #FFF5F6;
  --lavender:    #F3EEFF;
  --border:      #E9E1EA;
  --muted:       #667085;
  --surface:     #FFFFFF;

  /* Papercut hero — sampled from the delivered artwork itself, so the band
     below the hero sits in the same warmth as the image above it. */
  --cream:       #F5DCB7;
  --cream-card:  #FDF6EE;
  --hero-cream:  #F5DCB7;

  /* Pride accents — used sparingly */
  --pr-coral:  #F25F74;
  --pr-orange: #F59A4A;
  --pr-yellow: #F3C85A;
  --pr-green:  #70B77E;
  --pr-blue:   #4D8ED8;
  --pr-violet: #7A55C7;

  /* Type */
  --display: "Fraunces", Georgia, "Iowan Old Style", serif;
  --serif:   "Source Serif 4", Georgia, "Iowan Old Style", serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing — 8px base */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 40px; --s6: 56px; --s7: 72px; --s8: 88px;

  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 1px 2px rgba(23, 33, 63, .04), 0 8px 24px rgba(23, 33, 63, .05);
  --shadow-lg: 0 2px 4px rgba(23, 33, 63, .05), 0 18px 40px rgba(23, 33, 63, .10);
  --ease: 180ms cubic-bezier(.4, 0, .2, 1);

  --container: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--page);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; text-wrap: balance; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
/* height:auto matters — the width/height attributes on <img> reserve layout
   space, but without this the intrinsic ratio is overridden and images stretch. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s4);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--s2); top: -100px;
  background: var(--violet); color: #fff;
  padding: 12px 20px; border-radius: 8px; z-index: 200;
  font-weight: 600; text-decoration: none;
  transition: top var(--ease);
}
.skip-link:focus { top: var(--s2); }

.icon { width: 20px; height: 20px; flex: none; stroke-width: 1.75; }

/* ===== Header ============================================================ */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 253, 252, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex; align-items: center; gap: var(--s4);
  min-height: 72px;
}

.logo {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; flex: none;
}
/* Script wordmark is two stacked lines (ratio ~1.75), so it needs more
   vertical room than a single-line lockup would. */
.logo-mark { width: 98px; height: auto; flex: none; }
.logo-fish { width: 58px; height: auto; flex: none; }

.logo-footer { align-items: center; gap: 18px; }
.logo-footer .logo-mark { width: 150px; }
.logo-footer .logo-fish { width: 88px; }

.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex; align-items: center; gap: var(--s4);
  list-style: none; margin: 0; padding: 0;
}
.site-nav a {
  font-size: 15.5px; font-weight: 500; color: var(--navy);
  text-decoration: none; padding: 6px 0;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}
.site-nav a:hover { color: var(--violet); border-bottom-color: var(--violet); }

.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid transparent; background: transparent;
  color: var(--navy); cursor: pointer;
  transition: background var(--ease), color var(--ease);
  position: relative;
}
.icon-btn:hover { background: var(--lavender); color: var(--violet); }

.saved-count {
  position: absolute; top: 4px; right: 4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--violet); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 18px;
  text-align: center;
}
.saved-count[hidden] { display: none; }

.btn-search {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  color: var(--navy); cursor: pointer;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.btn-search:hover { border-color: var(--violet); box-shadow: var(--shadow); }

.nav-toggle { display: none; }

/* ===== Hero ============================================================== */

/* ===== Hero — one composed scene ========================================= */

/* Full bleed, artwork whole — no crop, no cap.
   The 2.30:1 artwork is short enough that the section below peeks on its
   own: 625px tall at a 1440 viewport. The earlier versions needed trimming
   only because the composition was 1.71:1 with a fifth of its height as
   empty river. */
.hero { display: block; margin: 0; background: var(--hero-cream); line-height: 0; }
.hero picture, .hero img { display: block; width: 100%; height: auto; }

/* Controls sit below the artwork on matching cream so the join is invisible. */
.hero-actions { background: var(--cream); }
.hero-actions-inner {
  /* Scales down on short viewports so the peeking strip shows actual text
     rather than an empty band of cream. */
  padding-top: clamp(16px, 3.2vh, 32px); padding-bottom: 76px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s3) var(--s6); align-items: center;
}

.hero-lede {
  font-size: 18.5px; line-height: 1.6; color: #4A4436;
  max-width: 40ch; margin: 0;
}

.hero-search-col { display: flex; flex-direction: column; gap: var(--s2); }
.hero-actions .searchbar { max-width: none; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-ctas .btn { height: 52px; padding: 0 26px; font-size: 15.5px; }
.hero-ctas .icon { width: 19px; height: 19px; }

/* ===== Value strip ======================================================= */

.value-strip {
  position: relative; z-index: 5;
  margin-top: -52px; margin-bottom: var(--s5);
  display: grid; grid-template-columns: repeat(4, 1fr);
  list-style: none; padding: var(--s3) var(--s2);
  background: var(--cream-card);
  border: 1px solid #EFE2CE;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.value-strip li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 4px var(--s2);
}
.value-strip li + li { border-left: 1px solid #EFE2CE; }

.vs-icon {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff;
}
.vs-violet { background: #8E6FD0; }
.vs-coral  { background: var(--pr-coral); }
.vs-amber  { background: #E9B44C; }
.vs-green  { background: #7FB283; }

.value-strip h2 {
  font-family: var(--serif);
  font-size: 17px; margin-bottom: 3px; color: var(--navy);
}
.value-strip p { font-size: 14px; line-height: 1.45; color: var(--muted); }

.searchbar {
  display: flex; align-items: center; gap: var(--s2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 8px 8px 26px;
  box-shadow: var(--shadow-lg);
  transition: box-shadow var(--ease), border-color var(--ease);
}
.searchbar:focus-within {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(91, 43, 168, .11), var(--shadow-lg);
}
.searchbar .icon { color: var(--muted); width: 22px; height: 22px; }

.searchbar input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  font-family: var(--sans); font-size: 17px; color: var(--navy);
  height: 56px;
}
.searchbar input::placeholder { color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--sans); font-size: 16px; font-weight: 600;
  background: var(--violet); color: #fff;
  padding: 0 32px; height: 56px;
  transition: background var(--ease), transform var(--ease);
  text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--violet-dark); }
.btn:active { transform: translateY(1px); }
.btn-clear {
  background: transparent; color: var(--muted);
  padding: 0 12px; height: 44px; font-size: 15px;
}
.btn-clear:hover { background: var(--lavender); color: var(--violet); }

/* Must follow .btn — same specificity, so source order decides the fill. */
.btn-quiet {
  background: var(--surface); color: var(--violet);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.btn-quiet:hover { background: var(--lavender); border-color: var(--violet); }

/* ===== Sections ========================================================== */

.section { padding-block: var(--s6); }
.section-tight { padding-block: var(--s5); }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--s3); margin-bottom: var(--s3);
}
.section-head h2 {
  font-family: var(--serif);
  font-size: 27px; font-weight: 600; letter-spacing: -.01em;
}
.section-head .sub { font-size: 15px; color: var(--muted); }

.link-more {
  font-size: 15px; font-weight: 600; color: var(--violet);
  text-decoration: none; white-space: nowrap;
}
.link-more:hover { text-decoration: underline; }

/* ===== Topic pills ======================================================= */

.pills { display: flex; flex-wrap: wrap; gap: 10px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  color: var(--navy); cursor: pointer; white-space: nowrap;
  transition: border-color var(--ease), background var(--ease),
              color var(--ease), box-shadow var(--ease);
}
.pill .icon { width: 17px; height: 17px; color: var(--violet); }
.pill:hover { border-color: var(--violet); box-shadow: var(--shadow); }
.pill[aria-pressed="true"] {
  background: var(--violet); border-color: var(--violet); color: #fff;
}
.pill[aria-pressed="true"] .icon { color: #fff; }

/* ===== Cards ============================================================= */

.card-grid { display: grid; gap: var(--s3); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s3);
  text-align: left; width: 100%;
  font-family: var(--sans); color: var(--navy);
  cursor: pointer; overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg,
    var(--pr-coral), var(--pr-orange), var(--pr-yellow),
    var(--pr-green), var(--pr-blue), var(--pr-violet));
  opacity: 0; transition: opacity var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #DCD1DE;
}
.card:hover::before { opacity: 1; }
.card:hover .card-title { color: var(--violet); }
.card-featured::before { opacity: 1; }

.card-eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
}
.card-type { color: var(--violet); }
.card-eyebrow .sep { color: var(--border); }

.focus-tag { display: inline-flex; align-items: center; gap: 5px; }
.focus-tag .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.focus-primary   { color: #B0471F; } .focus-primary   .dot { background: var(--pr-orange); }
.focus-inclusive { color: #2F7A45; } .focus-inclusive .dot { background: var(--pr-green); }
.focus-adjacent  { color: #3C63A8; } .focus-adjacent  .dot { background: var(--pr-blue); }

.card-title {
  font-family: var(--serif);
  font-size: 21px; line-height: 1.28; font-weight: 600;
  letter-spacing: -.005em;
  transition: color var(--ease);
}
.card-sm .card-title { font-size: 18px; }

.card-by { font-size: 14px; color: var(--muted); margin-top: -4px; }
.card-summary { font-size: 15.5px; line-height: 1.55; color: #3B4560; }

.card-foot {
  display: flex; align-items: center; gap: 10px;
  margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--border);
}

.tag {
  display: inline-flex; align-items: center;
  padding: 5px 11px; border-radius: 999px;
  background: var(--lavender); color: var(--violet-dark);
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.tag-blush { background: var(--blush); color: #A63A55; }

.meta-inline {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--muted); white-space: nowrap;
}
.meta-inline .icon { width: 15px; height: 15px; }

.bookmark-btn {
  margin-left: auto; flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--muted);
  cursor: pointer; transition: background var(--ease), color var(--ease);
}
.bookmark-btn:hover { background: var(--lavender); color: var(--violet); }
.bookmark-btn[aria-pressed="true"] { color: var(--violet); }
.bookmark-btn[aria-pressed="true"] .icon { fill: currentColor; }

/* ===== Mission panel ===================================================== */

.mission {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: var(--s6); align-items: center;
  border-radius: 22px;
  padding: var(--s5) var(--s6);
  background: linear-gradient(105deg, #FFF1EC 0%, var(--blush) 42%, var(--lavender) 100%);
  border: 1px solid var(--border);
}
.mission-left { display: flex; align-items: center; gap: var(--s4); }
.mission-left img { width: 176px; flex: none; }
.mission h2 {
  font-family: var(--serif);
  font-size: 30px; line-height: 1.2; margin-bottom: 14px;
}
.mission p { max-width: 42ch; }

.mission-statement {
  font-family: var(--serif);
  font-size: 19px; line-height: 1.45; color: var(--navy);
  margin-bottom: 10px;
}
.mission-sub { font-size: 15.5px; color: #3B4560; }

/* ----- Ichthys note ----- */

.ichthys {
  display: flex; align-items: center; gap: var(--s4);
  /* Capped and centred: at full container width the copy fills barely half,
     which reads as an accident rather than a choice. */
  max-width: 840px;
  margin: var(--s4) auto 0;
  padding: var(--s3) var(--s4);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--blush);
}

.ichthys-mark { flex: none; width: 148px; }
.ichthys-mark svg { width: 100%; height: auto; display: block; }

.ichthys-copy h3 {
  font-family: var(--serif);
  font-size: 19px; margin-bottom: 6px;
}
.ichthys-copy p { font-size: 15.5px; color: #3B4560; max-width: 62ch; }
.ichthys-copy em { font-style: italic; }
.ichthys-turn {
  margin-top: 8px;
  font-family: var(--serif); font-size: 16.5px;
  color: var(--navy); font-weight: 600;
}

.trust-list { display: flex; flex-direction: column; gap: 2px; list-style: none; margin: 0; padding: 0; }
.trust-item {
  display: flex; align-items: flex-start; gap: var(--s2);
  padding: 14px 0; border-bottom: 1px solid rgba(23, 33, 63, .09);
}
.trust-item:last-child { border-bottom: 0; }
.trust-icon {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: rgba(255, 255, 255, .8);
  color: var(--violet);
}
.trust-item h3 { font-family: var(--serif); font-size: 17.5px; margin-bottom: 2px; }
.trust-item p { font-size: 14.5px; color: var(--muted); }

/* ===== Results =========================================================== */

.results-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s3);
}
.results-count { font-size: 15px; color: var(--muted); }
.results-count strong { color: var(--navy); font-weight: 600; }

.sort-wrap { display: flex; align-items: center; gap: 10px; }
.sort-wrap label { font-size: 14px; color: var(--muted); }
select {
  font-family: var(--sans); font-size: 14.5px; color: var(--navy);
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); padding: 9px 16px; cursor: pointer;
  min-height: 42px;
}

.empty-state {
  text-align: center; padding: var(--s8) var(--s3);
  border: 1px dashed var(--border); border-radius: var(--radius);
  background: var(--blush);
}
.empty-state h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: var(--s3); }

.loading { padding: var(--s7) 0; text-align: center; color: var(--muted); }

.error-box {
  border: 1px solid #F0C9CF; background: var(--blush);
  border-radius: var(--radius); padding: var(--s4); margin-block: var(--s5);
}
.error-box h3 { font-family: var(--serif); font-size: 20px; margin-bottom: 10px; }
.error-box p { font-size: 15px; color: #3B4560; margin-bottom: 10px; }
.error-box code {
  display: inline-block; font-size: 14px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 6px;
}

/* ===== Newsletter ======================================================== */

.newsletter {
  display: flex; align-items: center; gap: var(--s5);
  border-radius: 22px; padding: var(--s5);
  background: linear-gradient(100deg, var(--lavender) 0%, var(--blush) 52%, #FFF1E8 100%);
  border: 1px solid var(--border);
  flex-wrap: wrap;
}
.newsletter-icon {
  width: 72px; height: 72px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--surface); color: var(--violet);
  box-shadow: var(--shadow);
}
.newsletter-copy { flex: 1 1 260px; }
.newsletter h2 { font-family: var(--serif); font-size: 27px; margin-bottom: 6px; }
.newsletter p { font-size: 15.5px; color: #3B4560; }

.newsletter-form { flex: 1 1 380px; }
.newsletter-row { display: flex; gap: 12px; }
.newsletter input {
  flex: 1; min-width: 0; height: 56px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); padding: 0 24px;
  font-family: var(--sans); font-size: 16px; color: var(--navy);
}
.newsletter input:focus { outline: 3px solid var(--violet); outline-offset: 1px; }
.newsletter .fineprint { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }
.newsletter .fineprint.is-ok    { color: #2F7A45; font-weight: 600; }
.newsletter .fineprint.is-error { color: #A63A55; font-weight: 600; }

/* Honeypot — off-screen rather than display:none, which bots skip. */
.hp {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

.btn[aria-busy="true"] { opacity: .72; pointer-events: none; }

/* ===== Footer ============================================================ */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: var(--s7); padding-block: var(--s6) var(--s5);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--s6); margin-bottom: var(--s5);
}
.footer-grid p { font-size: 14.5px; color: var(--muted); max-width: 44ch; margin-top: var(--s2); }
.footer-col h3 {
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 15px; color: var(--navy); text-decoration: none; }
.footer-col a:hover { color: var(--violet); text-decoration: underline; }

.footer-base {
  border-top: 1px solid var(--border); padding-top: var(--s3);
  display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap;
  font-size: 13.5px; color: var(--muted);
}

/* ===== Detail dialog ===================================================== */

dialog.detail {
  border: 0; padding: 0; max-width: 720px; width: calc(100% - 32px);
  border-radius: 22px; background: var(--surface); color: var(--navy);
  box-shadow: var(--shadow-lg);
}
dialog.detail::backdrop { background: rgba(23, 33, 63, .42); backdrop-filter: blur(3px); }

.detail-inner { padding: var(--s5); max-height: 85vh; overflow-y: auto; }

.detail-close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; color: var(--navy);
}
.detail-close:hover { background: var(--lavender); color: var(--violet); }

/* Title and the read-through action share a row: the whole point of opening
   a card is to decide whether to go read the thing. */
.detail-head {
  display: flex; align-items: flex-start; gap: var(--s3);
  margin-block: 14px var(--s3);
  padding-right: 44px;
}
.detail-head-text { flex: 1; min-width: 0; }

.detail h2 {
  font-family: var(--display); font-size: 29px; line-height: 1.18;
  letter-spacing: -.015em; margin-bottom: 10px;
}
.detail-by { font-size: 16px; color: #3B4560; margin-bottom: 4px; }
.detail-by strong { color: var(--navy); }
.detail-cred { font-size: 14px; color: var(--muted); }

.detail-read {
  flex: none; height: 46px; padding: 0 22px; font-size: 15px;
  margin-top: 4px;
}
.detail-read .icon { width: 17px; height: 17px; }

.detail-summary { font-size: 17px; line-height: 1.62; margin-block: var(--s3); }

.detail-excerpt {
  background: var(--blush);
  border-radius: var(--radius-sm);
  padding: var(--s3);
  margin-block: var(--s3);
}
.detail-excerpt h3 {
  font-size: 11.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.detail-excerpt > p {
  font-family: var(--serif);
  font-size: 17px; line-height: 1.6; color: var(--navy);
}
.detail-excerpt-src {
  font-family: var(--sans) !important;
  font-size: 13px !important; color: var(--muted) !important;
  margin-top: 12px;
}
.detail-excerpt-src a {
  color: var(--violet); font-weight: 600; text-decoration: none;
  white-space: nowrap;
}
.detail-excerpt-src a:hover { text-decoration: underline; }
.detail-excerpt-src .icon { width: 13px; height: 13px; vertical-align: -2px; }

.detail-site {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; color: var(--violet); font-weight: 600;
  text-decoration: none;
}
.detail-site:hover { text-decoration: underline; }
.detail-site-host {
  font-weight: 500; color: var(--muted);
  border-left: 1px solid var(--border); padding-left: 7px;
}
.detail-site .icon { width: 15px; height: 15px; }

.detail-quote {
  margin: var(--s3) 0; padding: var(--s2) 0 var(--s2) var(--s3);
  border-left: 3px solid var(--pr-violet);
  font-family: var(--serif); font-size: 18px; font-style: italic;
  line-height: 1.5; color: #3B4560;
}

.detail-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--s2) var(--s3);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding-block: var(--s3); margin-block: var(--s3);
}
.fact dt {
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 3px;
}
.fact dd { margin: 0; font-size: 15px; }

.detail-note {
  background: var(--blush); border-radius: var(--radius-sm);
  padding: var(--s2) var(--s3); font-size: 14.5px; color: #3B4560;
  margin-bottom: var(--s3);
}
.detail-note strong { color: var(--navy); }

.detail-actions {
  display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center;
  justify-content: space-between;
}
.btn-ghost {
  background: transparent; color: var(--violet);
  border: 1px solid var(--border); height: 56px; padding: 0 24px;
}
.btn-ghost:hover { background: var(--lavender); border-color: var(--violet); }

.rights-line { font-size: 13px; color: var(--muted); margin-top: var(--s3); }

/* ===== Motion ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover { transform: none; }
}

/* ===== Responsive ======================================================== */

/* Between the stacked layout and full desktop the copy column and the fish
   compete for the same band — the tagline collides with the fish's tail.
   Shrink both so they keep clear of each other. */
/* Short laptop screens: the hero plus header nearly fills the viewport, so
   reclaim height where it costs least — a tighter header, and the lede
   top-aligned instead of centred in its grid row, so the strip that peeks
   contains readable text rather than empty cream. */
@media (min-width: 851px) and (max-height: 840px) {
  .header-inner { min-height: 62px; }
  .hero-actions-inner { align-items: start; }
}

@media (min-width: 851px) and (max-width: 1180px) {
  .hero-copy { max-width: 56%; }
  .hero-wordmark img { width: 100%; }
  .hero-tagline img { width: min(100%, 320px); }
  .hero-lede { font-size: 17px; }
  .hero-art { width: 50%; right: -6%; }
}

@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .header-inner { gap: var(--s3); }
  .site-nav ul { gap: 18px; }
  .site-nav a { font-size: 14.5px; }
  .logo-mark { width: 104px; }
  .logo-fish { width: 60px; }

  .value-strip { grid-template-columns: repeat(2, 1fr); gap: var(--s2) 0; }
  .value-strip li:nth-child(3) { border-left: 0; }
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .mission { grid-template-columns: 1fr; gap: var(--s4); padding: var(--s4); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s4); }
}

@media (max-width: 850px) {
  .container { padding-inline: var(--s3); }

  .nav-toggle {
    display: inline-flex; margin-left: auto;
  }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); margin-left: 0;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: var(--s2) var(--s3); }
  .site-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .site-nav li:last-child a { border-bottom: 0; }
  .btn-search span { display: none; }
  .btn-search { padding: 0; width: 44px; justify-content: center; }

  /* Lockup + three controls have to share a narrow bar — scale it down. */
  .logo { gap: 10px; }
  .logo-mark { width: 96px; }
  .logo-fish { width: 54px; }
  .header-actions { gap: 6px; }
  .header-inner { min-height: 78px; }

  /* Art moves below the copy and centres, rather than sitting behind text. */
  .hero { overflow: hidden; }
  .hero-inner { padding-top: var(--s4); padding-bottom: var(--s4); }
  .hero-copy { max-width: none; }
  .hero-art {
    position: relative; right: auto; top: auto; transform: none;
    width: auto; margin: 0 var(--s3) var(--s5);
    display: flex; justify-content: center;
  }
  .hero-river { display: none; }
  .hero-fish {
    width: 100%; max-width: 360px; margin: 0;
    filter: drop-shadow(0 12px 24px rgba(120, 80, 40, .18));
  }
  .hero-wordmark img { width: min(100%, 420px); }
  .hero-tagline { padding-left: 0; }
  .hero-tagline img { width: min(100%, 320px); }
  .hero-lede { max-width: none; font-size: 17px; }
  .hero-ctas .btn { flex: 1 1 auto; justify-content: center; }

  .searchbar { flex-wrap: wrap; border-radius: 22px; padding: 14px; }
  .searchbar input { flex-basis: 100%; height: 48px; padding-inline: 6px; }
  .searchbar > .icon { display: none; }
  .searchbar .btn { width: 100%; }

  .newsletter { padding: var(--s4); gap: var(--s3); }
  .newsletter-icon { width: 56px; height: 56px; }
  .newsletter-row { flex-direction: column; }
  .newsletter .btn { width: 100%; }

  .detail-inner { padding: var(--s3); }
  .detail h2 { font-size: 24px; }
  .detail-head { flex-direction: column; gap: var(--s2); padding-right: 40px; }
  .detail-read { width: 100%; justify-content: center; margin-top: 0; }
  .detail-actions { justify-content: flex-start; gap: var(--s2); }

  .hero-actions-inner { grid-template-columns: 1fr; gap: var(--s3); }
  .hero-lede { max-width: none; }
}

@media (max-width: 430px) {
  .logo-mark { width: 82px; }
  .logo-fish { width: 44px; }
  .logo { gap: 8px; }
  .header-inner { min-height: 72px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-3, .grid-4, .grid-auto { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .mission-left { flex-direction: column; align-items: flex-start; }
  .ichthys { flex-direction: column; align-items: flex-start; gap: var(--s2); text-align: left; }
  .ichthys-mark { width: 92px; }

  .value-strip { grid-template-columns: 1fr; margin-top: -32px; }
  .value-strip li + li { border-left: 0; border-top: 1px solid #EFE2CE; padding-top: var(--s2); }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}
