@font-face {
  font-family: "Libre Franklin";
  src: url("fonts/libre-franklin-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --page: #eceef1;
  --stock: #ffffff;
  --ink: #111214;
  --ink-2: #4b4e55;
  --red: #d4262e;
  --red-soft: rgba(212, 38, 46, 0.14);
  --red-strong: rgba(212, 38, 46, 0.3);
  --amber: #a77f00;
  --amber-soft: rgba(234, 179, 8, 0.18);
  --orange: #c2410c;
  --orange-soft: rgba(234, 88, 12, 0.14);
  --shadow: 0 1px 2px rgba(17, 18, 20, 0.08), 0 18px 40px -12px rgba(17, 18, 20, 0.22);
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0d0e10;
    --stock: #17181b;
    --ink: #f1f2f4;
    --ink-2: #a7aab1;
    --red: #f0545a;
    --red-soft: rgba(240, 84, 90, 0.18);
    --red-strong: rgba(240, 84, 90, 0.36);
    --amber: #e0b100;
    --orange: #f08a3c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 18px 40px -12px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 17px/1.55 "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--red-strong); color: inherit; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--page); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Top bar ---------- */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.bar nav { display: flex; gap: 26px; font-size: 15px; font-weight: 600; }
.bar nav a { text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.bar nav a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding: clamp(24px, 5vw, 64px) 0 clamp(56px, 8vw, 104px); }
.pitch { padding-top: clamp(0px, 3vw, 40px); }
h1 { font-weight: 900; font-size: clamp(40px, 4.6vw, 62px); line-height: 0.98; letter-spacing: -0.04em; margin: 0 0 22px; text-wrap: balance; }
.lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-2); margin: 0 0 30px; max-width: 34em; text-wrap: pretty; }
.cta { display: inline-flex; align-items: center; gap: 12px; padding: 15px 22px; border: 2px solid var(--ink); background: var(--ink); color: var(--page); font-weight: 800; font-size: 16px; letter-spacing: -0.005em; text-decoration: none; transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s; }
.cta.soon { background: transparent; color: var(--ink); cursor: default; }
.fine { margin: 14px 0 0; font-size: 14px; color: var(--ink-2); }

