/* ── THE QUIET RESISTANCE ── style.css ────────────────── */

:root {
  --ink:        #1a1814;
  --ink-mid:    #383428;
  --ink-light:  #6a6050;
  --rule:       #c8bfa8;
  --rule-dark:  #8a8070;
  --bg:         #f6f2ea;
  --bg-mid:     #ede8dc;
  --bg-dark:    #e2dbd0;
  --green:      #253c27;
  --green-mid:  #2e4a30;
  --gold:       #8a6a28;
  --white:      #ffffff;

  --font-head:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:  'EB Garamond', Georgia, 'Times New Roman', serif;

  --sidebar:    240px;
  --col:        640px;
  --m:          2rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green); }
a:hover { color: var(--ink); }

/* ══════════════════════════════════════════════════════════
   TOP BAR
   ══════════════════════════════════════════════════════════ */

.top-bar {
  background: var(--green);
  border-bottom: 2px solid var(--ink);
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 var(--m);
  position: sticky;
  top: 0;
  z-index: 200;
}

.nav-brand {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: bold;
  font-style: normal;
  color: rgba(246,242,234,0.85);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: 8px 18px;
  border: 2px solid rgba(246,242,234,0.35);
  border-radius: 3px;
  transition: background 0.15s, color 0.15s;
}

.nav-brand:hover {
  background: rgba(246,242,234,0.07);
  color: #f6f2ea;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(246,242,234,0.8);
}

/* ══════════════════════════════════════════════════════════
   PAGE SHELL
   ══════════════════════════════════════════════════════════ */

.page-shell {
  display: flex;
  min-height: calc(100vh - 52px);
}

/* ══════════════════════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════════════════════ */

.sidebar {
  width: var(--sidebar);
  flex-shrink: 0;
  background: var(--green);
  border-right: 1px solid var(--rule);
  padding: 8px 8px 8px 20px;
  position: sticky;
  top: 52px;
  height: calc(100vh - 52px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-zone {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 16px;
}

.sidebar-zone:first-child {
  margin-top: 0;
}

.sidebar-zone-heading {
  display: block;
  font-family: var(--font-head);
  font-size: 0.84rem;
  font-weight: bold;
  font-style: normal;
  color: rgba(246,242,234,0.85);
  padding: 9px 12px;
  margin-left: -20px;
  background: transparent;
  border: 2px solid rgba(246,242,234,0.35);
  border-radius: 3px;
  text-decoration: none;
  line-height: 1.3;
  margin-bottom: 2px;
  transition: background 0.15s, color 0.15s;
}

.sidebar-zone-heading:hover {
  background: rgba(246,242,234,0.07);
  color: #f6f2ea;
}

.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-links a {
  display: block;
  font-family: var(--font-body);
  font-size: 0.84rem;
  line-height: 1.3;
  color: rgba(246,242,234,0.85);
  text-decoration: none;
  padding: 9px 12px;
  border: 2px solid rgba(246,242,234,0.35);
  border-radius: 3px;
  transition: background 0.15s, color 0.15s;
}

.sidebar-links a:hover {
  background: rgba(246,242,234,0.07);
  color: #f6f2ea;
}

.sidebar-links a.active {
  background: var(--gold);
  color: #f6f2ea;
  border-color: var(--gold);
}

.sidebar-zone-heading.active {
  background: var(--gold);
  color: #f6f2ea;
  border-color: var(--gold);
}

.sidebar-sublinks {
  margin-top: 2px;
  margin-left: 8px;
}

.sidebar-sublinks a {
  font-size: 0.78rem;
  padding: 7px 12px;
}

.sidebar-rule { display: none; }

/* ══════════════════════════════════════════════════════════
   MAIN AREA
   ══════════════════════════════════════════════════════════ */

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ── PAGE HEADER ────────────────────────────────────────── */

.page-header {
  background: var(--green);
  padding: 3.5rem var(--m) 3rem;
  border-bottom: 3px double var(--bg-dark);
}

.page-header-inner {
  max-width: var(--col);
}

.page-header .eyebrow {
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(246,242,234,0.45);
  margin-bottom: 1rem;
  display: block;
}

.page-header h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--bg);
  margin-bottom: 1.2rem;
}

.page-header h1 em { font-style: italic; font-weight: 300; }

.page-header .deck {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(246,242,234,0.6);
  line-height: 1.65;
  max-width: 500px;
}

/* ── CONTENT ────────────────────────────────────────────── */

.content {
  max-width: var(--col);
  padding: 3rem var(--m);
  flex: 1;
}

/* ── PROSE ──────────────────────────────────────────────── */

.prose p { margin-bottom: 1.1rem; color: var(--ink-mid); }
.prose p + h2 { margin-top: 2.5rem; }

.prose h2 {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.3rem;
  letter-spacing: 0.01em;
}

.prose h2 + .rule { margin-bottom: 1.2rem; }

.prose hr, .rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.2rem 0;
}

.prose strong { color: var(--ink); font-weight: 600; }
.prose em { font-style: italic; }

.prose blockquote, .pull {
  border-left: 3px solid var(--green);
  padding: 0.6rem 0 0.6rem 1.4rem;
  margin: 1.8rem 0;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.5;
}

