/* Asset Acrobatics, landing v0. System fonts only, no external file. ASCII only.
   Colours are tokens; every text and control pair meets WCAG 2.2 AA (checked by the WC-0 landing test).
   Motion: nothing moves under prefers-reduced-motion: reduce. */

:root {
  color-scheme: dark;
  --bg: #0f1113;
  --panel: #181b1f;
  --panel-2: #1f2328;
  --line: #3d444c;
  --text: #ece8e1;
  --muted: #b9b3a8;
  --link: #ffcf5c;
  --focus: #ffd54a;
  --go: #8fdc8f;
  --note: #f0b429;
  --fix: #ffab66;
  --no: #ff958d;
  --on-badge: #0f1113;
  --radius: 10px;
  --max: 72rem;
  --gutter: 16px;
}

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

html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}

[hidden] { display: none !important; }

/* v0: the city host is not live; v1 sets data-city-host="live" on <html> */
html:not([data-city-host="live"]) [data-needs-city-host] { display: none !important; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 40em) {
  :root { --gutter: 32px; }
}

/* Text */
h1, h2 { line-height: 1.15; margin: 0 0 0.5rem; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: 1.35rem; }
p { margin: 0 0 0.75rem; }
.lede { font-size: 1.2rem; max-width: 40em; }
.intro p { max-width: 44em; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

a { color: var(--link); text-decoration: underline; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

/* Layout */
.intro { padding-top: clamp(1.75rem, 4vw, 3.5rem); padding-bottom: 1.25rem; }

/* The check is first in the page order (a phone sees its verdict on the first screen); a wide screen puts the still left */
.lead-grid { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 62.5em) {
  .lead-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 2rem; }
  .lead-grid > .still { grid-column: 1; grid-row: 1; }
  .lead-grid > .check { grid-column: 2; grid-row: 1; }
}

.still { margin: 0 0 1.5rem; }
.still img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--panel);
}
.still figcaption { color: var(--muted); font-size: 0.95rem; margin-top: 0.5rem; }
.still-wide { margin-top: 0.5rem; }

/* The check */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.verdict {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-left: 6px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 1rem 0.5rem;
  margin: 0.75rem 0 1rem;
}
.verdict[data-class="go"] { border-left-color: var(--go); }
.verdict[data-class="go-note"] { border-left-color: var(--note); }
.verdict[data-class="fix"] { border-left-color: var(--fix); }
.verdict[data-class="no"] { border-left-color: var(--no); }

.badge {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.05rem 0.6rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--text);
  background: var(--line);
}
.verdict[data-class="go"] .badge { background: var(--go); color: var(--on-badge); }
.verdict[data-class="go-note"] .badge { background: var(--note); color: var(--on-badge); }
.verdict[data-class="fix"] .badge { background: var(--fix); color: var(--on-badge); }
.verdict[data-class="no"] .badge { background: var(--no); color: var(--on-badge); }

.verdict-title { font-size: 1.15rem; font-weight: 700; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin: 0.25rem 0 0.75rem; }
.action-status { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 0.95rem; }
.action-status:empty { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 1rem;
  border: 2px solid var(--link);
  border-radius: 8px;
  background: var(--link);
  color: var(--on-badge);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { text-decoration: underline; }
.button-quiet { background: transparent; color: var(--link); }

.noscript { border-left: 6px solid var(--fix); padding-left: 0.75rem; }

.checked { margin: 0 0 0.75rem; }
.checked summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.checked ul { list-style: none; margin: 0.25rem 0 0.75rem; padding: 0; }
.checked li {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.tag { font-weight: 700; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; padding-top: 0.15rem; }
.tag-pass { color: var(--go); }
.tag-fail { color: var(--no); }
.tag-note { color: var(--note); }
.tag-info, .tag-skip { color: var(--muted); }

.report { margin: 0; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 1rem; padding: 1rem 0 2rem; }
.site-foot ul { list-style: none; margin: 0 0 0.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-foot li a { display: inline-flex; align-items: center; min-height: 44px; }

/* Motion only for those who have not asked for less */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .verdict { transition: border-color 0.2s ease; }
}

/* Windows High Contrast and other forced colours: keep the class visible without its colour */
@media (forced-colors: active) {
  .badge, .verdict { border-color: CanvasText; }
  .button { border-color: ButtonText; }
}
