/* Layout: advisory bulletin. Condensed display headlines, a version band as the signature element, one column of reading width with wide grids for platforms and tiers. */
:root {
  --paper: #f3f5f6;
  --surface: #ffffff;
  --ink: #13212b;
  --muted: #52626d;
  --rule: #d3dbe0;
  --accent: #0d6585;
  --accent-ink: #ffffff;
  --hazard: #b42318;
  --hazard-bg: #fdecea;
  --fixed: #17734a;
  --fixed-bg: #e5f4ec;
  --warn: #8a5a00;
  --warn-bg: #fff4d6;
  --code-bg: #e9eef1;
  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.55rem;
  --step-3: 2.1rem;
  --step-4: clamp(2.3rem, 6vw, 3.9rem);
  --wrap: 72rem;
  --read: 42rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e161c; --surface: #15212a; --ink: #e5ecf0; --muted: #9babb5; --rule: #273640;
    --accent: #5cb6d6; --accent-ink: #06222e; --hazard: #f8786d; --hazard-bg: #3a1714;
    --fixed: #55c78f; --fixed-bg: #0f2e20; --warn: #f2c25b; --warn-bg: #33270b; --code-bg: #1b2a34;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e161c; --surface: #15212a; --ink: #e5ecf0; --muted: #9babb5; --rule: #273640;
  --accent: #5cb6d6; --accent-ink: #06222e; --hazard: #f8786d; --hazard-bg: #3a1714;
  --fixed: #55c78f; --fixed-bg: #0f2e20; --warn: #f2c25b; --warn-bg: #33270b; --code-bg: #1b2a34;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
}
a { color: var(--accent); text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-stretch: 78%; line-height: 1.05; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); font-weight: 750; }
h3 { font-size: var(--step-1); font-weight: 700; font-stretch: 85%; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: 0.9em; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.band { padding-block: 3.5rem; border-top: 1px solid var(--rule); }
.band.alt { background: var(--surface); }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.read { max-width: var(--read); }
.lede { font-size: var(--step-1); color: var(--muted); max-width: var(--read); }
.eyebrow {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}

/* Top bar */
.topbar { border-bottom: 1px solid var(--rule); background: var(--surface); }
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding-block: 0.85rem; }
.brand { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: 0.01em; }
.brand span { color: var(--accent); }
.topnav { display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: 0.92rem; }
.topnav a { color: var(--muted); text-decoration: none; }
.topnav a:hover { color: var(--ink); text-decoration: underline; }

/* Advisory strip */
.alert { background: var(--hazard-bg); color: var(--hazard); font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.04em; }
.alert .wrap { padding-block: 0.55rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
.alert strong { font-weight: 600; }

/* Hero */
.hero { padding-block: 3.25rem 2.75rem; }
.hero .stack { gap: 1.25rem; }
.hero h1 em { font-style: normal; color: var(--accent); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.2rem; border-radius: 4px;
  font-family: var(--body); font-weight: 600; font-size: 0.98rem; text-decoration: none; border: 1.5px solid var(--accent); cursor: pointer;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn:hover { filter: brightness(1.08); }

/* Version band: the signature element */
.versions { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; background: var(--surface); }
.vcell { padding: 0.9rem 1rem; border-left: 1px solid var(--rule); display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.vcell:first-child { border-left: 0; }
.vcell .branch { font-family: var(--mono); font-weight: 600; font-size: 1.05rem; }
.vcell .state { font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.vcell .detail { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.vcell.eol { background: var(--hazard-bg); }
.vcell.eol .state { color: var(--hazard); }
.vcell.ok .state { color: var(--fixed); }
@media (max-width: 760px) {
  .versions { grid-template-columns: 1fr 1fr; }
  .vcell { border-left: 0; border-top: 1px solid var(--rule); }
  .vcell:first-child { grid-column: 1 / -1; border-top: 0; }
  .vcell:nth-child(odd):not(:first-child) { border-left: 1px solid var(--rule); }
}

.checker { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; margin-top: 1.25rem; }
.checker label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; color: var(--muted); }
.checker input {
  font-family: var(--mono); font-size: 1.05rem; padding: 0.6rem 0.75rem; width: 11rem; max-width: 100%;
  border: 1.5px solid var(--rule); border-radius: 4px; background: var(--surface); color: var(--ink);
}
.verdict { flex: 1 1 18rem; min-width: 0; padding: 0.7rem 1rem; border-radius: 4px; font-size: 0.95rem; border: 1px solid var(--rule); background: var(--surface); }
.verdict.bad { background: var(--hazard-bg); color: var(--hazard); border-color: transparent; }
.verdict.good { background: var(--fixed-bg); color: var(--fixed); border-color: transparent; }
.verdict.unsure { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.verdict strong { font-weight: 700; }
.fineprint { font-size: 0.82rem; color: var(--muted); }

/* Two-column reasons */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 2.5rem; align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 1.5rem; } }
.points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.points li { padding-block: 1rem; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 0.3rem; }
.points li:first-child { border-top: 0; padding-top: 0; }
.points p { color: var(--muted); }

/* Steps: a real sequence */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); gap: 1.5rem; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 0.4rem; padding-top: 0.9rem; border-top: 3px solid var(--accent); }
.steps li::before { content: "Step " counter(step); font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.steps p { color: var(--muted); font-size: 0.95rem; }

/* Service tiers */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.tier { background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 1.4rem; display: flex; flex-direction: column; gap: 0.75rem; }
.band:not(.alt) .tier { background: var(--surface); }
.tier.featured { border: 2px solid var(--accent); }
.tier .tag { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.tier ul { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; color: var(--muted); font-size: 0.95rem; }
.tier .price { font-family: var(--mono); font-size: 0.85rem; color: var(--ink); border-top: 1px solid var(--rule); padding-top: 0.75rem; margin-top: auto; }

/* Hosting */
.hosts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hosts span { font-size: 0.9rem; padding: 0.35rem 0.7rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); }
.band.alt .hosts span { background: var(--paper); }

/* Platform grid on hub */
.platforms { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1rem; }
.platform { display: flex; flex-direction: column; gap: 0.45rem; padding: 1.2rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); color: var(--ink); text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.platform:hover { border-color: var(--accent); transform: translateY(-2px); }
.platform p { color: var(--muted); font-size: 0.92rem; }
.platform .go { margin-top: auto; color: var(--accent); font-weight: 600; font-size: 0.9rem; }
@media (prefers-reduced-motion: reduce) { .platform { transition: none; } .platform:hover { transform: none; } }

/* Code */
.code { background: var(--code-bg); border-radius: 6px; padding: 1rem 1.1rem; overflow-x: auto; font-family: var(--mono); font-size: 0.85rem; line-height: 1.55; margin: 0; }
.code .c { color: var(--muted); }

/* Compromised callout */
.callout { border: 1.5px solid var(--hazard); border-radius: 6px; padding: 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; background: var(--surface); }
.callout h3 { color: var(--hazard); }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); padding-block: 0.9rem; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin-top: 0.6rem; color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }
.contact-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 1.4rem; display: flex; flex-direction: column; gap: 0.75rem; }
.email-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.email { font-family: var(--mono); font-size: 1.05rem; user-select: all; word-break: break-all; }
.copy { font-family: var(--body); font-size: 0.85rem; padding: 0.4rem 0.8rem; border-radius: 4px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); cursor: pointer; }

/* Footer */
footer { border-top: 1px solid var(--rule); padding-block: 2rem; font-size: 0.85rem; color: var(--muted); }
footer .wrap { display: flex; flex-direction: column; gap: 0.6rem; }
footer .links { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
