/* bakeno.com -- the one stylesheet (docs/SITE-PAGE-BRIEF.md).

   System type, no web fonts, nothing requested from another origin. One accent, reserved
   for primary actions and text links. Status is never colour alone: every chip is a dot or
   a hatch plus its word. The only animation is the verdict card's two chips resolving to
   nodata on load; hover is the button's brightness and nothing else. */

/* ------------------------------------------------------------------ tokens */
:root {
  color-scheme: light dark;

  --surface: #FFFFFF;
  --band: #F5F5F7;
  --card: #FFFFFF;
  --card-border: #D2D2D7;
  --rule: #E8E8ED;
  --text: #1D1D1F;
  --text-2: #6E6E73;
  --accent: #0071E3;
  /* The accent on the band is 4.31:1, under 4.5 for text: text links that sit on a band
     use this instead (5.11:1). Buttons keep --accent. */
  --link-on-band: #0066CC;
  --ok: #1F7A3E;
  --warn: #9A5B00;
  --hatch: #86868B;
  --input-border: #86868B;

  --radius-card: 18px;
  --measure: 680px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
          "Helvetica Neue", Helvetica, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #000000;
    --band: #1D1D1F;
    --card: #1D1D1F;
    --card-border: #3A3A3C;
    --rule: #2C2C2E;
    --text: #F5F5F7;
    --text-2: #A1A1A6;
    --accent: #2997FF;
    --link-on-band: #2997FF;
    --ok: #30D158;
    --warn: #FFB340;
    --hatch: #8E8E93;
    --input-border: #6E6E73;
  }
}

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

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 19px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, p, ol, figure { margin: 0; }

h1 {
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 700;
}

h2 {
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 700;
}

p { max-width: var(--measure); }

strong { font-weight: 600; }

a { color: var(--accent); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.lead {
  font-size: 24px;
  line-height: 1.35;
  color: var(--text-2);
}

.muted { color: var(--text-2); }

.caption {
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-2);
}

/* ------------------------------------------------------------------ layout */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
}

.section { padding: 112px 0; }
.section--band { background: var(--band); }

.section h2 + * { margin-top: 24px; }
.section p + p { margin-top: 16px; }

.skip {
  position: absolute;
  left: 16px;
  top: -200px;
  z-index: 1;
}
.skip:focus { top: 12px; }

/* ----------------------------------------------------------------- actions */
.btn, .skip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 24px;
  border-radius: 980px;
  background: var(--accent);
  color: var(--surface);
  font-size: 17px;
  line-height: 1.2;
  font-weight: 500;
  text-decoration: none;
}
.btn:hover { filter: brightness(0.94); }

.link {
  font-size: 17px;
  color: var(--accent);
  text-decoration: none;
}
.section--band .link,
.footer a { color: var(--link-on-band); }

/* ----------------------------------------------------------------- top bar */
.topbar {
  border-bottom: 1px solid var(--rule);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}

.wordmark {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

/* -------------------------------------------------------------------- hero */
.hero { text-align: center; }

.hero .lead {
  max-width: 720px;
  margin: 24px auto 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 32px;
  margin-top: 40px;
}

/* ------------------------------------------------------------ verdict card */
.verdict {
  max-width: 760px;
  margin: 64px auto 0;
  padding: 28px;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
}

.verdict__row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 8px 16px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}

.verdict__row--head {
  padding-top: 0;
  border-top: 0;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
}

.verdict__other { color: var(--text-2); }

.verdict__name {
  display: block;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
}

.verdict__reading {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-2);
}

.verdict__note {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-2);
}

/* A status chip: a dot (ok, warn) or a hatched square (nodata), then its word. */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
}

.chip::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
}

.chip--ok { color: var(--ok); }
.chip--warn { color: var(--warn); }
.chip--nodata { color: var(--text-2); }

.chip--nodata::before {
  width: 12px;
  height: 12px;
  border-radius: 0;
  border: 1px solid var(--hatch);
  background: repeating-linear-gradient(45deg, var(--hatch) 0 2px, transparent 2px 5px);
}

/* The single moment: Bakeno's Postmaster and SNDS readings show ok, then resolve to
   nodata -- the first at 600 ms, the second 150 ms later, each a 300 ms crossfade. Both
   chips are in the markup; the transient ok is aria-hidden. */
.verdict__cell--resolve { display: grid; }
.verdict__cell--resolve > .chip { grid-area: 1 / 1; }

.chip--transient { animation: chip-out 300ms ease 600ms both; }
.chip--final { animation: chip-in 300ms ease 600ms both; }
.verdict__cell--later > .chip { animation-delay: 750ms; }

@keyframes chip-out {
  from { opacity: 1; }
  to { opacity: 0; visibility: hidden; }
}

@keyframes chip-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .chip--transient { display: none; }
  .chip--final { animation: none; }
}

/* ----------------------------------------------------------------- sources */
.sources {
  margin-top: 40px;
  padding: 0;
  list-style: none;
  counter-reset: source;
}

.sources li {
  counter-increment: source;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 4px 16px;
  align-items: baseline;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}
.sources li:last-child { border-bottom: 1px solid var(--rule); }

.sources li::before {
  content: counter(source);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.sources__name { font-weight: 600; }
.sources__what { color: var(--text-2); }

/* ---------------------------------------------------------------- profiles */
.table-box {
  margin-top: 40px;
  overflow-x: auto;
}

.profiles {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 17px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.profiles th,
.profiles td {
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.profiles thead th {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
}

.profiles tbody th { font-weight: 600; }

.table-box + .caption { margin-top: 16px; }

/* ------------------------------------------------------------------- audit */
.request {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  margin-top: 32px;
}

.request__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 280px;
  max-width: 440px;
}

.request__label {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
}

.request input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--input-border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 17px;
}
.request input::placeholder {
  color: var(--text-2);
  opacity: 1;
}

.help {
  margin-top: 32px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text);
}

.terms {
  max-width: var(--measure);
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.4;
}
.terms p + p { margin-top: 8px; }
.terms a { text-underline-offset: 2px; }

/* ------------------------------------------------------------------ footer */
.footer {
  padding: 32px 0;
  background: var(--band);
  border-top: 1px solid var(--rule);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
}

.chrome__services {
  display: flex;
  gap: 20px;
  font-size: 14px;
  line-height: 1.4;
}
.chrome__services a { text-decoration: none; }
.chrome__services a[aria-current="page"] { color: var(--text-2); }

/* ------------------------------------------------------------------- phone */
@media (max-width: 740px) {
  body { font-size: 17px; }
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  .lead { font-size: 19px; }

  .section { padding: 72px 0; }

  .verdict { padding: 20px; }
  .verdict__row { grid-template-columns: 1fr 1fr; }
  .verdict__src { grid-column: 1 / -1; }

  .sources li { grid-template-columns: 40px minmax(0, 1fr); }
  .sources__what { grid-column: 2; }
}
