/* =============================================================
   DRL — Explainer page additions
   For the "Behind the Curtain" page and other narrative pages
   that need a warmer, less mechanical aesthetic.
   Loads on top of the base style.css.
   ============================================================= */

/* ---- hero / pull-back-the-curtain opening ---- */

.curtain-hero {
  position: relative;
  padding: 4rem 0 3rem;
  margin: -3rem -2rem 3rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 50%, rgba(45, 74, 62, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 75% 30%, rgba(138, 109, 47, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, transparent 0%, rgba(184, 173, 153, 0.05) 100%);
}

/* ---- photo hero variant ---- */
/* Used on the home page only. Photograph sits behind the headline
   with a paper-toned overlay so the editorial typography stays
   readable. Image is served from the Unsplash CDN (no attribution
   required by license; credited in the footer as a courtesy). */
.curtain-hero--photo {
  padding: 5.5rem 0 4.5rem;
  background-color: var(--ink);
  background-image:
    linear-gradient(
      to right,
      rgba(244, 241, 234, 0.95) 0%,
      rgba(244, 241, 234, 0.82) 35%,
      rgba(244, 241, 234, 0.55) 65%,
      rgba(244, 241, 234, 0.35) 100%
    ),
    url('https://images.unsplash.com/photo-1723320011923-5829a70b5248?fm=jpg&q=82&w=2400&auto=format&fit=crop&ixlib=rb-4.1.0');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.curtain-hero--photo::before {
  /* Hide the centre rule on the photo variant — it competes with the photo */
  display: none;
}

.curtain-hero--photo .curtain-hero-inner {
  position: relative;
  z-index: 2;
}

/* Stronger backdrop for the standfirst paragraph so it survives on top of the image */
.curtain-hero--photo .standfirst {
  color: var(--ink);
  font-style: italic;
}

/* Mobile: shorter hero, tighter overlay so the text is fully on the paper side */
@media (max-width: 720px) {
  .curtain-hero--photo {
    padding: 3rem 0 2.5rem;
    background-image:
      linear-gradient(
        to right,
        rgba(244, 241, 234, 0.97) 0%,
        rgba(244, 241, 234, 0.92) 60%,
        rgba(244, 241, 234, 0.75) 100%
      ),
      url('https://images.unsplash.com/photo-1723320011923-5829a70b5248?fm=jpg&q=80&w=1200&auto=format&fit=crop&ixlib=rb-4.1.0');
  }
}

.curtain-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg,
    transparent 0%,
    var(--rule) 20%,
    var(--rule) 80%,
    transparent 100%);
  opacity: 0.4;
}

.curtain-hero-inner {
  max-width: var(--measure);
  padding: 0 var(--gutter);
  position: relative;
}

.curtain-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.curtain-hero h1 em {
  font-style: italic;
  color: var(--oxblood);
}

.curtain-hero .standfirst {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: 1.5rem;
  margin-bottom: 0;
  max-width: 56ch;
}

/* ---- pull-quote (used for the whale-tree line) ---- */

.pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.3;
  color: var(--oxblood);
  text-align: center;
  max-width: 32ch;
  margin: 3rem auto;
  padding: 2.5rem 1rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.pullquote::before, .pullquote::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 24px;
  height: 1px;
  background: var(--oxblood);
  transform: translateX(-50%);
}

.pullquote::before { top: -1px; }
.pullquote::after  { bottom: -1px; }

/* ---- boundary-comparison graphic ---- */

.boundary-chart {
  margin: 2.5rem 0;
  padding: 2rem 1.5rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--rule-faint);
}

.boundary-chart-title {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-faded);
  margin-bottom: 1rem;
  text-align: center;
}

.boundary-chart-scale {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--ink-faded);
  margin-bottom: 0.5rem;
  padding: 0 0.5rem;
}

.boundary-chart-axis {
  position: relative;
  height: 1px;
  background: var(--ink-faded);
  margin: 0 0.5rem 1.5rem;
}

.boundary-chart-axis::before,
.boundary-chart-axis::after {
  content: '';
  position: absolute;
  top: -3px;
  width: 1px;
  height: 7px;
  background: var(--ink-faded);
}
.boundary-chart-axis::before { left: 0; }
.boundary-chart-axis::after  { right: 0; }

.boundary-row {
  display: grid;
  grid-template-columns: 130px 1fr 70px;
  gap: 0.75rem;
  align-items: center;
  margin: 0.55rem 0;
  font-family: var(--serif);
  font-size: 0.95rem;
}

.boundary-row .label {
  text-align: right;
  font-weight: 500;
  color: var(--ink);
  font-size: 0.95rem;
}

.boundary-row .bar-track {
  position: relative;
  height: 22px;
  background: var(--paper-warm);
  border: 1px solid var(--rule-faint);
}

.boundary-row .bar-fill {
  position: absolute;
  top: 0;
  height: 100%;
  background: var(--ink-soft);
  border-right: 1px solid var(--paper);
}

