/* Palestine Playbook — shared styles
   Aesthetic: warm editorial. Olive/clay/cream, serif display + humanist sans.
   Calm, trustworthy, grounded — not campaign-loud. */

:root {
  --cream: #F7F3EA;
  --cream-deep: #EFE8D8;
  --ink: #20231C;
  --ink-soft: #4A4D42;
  --olive: #4A5D32;
  --olive-deep: #34431F;
  --clay: #B4582F;
  --clay-soft: #C97A52;
  --sage: #8A9A6B;
  --line: #DCD3BE;
  --watermelon: #C0392B;
  --white: #FFFFFF;

  --maxw: 1080px;
  --radius: 14px;
  --radius-sm: 8px;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* subtle paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.narrow { max-width: 720px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3 { font-size: 1.35rem; }
p { margin-bottom: 1rem; }
a { color: var(--olive); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

/* ---------- NAV ---------- */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,243,234,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.brand .melon { color: var(--watermelon); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; transition: color .2s; }
.nav-links a:hover { color: var(--olive); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--ink); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  padding: 14px 26px; border-radius: var(--radius-sm);
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--olive); color: var(--cream); }
.btn-primary:hover { background: var(--olive-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink-soft); }
.btn-ghost:hover { background: var(--cream-deep); transform: translateY(-2px); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- HERO ---------- */
.hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero h1 { max-width: 14ch; margin-bottom: 1.4rem; }
.hero .lede { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--ink-soft); max-width: 50ch; margin-bottom: 2.2rem; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* fade-up animation */
.fade { opacity: 0; transform: translateY(20px); animation: fadeUp .8s cubic-bezier(.2,.7,.3,1) forwards; }
.fade.d1 { animation-delay: .1s; } .fade.d2 { animation-delay: .22s; }
.fade.d3 { animation-delay: .34s; } .fade.d4 { animation-delay: .46s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ---------- SECTIONS ---------- */
section.block { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-label { text-align: center; color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 2rem; }

/* ---------- DOOR CARDS ---------- */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.door {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .25s, border-color .2s;
  position: relative; overflow: hidden;
}
.door::after {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: var(--clay); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.door:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(52,67,31,0.1); border-color: var(--sage); }
.door:hover::after { transform: scaleX(1); }
.door .icon { font-size: 1.8rem; margin-bottom: 1rem; }
.door h3 { margin-bottom: .6rem; }
.door .quote { font-style: italic; color: var(--ink-soft); margin-bottom: .8rem; font-size: 1rem; }
.door .promise { color: var(--ink-soft); font-size: .96rem; margin-top: auto; }
.door .go { margin-top: 1.2rem; font-weight: 600; color: var(--olive); display: inline-flex; gap: 6px; align-items: center; }

/* ---------- SPINE PREVIEW ---------- */
.spine-band { background: var(--olive); color: var(--cream); border-radius: var(--radius); padding: clamp(2rem,4vw,3rem); }
.spine-band h2 { color: var(--cream); }
.spine-band .sub { color: rgba(247,243,234,0.8); margin-bottom: 1.8rem; }
.steps { display: flex; flex-direction: column; gap: 10px; }
.step {
  display: flex; align-items: center; gap: 16px;
  background: rgba(247,243,234,0.08); border: 1px solid rgba(247,243,234,0.16);
  border-radius: var(--radius-sm); padding: 14px 18px; color: var(--cream);
  text-decoration: none; transition: background .2s, transform .15s;
}
.step:hover { background: rgba(247,243,234,0.16); transform: translateX(4px); }
.step .n { font-family: var(--font-display); font-size: 1.2rem; color: var(--clay-soft); min-width: 24px; }

/* ---------- MULTIPLIER / CTA BAND ---------- */
.cta-band { text-align: center; background: var(--cream-deep); border-radius: var(--radius); padding: clamp(2.5rem,5vw,4rem) 1.5rem; }
.cta-band h2 { margin-bottom: .8rem; }
.cta-band p { color: var(--ink-soft); max-width: 48ch; margin: 0 auto 1.6rem; }

/* ---------- CONTENT PAGES ---------- */
.page-head { padding: clamp(2.5rem,6vw,4.5rem) 0 1.5rem; }
.page-head .eyebrow { margin-bottom: 1rem; }
.prose { font-size: 1.12rem; }
.prose h2 { margin: 2.4rem 0 1rem; }
.prose h3 { margin: 1.8rem 0 .6rem; color: var(--olive-deep); }
.prose p { margin-bottom: 1.2rem; }
.prose ul { margin: 0 0 1.2rem 1.2rem; }
.prose li { margin-bottom: .5rem; }
.callout { background: var(--white); border-left: 4px solid var(--clay); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 1.2rem 1.5rem; margin: 1.5rem 0; }
blockquote { border-left: 3px solid var(--sage); padding-left: 1.2rem; margin: 1.5rem 0; font-style: italic; color: var(--ink-soft); font-size: 1.15rem; }

/* timeline */
.timeline { border-left: 2px solid var(--line); margin: 1.5rem 0 1.5rem 8px; padding-left: 0; }
.tl-item { position: relative; padding: 0 0 1.6rem 28px; }
.tl-item::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--clay); border: 2px solid var(--cream); }
.tl-item .yr { font-family: var(--font-display); font-weight: 600; color: var(--olive-deep); font-size: 1.1rem; }

/* glossary */
.term { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; margin-bottom: 12px; }
.term dt { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin-bottom: .3rem; color: var(--olive-deep); }
.term dd { color: var(--ink-soft); font-size: 1rem; }

/* faq */
details.faq { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden; }
details.faq summary { padding: 1.1rem 1.3rem; cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--clay); font-weight: 400; }
details.faq[open] summary::after { content: "\2013"; }
details.faq .answer { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }

/* resource library */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 1.8rem; }
.chip { font-family: var(--font-body); font-size: .9rem; padding: 8px 16px; border-radius: 100px; border: 1.5px solid var(--line); background: var(--white); cursor: pointer; transition: all .2s; color: var(--ink-soft); }
.chip:hover { border-color: var(--sage); }
.chip.active { background: var(--olive); color: var(--cream); border-color: var(--olive); }
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 16px; }
.res {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem;
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.res:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(52,67,31,0.08); }
.res .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: .8rem; }
.res .tag { font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; padding: 3px 9px; border-radius: 100px; }
.tag.watch { background: #E7EDD9; color: #3B6D11; }
.tag.read { background: #F3E1D8; color: #993C1D; }
.tag.listen { background: #E2EBE6; color: #0F6E56; }
.tag.time { background: var(--cream-deep); color: var(--ink-soft); }
.res h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.res .by { color: var(--ink-soft); font-size: .9rem; margin-bottom: .6rem; }
.res .desc { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.res .doorway { margin-top: .8rem; font-size: .8rem; font-weight: 600; color: var(--clay); }

/* ---------- FOOTER ---------- */
footer { background: var(--olive-deep); color: rgba(247,243,234,0.85); padding: 3rem 0 2rem; margin-top: 4rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
footer .brand { color: var(--cream); }
footer a { color: rgba(247,243,234,0.85); }
footer .trust { font-size: .9rem; opacity: .8; margin-top: 1rem; }
footer .cols { display: flex; gap: 3rem; flex-wrap: wrap; }
footer .col h4 { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; margin-bottom: .8rem; color: var(--clay-soft); }
footer .col a { display: block; text-decoration: none; font-size: .95rem; margin-bottom: .4rem; }
footer .col a:hover { color: var(--cream); }

/* progress dots for spine pages */
.spine-nav { display: flex; justify-content: space-between; align-items: center; margin: 3rem 0 1rem; gap: 1rem; }
.dots { display: flex; gap: 8px; }
.dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.dots span.on { background: var(--clay); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 820px) {
  .doors { grid-template-columns: 1fr; }
  .nav-links { position: absolute; top: 64px; left: 0; right: 0; background: var(--cream); flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 24px; width: 100%; border-top: 1px solid var(--line); }
  .nav-toggle { display: block; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
