/* Field Notes v2 — scoped design system for Lisa Myburgh's surfaces only
   (landing + case study). The mock portals and case demos deliberately keep
   the old shared design-tokens.css / shared.css so they read as foreign
   third-party systems. This file is loaded ONLY by index.html and
   case-study/index.html and never touches the bookmarklet engine. */

:root {
  --paper: #F9FBFC;        /* cool blue-white page background, no beige */
  --ink: #1C2B3A;          /* blue-black pen ink — primary text/borders */
  --ink-soft: rgba(28, 43, 58, 0.64);  /* secondary text */
  --ink-faint: rgba(28, 43, 58, 0.40); /* tertiary/labels */
  --ochre: #0E7C66;        /* viridian — cold lab green accent */
  --ochre-deep: #095A4A;   /* darker viridian — hovers, dates */
  --rule: rgba(28, 43, 58, 0.24);      /* hairline rules */
  --rule-soft: rgba(28, 43, 58, 0.10); /* faint rules, shadows */
  --grid: rgba(43, 76, 126, 0.07);     /* blue quad-paper grid lines */
  --card: #FFFFFF;         /* raised surfaces / cards */
  --blue: #0B6EFF;         /* bright terminal blue — labels, ampersand, stack */

  /* Compatibility aliases so any legacy var(--*) left in page markup resolves
     to a Field Notes value instead of falling back to the old palette. */
  --paper-warm: var(--card);
  --jade: var(--ink);
  --jade-deep: var(--ochre-deep);
  --jasper: var(--ochre);
  --line: var(--rule);
  --line-soft: var(--rule-soft);
  --muted: var(--ink-soft);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  padding-bottom: 80px;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--ink);
  font-family: "Public Sans", -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Newsreader", serif;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
/* One voice — no italic flourish inside headings. */
h1 em, h2 em, h3 em { font-style: normal; color: var(--ochre); }

/* Layout */
.container { max-width: 880px; margin: 0 auto; padding: 56px 28px; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 56px 28px; }

.section { margin-bottom: 48px; }
.section-head { margin-bottom: 24px; }
.section-head h2 { font-size: 32px; line-height: 1.15; margin-top: 8px; }
.section-head p.lede { font-size: 16px; line-height: 1.65; color: var(--ink-soft); margin-top: 12px; max-width: 60ch; }

/* Eyebrow / section-sign label */
.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before { content: "§ "; color: var(--ink-faint); }
/* The old bullet dot is replaced by the section sign; keep the span for
   markup stability but hide it. */
.eyebrow .dot { display: none; }

/* Buttons — mono, boxed, hard offset */
.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 0;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--ochre-deep); border-color: var(--ochre-deep); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: transparent; color: var(--ochre-deep); border-color: var(--ochre-deep); }

/* Links */
a { color: var(--ink); text-decoration-color: var(--ochre); text-underline-offset: 3px; }
a:hover { color: var(--ochre-deep); }

.divider { height: 0; border-top: 1px solid var(--ink); margin: 32px 0; }

.mono { font-family: "IBM Plex Mono", monospace; }

@media (max-width: 640px) {
  .container, .container-wide { padding: 32px 18px; }
  .section-head h2 { font-size: 26px; }
}