.boundary-row.timber .bar-fill { background: var(--oxblood); }
.boundary-row.timber .bar-fill::after {
  /* dashed extension showing the missing flows */
  content: '';
  position: absolute;
  top: 0;
  left: 100%;
  height: 100%;
  width: var(--missing-width, 0);
  background: repeating-linear-gradient(
    -45deg,
    transparent 0,
    transparent 3px,
    rgba(107, 29, 29, 0.25) 3px,
    rgba(107, 29, 29, 0.25) 5px
  );
  border-right: 1px dashed rgba(107, 29, 29, 0.4);
}

.boundary-row .pct {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-faded);
  text-align: left;
}

.boundary-chart-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule-faint);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-faded);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.boundary-chart-legend .swatch {
  display: inline-block;
  width: 14px;
  height: 10px;
  vertical-align: middle;
  margin-right: 0.4rem;
  border: 1px solid var(--rule);
}

.swatch.ink { background: var(--ink-soft); }
.swatch.oxblood { background: var(--oxblood); }
.swatch.missing {
  background: repeating-linear-gradient(
    -45deg,
    transparent 0,
    transparent 3px,
    rgba(107, 29, 29, 0.25) 3px,
    rgba(107, 29, 29, 0.25) 5px
  );
  border-color: rgba(107, 29, 29, 0.4);
}

/* ---- factory-vs-forest comparison ---- */

.compare-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 2rem 0;
  border: 1px solid var(--rule);
}

.compare-pair > div {
  padding: 1.75rem 1.5rem;
}

.compare-pair > div:first-child {
  border-right: 1px solid var(--rule);
  background: var(--paper-warm);
}

.compare-pair > div:last-child {
  background: var(--paper);
}

.compare-pair h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.compare-pair .verdict {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--oxblood);
  margin-bottom: 0.75rem;
}

.compare-pair ul {
  font-size: 0.95rem;
  line-height: 1.55;
  margin-left: 1.2rem;
  color: var(--ink-soft);
}

.compare-pair ul li {
  margin-bottom: 0.35rem;
}

/* ---- first-person panel (Murphy's statement) ---- */

.firstperson {
  margin: 3rem 0;
  padding: 2.25rem 2.25rem 2rem;
  background: linear-gradient(180deg, var(--paper-warm) 0%, var(--paper) 100%);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--gold);
  position: relative;
}

.firstperson .kicker {
  color: var(--gold);
}

.firstperson h2 {
  margin-top: 0;
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
}

.firstperson p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 100%;
  margin-bottom: 0.9rem;
}

.firstperson p:last-of-type { margin-bottom: 0; }

.firstperson .sig {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--rule);
}

.firstperson .sig-name {
  font-style: normal;
  font-weight: 600;
}

.firstperson .sig-role {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faded);
  display: block;
  margin-top: 0.25rem;
}

/* ---- "what is happening now" — litigation list ---- */

.case-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.case-card {
  padding: 1.25rem 1.25rem 1.1rem;
  background: var(--paper);
  border: 1px solid var(--rule-faint);
  border-top: 3px solid var(--ink-soft);
}

.case-card .case-status {
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faded);
  margin-bottom: 0.4rem;
}

.case-card .case-status.live    { color: var(--oxblood); }
.case-card .case-status.dismissed { color: var(--ink-faded); }
.case-card .case-status.won { color: var(--verdigris); }

.case-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-style: normal;
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.case-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  color: var(--ink-soft);
}

.case-card .case-source {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-faded);
  margin-top: 0.5rem;
}

/* ---- conservation directory ---- */

.org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.9rem;
  margin: 1.5rem 0;
}

.org-card {
  padding: 0.85rem 1rem;
  background: var(--paper);
  border: 1px solid var(--rule-faint);
  transition: border-color 0.15s, background 0.15s;
}

.org-card:hover {
  border-color: var(--oxblood);
  background: var(--paper-warm);
}

.org-card a {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  border: none;
  display: block;
  margin-bottom: 0.25rem;
}

.org-card a:hover { color: var(--oxblood); }

.org-card p {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--ink-faded);
  margin: 0;
}

/* ---- closing block (whale + tree) ---- */

.closing-block {
  margin: 4rem 0 2rem;
  padding: 3rem 1.5rem;
  text-align: center;
  background:
    radial-gradient(circle at 30% 40%, rgba(45, 74, 62, 0.05) 0%, transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(107, 29, 29, 0.04) 0%, transparent 60%);
}

.closing-block .lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  line-height: 1.4;
  color: var(--ink);
  max-width: 28ch;
  margin: 0 auto 2rem;
  letter-spacing: -0.005em;
}

.closing-block .body {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 auto;
}

.closing-block em { color: var(--oxblood); font-style: italic; }

/* ---- mobile adjustments for explainer ---- */

@media (max-width: 720px) {
  .curtain-hero { padding: 2.5rem 0 2rem; margin: -2rem -1rem 2rem; }
  .compare-pair { grid-template-columns: 1fr; }
  .compare-pair > div:first-child { border-right: none; border-bottom: 1px solid var(--rule); }
  .boundary-row { grid-template-columns: 95px 1fr 55px; gap: 0.4rem; font-size: 0.82rem; }
  .boundary-row .label { font-size: 0.78rem; }
  .boundary-row .pct { font-size: 0.7rem; }
  .firstperson { padding: 1.5rem 1.25rem; }
  .closing-block { padding: 2rem 1rem; margin: 2.5rem 0 1rem; }
}
