/* =========================================================
   MM&Co. — Design System
   Editorial. Confident. Anti-agency.
   ========================================================= */

/* ---- Design tokens ---- */
:root {
  /* Color */
  --paper:        #F5F0E6;   /* warm cream — body background */
  --paper-2:      #ECE5D5;   /* slightly deeper cream — surface */
  --ink:          #11192A;   /* deep navy near-black — body text */
  --ink-soft:     #3A4357;   /* secondary text */
  --ink-mute:     #6B7185;   /* muted/labels */
  --rule:         #1119261A; /* hairline rule (10% ink) */
  --accent:       #E5A82B;   /* brand mustard — matches existing MM&Co. */
  --accent-2:     #C18810;   /* deeper mustard — hover */
  --highlight:    #F4CE5A;   /* saturated highlight — for text marks */
  --white:        #FFFFFF;

  /* Typography */
  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-logo:    "Manrope", "Inter", -apple-system, sans-serif;
  --font-hand:    "Caveat", "Bradley Hand", "Comic Sans MS", cursive;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Type scale (modular, ~1.25 ratio) */
  --fs-eyebrow:   12px;
  --fs-body:      17px;
  --fs-lead:      20px;
  --fs-h4:        22px;
  --fs-h3:        28px;
  --fs-h2:        40px;
  --fs-h1:        56px;
  --fs-display:   88px;

  --lh-tight:     1.05;
  --lh-snug:      1.25;
  --lh-body:      1.55;

  /* Space scale */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  24px;
  --s-6:  32px;
  --s-7:  48px;
  --s-8:  64px;
  --s-9:  96px;
  --s-10: 128px;

  /* Layout */
  --container:    1180px;
  --container-narrow: 760px;
  --gutter:       max(20px, 4vw);
  --radius:       2px;     /* tiny radius — feels editorial */
  --radius-lg:    6px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

/* ---- Base ---- */
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02", "cv11";
}

/* ---- Type ---- */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.display, .h1, .h2, .h3, .h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: var(--lh-tight);
  color: var(--ink);
}

.display { font-size: clamp(48px, 8vw, var(--fs-display)); line-height: 1.0; letter-spacing: -0.03em; font-weight: 300; }
.h1      { font-size: clamp(40px, 5vw, var(--fs-h1)); }
.h2      { font-size: clamp(30px, 3.6vw, var(--fs-h2)); line-height: var(--lh-snug); }
.h3      { font-size: var(--fs-h3); line-height: var(--lh-snug); }
.h4      { font-size: var(--fs-h4); line-height: var(--lh-snug); font-weight: 500; }

.lead    { font-size: var(--fs-lead); line-height: 1.45; color: var(--ink-soft); max-width: 60ch; }

.italic  { font-style: italic; }

p + p { margin-top: var(--s-4); }

/* Highlight on display text */
.hl {
  background: linear-gradient(180deg, transparent 60%, var(--highlight) 60%);
  padding: 0 0.05em;
}

/* ---- Layout primitives ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-top: var(--s-9);
  padding-bottom: var(--s-9);
}
.section--tight  { padding-top: var(--s-7); padding-bottom: var(--s-7); }
.section--big    { padding-top: var(--s-10); padding-bottom: var(--s-10); }

.section--ink    { background: var(--ink); color: var(--paper); }
.section--ink .eyebrow { color: var(--paper-2); opacity: 0.7; }
.section--ink .lead    { color: var(--paper-2); opacity: 0.85; }
.section--ink .display, .section--ink .h1, .section--ink .h2, .section--ink .h3, .section--ink .h4 { color: var(--paper); }

.section--paper2 { background: var(--paper-2); }

.grid       { display: grid; gap: var(--s-6); }
.grid-2     { grid-template-columns: 1fr; }
.grid-3     { grid-template-columns: 1fr; }
.grid-12-7  { grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .grid-2    { grid-template-columns: repeat(2, 1fr); }
  .grid-3    { grid-template-columns: repeat(3, 1fr); }
  .grid-12-7 { grid-template-columns: 5fr 7fr; gap: var(--s-8); align-items: center; }
}

.stack-1 > * + * { margin-top: var(--s-3); }
.stack-2 > * + * { margin-top: var(--s-5); }
.stack-3 > * + * { margin-top: var(--s-6); }
.stack-4 > * + * { margin-top: var(--s-7); }

.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--s-4);
  padding-bottom: var(--s-4);
}
/* ---- Logo (stacked wordmark + &Co badge) ---- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  line-height: 1;
}
.logo__wordmark {
  display: flex;
  flex-direction: column;
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: 17px;
  line-height: 0.96;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo__wordmark span { display: block; }
.logo__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
/* Footer variant — wordmark in cream on dark bg */
.site-footer .logo__wordmark { color: var(--paper); }
/* Slightly larger logo in footer */
.site-footer .logo {
  gap: 12px;
}
.site-footer .logo__wordmark { font-size: 19px; }
.site-footer .logo__badge { width: 44px; height: 44px; font-size: 13px; }

