/* ===========================================================================
   Foster Security stylesheet (fostersecurity.org). Matt Burns's own brand, chosen 2026-11-19:
   near-white paper, black ink, one green. Headings in Big Shoulders, text in
   Atkinson Hyperlegible Next, both self-hosted under the SIL Open Font License.

   Color rules:
   - green is for fills, highlights and large shapes, and always carries ink text
   - green-deep is the same hue, darker, used only for link text and small numerals
   - no other hues
   =========================================================================== */

@font-face {
  font-family: "Big Shoulders";
  src: url("../fonts/BigShoulders-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/AtkinsonHyperlegibleNext-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/AtkinsonHyperlegibleNext-Italic-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

/* brand-tokens:start */
/* Generated from engagement-kit/brand/tokens.json by brand/build.py. Do not edit by hand. */
:root {
  --bg: #FCFBF8;
  --panel: #F3F0E8;
  --paper: #FFFFFF;
  --ink: #14150F;
  --muted: #55574E;
  --green: #5FB12F;
  --green-deep: #36631D;
  --rule: #D9D6CC;
  --font-body: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Big Shoulders", "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --head-weight: 900;
  --head-case: uppercase;
}
/* brand-tokens:end */

:root {
  /* Scale: body 1.125rem / 1.6, content measure 72ch, section spacing 3rem. */
  --body-size: 1.125rem;
  --body-lh: 1.6;
  --measure: 72ch;
  --section: 3rem;
  --line: 3px solid var(--ink);
}

/* ---- Base --------------------------------------------------------------- */
html { background: var(--bg); }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--body-size);
  line-height: var(--body-lh);
  color: var(--ink);
  background: var(--bg);
}

.wrapper { max-width: calc(var(--measure) + 60px); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  text-transform: var(--head-case);
  letter-spacing: 0.005em;
  color: var(--ink);
  margin-top: var(--section);
  margin-bottom: 0.6rem;
}

h1 { font-size: clamp(3rem, 9vw, 4.75rem); line-height: 0.94; margin-top: 0; }
h2 { font-size: clamp(2.1rem, 5.5vw, 2.9rem); line-height: 0.98; }
h3 { font-size: 1.8rem; line-height: 1.02; }
h4 { font-size: 1.45rem; line-height: 1.05; }
h5, h6 { font-size: 1.2rem; line-height: 1.1; }

/* A short green bar under the page title. */
h1::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 0.6rem;
  background: var(--green);
  margin-top: 0.9rem;
}

/* One per page, directly after the h1. */
.subhead {
  color: var(--muted);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.4;
  margin: 0 0 1.75rem;
}

p, ul, ol, blockquote, pre { margin-bottom: 1.1rem; }
strong { font-weight: 700; color: var(--ink); }

a, a:visited {
  color: var(--green-deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--green); }

/* In headings, links take the heading's own color and keep a green underline. */
:is(h1, h2, h3, h4, h5, h6) a,
:is(h1, h2, h3, h4, h5, h6) a:visited {
  color: var(--ink);
  font-weight: inherit;
  text-decoration-color: var(--green);
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.12em;
}

hr { border: 0; border-top: var(--line); margin: var(--section) 0; }

code, pre {
  background: var(--panel);
  border: 1px solid var(--rule);
  color: var(--ink);
}

blockquote {
  color: var(--ink);
  font-size: inherit;
  letter-spacing: 0;
  font-style: normal;
  border-left: 8px solid var(--green);
  padding-left: 1rem;
}

/* ---- Header ------------------------------------------------------------- */
.site-header {
  background: var(--bg);
  border: 0;
  border-bottom: var(--line);
  min-height: 0;
}

.site-header .wrapper { padding-top: 0.5rem; padding-bottom: 0.5rem; }

.site-title,
.site-title:visited {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  text-transform: var(--head-case);
  font-size: 1.9rem;
  letter-spacing: 0.005em;
  color: var(--ink);
  text-decoration: none;
}

.site-title:hover { color: var(--ink); text-decoration: none; }

/* The first word of the wordmark sits on a green block. */
.site-title .wm {
  background: var(--green);
  padding: 0.02em 0.22em;
  margin-left: -0.22em;
  border-radius: 4px;
}

