/* ──────────────────────────────────────────────────────────────────
   Infra Atlas · Decisions — shared stylesheet for the hub + every
   "X vs Y" decision page. One file, linked by all pages. No build step.
   ────────────────────────────────────────────────────────────────── */
:root {
  --ink: #0A0907; --ink-2: #100E0C; --surface: #161310; --surface-2: #1E1A15;
  --line: rgba(244, 239, 230, 0.06); --line-2: rgba(244, 239, 230, 0.14); --line-3: rgba(244, 239, 230, 0.28);
  --paper: #F4EFE6; --paper-2: rgba(244, 239, 230, 0.66); --paper-3: rgba(244, 239, 230, 0.55); --paper-4: rgba(244, 239, 230, 0.20);
  --accent: #FF7849; --accent-2: #FFA66E;
  --mint: #6FE7B5; --gold: #F4C660; --sky: #7CD7F1; --rose: #F47B7B;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Manrope', -apple-system, system-ui, sans-serif;
}

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

html, body {
  background: var(--ink); color: var(--paper);
  font-family: var(--sans); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
}
body {
  background:
    radial-gradient(ellipse at 100% -10%, rgba(255, 120, 73, 0.07), transparent 55%),
    radial-gradient(ellipse at -10% 110%, rgba(244, 198, 96, 0.05), transparent 65%),
    var(--ink);
  background-attachment: fixed; overflow-x: hidden;
}
.grain {
  pointer-events: none; position: fixed; inset: 0; z-index: 100; opacity: 0.08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.scanlines {
  pointer-events: none; position: fixed; inset: 0; z-index: 99;
  background: repeating-linear-gradient(180deg, transparent, transparent 2px, rgba(244,239,230,0.012) 2px, rgba(244,239,230,0.012) 3px);
}
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
a { color: inherit; }

.page { max-width: 1080px; margin: 0 auto; padding: 56px 40px 96px; position: relative; }

/* ─────────── MASTHEAD ─────────── */
.masthead { padding-bottom: 30px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.eyebrow {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.22em; color: var(--paper-3);
  text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
  transition: color 0.2s ease;
}
.eyebrow:hover { color: var(--paper); }
.eyebrow .arrow { color: var(--accent); transition: transform 0.2s ease; }
.eyebrow:hover .arrow { transform: translateX(-4px); }
.title {
  font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 76px);
  line-height: 1.0; letter-spacing: -0.02em; margin-top: 18px; color: var(--paper);
}
.title em { font-style: italic; color: var(--accent); }
.subtitle { margin-top: 16px; font-size: 16px; color: var(--paper-2); max-width: 640px; line-height: 1.55; }
.reviewed {
  display: inline-flex; align-items: center;
  margin-top: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--paper-2);
  padding: 5px 10px 5px 8px;
  border: 1px solid rgba(111,231,181,0.28); border-radius: 99px;
  background: rgba(111,231,181,0.06);
}
.reviewed .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); margin-right: 8px; flex-shrink: 0; }

/* ─────────── SECTIONS ─────────── */
section { margin-bottom: 40px; }
.sec-label {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--paper-3); margin-bottom: 14px;
  display: flex; align-items: center; gap: 12px;
}
.sec-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ─────────── VERDICT ─────────── */
.verdict {
  border: 1px solid var(--line-2); border-left: 3px solid var(--accent); border-radius: 5px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--ink-2) 100%);
  padding: 22px 26px;
}
.verdict p { font-size: 16.5px; line-height: 1.62; color: var(--paper); }
.verdict p strong { color: var(--accent-2); font-weight: 600; }

/* ─────────── COMPARISON TABLE ─────────── */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--ink-2); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 13.5px; }
table.compare thead th {
  background: var(--ink-2); font-family: var(--mono); font-weight: 500; font-size: 12px;
  letter-spacing: 0.04em; color: var(--paper); text-align: left;
  padding: 16px 16px 13px; border-bottom: 1px solid var(--line-2); vertical-align: bottom;
}
table.compare thead th:first-child { color: var(--paper-3); font-style: italic; font-family: var(--serif); font-size: 15px; }
table.compare tbody td {
  padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5;
}
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare tbody tr:hover { background: rgba(255, 120, 73, 0.03); }
table.compare td.criterion {
  font-weight: 600; color: var(--paper); width: 1%; white-space: nowrap;
  border-right: 1px solid var(--line); padding-right: 22px;
}
table.compare td.val { color: var(--paper-2); }

/* ─────────── PICK-WHEN ─────────── */
.pickwhen { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pick {
  border: 1px solid var(--line); border-radius: 5px; background: var(--surface); padding: 18px 20px;
}
.pick h4 {
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.03em;
  color: var(--accent-2); margin-bottom: 12px;
}
.pick ul { list-style: none; }
.pick li {
  font-size: 13.5px; color: var(--paper-2); line-height: 1.5; padding-left: 16px;
  position: relative; margin-bottom: 9px;
}
.pick li:last-child { margin-bottom: 0; }
.pick li::before { content: '▸'; position: absolute; left: 0; color: var(--accent); }

/* ─────────── SOURCES ─────────── */
.sources ol { list-style: decimal; padding-left: 26px; }
.sources li { font-size: 12.5px; color: var(--paper-2); line-height: 1.5; margin-bottom: 8px; }
.sources a {
  font-family: var(--mono); font-size: 11px; color: var(--paper-3);
  text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px;
  word-break: break-all;
}
.sources a:hover { color: var(--accent); }

/* ─────────── CROSS-LINKS ─────────── */
.crosslinks { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.crosslinks .lbl {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--paper-3); margin-right: 4px;
}
.crosslinks a {
  font-family: var(--mono); font-size: 12px; color: var(--paper-2); text-decoration: none;
  border: 1px solid var(--line-2); border-radius: 99px; padding: 6px 14px;
  transition: all 0.15s ease;
}
.crosslinks a:hover { border-color: var(--accent); color: var(--accent); }

/* ─────────── COLOPHON ─────────── */
.colophon {
  margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--paper-3); line-height: 1.6;
}
.colophon a {
  color: var(--paper-2); text-decoration: underline;
  text-decoration-color: var(--line-2); text-underline-offset: 3px;
}
.colophon a:hover { color: var(--accent); }

/* ─────────── HUB ─────────── */
.hub-intro { font-size: 16px; color: var(--paper-2); max-width: 620px; line-height: 1.6; margin-bottom: 8px; }
.decision-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.dcard {
  display: flex; flex-direction: column; gap: 10px; text-decoration: none;
  border: 1px solid var(--line-2); border-radius: 6px; padding: 22px 24px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--ink-2) 100%);
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.dcard:hover { border-color: var(--accent); transform: translateY(-2px); }
.dcard__cloud {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--paper-3);
}
.dcard__q { font-family: var(--serif); font-size: 25px; line-height: 1.08; color: var(--paper); }
.dcard__q em { font-style: italic; color: var(--accent); }
.dcard__teaser { font-size: 13px; color: var(--paper-2); line-height: 1.5; flex: 1; }
.dcard__foot {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--paper-3); /* --paper-4 (.20)=1.68:1 failed AA; --paper-3 (.55)=5.6:1 */
}

@media (max-width: 720px) {
  .page { padding: 32px 20px 72px; }
  .pickwhen { grid-template-columns: 1fr; }
}