/* Legacy .brand class kept as alias for the new logo wrapper */
.brand { display: inline-flex; }

.nav { display: none; gap: var(--s-6); align-items: center; }
@media (min-width: 760px) { .nav { display: flex; } }
.nav a {
  font-size: 15px;
  color: var(--ink-soft);
  position: relative;
  padding: var(--s-2) 0;
  transition: color 120ms ease;
}
.nav a:hover { color: var(--ink); }
.nav a.is-current { color: var(--ink); }
.nav a.is-current::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--accent);
}

.nav-toggle {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: 14px; color: var(--ink);
}
@media (min-width: 760px) { .nav-toggle { display: none; } }
.nav-toggle__bars {
  width: 22px; height: 14px;
  background: linear-gradient(var(--ink), var(--ink)) top/100% 2px no-repeat,
              linear-gradient(var(--ink), var(--ink)) center/100% 2px no-repeat,
              linear-gradient(var(--ink), var(--ink)) bottom/100% 2px no-repeat;
}

.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--rule);
  padding: var(--s-4) var(--gutter) var(--s-6);
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  padding: var(--s-3) 0;
  font-family: var(--font-display);
  font-size: 24px;
  border-bottom: 1px solid var(--rule);
}
.mobile-nav a:last-child { border-bottom: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  transition: all 160ms ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary:hover {
  background: var(--accent);
  color: var(--ink);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn--accent {
  background: var(--accent);
  color: var(--ink);
}
.btn--accent:hover { background: var(--accent-2); color: var(--paper); }

.btn--lg { padding: 18px 28px; font-size: 16px; }

/* Header CTA — mustard pill (matches MM&Co. brand) */
.site-header .btn--primary {
  background: var(--accent);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
}
.site-header .btn--primary:hover {
  background: var(--accent-2);
  color: var(--paper);
}

/* Logo tile — for portfolio + trusted-by grid */
.logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
  position: relative;
  overflow: hidden;
}
.logo-tile:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  background: var(--paper-2);
}
.logo-tile img {
  max-height: 56px;
  max-width: 80%;
  width: auto;
  object-fit: contain;
}
.logo-tile__name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-align: center;
  line-height: 1.1;
}
.logo-tile__tag {
  position: absolute;
  bottom: var(--s-3);
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
}

/* Logo grid for portfolio + trusted-by */
.logo-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 600px) { .logo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .logo-grid { grid-template-columns: repeat(4, 1fr); } }

/* Case study card — used on portfolio listing */
.case-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  text-decoration: none;
  transition: all 160ms ease;
}
.case-card:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
}
.case-card__logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 70px;
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--rule);
}
.case-card__logo img { max-height: 56px; max-width: 70%; width: auto; }
.case-card__logo .logo-tile__name {
  text-align: left;
  font-size: 30px;
}
.case-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: var(--s-3);
}
.case-card__brief {
  color: var(--ink-soft);
  font-size: 15px;
  flex: 1;
  margin-bottom: var(--s-5);
}
.case-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}
.case-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  align-self: flex-start;
}
.case-card__cta::after { content: "→"; }

