/* The Great Rebellion — dynamic word-box identity.
   Montserrat Black display + Sherman Serif body. Warm paper, hand-assembled
   riso-bright blocks. Playful, human, revolutionary — not bolshevik.
   See DESIGN-NOTES.md for the system. */

/* ---- Self-hosted Sherman (body voice) ---- */
@font-face {
  font-family: "Sherman Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/shermanserif-book.woff2") format("woff2"),
       url("/assets/fonts/shermanserif-book.woff") format("woff");
}
@font-face {
  font-family: "Sherman Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/shermanserif-bookitalic.woff2") format("woff2"),
       url("/assets/fonts/shermanserif-bookitalic.woff") format("woff");
}
@font-face {
  font-family: "Sherman Serif"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/shermanserif-bold.woff2") format("woff2"),
       url("/assets/fonts/shermanserif-bold.woff") format("woff");
}
@font-face {
  font-family: "Sherman Serif"; font-style: italic; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/shermanserif-bolditalic.woff2") format("woff2"),
       url("/assets/fonts/shermanserif-bolditalic.woff") format("woff");
}

:root {
  --ink: #14110E;              /* warm near-black */
  --bone: #F7F3EA;            /* warm paper */
  --paper: #ffffff;
  --line: #14110E;
  --muted: #6B655C;           /* warm gray */
  --muted-d: #B8B0A2;         /* muted on dark */

  /* the block palette — used as fills, one per tool / logo block */
  --red: #F0432B;
  --marigold: #F5B227;
  --green: #2E9E5B;
  --cobalt: #2D6BE0;

  --accent: var(--red);        /* legacy alias, sparing */
  --maxw: 1120px;
  --gut: clamp(20px, 5vw, 64px);
  --stroke: 3px;               /* box outline weight in HTML lockups */
  --display: Montserrat, system-ui, sans-serif;
  --serif: "Sherman Serif", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }

/* =====================================================================
   THE DYNAMIC WORD-BOX LOGO (inline SVG)
   Rendered as <svg class="tgr-logo tgr-*"> ... </svg>. Boxes are <rect>
   (square corners), text is Montserrat 900. Colors via CSS custom props so
   the same markup can be ink, reversed, or the colored-block set.
   ===================================================================== */
.tgr-logo { display: block; overflow: visible; }
.tgr-logo .bx { fill: var(--paper); stroke: var(--ink); stroke-width: 9; }
.tgr-logo .wd { fill: var(--ink); font-family: var(--display); font-weight: 900; }
.tgr-logo .wd.rev { fill: var(--bone); }

/* colored-block variant */
.tgr-logo.colored .bx.b1 { fill: var(--red); }
.tgr-logo.colored .bx.b2 { fill: var(--marigold); }
.tgr-logo.colored .bx.b3 { fill: var(--cobalt); }
.tgr-logo.colored .wd.w1 { fill: var(--bone); }
.tgr-logo.colored .wd.w2 { fill: var(--ink); }
.tgr-logo.colored .wd.w3 { fill: var(--bone); }

/* reversed (on dark) */
.tgr-logo.reversed .bx { fill: none; stroke: var(--bone); }
.tgr-logo.reversed .wd { fill: var(--bone); }

/* ---- Header ---- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 12px var(--gut);
  background: color-mix(in srgb, var(--bone) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: var(--stroke) solid var(--ink);
}
.site-head .brand { display: inline-flex; line-height: 0; }
.site-head .tgr-logo { height: 34px; width: auto; }
.site-head .tgr-logo .bx,
.site-head .tgr-logo .wd { transition: transform .22s cubic-bezier(.2,.8,.3,1.2); transform-box: fill-box; transform-origin: center; }
/* playful micro-shuffle on hover: each block nudges a hair */
.brand:hover .tgr-logo .g1 { transform: translateY(-2px); }
.brand:hover .tgr-logo .g2 { transform: translateY(2px); }
.brand:hover .tgr-logo .g3 { transform: translateX(2px); }

.site-nav { display: flex; align-items: center; gap: clamp(10px, 2.2vw, 24px); }
.site-nav a {
  font-family: var(--display); font-weight: 700; font-size: 13.5px;
  letter-spacing: .01em; text-decoration: none; color: var(--ink);
}
.site-nav a:not(.nav-cta):hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--red); }
.site-nav a.nav-cta {
  border: var(--stroke) solid var(--ink);
  padding: 8px 15px; background: var(--ink); color: var(--bone);
  transition: transform .12s ease, background .15s ease;
}
.site-nav a.nav-cta:hover { background: var(--cobalt); border-color: var(--cobalt); color: var(--bone); transform: translateY(-1px); }
@media (max-width: 720px) { .site-nav a:not(.nav-cta) { display: none; } }

