/* =============================================================================
   Marielle Camba / Manna GTM brand kit — drop-in stylesheet
   The same tokens, fonts and base pieces as manna-gtm.com (2026-11-11).
   See BRAND.md beside this file for the rules behind each value.

   Font paths assume this file sits in a css/ folder next to a fonts/ folder
   (static/css + static/fonts on a Flask site). Copy the 10 .woff2 files and the
   two OFL licences listed in BRAND.md into that fonts/ folder.
   ============================================================================= */

/* ---------- Fonts: self-hosted, split by character range ---------- */
/* Newsreader: headings and big figures. Variable weight 200-800 and optical size. */
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/Newsreader-latin.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/Newsreader-latin-ext.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/Newsreader-Italic-latin.woff2") format("woff2");
  font-weight: 200 800; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/Newsreader-Italic-latin-ext.woff2") format("woff2");
  font-weight: 200 800; font-style: italic; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* IBM Plex Sans: body text. Variable weight 300-700. */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-latin.woff2") format("woff2");
  font-weight: 300 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-latin-ext.woff2") format("woff2");
  font-weight: 300 700; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* IBM Plex Mono: labels, eyebrows, small capitals. Two static cuts. */
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-400-latin.woff2") format("woff2");
  font-weight: 400; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-400-latin-ext.woff2") format("woff2");
  font-weight: 400; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-500-latin.woff2") format("woff2");
  font-weight: 500 700; font-display: swap; /* bold labels use the medium cut, not a faked bold */
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-500-latin-ext.woff2") format("woff2");
  font-weight: 500 700; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  /* Ground and surfaces: cream paper, cards one shade darker */
  --bg: #efe7da;               /* cream: the page */
  --bg-alt: #ded5c6;           /* sunken bands, chips and tags */
  --surface: #e6ded2;          /* cards: 4% ink over the cream */
  --surface-hover: #e0d7ca;
  --grid: rgb(22 17 16 / 0.06); /* graph-paper lines, every 48px */

  /* Ink and lines */
  --text: #161110;             /* warm black: headings and body */
  --text-muted: #605650;       /* secondary text: 5.8:1 on --bg, 4.9:1 on --bg-alt */
  --line: #cfc6b8;             /* hairlines and card edges */
  --line-strong: #7a6e5b;      /* outlined buttons: 3.4:1 or more on every light ground */

  /* The one accent: crimson */
  --accent: #b8122e;           /* crimson: big figures, the mark, rings, filled buttons (5.4:1 on --bg) */
  --accent-strong: #8f0e24;    /* deep crimson: small accent text and hover (7.6:1 on --bg) */
  --accent-soft: #ecd3cc;      /* tinted panels: 10% crimson over the cream */
  --accent-ink: #ffffff;       /* text on crimson: 6.6:1 */

  /* Buttons and focus */
  --btn: var(--accent);
  --btn-hover: var(--accent-strong); /* white text 9.3:1 */
  --btn-ink: #ffffff;
  --focus-ring: var(--accent-strong);

  /* Ink blocks, for small dark marks only (a selected tab, a score readout) */
  --ink: #161110;
  --ink-raised: #221c1a;
  --ink-line: #3a3330;
  --ink-muted: #c9bfb2;        /* secondary text on ink: 10.3:1 */
  --cream: #efe7da;            /* text on ink */
  --accent-on-ink: #ff4d6d;    /* crimson on ink: 5.8:1; put ink text on it, never white (3.2:1) */

  /* Type */
  --font-heading: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Shape and motion */
  --radius: 14px;              /* panels and big cards */
  --radius-sm: 8px;            /* buttons, chips, smaller cards */
  --shadow-card: 0 0 0 1px var(--line); /* a hairline, never a floating shadow */
  --container: 1080px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
}
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 7vw, 5.25rem); line-height: 1; font-weight: 300; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 350; }
h3 { font-size: 1.3rem; font-weight: 500; letter-spacing: -0.01em; }
/* The accent phrase in a heading: <h1>Your GTM work, <em>handled.</em></h1> */
:is(h1, h2, h3) em { font-style: italic; color: var(--accent); }
a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }

/* ---------- Pieces ---------- */
/* Section label above an h2: small mono capitals, wide tracking */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow + h2 { margin-top: 0.9rem; }
/* Smaller mono label: card captions, stat units, tags */
.mono {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
/* Big figures (prices, stats) are set in the serif, light, with lining numbers */
.figure {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(3rem, 5.5vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  border: 0;
  border-radius: var(--radius-sm);
  font: 500 1rem/1.2 var(--font-body);
  text-decoration: none;
  background: var(--btn);
  color: var(--btn-ink);
  cursor: pointer;
  transition: background 150ms var(--ease-out), box-shadow 150ms var(--ease-out), transform 150ms var(--ease-out);
}
.btn:hover { background: var(--btn-hover); }
.btn:active { transform: translateY(1px); }
.btn-outline {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn-outline:hover { background: transparent; box-shadow: inset 0 0 0 1px currentColor; }
/* The pricing-style call to action: mono capitals, wide tracking */
.btn-caps {
  font-family: var(--font-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.card {
  padding: 1.75rem 1.6rem;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
/* The one card that matters most in a row: a 2px crimson ring, never a dark ground */
.card--featured { box-shadow: inset 0 0 0 2px var(--accent), var(--shadow-card); }
/* A result or takeaway set apart inside a card */
.panel-tint {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}
.panel-tint .mono { color: var(--accent-strong); }
/* Sunken full-width band, to break the rhythm between sections */
.band-sunken { background: var(--bg-alt); }
.chip {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--bg-alt);
}
/* Small ink mark: a selected tab, a score readout */
.ink {
  background: var(--ink);
  color: var(--cream);
}