.case-grid {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .case-grid { grid-template-columns: repeat(3, 1fr); } }

.btn-row {
  display: flex; flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-5);
}

/* link with arrow — used inline in narrative */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: gap 120ms ease;
}
.arrow-link:hover { gap: 12px; color: var(--accent-2); }
.arrow-link::after { content: "→"; }

/* ---- Hero pattern (used on most pages) ---- */
.hero {
  padding-top: var(--s-9);
  padding-bottom: var(--s-9);
}
.hero__eyebrow { margin-bottom: var(--s-4); }
.hero__title { margin-bottom: var(--s-5); }
.hero__lead { margin-bottom: var(--s-6); }

/* ---- Cards ---- */
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
}
.card--ink {
  background: var(--ink);
  color: var(--paper);
  border-color: transparent;
}
.card--ink .h3 { color: var(--paper); }
.card__eyebrow { margin-bottom: var(--s-3); }
.card__title { margin-bottom: var(--s-3); }
.card__body { color: var(--ink-soft); flex: 1; }
.card--ink .card__body { color: var(--paper-2); opacity: 0.85; }
.card__footer { margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--rule); }
.card--ink .card__footer { border-top-color: rgba(245,240,230,0.15); }

/* ---- Pricing block (Frog Time) ---- */
.pricing {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .pricing { grid-template-columns: repeat(3, 1fr); }
}
.pricing__tier {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
}
.pricing__tier--featured {
  background: var(--ink);
  color: var(--paper);
  border-color: transparent;
  position: relative;
}
.pricing__tier--featured .pricing__name,
.pricing__tier--featured .pricing__price,
.pricing__tier--featured .pricing__hours { color: var(--paper); }
.pricing__tier--featured .pricing__price-unit { color: var(--paper-2); opacity: 0.7; }
.pricing__tier--featured .pricing__list { color: var(--paper-2); opacity: 0.9; }

.pricing__badge {
  position: absolute; top: -12px; left: var(--s-6);
  background: var(--accent);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 600;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius);
}
.pricing__name { font-family: var(--font-display); font-size: 22px; margin-bottom: var(--s-2); }
.pricing__hours { font-size: 14px; color: var(--ink-mute); margin-bottom: var(--s-5); }
.pricing__price { font-family: var(--font-display); font-size: 56px; line-height: 1; margin-bottom: var(--s-2); }
.pricing__price-unit { font-size: 13px; color: var(--ink-mute); margin-bottom: var(--s-5); }
.pricing__list {
  font-size: 15px;
  color: var(--ink-soft);
  flex: 1;
  margin-bottom: var(--s-5);
}
.pricing__list li {
  padding: var(--s-2) 0;
  border-top: 1px solid var(--rule);
  position: relative;
  padding-left: 22px;
}
.pricing__list li::before {
  content: "→";
  position: absolute; left: 0; top: var(--s-2);
  color: var(--accent);
  font-weight: 600;
}
.pricing__tier--featured .pricing__list li {
  border-top-color: rgba(245,240,230,0.15);
}

/* ---- Quote block ---- */
.quote {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 22ch;
}
.quote::before { content: "“"; color: var(--accent); margin-right: 4px; }
.quote::after  { content: "”"; color: var(--accent); margin-left: 4px; }
.quote-attr {
  margin-top: var(--s-4);
  font-size: 14px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---- Logo strip / list ---- */
.client-list {
  display: flex; flex-wrap: wrap; gap: var(--s-7);
  align-items: center;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink-mute);
}

/* ---- FAQ accordion ---- */
.faq details {
  border-top: 1px solid var(--rule);
  padding: var(--s-5) 0;
}
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 28px; color: var(--accent); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details > p {
  margin-top: var(--s-4);
  color: var(--ink-soft);
}

/* ---- Step list (used on landing pages) ---- */
.steps { counter-reset: step; }
.steps__item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--rule);
}
.steps__item:last-child { border-bottom: 1px solid var(--rule); }
.steps__item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.05em;
}

