*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ag-black: #000000;
  --ag-gray: #B9B9B9;
  --ag-white: #FFFFFF;
  --ag-green: #B8F483;
  --ag-dark-green: #4a9c28;
  --ink: #1a1a1a;
  --paper-bg: #f0ede6;
  --paper-mid: #e4e0d8;
  --paper-dark: #d4d0c8;
}

html { font-size: 16px; }

/* PAGE BACKGROUND — cross-hatch envelope pattern */
body {
  background-color: #ddd9d0;
  background-image:
    repeating-linear-gradient(45deg, #bbb8b0 0, #bbb8b0 1px, transparent 1px, transparent 8px),
    repeating-linear-gradient(-45deg, #bbb8b0 0, #bbb8b0 1px, transparent 1px, transparent 8px);
  background-size: 16px 16px;
  color: var(--ink);
  font-family: 'Bitter', serif;
  max-width: 880px;
  margin: 0 auto;
  padding: 1.5rem;
  overflow-x: hidden;
}

/* ── TAPE UTILITY ── */
.tape {
  display: block;
  height: 22px;
  background: rgba(255,255,255,0.55);
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  position: absolute;
  z-index: 10;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
}
.tape-top { top: -11px; }
.tape-bl { bottom: -11px; left: 20%; transform: none; }
.tape-br { bottom: -11px; right: 20%; transform: none; }
.tape-tl { top: -11px; left: 15%; transform: rotate(-2deg); width: 70px; }
.tape-tr { top: -11px; right: 18%; transform: rotate(1.5deg); width: 60px; }

/* ── PAPER PANELS (cut-out effect) ── */
.paper {
  background: var(--paper-bg);
  position: relative;
  margin-bottom: 1.5rem;
  box-shadow: 2px 3px 0 rgba(0,0,0,0.18), 4px 6px 0 rgba(0,0,0,0.07);
}

.paper-torn {
  /* ragged bottom edge via clip-path */
  clip-path: polygon(
    0% 0%, 100% 0%, 100% 92%,
    98% 96%, 95% 93%, 92% 97%, 89% 94%, 86% 98%,
    83% 95%, 80% 99%, 77% 95%, 74% 98%, 71% 94%,
    68% 97%, 65% 93%, 62% 96%, 59% 93%, 56% 97%,
    53% 94%, 50% 98%, 47% 94%, 44% 97%, 41% 94%,
    38% 98%, 35% 95%, 32% 99%, 29% 95%, 26% 98%,
    23% 94%, 20% 97%, 17% 93%, 14% 96%, 11% 93%,
    8% 97%, 5% 94%, 2% 96%, 0% 93%
  );
  padding-bottom: 2.5rem !important;
}

.paper-torn-top {
  clip-path: polygon(
    0% 7%, 2% 4%, 5% 8%, 8% 3%, 11% 7%, 14% 4%,
    17% 8%, 20% 3%, 23% 6%, 26% 3%, 29% 7%,
    32% 4%, 35% 8%, 38% 5%, 41% 9%, 44% 5%,
    47% 8%, 50% 4%, 53% 7%, 56% 4%, 59% 8%,
    62% 5%, 65% 9%, 68% 4%, 71% 7%, 74% 3%,
    77% 7%, 80% 4%, 83% 8%, 86% 5%, 89% 9%,
    92% 4%, 95% 7%, 98% 4%, 100% 6%,
    100% 100%, 0% 100%
  );
  padding-top: 2.5rem !important;
}

/* ── HEADER ── */
.header {
  background: var(--ag-black);
  color: #f0ede6;
  padding: 2.5rem 2.5rem 2rem;
  position: relative;
  transform: rotate(-0.4deg);
  margin-bottom: 2rem;
  box-shadow: 3px 4px 0 rgba(0,0,0,0.3), 6px 8px 0 rgba(0,0,0,0.1);
  /* diagonal lines envelope pattern on header */
  background-image:
    repeating-linear-gradient(45deg, #222 0, #222 1px, transparent 1px, transparent 7px),
    repeating-linear-gradient(-45deg, #222 0, #222 1px, transparent 1px, transparent 7px);
  background-size: 14px 14px;
  background-color: #111;
}

.header-inner {
  background: #111;
  padding: 1.5rem 2rem;
  position: relative;
  z-index: 1;
}

.header-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.75rem;
}

.header-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 12vw, 8.5rem);
  line-height: 0.88;
  letter-spacing: -0.01em;
  color: #f0ede6;
}

.header-title .colored {
  display: block;
  background: linear-gradient(90deg, #888, var(--ag-gray), var(--ag-green), #fff, var(--ag-green), var(--ag-gray));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-sub {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  margin-top: 1rem;
  color: #aaa;
  letter-spacing: 0.03em;
}

/* agender flag stripe bar */
.flag-stripe {
  display: flex;
  height: 10px;
  margin-top: 1.5rem;
}
.flag-stripe span { flex: 1; }
.fs1 { background: #000; }
.fs2 { background: var(--ag-gray); }
.fs3 { background: #fff; }
.fs4 { background: var(--ag-green); }
.fs5 { background: #fff; }
.fs6 { background: var(--ag-gray); }
.fs7 { background: #000; }

/* ── SECTION LABEL ── */
.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.4rem;
}

h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  letter-spacing: 0.01em;
  line-height: 1;
  margin-bottom: 0.9rem;
}

h3 {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #1a1a1a;
}

/* ── HISTORY SECTION ── */
.section-history {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  transform: rotate(0.3deg);
  /* tight crosshatch */
  background-color: #111;
  background-image:
    repeating-linear-gradient(45deg, #1d1d1d 0, #1d1d1d 1px, transparent 1px, transparent 5px),
    repeating-linear-gradient(-45deg, #1d1d1d 0, #1d1d1d 1px, transparent 1px, transparent 5px);
  background-size: 10px 10px;
}

.history-left {
  padding: 2rem 2rem 3rem;
  background: rgba(0,0,0,0.7);
}

.history-right {
  padding: 2rem;
  border-left: 2px dashed #444;
  background: rgba(0,0,0,0.5);
}

.section-history .section-label { color: #666; }
.section-history h2 { color: var(--ag-green); }
.section-history p { color: #ccc; }

.timeline-item {
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--ag-gray);
}
.timeline-item h3 { color: #aaa; font-size: 0.68rem; }
.timeline-item p { color: #bbb; font-size: 0.82rem; margin-top: 0.15rem; line-height: 1.5; }

/* ── LANGUAGE SECTION ── */
.section-language {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 0;
  transform: rotate(-0.2deg);
}

.lang-left {
  padding: 2rem;
  border-right: 3px solid var(--ink);
  /* diagonal green-tinted pattern */
  background-color: #111;
  background-image:
    repeating-linear-gradient(60deg, #1e3a1a 0, #1e3a1a 1px, transparent 1px, transparent 5px),
    repeating-linear-gradient(-60deg, #1e3a1a 0, #1e3a1a 1px, transparent 1px, transparent 5px);
  background-size: 12px 12px;
}

.lang-left h2 { color: var(--ag-green); }
.lang-left .section-label { color: rgba(184,244,131,0.5); }
.lang-left p { color: rgba(255,255,255,0.85); font-size: 0.85rem; }

.lang-right {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  background: var(--paper-bg);
}

/* term cards — each slightly rotated for cut-paste feel */
.term-card {
  border: 1.5px solid var(--ink);
  padding: 0.7rem;
  background: #fff;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.12);
  position: relative;
}
.term-card:nth-child(odd) { transform: rotate(-0.5deg); }
.term-card:nth-child(even) { transform: rotate(0.4deg); }
.term-card:nth-child(3) { transform: rotate(0.7deg); }
.term-card:nth-child(5) { transform: rotate(-0.3deg); }

.term-card h3 { font-size: 0.65rem; color: #333; }
.term-card p { font-size: 0.78rem; color: #444; }

/* ── PULLQUOTE SECTION ── */
.section-quote {
  transform: rotate(-0.5deg);
  padding: 2.5rem 3rem;
  text-align: center;
  position: relative;
  /* dots pattern */
  background-color: #111;
  background-image:
    radial-gradient(var(--ag-green) 0.9px, transparent 0.9px),
    radial-gradient(var(--ag-green) 0.9px, transparent 0.9px);
  background-size: 12px 12px;
  background-position: 0 0, 6px 6px;
}

.quote-inner {
  background: rgba(0,0,0,0.82);
  padding: 2rem;
  display: inline-block;
  max-width: 680px;
  position: relative;
}

.pullquote {
  font-family: 'Space Mono', sans-serif;
  font-size: 1rem;
  color: #fff;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.pullquote-attr {
  font-family: 'Caveat', cursive;
  font-size: 1rem;
  color: var(--ag-green);
  letter-spacing: 0.05em;
  margin-top: 0.75rem;
  display: block;
}

/* ── COMMUNITY SECTION ── */
.section-community {
  padding: 2rem 2rem 2.5rem;
  transform: rotate(0.2deg);
  /* grid pattern */
  background-color: var(--paper-bg);
  background-image:
    linear-gradient(#bbb 1px, transparent 1px),
    linear-gradient(90deg, #bbb 1px, transparent 1px);
  background-size: 20px 20px;
}

.section-community > .section-label { color: #777; }
.section-community > h2 { color: var(--ink); }

.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.2rem;
}

.community-card {
  background: #fff;
  border: 2px solid var(--ink);
  padding: 1rem;
  position: relative;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
}
.community-card:nth-child(1) { transform: rotate(-1deg); }
.community-card:nth-child(2) { transform: rotate(0.8deg); }
.community-card:nth-child(3) { transform: rotate(-0.5deg); }

.community-card::before {
  content: '';
  display: block;
  height: 7px;
  margin: -1rem -1rem 0.75rem;
}
.c-black-bar::before { background: var(--ag-black); }
.c-gray-bar::before { background: var(--ag-gray); }
.c-green-bar::before { background: var(--ag-green); }

.community-card h3 { font-size: 0.68rem; color: #333; }
.community-card p { font-size: 0.8rem; line-height: 1.5; margin-top: 0.2rem; }

/* tape strips on community cards */
.community-card .tape-tl {
  width: 50px; height: 18px;
  background: rgba(255,255,255,0.6);
  border-top: 1px solid rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  position: absolute;
  top: -9px; left: 20%;
}

/* ── JOY SECTION ── */
.section-joy {
  display: grid;
  grid-template-columns: 3fr 2fr;
  transform: rotate(0.15deg);
}

.joy-main {
  padding: 2rem 2.5rem;
  border-right: 2px solid var(--ink);
  background: var(--paper-bg);
}

.joy-sidebar {
  padding: 1.5rem;
  /* multi-angle envelope weave */
  background-color: var(--ag-green);
  background-image:
    repeating-linear-gradient(30deg, rgba(0,0,0,0.12) 0, rgba(0,0,0,0.12) 1px, transparent 1px, transparent 10px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.12) 0, rgba(0,0,0,0.12) 1px, transparent 1px, transparent 10px),
    repeating-linear-gradient(-30deg, rgba(0,0,0,0.12) 0, rgba(0,0,0,0.12) 1px, transparent 1px, transparent 10px);
  background-size: 14px 14px;
}

.joy-sidebar h2 { font-size: 2.8rem; line-height: 1; color: #111; }
.joy-sidebar .section-label { color: rgba(0,0,0,0.5); }

.joy-list { list-style: none; margin-top: 0.75rem; }
.joy-list li {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed rgba(0,0,0,0.25);
  letter-spacing: 0.04em;
  color: #1a1a1a;
}
.joy-list li:last-child { border-bottom: none; }

/* ── RIGHTS SECTION ── */
.section-rights {
  color: #fff;
  padding: 2.5rem;
  transform: rotate(-0.3deg);
  /* wide diagonal crosshatch */
  background-color: #111;
  background-image:
    repeating-linear-gradient(45deg, #1a1a1a 0, #1a1a1a 2px, transparent 2px, transparent 14px),
    repeating-linear-gradient(-45deg, #1a1a1a 0, #1a1a1a 2px, transparent 2px, transparent 14px);
  background-size: 20px 20px;
  background-color: #0d0d0d;
}

.rights-inner {
  background: rgba(0,0,0,0.75);
  padding: 1.5rem 2rem;
}

.section-rights .section-label { color: rgba(255,255,255,0.45); }
.section-rights h2 { color: #fff; }

.rights-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}
.rights-cols p { color: rgba(255,255,255,0.82); font-size: 0.88rem; line-height: 1.65; }

.rights-stat {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--ag-green);
  display: block;
  margin-bottom: 0.2rem;
}

/* ── MENTAL HEALTH SECTION ── */
.section-health {
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  transform: rotate(0.25deg);
  background: var(--paper-bg);
  /* light dot pattern */
  background-image:
    radial-gradient(#bbb 0.8px, transparent 0.8px),
    radial-gradient(#bbb 0.8px, transparent 0.8px);
  background-size: 12px 12px;
  background-position: 0 0, 6px 6px;
  background-color: var(--paper-bg);
}

.health-text-area { background: rgba(240,237,230,0.95); padding: 1.25rem; }
.health-resource-area { background: rgba(240,237,230,0.95); padding: 1.25rem; }

.health-note {
  background: #fff;
  border: 1.5px solid var(--ink);
  border-left: 4px solid var(--ag-black);
  padding: 0.9rem;
  margin-top: 1rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: #333;
  line-height: 1.7;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
  transform: rotate(-0.4deg);
  position: relative;
}

.health-note strong {
  display: block;
  color: #111;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.4rem;
}

/* handwritten annotation */
.handwrite {
  font-family: 'Caveat', cursive;
  font-size: 1rem;
  color: #444;
  display: block;
  margin-top: 0.75rem;
}

/* ── FOOTER ── */
.footer-wrap {
  margin-top: 1.5rem;
  transform: rotate(0.4deg);
  /* envelope herringbone */
  background-color: #111;
  background-image:
    repeating-linear-gradient(135deg, #1c1c1c 0 1px, transparent 1px 6px),
    repeating-linear-gradient(-135deg, #1c1c1c 0 1px, transparent 1px 6px);
  background-size: 10px 10px;
  box-shadow: 2px 3px 0 rgba(0,0,0,0.3);
}

.footer {
  background: rgba(0,0,0,0.8);
  color: #f0ede6;
  padding: 1.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.05em;
  color: var(--ag-green);
}

.footer-right {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  color: #666;
  text-align: right;
  line-height: 1.9;
  letter-spacing: 0.06em;
}

/* ── DIVIDER STRIPE ── */
.flag-divider {
  display: flex;
  height: 6px;
  margin: 0.5rem 0;
  transform: rotate(0.1deg);
  box-shadow: 0 1px 0 rgba(0,0,0,0.15);
}
.flag-divider span { flex: 1; }

/* ── SCISSORS CUTLINE ── */
.cutline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
  color: #888;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}
.cutline::before, .cutline::after {
  content: '';
  flex: 1;
  height: 1px;
  border-top: 1.5px dashed #aaa;
}

/* ── STICKER BLOB ── */
.sticker {
  display: inline-block;
  background: var(--ag-green);
  border: 2px solid #111;
  padding: 0.4rem 0.9rem;
  font-family: 'Caveat', cursive;
  font-size: 1rem;
  color: #111;
  transform: rotate(-3deg);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
  margin: 0.5rem 0;
}

.sticker-gray {
  background: var(--ag-gray);
}

@media (max-width: 620px) {
  .section-history, .section-language, .section-joy,
  .section-health, .rights-cols, .community-grid, .lang-right {
    grid-template-columns: 1fr;
  }
  .history-right { border-left: none; border-top: 2px dashed #444; }
  .lang-left { border-right: none; border-bottom: 3px solid var(--ink); }
  .joy-main { border-right: none; border-bottom: 2px solid var(--ink); }
}
