/* Graph of Life document mode (the brief). Paper ground, navy ink, mono proof. */
@import url("../vendor/fonts.css");

:root {
  --navy: #0e2a47; --abyss: #08203a; --slate: #243b4a; --muted: #5c6e78;
  --teal: #1aa89b; --teal-deep: #0e7a70; --green: #3ad6a3; --green-deep: #0f8059;
  --coral: #e8694d; --coral-deep: #c2442a; --amber: #f2a24e; --amber-deep: #a86410;
  --sand: #e9e1cc; --paper: #f7f6f2; --bone: #fbfaf6; --mist: #eaf1f1; --hairline: #d7dee2;
  --sans: "IBM Plex Sans", system-ui, Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--slate); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 820px; margin: 0 auto; padding: 0 22px 120px; }
a { color: var(--teal-deep); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(247,246,242,0.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--hairline); }
.topbar .row { max-width: 820px; margin: 0 auto; padding: 12px 22px; display: flex; align-items: center; justify-content: space-between; }
.lockup { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.lockup .nm { font-size: 13px; font-weight: 600; color: var(--navy); letter-spacing: 0.02em; }
.lockup .nm .g { color: var(--muted); font-weight: 400; }
.topbar a.back { font-family: var(--mono); font-size: 12px; color: var(--teal-deep); text-decoration: none; }

/* masthead */
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-deep); display: flex; align-items: center; gap: 8px; }
.eyebrow .node { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
h1 { font-size: clamp(28px, 5vw, 42px); line-height: 1.1; color: var(--navy); letter-spacing: -0.02em; margin: 18px 0 14px; }
.byline { font-family: var(--mono); font-size: 13px; color: var(--slate); border-top: 2px solid var(--teal); padding-top: 12px; }
.byline a { color: var(--teal-deep); }
.tagline { font-size: 19px; font-weight: 600; color: var(--navy); margin: 16px 0 24px; }
h2 { font-size: clamp(22px, 3.2vw, 30px); color: var(--navy); margin: 56px 0 14px; letter-spacing: -0.015em; padding-top: 16px; border-top: 1px solid var(--hairline); }
h2.kicker-h { border-top: none; padding-top: 0; margin-top: 4px; }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-deep); display: flex; gap: 8px; align-items: center; margin-top: 54px; margin-bottom: 6px; }
.kicker .node { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
h3 { font-size: 18px; color: var(--navy); margin: 26px 0 8px; }
p { margin: 0 0 16px; max-width: 68ch; }
strong { color: var(--navy); }
em { color: var(--slate); }

/* KPI band */
.kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--navy); border-radius: 12px; overflow: hidden; margin: 24px 0 8px; }
.kpi .cell { background: var(--navy); padding: 20px 16px; }
.kpi .v { font-family: var(--mono); font-weight: 600; font-size: clamp(20px, 2.6vw, 27px); color: var(--green); font-variant-numeric: tabular-nums; }
.kpi .k { font-size: 12px; color: #b9c6cd; margin-top: 6px; line-height: 1.4; }
@media (max-width: 680px) { .kpi { grid-template-columns: repeat(2, 1fr); } }

/* figure */
figure { margin: 26px 0; }
figure img { width: 100%; height: auto; border: 1px solid var(--hairline); border-radius: 10px; background: var(--bone); display: block; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
figcaption b { color: var(--navy); font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; }

/* callouts */
.callout { padding: 16px 18px; border-radius: 10px; margin: 22px 0; }
.callout.insight { background: var(--mist); border-left: 3px solid var(--teal); }
.callout.caveat { background: var(--sand); border-left: 3px solid var(--coral-deep); }
.callout p { margin: 0; }
.callout strong { color: var(--navy); }

/* shift / category tables */
table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
th { background: var(--navy); color: #fff; text-align: left; padding: 10px 12px; font-weight: 600; font-size: 13px; }
td { padding: 10px 12px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
tr:nth-child(even) td { background: var(--bone); }
td.yes { color: var(--green-deep); font-weight: 600; font-family: var(--mono); }
td.partial { color: var(--amber-deep); font-family: var(--mono); font-size: 13px; }
td.no { color: var(--muted); font-family: var(--mono); }
.col-ours { background: var(--mist) !important; font-weight: 600; }

/* three moves */
.move { display: flex; gap: 16px; margin: 18px 0; }
.move .n { font-family: var(--mono); font-weight: 600; font-size: 20px; color: var(--teal-deep); min-width: 30px; }
.move .b strong { color: var(--navy); }

/* instruments grid */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: 10px; overflow: hidden; margin: 18px 0; }
.grid2 .cell { background: var(--paper); padding: 16px 16px 18px; border-left: 3px solid var(--teal); }
.grid2 .cell h4 { margin: 0 0 5px; color: var(--navy); font-size: 15px; }
.grid2 .cell p { margin: 0; font-size: 13.5px; color: var(--slate); }
@media (max-width: 620px) { .grid2 { grid-template-columns: 1fr; } }

/* why-now list */
ul.why { list-style: none; padding: 0; margin: 18px 0; }
ul.why li { padding: 10px 0 10px 22px; position: relative; border-bottom: 1px solid var(--hairline); }
ul.why li::before { content: "\25CF"; color: var(--teal); position: absolute; left: 0; top: 12px; font-size: 10px; }
ul.why li strong { color: var(--navy); }

/* closing */
.closing { background: var(--navy); color: #eaf2f2; border-radius: 14px; padding: 28px 26px; margin: 44px 0 0; }
.closing h3 { color: #fff; margin: 0 0 10px; font-size: 22px; }
.closing p { color: #cdd9dd; max-width: none; }
.closing a { color: var(--green); font-family: var(--mono); }
.foot { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.provenance { font-family: var(--mono); font-size: 12px; color: var(--muted); }