/* ---- Stats row ---- */
.stats { display: grid; grid-template-columns: 1fr; gap: var(--s-6); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat__num {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat__label {
  margin-top: var(--s-3);
  font-size: 14px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-8) 0 var(--s-5);
  margin-top: var(--s-9);
}
.site-footer .brand { color: var(--paper); }
.footer-grid {
  display: grid; gap: var(--s-7);
  grid-template-columns: 1fr;
  padding-bottom: var(--s-7);
  border-bottom: 1px solid rgba(245,240,230,0.15);
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,240,230,0.5);
  font-weight: 600;
  margin-bottom: var(--s-4);
}
.footer-col ul li { margin-bottom: var(--s-2); }
.footer-col a { color: var(--paper-2); opacity: 0.85; }
.footer-col a:hover { color: var(--accent); opacity: 1; }
.footer-baseline {
  display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: space-between;
  padding-top: var(--s-5);
  font-size: 13px;
  color: rgba(245,240,230,0.55);
}
.footer-legal {
  margin-top: var(--s-3);
  font-size: 12px;
  line-height: 1.55;
  color: rgba(245,240,230,0.45);
}
.footer-legal a {
  color: rgba(245,240,230,0.7);
  border-bottom: 1px solid rgba(245,240,230,0.25);
}
.footer-legal a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---- CTA banner (used at end of pages) ---- */
.cta-banner {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: var(--s-8);
  text-align: center;
}
.cta-banner .display { color: var(--paper); margin-bottom: var(--s-5); }
.cta-banner p { color: var(--paper-2); opacity: 0.85; max-width: 50ch; margin: 0 auto var(--s-6); }
.cta-banner .btn-row { justify-content: center; }

/* ---- Tag row ---- */
.tags { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tag {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--paper-2);
  color: var(--ink-soft);
  padding: 6px 10px;
  border-radius: var(--radius);
}

/* ---- Forms (contact page) ---- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s-4); }
.field label { font-size: 13px; color: var(--ink-mute); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.field input, .field textarea {
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 16px;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }

/* ---- Utilities ---- */
.center { text-align: center; }
.muted  { color: var(--ink-mute); }
.no-wrap { white-space: nowrap; }
.mt-7 { margin-top: var(--s-7); }
.mt-5 { margin-top: var(--s-5); }
.mb-5 { margin-bottom: var(--s-5); }

/* ---- Decorative numbered list (Inside an article) ---- */
.numbered { counter-reset: n; }
.numbered li {
  counter-increment: n;
  padding: var(--s-3) 0;
  padding-left: var(--s-7);
  position: relative;
  border-top: 1px solid var(--rule);
}
.numbered li:last-child { border-bottom: 1px solid var(--rule); }
.numbered li::before {
  content: counter(n, decimal-leading-zero);
  position: absolute; left: 0; top: var(--s-3);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.05em;
}

/* ---- Hide on small screens ---- */
@media (max-width: 759px) {
  .hide-sm { display: none; }
}
@media (min-width: 760px) {
  .show-sm { display: none; }
}

/* =========================================================
   v4 — Personality
   Marginalia, scorecard motif, magazine furniture,
   Tahlia portrait, frog mark, voice details
   ========================================================= */

/* ---- Marginalia (handwritten yellow notes) ---- */
.marginalia {
  font-family: var(--font-hand);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.1;
  color: var(--accent-2);
  letter-spacing: 0;
  display: inline-block;
  transform: rotate(-3deg);
}
.marginalia--big { font-size: 32px; }
.marginalia--right {
  display: block;
  text-align: right;
  margin-top: var(--s-3);
}
.marginalia-note {
  display: inline-flex;
  align-items: flex-end;
  gap: 6px;
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--accent-2);
  margin-top: var(--s-3);
  transform: rotate(-1.5deg);
}
.marginalia-note::before { content: "↑"; font-size: 22px; line-height: 1; }
.marginalia-block {
  font-family: var(--font-hand);
  font-size: 26px;
  line-height: 1.2;
  color: var(--accent-2);
  padding: var(--s-3) 0;
  border-top: 1px dashed var(--accent);
  border-bottom: 1px dashed var(--accent);
  margin: var(--s-5) 0;
  transform: rotate(-0.5deg);
}