/* ---- Shared type ---- */
.kicker {
  font-family: var(--display); font-weight: 800;
  text-transform: uppercase; letter-spacing: .16em; font-size: 12px;
  margin: 0 0 16px; color: var(--red);
}
.kicker.light { color: var(--marigold); }
.section-head { max-width: 780px; margin: 0 auto; text-align: center; padding: 0 var(--gut); }
.section-title, .manifesto-title, .cta h2 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(30px, 5vw, 52px); line-height: 1.03; letter-spacing: -.02em; margin: 0 0 16px;
}
.section-sub { color: var(--muted); font-size: clamp(17px, 2vw, 20px); max-width: 60ch; margin: 0 auto; }
p { margin: 0 0 18px; }
strong { font-weight: 700; }
em { font-style: italic; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 700; font-size: 15px; text-decoration: none;
  padding: 13px 22px; border: var(--stroke) solid var(--ink);
  transition: transform .12s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--ink); color: var(--bone); }
.btn-solid:hover { background: var(--red); border-color: var(--red); box-shadow: 5px 5px 0 var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--marigold); border-color: var(--ink); color: var(--ink); box-shadow: 5px 5px 0 var(--ink); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) var(--gut) clamp(40px, 7vw, 88px);
  display: grid; gap: clamp(28px, 4vw, 48px);
  grid-template-columns: 1fr;
  text-align: center; justify-items: center;
}
.hero-logo { width: min(560px, 92%); height: auto; }
/* Headline as hand-set letterpress: the warm serif voice at poster scale,
   composed between an Oxford rule and a row of press ornaments. Ornaments
   live in pseudo-elements so the CMS textContent rebinding can't wipe them. */
