/* photocull — one stylesheet, no build step, in keeping with the rest of the project.
   Dark, because every tool for looking at photographs is, and for the same reason: a
   light page sits next to the picture and argues with it. */

:root {
  --ink: #e8e6e3;
  --ink-dim: #9b9793;
  --ink-faint: #6a6763;
  --bg: #121211;
  --bg-raised: #1b1b19;
  --bg-sunk: #0c0c0b;
  --line: #2a2a27;
  --accent: #d8a44a;
  --keep: #5cb85c;
  --reject: #d9534f;
  --unsure: #e8a33d;
  --measure: 34rem;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 ui-serif, Charter, "Iowan Old Style", Georgia, serif;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
}

/* ---------- rhythm ---------- */

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 2rem; }
.narrow { max-width: var(--measure); }
section { padding: 5rem 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }

h1, h2, h3, nav, .ui, table, .stat, code, pre, .pill, .mark {
  font-family: ui-sans-serif, -apple-system, "SF Pro Text", Inter, system-ui, sans-serif;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 1.4rem;
}

h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 0 0 1.8rem;
}

h3 {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 2.4rem 0 0.6rem;
}

p { margin: 0 0 1.1rem; max-width: var(--measure); }
.lede { font-size: 1.22rem; line-height: 1.55; color: var(--ink); max-width: 40rem; }
.dim { color: var(--ink-dim); }
.faint { color: var(--ink-faint); }
strong { font-weight: 600; color: #fff; }
em { font-style: italic; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: #efc275; }

ul { max-width: var(--measure); padding-left: 1.1rem; margin: 0 0 1.1rem; }
li { margin-bottom: 0.5rem; }
li::marker { color: var(--ink-faint); }

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.86em;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.08em 0.34em;
}

pre {
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.6;
  max-width: var(--measure);
}
pre code { background: none; border: 0; padding: 0; font-size: 1em; }

/* ---------- masthead ---------- */

header.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(18, 18, 17, 0.88);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  height: 3.5rem;
}
.logo {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}
.logo::before {
  content: "";
  display: inline-block;
  width: 9px; height: 9px;
  margin-right: 0.55rem;
  border-radius: 2px;
  background: var(--accent);
  vertical-align: baseline;
}
nav { margin-left: auto; display: flex; gap: 1.4rem; font-size: 0.88rem; }
nav a { color: var(--ink-dim); text-decoration: none; }
nav a:hover, nav a[aria-current] { color: var(--ink); }

/* ---------- hero ---------- */

.hero { padding: 6rem 0 4rem; }
.hero .lede { margin-bottom: 2rem; }

.claims { display: grid; gap: 1.6rem; margin: 3rem 0 0; max-width: 62rem; }
@media (min-width: 60rem) { .claims { grid-template-columns: repeat(3, 1fr); } }
.claim { border-top: 2px solid var(--accent); padding-top: 0.9rem; }
.claim h3 { margin: 0 0 0.4rem; }
.claim p { font-size: 0.95rem; color: var(--ink-dim); margin: 0; }

/* ---------- figures ---------- */

figure { margin: 2.5rem 0; }
figure img {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg-sunk);
}
figcaption {
  font-family: ui-sans-serif, -apple-system, system-ui, sans-serif;
  font-size: 0.86rem;
  color: var(--ink-dim);
  margin-top: 0.75rem;
  max-width: 42rem;
}

/* ---------- tables ---------- */

.scroll { overflow-x: auto; margin: 1.8rem 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 34rem;
}
th, td {
  text-align: left;
  padding: 0.62rem 0.9rem 0.62rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom-color: #3a3a35;
}
td.num {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.yes { color: var(--keep); font-weight: 600; }
.no  { color: var(--reject); font-weight: 600; }
.partly { color: var(--unsure); }
tr.us td { background: rgba(216, 164, 74, 0.07); }
tr.us td:first-child { font-weight: 600; color: #fff; }

/* ---------- numbers ---------- */

.stats { display: grid; gap: 1.5rem; margin: 2rem 0; }
@media (min-width: 46rem) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { border-left: 2px solid var(--line); padding-left: 0.9rem; }
.stat b {
  display: block;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.stat span { display: block; font-size: 0.82rem; color: var(--ink-dim); line-height: 1.4; }

/* ---------- swot ---------- */

.swot { display: grid; gap: 1.2rem; margin: 2rem 0; }
@media (min-width: 54rem) { .swot { grid-template-columns: 1fr 1fr; } }
.quad {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 1.4rem 1.5rem;
  background: var(--bg-raised);
}
.quad h3 { margin: 0 0 1rem; display: flex; align-items: baseline; gap: 0.6rem; }
.quad h3 .mark {
  width: 1.5rem; height: 1.5rem;
  flex: 0 0 auto;
  display: inline-grid; place-items: center;
  border-radius: 4px;
  font-size: 0.78rem; font-weight: 700;
  color: #121211;
}
.quad ul { margin: 0; padding-left: 1.05rem; max-width: none; }
.quad li { font-size: 0.91rem; margin-bottom: 0.7rem; }
.quad li:last-child { margin-bottom: 0; }
.quad--s .mark { background: var(--keep); }
.quad--w .mark { background: var(--unsure); }
.quad--o .mark { background: #5bc0de; }
.quad--t .mark { background: var(--reject); }

/* ---------- callouts ---------- */

.note {
  border-left: 2px solid var(--accent);
  padding: 0.2rem 0 0.2rem 1.2rem;
  margin: 2rem 0;
  max-width: 40rem;
}
.note p:last-child { margin-bottom: 0; }

.warn {
  border: 1px solid #6b4a1e;
  background: rgba(216, 164, 74, 0.08);
  border-radius: 6px;
  padding: 1rem 1.3rem;
  margin: 2rem 0;
  max-width: 44rem;
  font-size: 0.93rem;
}
.warn p:last-child { margin-bottom: 0; }

/* ---------- steps ---------- */

.steps { counter-reset: step -1; max-width: 46rem; margin: 2rem 0 0; }
.step {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 1.2rem;
  padding: 1.3rem 0;
  border-top: 1px solid var(--line);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 1.1rem;
  color: var(--ink-faint);
  padding-top: 0.1rem;
}
.step h3 { margin: 0 0 0.35rem; }
.step p { margin: 0; font-size: 0.93rem; color: var(--ink-dim); max-width: none; }
.step.done::before { color: var(--keep); content: "✓"; }
.step.done h3 { color: var(--ink-dim); }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 4rem;
  font-size: 0.86rem;
  color: var(--ink-faint);
}
footer p { max-width: 44rem; }

.pill {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  vertical-align: middle;
}
.pill--live { color: var(--keep); border-color: #2f5130; }
.pill--next { color: var(--accent); border-color: #6b4a1e; }