/* ---- Strikethrough alternatives in copy ---- */
.strike-alt s {
  color: var(--ink-mute);
  text-decoration: line-through;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  margin-right: 4px;
}

/* ---- Scorecard mini widget ---- */
.scorecard-mini {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  max-width: 520px;
  position: relative;
}
.scorecard-mini__label {
  position: absolute;
  top: -10px;
  left: var(--s-5);
  background: var(--paper);
  padding: 0 var(--s-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.scorecard-mini__title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: var(--s-4);
  color: var(--ink);
}
.scorecard-mini__row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-3) 0;
  border-top: 1px solid var(--rule);
}
.scorecard-mini__row:last-of-type { border-bottom: 1px solid var(--rule); }
.scorecard-mini__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
}
.scorecard-mini__dot--green  { background: #56A968; }
.scorecard-mini__dot--amber  { background: #E5A82B; }
.scorecard-mini__dot--red    { background: #C44A4A; }
.scorecard-mini__metric {
  font-size: 15px;
  color: var(--ink);
}
.scorecard-mini__verdict {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.scorecard-mini__cta {
  margin-top: var(--s-4);
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--accent-2);
  display: inline-block;
  transform: rotate(-1deg);
}

/* ---- Stamps (status pill stamps used decoratively) ---- */
.stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  transform: rotate(-2deg);
}
.stamp--green { color: #2F7A40; }
.stamp--amber { color: #95680C; }
.stamp--ink   { color: var(--ink); }

/* ---- Pull quote (magazine furniture) ---- */
.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 24ch;
  position: relative;
  padding-left: var(--s-5);
  border-left: 3px solid var(--accent);
}
.pull-quote::before {
  content: "“";
  font-size: 60px;
  color: var(--accent);
  line-height: 0.8;
  position: absolute;
  top: -8px;
  left: -16px;
  font-style: normal;
}
.pull-quote-attr {
  display: block;
  margin-top: var(--s-4);
  font-family: var(--font-body);
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---- Filed under / magazine tags ---- */
.filed-under {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.filed-under::before {
  content: "¶";
  color: var(--accent);
  font-size: 14px;
}

/* ---- Issue line (footer signature) ---- */
.issue-line {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,240,230,0.55);
}

/* ---- Tahlia portrait (About page) ---- */
.portrait {
  position: relative;
}
.portrait img {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
}
.portrait__placeholder {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--paper-2), var(--paper));
  border: 1px dashed var(--rule);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--s-6);
}
.portrait__placeholder p {
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--ink-mute);
  max-width: 18ch;
}
.portrait__caption {
  margin-top: var(--s-3);
  font-size: 13px;
  color: var(--ink-mute);
  font-style: italic;
}

/* From Tahlia note — handwritten signature block */
.from-tahlia {
  background: var(--paper);
  border-left: 3px solid var(--accent);
  padding: var(--s-5) var(--s-6);
  margin: var(--s-7) 0;
  position: relative;
}
.from-tahlia__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--s-3);
}
.from-tahlia__body {
  font-family: var(--font-hand);
  font-size: 26px;
  line-height: 1.3;
  color: var(--ink);
  max-width: 38ch;
}
.from-tahlia__sig {
  margin-top: var(--s-3);
  font-family: var(--font-hand);
  font-size: 32px;
  color: var(--accent-2);
  transform: rotate(-3deg) translateX(0);
  display: inline-block;
}

/* ---- Frog mark (single-line ink) ---- */
.frog-mark {
  display: inline-block;
  width: 36px;
  height: 28px;
  vertical-align: middle;
  overflow: visible;
}
.frog-mark--lg { width: 64px; height: 48px; }
.frog-mark path,
.frog-mark circle {
  stroke: var(--ink);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.frog-mark circle[fill="currentColor"] { fill: currentColor; stroke-width: 0; }
.frog-mark--accent path { stroke: var(--accent); }
.frog-mark--paper path { stroke: var(--paper); }

/* Frog stamp badge */
.frog-stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--accent);
  color: var(--ink);
  border-radius: 999px;
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.frog-stamp .frog-mark { width: 24px; height: 18px; }
.frog-stamp .frog-mark path,
.frog-stamp .frog-mark circle { stroke: var(--ink); stroke-width: 2.5; }