.hero-h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(31px, 5vw, 58px); line-height: 1.12; letter-spacing: normal;
  margin: 0; max-width: 24ch; text-wrap: balance;
}
.hero-h1::before {
  /* thick-over-thin Oxford rule, a printer's classic */
  content: ""; display: block; width: min(150px, 42%); height: 4px;
  margin: 0 auto 28px;
  border-top: 4px solid var(--ink); border-bottom: 1.5px solid var(--ink);
}
.hero-h1::after {
  content: "\2726 \2726 \2726"; /* ✦ ✦ ✦ */
  display: block; margin-top: 28px;
  font-size: .3em; line-height: 1; color: var(--red);
  letter-spacing: 1.1em; text-indent: 1.1em; /* re-center the tracked row */
}
.hero-sub { font-size: clamp(17px, 2.1vw, 21px); color: var(--muted); max-width: 58ch; margin: 0; }
.hero-sub em, .hero-sub strong { color: var(--ink); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* blocks assemble-in on load (each word-group) */
.tgr-logo .g1, .tgr-logo .g2, .tgr-logo .g3 { transform-box: view-box; }
@keyframes drop-in { from { opacity: 0; transform: translateY(-26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
.hero-logo .g1 { animation: drop-in .5s .05s cubic-bezier(.2,.8,.3,1.1) both; }
.hero-logo .g2 { animation: rise-in .5s .18s cubic-bezier(.2,.8,.3,1.1) both; }
.hero-logo .g3 { animation: rise-in .5s .31s cubic-bezier(.2,.8,.3,1.1) both; }

/* =====================================================================
   MANIFESTO (serious core — warm dark, not cold)
   ===================================================================== */
.manifesto { background: var(--ink); color: var(--bone); padding: clamp(64px, 10vw, 120px) 0; }
.manifesto .wrap { max-width: 760px; }
.manifesto-title { color: var(--bone); }
.manifesto-body p { font-family: var(--serif); font-size: clamp(17px, 2vw, 20px); color: #E6E1D6; margin: 0 0 20px; }
.pullquote {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(23px, 3.6vw, 38px); line-height: 1.14; letter-spacing: -.01em;
  margin: 40px 0 0; padding-left: 22px; border-left: 6px solid var(--marigold); color: var(--bone);
}
.manifesto-more { margin-top: 30px; }
.manifesto-more a {
  font-family: var(--display); font-weight: 700; font-size: 15px; text-decoration: none;
  color: var(--bone); border-bottom: 2px solid var(--red); padding-bottom: 2px;
}
.manifesto-more a:hover { color: var(--marigold); border-color: var(--marigold); }

/* typographic "check" band (replaces the red-lit machine photo) */
.cine-band { background: var(--red); color: var(--ink); padding: clamp(48px, 8vw, 96px) 0; border-top: var(--stroke) solid var(--ink); border-bottom: var(--stroke) solid var(--ink); }
.cine-line {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut);
  font-family: var(--display); font-weight: 900; letter-spacing: -.015em;
  font-size: clamp(26px, 5vw, 58px); line-height: 1.02; max-width: 20ch; margin-inline: auto;
}

/* =====================================================================
   TOOLS — colored blocks
   ===================================================================== */
.tools { padding: clamp(64px, 10vw, 116px) 0; }
.tool-grid {
  max-width: var(--maxw); margin: 52px auto 0; padding: 0 var(--gut);
  display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 760px) { .tool-grid { grid-template-columns: 1fr; } }
.tool {
  --k: var(--ink);
  position: relative; border: var(--stroke) solid var(--ink); background: var(--paper);
  padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column;
  transition: transform .16s ease, box-shadow .16s ease;
}
.tool:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--k); }
/* order = phone / social / host / coop / email / label / presence → cycle the block palette */
.tool-grid .tool:nth-child(1) { --k: var(--red); }
.tool-grid .tool:nth-child(2) { --k: var(--cobalt); }
.tool-grid .tool:nth-child(3) { --k: var(--marigold); }
.tool-grid .tool:nth-child(4) { --k: var(--green); }
.tool-grid .tool:nth-child(5) { --k: var(--red); }
.tool-grid .tool:nth-child(6) { --k: var(--cobalt); }
.tool-grid .tool:nth-child(7) { --k: var(--marigold); }
.tool-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tool-num {
  font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1;
  color: var(--bone); background: var(--k); border: var(--stroke) solid var(--ink);
  width: 54px; height: 54px; display: inline-flex; align-items: center; justify-content: center;
}
.tool-status {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; font-size: 11px; border: 2px solid var(--ink);
  padding: 4px 11px; background: var(--bone);
}
.tool-name { font-family: var(--display); font-weight: 800; font-size: clamp(20px, 2.4vw, 26px); margin: 0 0 8px; line-height: 1.1; }
.tool-product { font-family: var(--display); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 14px; }
.tool-product strong { color: var(--k); font-weight: 800; }
.tool-tagline { font-family: var(--display); font-weight: 700; font-size: 18px; margin: 0 0 14px; }
.tool-pattern { margin: 0 0 12px; font-size: 15px; color: var(--muted); }
.strike { text-decoration: line-through; text-decoration-color: var(--k); text-decoration-thickness: 2px; }
.tool-body { font-size: 16px; color: #322E28; margin: 0 0 18px; flex: 1; }
.tool-steps {
  font-size: 15px; color: var(--muted); margin: 0 0 18px;
  border-top: 2px solid color-mix(in srgb, var(--k) 30%, var(--bone)); padding-top: 14px;
}
.tool-steps::before {
  content: "The steps"; display: block;
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; font-size: 11px; color: var(--k); margin-bottom: 6px;
}
.tool-link { font-family: var(--display); font-weight: 700; text-decoration: none; align-self: flex-start; border-bottom: 3px solid var(--k); padding-bottom: 1px; }
.tool-link:hover { color: var(--k); }
.tool-link[hidden] { display: none; }

/* =====================================================================
   STEPS (was Recipes) — the give-it-away philosophy, staircase motif
   ===================================================================== */
.steps { padding: clamp(64px, 10vw, 116px) 0; background: var(--paper); border-top: var(--stroke) solid var(--ink); border-bottom: var(--stroke) solid var(--ink); }
.steps-wrap { max-width: 900px; margin: 0 auto; padding: 0 var(--gut); display: grid; grid-template-columns: 1fr; gap: 8px; }
.steps-body p { font-size: clamp(16px, 2vw, 19px); color: #322E28; margin: 0 0 18px; }
.steps .btn { margin-top: 10px; }
.steps-stair { display: flex; gap: 0; margin: 6px 0 26px; }
.steps-stair span {
  width: 42px; height: 42px; border: var(--stroke) solid var(--ink);
  display: inline-block; margin-top: 0;
}
.steps-stair span:nth-child(1) { background: var(--red); }
.steps-stair span:nth-child(2) { background: var(--marigold); transform: translateY(14px); }
.steps-stair span:nth-child(3) { background: var(--cobalt); transform: translateY(28px); }

/* =====================================================================
   PRINCIPLES (warm dark)
   ===================================================================== */
.principles { background: var(--ink); color: var(--bone); padding: clamp(64px, 10vw, 110px) 0; }
.principle-grid { display: grid; gap: var(--stroke); grid-template-columns: repeat(2, 1fr); background: var(--ink); margin-top: 28px; }
@media (max-width: 680px) { .principle-grid { grid-template-columns: 1fr; } }
.principle { background: var(--ink); padding: clamp(24px, 3vw, 36px); border: var(--stroke) solid #35302A; }
.principle h3 { font-family: var(--display); font-weight: 800; font-size: 20px; margin: 0 0 10px; color: var(--bone); }
.principle h3::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 10px; vertical-align: baseline; background: var(--marigold); }
.principle:nth-child(1) h3::before { background: var(--red); }
.principle:nth-child(2) h3::before { background: var(--marigold); }
.principle:nth-child(3) h3::before { background: var(--green); }
.principle:nth-child(4) h3::before { background: var(--cobalt); }
.principle:nth-child(5) h3::before { background: var(--red); }
.principle p { color: #CFC8BB; margin: 0; font-size: 16px; }

/* =====================================================================
   SUPPORT (warm dark)
   ===================================================================== */
.support { background: var(--ink); color: var(--bone); padding: clamp(64px, 10vw, 116px) 0; }
.support-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); max-width: 760px; text-align: center; }
.support-title { color: var(--bone); }
.support-lede { color: #E6E1D6; font-size: clamp(17px, 2vw, 20px); max-width: 58ch; margin: 0 auto; }
.support-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; justify-content: center; }
.needs-grid {
  max-width: var(--maxw); margin: clamp(40px, 6vw, 60px) auto 0; padding: 0 var(--gut);
  display: grid; gap: var(--stroke); grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 820px) { .needs-grid { grid-template-columns: 1fr; } }
.need { background: #1C1813; padding: clamp(20px, 2.6vw, 30px); border: var(--stroke) solid #35302A; }
.need h3 { font-family: var(--display); font-weight: 800; font-size: 17px; margin: 0 0 8px; color: var(--bone); }
.need h3::before { content: "\2192  "; color: var(--marigold); }
.need p { color: #CFC8BB; margin: 0; font-size: 15px; line-height: 1.5; }

.btn-solid-light { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn-solid-light:hover { background: var(--marigold); border-color: var(--ink); color: var(--ink); }
.btn-ghost-light { background: transparent; color: var(--bone); border-color: var(--bone); }
.btn-ghost-light:hover { background: var(--bone); color: var(--ink); }

/* =====================================================================
   CTA
   ===================================================================== */
.cta { padding: clamp(64px, 10vw, 116px) 0; }
.cta-wrap { max-width: 640px; text-align: center; margin: 0 auto; }
.cta p { color: var(--muted); font-size: 19px; }
.cta-form { display: flex; gap: 10px; margin: 26px 0 12px; flex-wrap: wrap; justify-content: center; }
.cta-form input {
  flex: 1; min-width: 240px; padding: 13px 16px; font-size: 16px; font-family: var(--serif);
  border: var(--stroke) solid var(--ink); background: var(--paper); color: var(--ink);
}
.cta-form input:focus { outline: 3px solid var(--cobalt); outline-offset: 1px; }
.cta-note { font-size: 14px; color: var(--muted); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-foot { border-top: var(--stroke) solid var(--ink); padding: clamp(40px, 6vw, 64px) var(--gut); display: grid; gap: 20px; justify-items: center; text-align: center; }
.site-foot .tgr-logo { height: 40px; width: auto; }
.foot-tagline { font-family: var(--display); font-weight: 700; margin: 0; font-size: 16px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.foot-links a { font-family: var(--display); font-weight: 600; font-size: 14px; text-decoration: none; }
.foot-links a:hover { color: var(--red); }
.foot-copy { color: var(--muted); font-size: 13px; margin: 0; }

/* =====================================================================
   CMS edit bar (Plater) — kept, recolored
   ===================================================================== */
#cms-bar {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 100;
  display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--bone); padding: 10px 14px; border: 2px solid var(--bone);
  box-shadow: 0 10px 30px rgba(0,0,0,.3); font-size: 13px; font-family: var(--display);
}
#cms-bar[hidden] { display: none; }
#cms-bar .cms-brand { font-family: var(--display); font-weight: 900; letter-spacing: .1em; font-size: 11px; }
#cms-bar button { font: inherit; font-weight: 600; cursor: pointer; border: 1px solid var(--bone); background: transparent; color: var(--bone); padding: 6px 12px; }
#cms-bar button:hover { background: var(--bone); color: var(--ink); }
#cms-bar .cms-impeccable {
  font: inherit; font-weight: 700; cursor: pointer; background: transparent;
  border: 1px solid var(--marigold); color: var(--marigold); padding: 6px 12px; letter-spacing: .02em;
}
#cms-bar .cms-impeccable:hover { background: var(--marigold); color: var(--ink); }
#cms-status { opacity: .8; }
[contenteditable="true"] { outline: 2px dashed var(--cobalt); outline-offset: 3px; cursor: text; }
[contenteditable="true"]:focus { outline-style: solid; }
body.cms-editing { scroll-behavior: auto; }
