:root {
  --paper: #ffffff;
  --paper-deep: #f4f4f2;
  --ink: #101010;
  --muted: #666666;
  --line: #ddddda;
  --accent: #101010;
  --accent-dark: #000000;
  --watch: #216e3a;
  --watch-dark: #18552d;
  --white: #ffffff;
  --measure: 47rem;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Raleway", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.62; text-rendering: optimizeLegibility; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, textarea:focus-visible { outline: 3px solid rgba(0, 0, 0, 0.28); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.035em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.7rem); font-weight: 900; margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.65rem, 3vw, 2.45rem); font-weight: 800; margin-bottom: 1.1rem; }
h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.45rem; }
.shell { width: min(100% - 2rem, 76rem); margin-inline: auto; }
.measure { max-width: var(--measure); }
.section { padding: clamp(3.25rem, 7vw, 6.5rem) 0; border-top: 1px solid var(--line); }
.section:first-child { border-top: 0; }
.eyebrow, .kicker, .meta, label, th, .button, button, input, select, textarea, nav, .status-line { font-family: "Raleway", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.eyebrow, .kicker { color: var(--muted); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.lede { max-width: 43rem; color: #34302c; font-size: clamp(1.15rem, 2vw, 1.42rem); }
.muted { color: var(--muted); }
.status-line { color: var(--accent); font-size: 0.9rem; font-weight: 650; letter-spacing: 0.02em; }
.foundation-spectrum { position: sticky; top: 0; z-index: 100; height: 6px; background: linear-gradient(90deg, #2b130c 0 4%, #482416 4% 9%, #6c3821 9% 14%, #945332 14% 20%, #b86f47 20% 26%, #d18d67 26% 32%, #e5ac88 32% 38%, #f1c9ab 38% 44%, #f8dfcc 44% 50%, #fceade 50% 55%, #f3d7c2 55% 61%, #e7b997 61% 67%, #d99a70 67% 73%, #bd7149 73% 79%, #99502d 79% 85%, #70361d 85% 90%, #4a2112 90% 95%, #281008 95% 100%); }
.site-header { background: var(--paper); }
.nav-row, .footer-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.25rem; }
.wordmark { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.wordmark-logo { display: block; width: auto; height: 2.15rem; }
.header-actions { display: flex; align-items: center; gap: 1.5rem; }
nav { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: 0.83rem; }
nav a { color: var(--ink); text-decoration: none; }
.header-market-form select { width: auto; min-width: 5.2rem; padding: .38rem 1.65rem .38rem .5rem; border: 0; border-radius: 0; background-color: transparent; font-size: .82rem; font-weight: 700; }
.site-footer { margin-top: 4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.78rem; }
.site-footer p { margin: 0; font-family: inherit; }
.hero { min-height: 38rem; display: flex; align-items: center; padding: 5rem 0; }
.hero h1 { max-width: 14ch; }
.home-hero { min-height: 29rem; }
.home-hero h1 { max-width: 15ch; }
.hero-actions, .form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 2rem; }
.button, button, input[type="submit"] { display: inline-block; border: 1px solid var(--ink); border-radius: 0; padding: 0.78rem 1.05rem; color: var(--white); background: var(--ink); font-size: 0.84rem; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; }
.button:hover, button:hover, input[type="submit"]:hover { color: var(--white); background: var(--accent-dark); }
.button.secondary { color: var(--white); background: var(--ink); }
.button.secondary:hover { color: var(--white); background: var(--accent-dark); }
.text-link { font-family: inherit; font-size: 0.85rem; }
.preview-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; padding: 2rem 0; border-block: 1px solid var(--line); }
.preview-row h2 { margin-bottom: 0.55rem; }
.preview-label { margin-bottom: 1.1rem; color: var(--muted); font-size: .82rem; font-weight: 600; }
.preview-summary { margin-bottom: 0; color: var(--muted); }
.product-header { padding: clamp(4rem, 8vw, 7rem) 0 3.5rem; }
.product-header h1 { max-width: 16ch; font-size: clamp(2.6rem, 6vw, 5rem); }
select, input, textarea { width: 100%; border: 1px solid #b7b7b2; border-radius: 0; padding: 0.72rem 0.78rem; color: var(--ink); background: var(--white); font-size: 1rem; }
select { width: auto; }
textarea { min-height: 8rem; resize: vertical; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; margin-bottom: 0.35rem; font-size: 0.82rem; font-weight: 650; }
.field small { display: block; margin-top: 0.35rem; color: var(--muted); font-family: inherit; font-size: 0.75rem; }
.form-panel { max-width: 38rem; padding: 1.5rem 0; }
.inline-form { display: grid; grid-template-columns: minmax(12rem, 1fr) auto; gap: 0.7rem; max-width: 34rem; }
.product-overview { padding-top: clamp(3.25rem, 7vw, 6rem); }
.current-formula-panel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(18rem, .8fr); gap: 1.25rem; margin-top: 2.5rem; }
.current-formula-summary, .watch-panel { padding: clamp(1.6rem, 3.5vw, 2.7rem); }
.current-formula-summary { background: #f2f7f1; }
.current-formula-summary h2, .watch-panel h2 { margin-bottom: .75rem; }
.current-formula-title { display: flex; align-items: center; gap: .6rem; }
.current-formula-indicator { flex: 0 0 auto; width: .5rem; height: .5rem; border-radius: 50%; background: #287b43; animation: current-formula-pulse 3.4s ease-out infinite; }
@keyframes current-formula-pulse { 0%, 72%, 100% { box-shadow: 0 0 0 0 rgba(40, 123, 67, 0); } 78% { box-shadow: 0 0 0 .28rem rgba(40, 123, 67, .12); } }
.formula-generation { margin: .6rem 0 1.25rem; font-size: 1.16rem; font-weight: 700; }
.formula-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 1.6rem 0 1.3rem; background: var(--line); border: 1px solid var(--line); }
.formula-facts div { min-width: 0; }
.formula-facts div { padding: .9rem; background: var(--white); }
.formula-facts dt { margin-bottom: .28rem; color: var(--muted); font-size: .76rem; font-weight: 600; }
.formula-facts dd { margin: 0; font-size: .96rem; font-weight: 700; line-height: 1.35; }
.declaration-identity { margin-bottom: 0; color: var(--muted); font-size: .92rem; }
.watch-panel { align-self: stretch; border: 1px solid var(--ink); background: var(--white); }
.watch-form { display: grid; grid-template-columns: 1fr; gap: .6rem; margin-top: 1.25rem; }
.watch-email-label { display: block; margin-bottom: .35rem; font-size: .82rem; font-weight: 650; }
.button.watch-button, button.watch-button, input[type="submit"].watch-button { border-color: var(--watch); color: var(--white); background: var(--watch); white-space: nowrap; text-transform: uppercase; letter-spacing: .045em; }
.button.watch-button:hover, button.watch-button:hover, input[type="submit"].watch-button:hover { border-color: var(--watch-dark); color: var(--white); background: var(--watch-dark); }
.button.watch-button:focus-visible, button.watch-button:focus-visible, input[type="submit"].watch-button:focus-visible { outline-color: rgba(33, 110, 58, .35); }
.watch-reveal { margin-top: .35rem; }
.watch-trust { margin: .9rem 0 0; color: var(--muted); font-size: .8rem; }
.watch-success { min-height: 34rem; display: flex; align-items: center; }
.watch-success-mark { display: grid; width: 2.6rem; height: 2.6rem; margin-bottom: 1.5rem; border-radius: 50%; place-items: center; color: var(--white); background: var(--watch); font-size: 1.2rem; font-weight: 700; }
.watch-list { margin: 2.5rem 0 3rem; padding: 0; list-style: none; }
.watch-list li { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.5rem 0; border-block: 1px solid var(--line); }
.watch-list li + li { border-top: 0; }
.watch-list h2 { max-width: 32rem; margin-bottom: .55rem; font-size: 1.35rem; }
.watch-status { display: flex; align-items: center; gap: .45rem; margin: 0; color: var(--watch); font-size: .86rem; font-weight: 600; }
.watch-status span { width: .48rem; height: .48rem; border-radius: 50%; background: var(--watch); }
.watch-list form { flex: 0 0 auto; }
.account-sign-out { margin-top: 1rem; padding: 0; border: 0; color: var(--muted); background: transparent; font-size: .82rem; text-decoration: underline; text-underline-offset: .2em; }
.account-sign-out:hover { color: var(--ink); background: transparent; }
.account-access-form { display: grid; grid-template-columns: minmax(12rem, 1fr) auto; align-items: end; gap: .7rem; max-width: 38rem; margin-top: 2rem; }
.account-access-form label { display: block; margin-bottom: .35rem; font-size: .82rem; font-weight: 650; }
.declaration-preview { padding-top: 3rem; }
.declaration-preview > p:not(.eyebrow) { max-width: 42rem; }
.declaration-preview h3 { margin-bottom: 1.25rem; font-size: 1.45rem; }
.ingredient-preview-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.5rem; margin: 0; padding: 0; list-style: none; }
.ingredient-preview-list li { display: flex; gap: .75rem; min-width: 0; padding: .72rem 0; border-top: 1px solid var(--line); font-weight: 600; }
.ingredient-preview-list span { flex: 0 0 auto; color: #999; font-size: .72rem; font-weight: 600; }
.full-ingredient-list { margin-top: 1.2rem; }
.ingredient-declaration { columns: 2; column-gap: 3rem; margin: 0; padding-left: 1.4rem; }
.ingredient-declaration li { break-inside: avoid; margin-bottom: .35rem; padding-left: .15rem; }
.wear-shift { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 1rem; margin-top: 2.25rem; padding: 1.5rem 0; border-block: 2px solid var(--ink); }
.wear-shift div { display: flex; flex-direction: column; gap: .2rem; }
.wear-shift div:last-child { text-align: right; }
.wear-shift span:not(.wear-shift__arrow) { color: var(--muted); font-size: .82rem; font-weight: 600; }
.wear-shift strong { font-size: clamp(1.7rem, 4vw, 2.7rem); font-weight: 900; line-height: 1.1; }
.wear-shift__arrow { font-size: 1.8rem; }
.formula-change-rows { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.formula-change-rows > div { display: grid; grid-template-columns: minmax(10rem, .35fr) minmax(0, 1fr); gap: 2rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.formula-change-rows h3, .formula-change-rows p { margin: 0; }
.comparison-boundary { max-width: 50rem; margin-top: 1.75rem; font-size: .92rem; }
.comparison-details { margin-top: 1.5rem; }
.formula-history { overflow: hidden; }
.timeline { list-style: none; }
.formula-timeline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 3rem 0 0; padding: 0; }
.formula-timeline::before { position: absolute; top: .43rem; right: calc(25% - .43rem); left: .43rem; height: 1px; background: var(--ink); content: ""; }
.timeline .formula-timeline__item { position: relative; display: block; min-width: 0; padding: 2.1rem 1.5rem 0 0; border: 0; }
.formula-timeline__marker { position: absolute; top: 0; left: 0; width: .9rem; height: .9rem; border: 2px solid var(--ink); border-radius: 50%; background: var(--paper); }
.formula-timeline__item.is-current .formula-timeline__marker { border-color: var(--accent); background: var(--accent); }
.timeline time { display: block; margin-bottom: .3rem; color: var(--ink); font-size: 1.05rem; font-weight: 900; }
.timeline .timeline-kind { min-height: 2.7em; margin-bottom: .55rem; color: var(--muted); font-size: .76rem; font-weight: 500; line-height: 1.35; }
.timeline h3 { max-width: 13rem; font-size: 1.04rem; font-weight: 700; }
.timeline h3 a { color: var(--ink); }
.timeline h3 a:hover { color: var(--accent); }
.history-detail { margin-top: 3rem; }
.history-detail details, .history-detail details:last-child { padding: 0; border: 0; }
.history-detail summary { color: var(--muted); font-weight: 500; }
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); margin-top: 2rem; }
.comparison > section { border-top: 2px solid var(--ink); padding-top: 1rem; }
.ingredient-list { margin: 0; padding-left: 1.15rem; }
.ingredient-list li { margin-bottom: 0.3rem; }
.diff-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; margin: 1.5rem 0; }
details { padding: 1rem 0; border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { color: var(--accent); font-size: 0.92rem; font-weight: 650; cursor: pointer; }
.details-body { padding-top: 1rem; }
.sources-section { padding-top: 1.5rem; border-top: 0; }
.sources-title { margin-bottom: 1.4rem; color: #454a45; font-size: 1.05rem; font-weight: 600; letter-spacing: -.015em; }
.source-list { display: grid; gap: 1.2rem; margin: 0; padding: 0; list-style: none; }
.source-list li { padding: 0; border: 0; }
.source-name { display: block; color: #454a45; font-size: .92rem; font-weight: 500; }
.source-list p { margin: .12rem 0; color: var(--muted); font-size: .84rem; }
.source-list a { color: var(--muted); font-size: .8rem; }
.source-note { margin: 1.5rem 0 0; font-size: .8rem; }
.callout { margin: 2rem 0; padding: 1.4rem 0 1.4rem 1.35rem; border-left: 3px solid var(--accent); }
.callout p:last-child { margin-bottom: 0; }
.flash-stack { margin-top: 1rem; }
.flash { padding: 0.8rem 1rem; border-left: 3px solid var(--accent); background: var(--paper-deep); font-family: inherit; font-size: 0.85rem; }
.flash.alert { border-color: #40352c; }
.errors { color: #6f1e27; }
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; padding: 0.5rem; background: var(--white); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.research-copy h2 { margin-top: 3.4rem; }
.research-copy h3 { margin-top: 2rem; }
.research-copy ul { padding-left: 1.25rem; }
.legal-copy { max-width: 48rem; }
@media (max-width: 700px) {
  body { font-size: 17px; }
  .foundation-spectrum { height: 5px; }
  .nav-row { align-items: center; flex-flow: row wrap; padding: .9rem 0; }
  .header-actions { display: contents; }
  .wordmark { order: 1; }
  .wordmark-logo { height: 1.9rem; }
  .header-market-form { order: 2; margin-left: auto; }
  .nav-row nav { order: 3; width: 100%; gap: 0.85rem; padding-top: .25rem; }
  .hero { min-height: auto; padding: 4rem 0; }
  .home-hero { padding: 3.6rem 0; }
  .product-overview { padding-top: 2.7rem; }
  .product-header h1 { font-size: clamp(2.35rem, 12vw, 3.3rem); }
  .preview-row, .comparison, .diff-groups, .current-formula-panel { grid-template-columns: 1fr; }
  .current-formula-panel { gap: 1.8rem; }
  .current-formula-summary, .watch-panel { padding: 1.5rem; }
  .formula-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .watch-form { grid-template-columns: 1fr; }
  .watch-list li { align-items: flex-start; flex-direction: column; gap: 1.2rem; }
  .account-access-form { grid-template-columns: 1fr; }
  .ingredient-preview-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ingredient-declaration { columns: 1; }
  .formula-change-rows > div { grid-template-columns: 1fr; gap: .4rem; }
  .formula-timeline { display: block; margin-top: 2.4rem; }
  .formula-timeline::before { top: .43rem; right: auto; bottom: 1.9rem; left: .43rem; width: 1px; height: auto; }
  .timeline .formula-timeline__item { padding: 0 0 2.1rem 2.2rem; }
  .timeline .timeline-kind { min-height: 0; }
  .timeline h3 { max-width: none; }
  .inline-form { grid-template-columns: 1fr; }
  .footer-row { align-items: flex-start; flex-direction: column; padding: 1.25rem 0; }
}
@media (max-width: 430px) {
  .ingredient-preview-list { grid-template-columns: 1fr; }
  .wear-shift { gap: .6rem; }
  .wear-shift strong { font-size: 1.45rem; }
  .wear-shift__arrow { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .current-formula-indicator { animation: none; } }

.admin-body { background: #f3f2ef; font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.45; }
.admin-shell { width: min(100% - 2rem, 92rem); margin-inline: auto; }
.admin-header { border-bottom: 1px solid #ccc7bd; background: #fff; }
.admin-header .admin-shell { display: flex; min-height: 4rem; align-items: center; justify-content: space-between; gap: 1rem; }
.admin-nav { display: flex; gap: .85rem 1.1rem; flex-wrap: wrap; padding-block: 1rem; border-bottom: 1px solid #d6d1c8; }
.admin-nav a { color: #38342f; font-size: .76rem; }
.admin-main { padding: 2.5rem 0 5rem; overflow-x: auto; }
.admin-main h1 { font-size: 2.25rem; }
.admin-main h2 { font-size: 1.35rem; }
.admin-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.admin-metrics { display: grid; grid-template-columns: repeat(4, minmax(9rem, 1fr)); gap: 1px; background: #cbc6bd; border: 1px solid #cbc6bd; margin: 1.5rem 0 2.5rem; }
.admin-metrics p { display: flex; flex-direction: column; margin: 0; padding: 1.1rem; background: #fff; }
.admin-metrics strong { font-size: 1.8rem; font-weight: 600; }
.admin-metrics span { color: #6c665f; font-size: .78rem; }
.admin-section { margin-top: 2.5rem; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: .78rem; }
th, td { padding: .68rem .6rem; text-align: left; vertical-align: top; border-bottom: 1px solid #ddd8cf; }
th { color: #5b554f; background: #ece9e3; font-size: .7rem; letter-spacing: .025em; text-transform: uppercase; }
.record-details { display: grid; grid-template-columns: minmax(10rem, 16rem) 1fr; margin: 0; background: #fff; border-top: 1px solid #d7d2c9; }
.record-details dt, .record-details dd { margin: 0; padding: .75rem; border-bottom: 1px solid #d7d2c9; }
.record-details dt { color: #625c55; font-weight: 650; }
.record-details dd { min-width: 0; overflow-wrap: anywhere; }
pre { max-height: 34rem; overflow: auto; margin: 0; padding: 1rem; color: #24211f; background: #ece9e3; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .75rem; white-space: pre-wrap; }
.admin-form { max-width: 52rem; }
.admin-login { max-width: 30rem; margin: 8vh auto; }
.admin-context { display: grid; grid-template-columns: repeat(3, minmax(12rem, 1fr)); gap: 1px; margin: 1.5rem 0 2.5rem; border: 1px solid #d2cdc3; background: #d2cdc3; }
.admin-context p { display: flex; flex-direction: column; margin: 0; padding: .8rem; background: #fff; }
.admin-context strong { color: #69625b; font-size: .68rem; text-transform: uppercase; }
.admin-evidence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.evidence-image { display: block; width: 100%; max-height: 38rem; object-fit: contain; background: #dedbd5; }
@media (max-width: 800px) { .admin-metrics, .admin-context, .admin-evidence-grid { grid-template-columns: 1fr; } }
.spaced-note { margin-top: 1.5rem; }
.compact-note { margin-top: .7rem; font-size: .85rem; }
