/* Jackson Mills Nutrition
   Native CSS only. No web fonts, no analytics, no third-party requests of any kind,
   because the privacy notice promises exactly that. System stack, worked hard.
   One accent. One corner radius (zero). One theme, light or dark by preference. */

:root {
  --surface:    #f6f6f4;
  --surface-2:  #eceae5;
  --ink:        #16181a;
  --ink-2:      #5c6063;
  --accent:     #a84a28;
  --accent-on:  #ffffff;
  --line:       #d6d4cd;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --nav-h: 68px;
  --pad: clamp(1.25rem, 5vw, 3rem);
  --shell: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface:    #131517;
    --surface-2:  #1b1e21;
    --ink:        #eceae5;
    --ink-2:      #9ba0a3;
    --accent:     #e0794f;
    --accent-on:  #131517;
    --line:       #2b2f33;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 20;
  background: var(--ink);
  color: var(--surface);
  padding: 0.7rem 1.1rem;
}
.skip:focus { left: 0; }

/* ---------------- nav ---------------- */

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.mark {
  font-size: 0.9375rem;
  font-weight: 620;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.mark span { color: var(--ink-2); font-weight: 400; }
.mark:hover { color: var(--accent); }

/* ---------------- hero, with the signup box in it ---------------- */

.hero { padding-block: clamp(2.5rem, 7vw, 5rem); }

.hero-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 56rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(3rem, 6vw, 5rem);
  }
  .hero-copy { padding-top: 0.5rem; }
}

.status {
  margin: 0 0 1.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0 0 1.4rem;
  font-size: clamp(2.2rem, 4.4vw, 3.1rem);
  font-weight: 640;
  line-height: 1.04;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.lede {
  margin: 0 0 1.6rem;
  max-width: 34ch;
  font-size: clamp(1.0625rem, 1.7vw, 1.1875rem);
  line-height: 1.45;
  color: var(--ink-2);
}

.hero-side {
  margin: 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  max-width: 34ch;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------------- the signup box ---------------- */

.form-box {
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
}

.form-box h2 {
  margin: 0 0 0.5rem;
  font-size: 1.375rem;
  font-weight: 620;
  letter-spacing: -0.022em;
  line-height: 1.15;
}

.form-intro {
  margin: 0 0 1.6rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.field { margin-bottom: 1rem; }

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.field input {
  width: 100%;
  padding: 0.8rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
}
.field input:focus-visible { border-color: var(--accent); outline-offset: 1px; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  margin: 1.2rem 0 1.5rem;
}
.consent input {
  margin: 0.25rem 0 0;
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
}
.consent label { font-size: 0.8125rem; line-height: 1.5; color: var(--ink-2); }

.btn {
  display: inline-block;
  width: 100%;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 560;
  text-align: center;
  padding: 0.85rem 1.6rem;
  color: var(--accent-on);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.2s, transform 0.12s;
}
.btn:hover { color: var(--accent-on); filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: default; }

.form-note {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.form-note.is-error { color: var(--accent); }
.form-note.is-ok { color: var(--ink); }

/* ---------------- the one content band ---------------- */

.lens {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(3rem, 7vw, 4.5rem);
}

.lens h2 {
  margin: 0 0 2.4rem;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 620;
  line-height: 1.12;
  letter-spacing: -0.026em;
  max-width: 20ch;
}

.triple { display: grid; gap: 0; }
@media (min-width: 48rem) { .triple { grid-template-columns: repeat(3, 1fr); } }

.triple p {
  margin: 0;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  font-size: 1.0625rem;
  line-height: 1.4;
  letter-spacing: -0.008em;
  text-wrap: balance;
}
@media (min-width: 48rem) {
  .triple p { padding: 1.5rem 2rem 0 0; }
  .triple p + p { padding-left: 2rem; border-left: 1px solid var(--line); }
}

/* ---------------- footer ---------------- */

.site-foot {
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
  color: var(--ink-2);
  font-size: 0.8125rem;
}

.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 56rem) {
  .foot-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 4rem; }
}

.disclaimer { line-height: 1.6; max-width: 66ch; }
.disclaimer strong { color: var(--ink); font-weight: 620; }

.foot-nav { display: grid; gap: 0.6rem; align-content: start; }
.foot-nav a { color: var(--ink-2); text-decoration: none; }
.foot-nav a:hover { color: var(--accent); text-decoration: underline; }
.foot-nav .copy { margin: 0.8rem 0 0; }

/* ---------------- inner document pages ---------------- */

.doc { padding-block: clamp(3rem, 7vw, 4.5rem); border-bottom: 1px solid var(--line); }
.doc .shell { max-width: 46rem; }

.doc h1 { font-size: clamp(1.9rem, 4.4vw, 2.7rem); margin-bottom: 0.7rem; }
.doc .updated {
  margin: 0 0 2.6rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.doc h2 {
  margin: 2.6rem 0 0.8rem;
  font-size: clamp(1.1875rem, 2.6vw, 1.4375rem);
  font-weight: 620;
  letter-spacing: -0.018em;
  line-height: 1.2;
}
.doc p { margin: 0 0 1.1rem; }
.doc ul { margin: 0 0 1.1rem; padding-left: 1.1rem; }
.doc li { margin-bottom: 0.5rem; }
.doc .back { display: inline-block; margin-top: 3rem; font-size: 0.9375rem; }

/* ---------------- scroll reveal ----------------
   Native scroll-driven animation. No library, no scroll listener. Content is
   visible by default, so browsers without support lose nothing. */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 2% entry 55%;
    }
    @keyframes rise {
      from { opacity: 0; transform: translateY(14px); }
      to   { opacity: 1; transform: none; }
    }
  }
}