.prose .note {
  font-size: 0.92rem;
  font-style: italic;
  color: var(--ink-light);
  border-top: 1px solid var(--rule);
  padding-top: 1.4rem;
  margin-top: 2.5rem;
}

/* ── DOWNLOAD BOX ───────────────────────────────────────── */

.download-box {
  border: 1px solid var(--rule-dark);
  padding: 1.4rem 1.8rem;
  margin: 2.5rem 0;
  background: var(--bg-mid);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.download-box p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-light);
  margin: 0;
}

.download-box strong { color: var(--ink); }

.btn-download {
  display: inline-block;
  padding: 0.55rem 1.4rem;
  background: var(--green);
  color: var(--bg);
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}

.btn-download:hover { background: var(--green-mid); color: var(--bg); }

/* ══════════════════════════════════════════════════════════
   HOMEPAGE
   ══════════════════════════════════════════════════════════ */

.masthead {
  background: var(--green);
  padding: 4rem var(--m) 3.5rem;
  border-bottom: 3px double var(--bg-dark);
}

.masthead-inner { max-width: var(--col); }

.masthead-eyebrow {
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(246,242,234,0.35);
  display: block;
  margin-bottom: 1.4rem;
}

.masthead h1 {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 300;
  line-height: 1.0;
  color: var(--bg);
  margin-bottom: 1.8rem;
  letter-spacing: 0.01em;
}

.masthead h1 em { font-style: italic; }

.masthead-rule {
  width: 48px;
  height: 2px;
  background: rgba(246,242,234,0.25);
  margin-bottom: 1.6rem;
}

.masthead-strapline {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-style: italic;
  color: rgba(246,242,234,0.6);
  line-height: 1.65;
  max-width: 420px;
}

.intro {
  max-width: var(--col);
  padding: 3rem var(--m);
  border-bottom: 1px solid var(--rule);
}

.intro p {
  font-size: 1.05rem;
  color: var(--ink-mid);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.intro p:last-child { margin-bottom: 0; }

.intro .hinge {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 300;
  color: var(--ink);
  border-left: 3px solid var(--green);
  padding-left: 1.2rem;
  margin: 1.8rem 0;
  line-height: 1.5;
}

/* Zone cards — vertical stack */
.zone-cards {
  max-width: var(--col);
  padding: 2.5rem var(--m);
}

.zone-cards-label {
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 1.5rem;
  display: block;
}

.zone-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.6rem 1.8rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--rule-dark);
  margin-bottom: 1rem;
  text-decoration: none;
  color: inherit;
  background: var(--bg);
  transition: background 0.15s, border-left-color 0.15s;
}

.zone-card:hover {
  background: var(--bg-mid);
  border-left-color: var(--green);
}

.zone-card-number {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
  width: 2rem;
  text-align: center;
  margin-top: 0.15rem;
}

.zone-card-body { flex: 1; }

.zone-card-label {
  font-family: var(--font-head);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.35rem;
}

.zone-card h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.zone-card p {
  font-size: 0.9rem;
  color: var(--ink-light);
  line-height: 1.55;
  margin: 0;
}

.zone-card-arrow {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--green);
  flex-shrink: 0;
  align-self: center;
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */

footer {
  background: var(--ink);
  padding: 2rem var(--m);
}

.footer-inner {
  max-width: var(--col);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--font-head);
  font-size: 1rem;
  font-style: italic;
  color: rgba(246,242,234,1);
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--font-head);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(246,242,234,0.9);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: rgba(246,242,234,1); }

.footer-copy {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(246,242,234,0.9);
  border-top: 1px solid rgba(246,242,234,0.3);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

/* ══════════════════════════════════════════════════════════
   DATA TABLE
   ══════════════════════════════════════════════════════════ */

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.92rem;
  margin: 1.5rem 0;
}

.data-table th {
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 2px solid var(--rule-dark);
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-table td {
  padding: 0.3rem 0.6rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-mid);
  font-variant-numeric: tabular-nums;
}

.data-table tr:nth-child(even) td { background: var(--bg-mid); }

.data-table .total td {
  font-weight: 600;
  color: var(--ink);
  border-top: 2px solid var(--rule-dark);
  border-bottom: none;
}

.data-note {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ink-light);
  margin-top: 0.5rem;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */

@media (max-width: 780px) {

  .sidebar {
    display: none;
    position: fixed;
    top: 52px;
    left: 0;
    width: 280px;
    height: calc(100vh - 52px);
    z-index: 100;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
  }

  .sidebar.open { display: block; }

  .nav-toggle { display: flex; }

  .page-shell { display: block; }

  .download-box { flex-direction: column; align-items: flex-start; }

  .footer-inner { flex-direction: column; }

  .zone-card { gap: 1rem; }

  .zone-card-number { font-size: 1.8rem; width: 1.6rem; }
}

/* ── NEXT PAGE LINK ─────────────────────────────────────── */

.next-link {
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
  padding-top: 1.5rem;
  text-align: left;
}

.next-link a {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--green);
  text-decoration: none;
  transition: color 0.15s;
}

.next-link a:hover { color: var(--ink); }

/* ── WITHDRAWAL CTA ─────────────────────────────────────── */

.withdrawal-cta {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.2;
  color: var(--ink);
  margin-top: 2.5rem;
}

.withdrawal-cta em {
  font-style: italic;
  color: var(--green);
}