.site-nav .page-link,
.site-nav .page-link:visited {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0;
}

.site-nav .page-link:hover {
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 3px 0 var(--green);
}

.site-nav { background: transparent; border: 0; }
.site-nav .menu-icon > svg { fill: var(--ink); }

@media screen and (max-width: 600px) {
  .site-nav {
    background: var(--bg);
    border: var(--line);
    border-radius: 10px;
  }
  .site-nav .page-link { color: var(--ink); }
}

/* ---- Content ------------------------------------------------------------ */
.page-content { padding: 2.5rem 0 var(--section); }
.post-title { font-size: clamp(3rem, 9vw, 4.75rem); letter-spacing: 0.005em; line-height: 0.94; color: var(--ink); }
.post-header { margin-bottom: 1rem; }
.post-content h2 { font-size: clamp(2.1rem, 5.5vw, 2.9rem); }
.post-content h3 { font-size: 1.8rem; }
.post-content h4 { font-size: 1.45rem; }

.section-alt {
  background: var(--panel);
  padding: 1.5rem;
  margin: var(--section) 0;
  border-radius: 14px;
}

.card {
  background: var(--paper);
  border: var(--line);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  margin: 0 0 1.25rem;
}

.callout {
  background: var(--panel);
  border-left: 8px solid var(--green);
  border-radius: 0 12px 12px 0;
  padding: 1.1rem 1.4rem;
  margin: 0 0 1.25rem;
}

.card > :first-child,
.callout > :first-child { margin-top: 0; }
.card > :last-child,
.callout > :last-child { margin-bottom: 0; }

.card h2,
.card h3,
.card-title {
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1.02;
  margin-top: 0;
}

.card p { font-size: 1.02rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.1rem;
  margin: 1.5rem 0 var(--section);
}

.card-grid .card { margin: 0; }

.resource-grid { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
.resource-card h3 { font-size: 1.45rem; margin-top: 0; }
.resource-meta { font-size: 1rem; color: var(--muted); }

.button,
.button:visited {
  display: inline-block;
  background: var(--green);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border: var(--line);
  border-radius: 10px;
}

.button:hover {
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}

/* ---- Tables ------------------------------------------------------------- */
table {
  width: 100%;
  margin: 1rem 0 var(--section);
  border-collapse: collapse;
  border: 0;
  border-bottom: var(--line);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
}

th, td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border: 0;
  border-bottom: 1px solid var(--rule);
}

thead th {
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  border-bottom: 0;
}

thead th a, thead th a:visited { color: var(--bg); }

tbody tr:nth-child(even) { background: var(--panel); }
tbody tr:nth-child(odd) { background: transparent; }
tbody tr:last-child td { border-bottom: 0; }

/* ---- Profile photo block (About) ---------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 1rem 2rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.hero .avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: var(--line);
  box-shadow: 8px 8px 0 var(--green);
}

@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; }
  .hero .avatar { width: 140px; height: 140px; }
}

/* ---- Certifications grid ------------------------------------------------ */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.badge-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 12px;
}

.badge-img { width: 72px; height: 72px; object-fit: contain; display: block; }
.badge-name {
  margin: 0 0 0.25rem;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--ink);
}
.badge-issuer { font-size: 0.95rem; }
.badge-dates { font-size: 0.9rem; color: var(--muted); }

.pill {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
}

.pill.danger { color: var(--bg); background: var(--ink); border-color: var(--ink); }

.skills-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem 0.6rem; margin-top: 1rem; }
.skills-cloud .skill {
  font-size: 0.9rem;
  line-height: 1;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--panel);
}

/* ---- Footer: the email link and the GitHub link, nothing else ----------- */
.site-footer {
  border-top: var(--line);
  padding: 1.5rem 0 2rem;
  font-size: 1rem;
}

.site-footer p { margin: 0; }

/* ---- Choose: decision trees and the worksheet --------------------------- */
pre.mermaid {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 1rem;
  overflow-x: auto;
  text-align: center;
}