/* The specimen: a sloppy post with its Slop Facts label slapped on. */
.specimen { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(252px, 0.8fr); align-items: start; }
.post { grid-column: 1; grid-row: 1; background: var(--stock); box-shadow: var(--shadow); padding: 22px 24px 20px; border-radius: 6px; }
.who { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.who .mono { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff; background: #3d5a80; flex: none; }
.who b { display: block; font-size: 15.5px; }
.who span { font-size: 13px; color: var(--ink-2); }
.post p { margin: 0 0 9px; font-size: 16.5px; line-height: 1.5; }
mark { color: inherit; background: var(--red-soft); text-decoration: underline wavy var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-skip-ink: none; border-radius: 2px; transition: background 0.2s; }
mark mark { background: transparent; }
mark.on { background: var(--red-strong); }

.facts { grid-column: 2; grid-row: 1; margin: clamp(64px, 8vw, 104px) 0 0 -16px; position: relative; z-index: 1; background: var(--stock); color: var(--ink); border: 1px solid var(--ink); padding: 8px 10px 10px; box-shadow: var(--shadow); font-size: 15px; line-height: 1.3; }
.facts h2 { font-weight: 900; font-size: clamp(32px, 3.2vw, 40px); line-height: 1; letter-spacing: -0.03em; margin: 2px 0 4px; white-space: nowrap; }
.facts .per { margin: 0; padding-bottom: 2px; }
.facts .size { display: flex; justify-content: space-between; gap: 12px; margin: 0; font-weight: 800; font-size: 16.5px; }
.facts .rule-10 { height: 10px; background: var(--ink); margin: 6px 0 3px; }
.facts .rule-5 { height: 5px; background: var(--ink); margin: 3px 0 2px; }
.facts .amount { margin: 0; font-weight: 800; font-size: 12.5px; }
.facts .total { display: flex; justify-content: space-between; align-items: baseline; margin: -2px 0 0; font-weight: 900; }
.facts .total span:first-child { font-size: 24px; letter-spacing: -0.02em; }
.facts .total span:last-child { font-size: 40px; letter-spacing: -0.03em; line-height: 1; }
.facts .level { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 4px 0 5px; border-bottom: 1px solid var(--ink); font-weight: 800; }
.facts table { width: 100%; border-collapse: collapse; }
.facts td { padding: 4px 0; border-bottom: 1px solid var(--ink); vertical-align: top; }
.facts td:last-child { text-align: right; font-weight: 800; padding-left: 12px; }
.facts td b { font-weight: 800; }
.facts tr.sub td { padding-left: 16px; font-weight: 400; border-bottom: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); }
.facts tr.sub td:last-child { font-weight: 400; }
.facts tr[data-rule] { cursor: default; transition: background 0.15s; }
.facts tr[data-rule].on td { background: var(--red-soft); }
.facts .note { margin: 0; padding-top: 4px; font-size: 12.5px; line-height: 1.35; }

/* Meter pills, drawn like the extension's own. */
.pill { display: inline-flex; align-items: center; gap: 7px; width: max-content; padding: 4px 10px 4px 8px; border-radius: 999px; font-weight: 700; font-size: 13px; line-height: 1.2; white-space: nowrap; }
.bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.bars i { display: block; width: 4px; border-radius: 1px; background: currentColor; opacity: 0.3; }
.bars i:nth-child(1) { height: 5px; } .bars i:nth-child(2) { height: 8px; } .bars i:nth-child(3) { height: 10px; } .bars i:nth-child(4) { height: 12px; }
.bars i.on { opacity: 1; }
.p0 { color: var(--ink-2); padding-left: 0; font-weight: 600; }
.p1 { color: var(--amber); background: var(--amber-soft); }
.p2 { color: var(--orange); background: var(--orange-soft); }
.p3 { color: var(--red); background: var(--red-soft); }
.p4 { color: #fff; background: var(--red); }

/* ---------- Sections: each one is a label panel ---------- */
.panel { padding: clamp(56px, 8vw, 96px) 0; }
.panel + .panel { padding-top: 0; }
.panel-title { font-weight: 900; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.05; letter-spacing: -0.03em; margin: 0; padding-bottom: 10px; text-wrap: balance; }
.panel-title + .thick { height: 10px; background: var(--ink); margin-bottom: 22px; }
.lead { color: var(--ink-2); font-size: 18px; max-width: 40em; margin: 0 0 28px; text-wrap: pretty; }

.feed { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.feed .shot { background: #f3f2ef; box-shadow: var(--shadow); border-radius: 6px; overflow: hidden; }
.feed dl { margin: 0; }
.feed dt { font-weight: 850; font-size: 19px; letter-spacing: -0.01em; }
.feed dd { margin: 4px 0 22px; color: var(--ink-2); }
.feed dd:last-child { margin-bottom: 0; }
.feed figcaption { font-size: 13.5px; color: var(--ink-2); padding: 10px 14px; background: var(--stock); }

.guide { max-width: 780px; }
.guide .row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--ink); }
.guide .row p { margin: 0; color: var(--ink-2); }
.guide .thin { height: 5px; background: var(--ink); }
.guide .foot { margin: 0; padding-top: 12px; font-size: 15.5px; color: var(--ink-2); max-width: 44em; }
.guide .foot b { color: var(--ink); }

.ingredients { max-width: 860px; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.6; margin: 0; text-wrap: pretty; }
.ingredients b { font-weight: 900; text-transform: uppercase; letter-spacing: 0.01em; }
.contains { margin: 18px 0 0; padding-top: 12px; border-top: 5px solid var(--ink); max-width: 860px; font-size: clamp(17px, 1.7vw, 20px); }
.contains b { font-weight: 900; text-transform: uppercase; }

.sites { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); column-gap: 28px; max-width: 900px; }
.sites li { font-weight: 800; font-size: clamp(18px, 2vw, 22px); letter-spacing: -0.01em; padding: 12px 0; border-bottom: 1px solid var(--ink); }

.storage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.storage p { margin: 0 0 14px; color: var(--ink-2); max-width: 36em; }
.storage > div:first-child p:first-child { color: var(--ink); font-weight: 800; font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -0.015em; line-height: 1.25; }

.close { text-align: left; border-top: 10px solid var(--ink); padding: 34px 0 clamp(56px, 8vw, 96px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.close h2 { font-weight: 900; font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -0.035em; line-height: 1.02; margin: 0; max-width: 16em; text-wrap: balance; }

footer { border-top: 1px solid var(--ink); padding: 22px 0 44px; font-size: 14px; color: var(--ink-2); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 6px 22px; }
footer b { color: var(--ink); font-weight: 800; }

/* ---------- The one moment: highlights sweep in, in label order ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .post mark { background-size: 0% 100%; background-image: linear-gradient(var(--red-soft), var(--red-soft)); background-color: transparent; background-repeat: no-repeat; text-decoration-color: transparent; animation: sweep 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: calc(0.35s + var(--i, 0) * 0.14s); }
  .js .post mark mark { background-image: none; }
  .js .facts tr[data-rule] td:last-child { animation: tick 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(0.35s + var(--i, 0) * 0.14s); }
  @keyframes sweep { to { background-size: 100% 100%; text-decoration-color: var(--red); } }
  @keyframes tick { from { color: var(--red); transform: scale(1.35); } to { color: inherit; transform: none; } }
  .cta:not(.soon):hover { transform: translateY(-1px); }
  .cta:not(.soon):active { transform: translateY(1px); }
}

/* ---------- Privacy page ---------- */
.doc { max-width: 760px; padding: 20px 0 72px; }
.doc h1 { font-size: clamp(38px, 5vw, 56px); margin-bottom: 8px; }
.doc .meta { color: var(--ink-2); margin: 0 0 28px; }
.doc h2 { font-weight: 900; font-size: 23px; letter-spacing: -0.02em; margin: 40px 0 10px; padding-top: 10px; border-top: 5px solid var(--ink); }
.doc p, .doc li { max-width: 68ch; }
.doc table { border-collapse: collapse; width: 100%; font-size: 16px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--ink); }
.doc code { font-size: 15px; }
.facts.privacy { margin: 0 0 8px; max-width: 360px; }
.doc .facts h2 { font-size: 34px; margin: 2px 0 4px; padding: 0; border: 0; letter-spacing: -0.03em; }
.facts.privacy td:last-child { white-space: nowrap; }

/* ---------- Small screens ---------- */
@media (max-width: 880px) {
  .hero, .feed, .storage { grid-template-columns: minmax(0, 1fr); }
  .specimen { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .post { grid-column: 1; grid-row: 1; }
  .facts { grid-column: 1; grid-row: 2; margin: -18px 10px 0 24px; max-width: 380px; }
  .guide .row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
@media (max-width: 560px) {
  .bar nav a:not(:last-child) { display: none; }
  .facts { margin: -14px 0 0 14px; }
  .facts h2 { font-size: 34px; }
}
.specimen .post mark.on { background: var(--red-strong) !important; }
.doc .facts td { padding: 4px 0; }
.doc .facts td:last-child { padding-left: 12px; }