/* Voice tweaks — fourth-wall aside */
.aside-fw {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--ink-mute);
  font-size: 15px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: var(--s-3) 0;
  margin: var(--s-5) 0;
  max-width: 50ch;
}
.aside-fw::before { content: "( "; color: var(--accent); }
.aside-fw::after  { content: " )"; color: var(--accent); }

/* ---- Trusted-by header (homepage) ---- */
.trusted-by-head {
  display: grid;
  gap: var(--s-3);
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--s-7);
}
.trusted-by-head .quote { margin-top: var(--s-3); }
.trusted-by-head .quote-attr { text-align: center; }

/* ---- Logo marquee (homepage Trusted By) ---- */
.logo-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: var(--s-5) 0;
  margin-top: var(--s-5);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.logo-marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(48px, 8vw, 96px);
  width: max-content;
  animation: logo-marquee-scroll 40s linear infinite;
}
.logo-marquee:hover .logo-marquee__track { animation-play-state: paused; }
.logo-marquee__item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(80px, 10vw, 120px);
  text-decoration: none;
  filter: grayscale(100%) opacity(0.75);
  transition: filter 200ms ease;
}
.logo-marquee__item:hover { filter: grayscale(0%) opacity(1); }
.logo-marquee__item img {
  height: 100%;
  width: auto;
  max-width: clamp(180px, 22vw, 260px);
  object-fit: contain;
  display: block;
}
@keyframes logo-marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee__track { animation: none; }
  .logo-marquee { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
}

/* ---- Credentials strip (Partners section) ---- */
.credentials-strip {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  margin: 0 auto;
  max-width: 880px;
}
@media (min-width: 760px) { .credentials-strip { grid-template-columns: repeat(4, 1fr); gap: var(--s-7); } }

.credentials-strip__item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  padding: 0 var(--s-3);
  filter: grayscale(100%);
  opacity: 0.85;
  transition: filter 200ms ease, opacity 200ms ease;
}
.credentials-strip__item:hover { filter: grayscale(0%); opacity: 1; }
.credentials-strip__item img {
  max-height: 56px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}
.credentials-strip__fallback {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-align: center;
  line-height: 1.2;
}
.credentials-strip__fallback small {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
}

/* ---- Cookie consent banner ---- */
#mmco-consent {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 9999;
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  font-family: var(--font-body);
  animation: mmco-consent-rise 280ms ease-out both;
}
#mmco-consent.is-hidden { display: none; }
.mmco-consent__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.mmco-consent__copy { flex: 1 1 360px; min-width: 0; }
.mmco-consent__eyebrow {
  font-family: var(--font-mono, var(--font-body));
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 4px;
}
.mmco-consent__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(245,240,230,0.86);
}
.mmco-consent__body a {
  color: var(--paper);
  border-bottom: 1px solid rgba(245,240,230,0.4);
  text-decoration: none;
}
.mmco-consent__body a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.mmco-consent__actions { display: flex; gap: 10px; flex: 0 0 auto; }
.mmco-consent__btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.mmco-consent__btn--primary {
  background: var(--accent);
  color: var(--ink);
}
.mmco-consent__btn--primary:hover { background: #f0b73a; }
.mmco-consent__btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(245,240,230,0.35);
}
.mmco-consent__btn--ghost:hover { border-color: var(--paper); }
@keyframes mmco-consent-rise {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@media (max-width: 640px) {
  .mmco-consent__inner { padding: 16px; gap: 14px; }
  .mmco-consent__actions { width: 100%; }
  .mmco-consent__btn { flex: 1 1 auto; }
}

/* footer cookie settings link */
.cookie-settings-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: rgba(245,240,230,0.7);
  border-bottom: 1px solid rgba(245,240,230,0.25);
  cursor: pointer;
}
.cookie-settings-link:hover { color: var(--accent); border-bottom-color: var(--accent); }