pre.mermaid svg { max-width: 100%; height: auto; }
/* Hide the diagram's source text until it has been drawn. */
pre.mermaid:not([data-processed]) { color: transparent; max-height: 12rem; overflow: hidden; }
pre.mermaid .nodeLabel, pre.mermaid .edgeLabel { font-family: var(--font-body); line-height: 1.35; }

.decision-question h3,
.decision-leaf h3 { color: var(--ink); font-size: 1.45rem; margin-top: 0; }

.checklist { list-style: none; padding-left: 0; margin-left: 0; }

.checklist li {
  position: relative;
  padding: 0.6rem 0 0.6rem 2.4rem;
  border-bottom: 1px solid var(--rule);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 1.25rem;
  height: 1.25rem;
  border: var(--line);
  border-radius: 5px;
  background: var(--paper);
}

/* ---- Home and How I can help: lead, paw print, green band, steps --------- */
.lead {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 250px);
  gap: 2rem 2.5rem;
  align-items: center;
  margin: 1rem 0 var(--section);
}

.lead h1 { font-size: clamp(3.2rem, 9.5vw, 5.4rem); line-height: 0.92; margin: 0 0 1.2rem; }
.lead h1::after { display: none; }
.lede { font-size: 1.3rem; line-height: 1.5; max-width: 34em; }

.hl { background: linear-gradient(transparent 56%, var(--green) 56%, var(--green) 92%, transparent 92%); padding: 0 0.06em; }

.tag {
  display: inline-block;
  background: var(--green);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 5px 14px;
  border-radius: 999px;
  transform: rotate(-2deg);
  margin-bottom: 1.3rem;
}

.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5rem 0; }
.button.quiet, .button.quiet:visited { background: transparent; }
.button.quiet:hover { background: var(--ink); color: var(--bg); }

/* The paw print: green, no card, no words, straight on the page background. */
.paw-mark { transform: rotate(8deg); }
.paw-mark .paw { width: 100%; max-width: 240px; height: auto; fill: var(--green); display: block; margin: 0 auto; }

/* A full-width green band inside the centered column: the color is painted past both edges. */
.band {
  background: var(--green);
  color: var(--ink);
  box-shadow: 0 0 0 100vmax var(--green);
  clip-path: inset(0 -100vmax);
  padding: 2.8rem 0 2.6rem;
  margin: var(--section) 0;
}

.band h2 { margin-top: 0; }
.band a, .band a:visited { color: var(--ink); text-decoration-color: var(--ink); }
.band .band-link { margin: 1.4rem 0 0; font-weight: 600; }

.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); gap: 1.1rem; margin-top: 1.4rem; }

.offer { background: var(--bg); border: var(--line); border-radius: 14px; padding: 1.2rem 1.3rem 1.1rem; }
.offer > :last-child { margin-bottom: 0; }
.offer h3 { margin: 0 0 0.5rem; font-size: 1.6rem; }
.offer p { font-size: 1rem; }
.offer .num {
  display: block;
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  font-size: 3.2rem;
  line-height: 0.9;
  margin: 0 0 0.5rem;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0 1.6rem;
}

.steps li { counter-increment: step; border-top: 4px solid var(--ink); padding: 0.7rem 0 1.4rem; }
.steps li::before {
  content: counter(step);
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  font-size: 2.5rem;
  line-height: 1;
  display: block;
  color: var(--green-deep);
  margin-bottom: 0.3rem;
}
.steps strong { display: block; font-size: 1.15rem; }
.steps span { font-size: 1rem; }

@media (max-width: 700px) {
  .lead { grid-template-columns: 1fr; }
  .paw-mark .paw { max-width: 150px; margin: 0; }
}

@media print {
  html, body { background: #fff; }
  .site-header, .site-footer, .no-print { display: none; }
  body { font-size: 11pt; color: #000; }
  .page-content { padding: 0; }
  .wrapper { max-width: none; }
  a { color: #000; text-decoration: none; }
  h1 { font-size: 30pt; }
  h2 { font-size: 20pt; }
  .checklist li { page-break-inside: avoid; }
  .band { box-shadow: none; clip-path: none; background: none; border-top: 3px solid #000; }
}
