/* ==========================================================================
   intermittentfasting.com — stylesheet
   Plain CSS, no build step. Custom properties at :root drive the whole theme.
   ========================================================================== */

:root {
  --ink:        #1b2420;
  --ink-soft:   #4a5a52;
  --ink-faint:  #7c8b83;
  --paper:      #fbfaf6;
  --paper-warm: #f4f1e8;
  --line:       #e2ded1;

  --green:      #2f5d4f;
  --green-deep: #1e3f35;
  --green-pale: #e8f0ea;
  --amber:      #c8873f;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans:  ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1120px;
  --measure: 68ch;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(27, 36, 32, .04), 0 8px 24px rgba(27, 36, 32, .06);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--green-deep); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.15em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.measure { max-width: var(--measure); }
.center { text-align: center; margin-inline: auto; }

/* --- Skip link ----------------------------------------------------------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--green); color: #fff; padding: 10px 18px; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 246, .88);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }

.brand {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600;
  color: var(--ink); text-decoration: none; letter-spacing: -.01em; white-space: nowrap;
}
.brand span { color: var(--green); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-size: .94rem; font-weight: 500;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--green); }

.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 12px; font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-top: 1px solid var(--line); }
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-block; border: 1px solid transparent; border-radius: 999px;
  padding: 13px 28px; font: inherit; font-size: .97rem; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); background: var(--green-pale); }

/* --- Hero ---------------------------------------------------------------- */
.hero { padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 88px); }
.hero .eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 18px;
}
.hero p.lede { font-size: clamp(1.08rem, 2vw, 1.28rem); color: var(--ink-soft); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* --- Sections ------------------------------------------------------------ */
.section { padding: clamp(52px, 7vw, 88px) 0; }
.section-alt { background: var(--paper-warm); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 44px; }
.section-head p { color: var(--ink-soft); max-width: 60ch; margin-bottom: 0; }

/* --- Card grid ----------------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(27,36,32,.05), 0 14px 32px rgba(27,36,32,.09); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-soft); font-size: .96rem; margin-bottom: 0; }
.card .tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--green); background: var(--green-pale);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}

/* --- Method comparison table -------------------------------------------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--sans); font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
tbody tr:last-child td { border-bottom: 0; }

/* --- eBook panel --------------------------------------------------------- */
.ebook-panel {
  display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: center;
}
@media (max-width: 720px) { .ebook-panel { grid-template-columns: 1fr; gap: 32px; } }

.book-cover {
  aspect-ratio: 3 / 4; border-radius: 4px 8px 8px 4px;
  background: linear-gradient(150deg, var(--green-deep), var(--green));
  color: #fff; padding: 34px 28px; display: flex; flex-direction: column;
  box-shadow: -3px 0 0 rgba(0,0,0,.18) inset, 0 18px 40px rgba(27,36,32,.22);
}
.book-cover .kicker { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; opacity: .72; }
.book-cover .title { font-family: var(--serif); font-size: 1.6rem; line-height: 1.15; margin-top: auto; }
.book-cover .rule { width: 34px; height: 2px; background: var(--amber); margin: 16px 0 12px; }
.book-cover .sub { font-size: .82rem; opacity: .8; }

/* --- Email capture ------------------------------------------------------- */
.signup { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; max-width: 480px; }
.signup input[type="email"] {
  flex: 1 1 220px; padding: 13px 16px; font: inherit; font-size: .97rem;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink);
}
.signup input[type="email"]:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
/* Consent checkbox. flex-basis:100% drops it onto its own row beneath the
   input and button, which are flex children of .signup. */
.consent {
  flex: 1 0 100%; display: flex; align-items: flex-start; gap: 9px;
  margin: 4px 0 0; font-size: .84rem; line-height: 1.45; color: var(--ink-soft);
}
.consent input[type="checkbox"] {
  flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--green);
}
.consent label { cursor: pointer; }
.hero-bold .consent { color: rgba(255, 255, 255, .8); }
.hero-bold .consent a { color: #fff; }

/* Honeypot: off-screen rather than display:none, because some bots skip
   hidden fields. aria-hidden and tabindex="-1" keep it away from people. */
.hp {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; margin: 0;
}

.form-note { font-size: .84rem; color: var(--ink-faint); margin-top: 12px; }
.form-status { font-size: .92rem; margin-top: 12px; min-height: 1.4em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #a4402f; }

/* --- Article ------------------------------------------------------------- */
.article { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.article-head { max-width: var(--measure); margin-bottom: 40px; }
.article-meta { font-size: .85rem; color: var(--ink-faint); margin-bottom: 14px; }
.article-body { max-width: var(--measure); font-size: 1.06rem; }
.article-body h2 { margin-top: 1.9em; }
.article-body h3 { margin-top: 1.6em; font-family: var(--sans); font-weight: 700; font-size: 1.05rem; }
.article-body ul, .article-body ol { padding-left: 1.3em; margin: 0 0 1.15em; }
.article-body li { margin-bottom: .5em; }
.article-body blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--amber);
  color: var(--ink-soft); font-style: italic;
}

.callout {
  background: var(--green-pale); border: 1px solid #cfe0d4; border-radius: var(--radius);
  padding: 22px 24px; margin: 2em 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--green-deep); }

.callout-warn { background: #fdf3e7; border-color: #f0dcc0; }
.callout-warn strong { color: #8a5a1c; }

/* --- Byline and author note ---------------------------------------------- */
.byline {
  display: flex; align-items: center; gap: 12px;
  font-size: .9rem; color: var(--ink-soft); margin-bottom: 16px;
}
.byline .avatar {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: var(--green); color: #fff; font-family: var(--serif);
  font-size: 1rem; display: grid; place-items: center; letter-spacing: .02em;
}
.byline .who { font-weight: 600; color: var(--ink); }
.byline .when { color: var(--ink-faint); }

.author-note {
  display: flex; gap: 18px; align-items: flex-start;
  border-top: 1px solid var(--line); margin-top: 3em; padding-top: 26px;
  font-size: .93rem; color: var(--ink-soft);
}
.author-note .avatar {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  background: var(--green); color: #fff; font-family: var(--serif);
  font-size: 1.25rem; display: grid; place-items: center;
}
.author-note p { margin-bottom: .6em; }
.author-note p:last-child { margin-bottom: 0; }
.author-note strong { color: var(--ink); }

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--green-deep); color: #cddbd2; padding: 56px 0 32px; margin-top: 0;
  font-size: .93rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer h4 {
  color: #fff; font-family: var(--sans); font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-brand { font-family: var(--serif); font-size: 1.2rem; color: #fff; margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); margin-top: 44px; padding-top: 24px;
  font-size: .85rem; color: #9fb3a8;
}
.footer-bottom p { margin-bottom: .6em; }

/* --- Hype hero ------------------------------------------------------------
   The home page hero runs on a dark gradient so the headline and the
   proof numbers carry more weight than body copy would on paper.
   ------------------------------------------------------------------------ */
.hero-hype {
  background: linear-gradient(155deg, var(--green-deep) 0%, var(--green) 62%, #3a7060 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero-hype::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 90% at 85% 10%, rgba(200,135,63,.28), transparent 60%);
}
.hero-hype .wrap { position: relative; z-index: 1; }
.hero-hype h1 { color: #fff; }
.hero-hype .eyebrow { color: #f0c48a; }
.hero-hype p.lede { color: rgba(255,255,255,.88); }
.hero-hype .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.hero-hype .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.hero-hype .btn-primary { background: var(--amber); color: #23180c; }
.hero-hype .btn-primary:hover { background: #d9974c; color: #23180c; }

.hero-trust {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px;
  margin-top: 30px; font-size: .88rem; color: rgba(255,255,255,.8);
}
.hero-trust .stars { color: rgba(255,255,255,.35); }
.hero-trust strong { color: #fff; }

/* --- Stat strip ---------------------------------------------------------- */
.stat-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin-top: 44px;
}
.stat-strip .stat { background: var(--paper); padding: 26px 24px; text-align: center; }
.hero-hype .stat-strip { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.22); }
.hero-hype .stat-strip .stat { background: rgba(0,0,0,.16); }
.hero-hype .stat-num { color: #f6d3a4; }
.hero-hype .stat-label { color: rgba(255,255,255,.78); }

.stat-num {
  display: block; font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1; letter-spacing: -.02em; color: var(--green-deep);
  font-variant-numeric: tabular-nums;
}
.stat-label { display: block; font-size: .86rem; color: var(--ink-soft); margin-top: 10px; }

/* --- Proof cards --------------------------------------------------------- */
.proof {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--amber);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.proof .headline {
  display: block; font-family: var(--serif); font-size: 2.1rem; line-height: 1;
  color: var(--green-deep); letter-spacing: -.02em; margin-bottom: 12px;
}
.proof h3 { margin-bottom: .5em; }
.proof p { color: var(--ink-soft); font-size: .96rem; }
.proof .cite-line {
  display: block; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: .8rem; color: var(--ink-faint);
}
.proof .cite-line a { color: var(--ink-faint); }

/* --- Check list ---------------------------------------------------------- */
.check-list { list-style: none; padding: 0; margin: 0 0 1.15em; }
.check-list li {
  position: relative; padding-left: 32px; margin-bottom: .8em;
}
.check-list li::before {
  content: "\2713"; position: absolute; left: 0; top: -1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-pale); color: var(--green-deep);
  font-size: .78rem; font-weight: 700; display: grid; place-items: center;
}

/* --- CTA band ------------------------------------------------------------ */
.cta-band {
  background: var(--green-deep); color: #fff;
  padding: clamp(48px, 7vw, 76px) 0; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 56ch; margin-inline: auto; }
.cta-band .btn-primary { background: var(--amber); color: #23180c; }
.cta-band .btn-primary:hover { background: #d9974c; color: #23180c; }
.cta-band .signup { margin-inline: auto; justify-content: center; }
.cta-band .form-note, .cta-band .counter-live { color: rgba(255,255,255,.7); justify-content: center; }

/* --- Pull stat (in articles) --------------------------------------------- */
.pull-stat {
  border-left: 4px solid var(--amber); background: var(--paper-warm);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px; margin: 2em 0;
}
.pull-stat .big {
  display: block; font-family: var(--serif); font-size: 2.3rem; line-height: 1;
  color: var(--green-deep); letter-spacing: -.02em; margin-bottom: 8px;
}
.pull-stat p { margin-bottom: 0; color: var(--ink-soft); font-size: .96rem; }
.pull-stat .src { display: block; margin-top: 12px; font-size: .8rem; color: var(--ink-faint); }

/* --- Bold hero ----------------------------------------------------------- */
.hero-bold {
  background: linear-gradient(160deg, var(--green-deep) 0%, var(--green) 65%, #3a7060 100%);
  color: #fff;
}
.hero-bold h1 { color: #fff; }
.hero-bold .eyebrow { color: #f2c684; }
.hero-bold p.lede { color: rgba(255, 255, 255, .88); max-width: 60ch; }
.hero-bold .btn-primary { background: var(--amber); color: #22160a; }
.hero-bold .btn-primary:hover { background: #dd9a4d; color: #22160a; }
.hero-bold .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.hero-bold .btn-ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }
.hero-bold .hero-foot { margin-top: 30px; font-size: .88rem; color: rgba(255, 255, 255, .72); }
.hero-bold .hero-foot .stars { vertical-align: -2px; margin-right: 8px; }

/* --- Stat band ----------------------------------------------------------- */
.stat-band {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px 24px;
}
.stat { text-align: center; }
.stat-num {
  display: block; font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1; color: var(--green); letter-spacing: -.02em;
}
.stat-num small { font-size: .5em; letter-spacing: 0; }
.stat-label { display: block; margin-top: 12px; font-size: .95rem; color: var(--ink); font-weight: 600; }
.stat-src { display: block; margin-top: 6px; font-size: .76rem; color: var(--ink-faint); }
.stat-src a { color: inherit; }

/* --- Hour-by-hour phases ------------------------------------------------- */
.phases { list-style: none; padding: 0; margin: 0; }
.phase {
  display: grid; grid-template-columns: 130px 1fr; gap: 28px;
  padding: 24px 0; border-top: 1px solid var(--line);
}
.phase:last-child { border-bottom: 1px solid var(--line); }
.phase-hour {
  font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; color: var(--amber);
  letter-spacing: -.01em;
}
.phase h3 { margin-bottom: .35em; }
.phase p { margin-bottom: 0; color: var(--ink-soft); font-size: .97rem; }
@media (max-width: 620px) {
  .phase { grid-template-columns: 1fr; gap: 8px; }
  .phase-hour { font-size: 1.15rem; }
}

/* --- Star ratings --------------------------------------------------------
   Two stacked rows of stars. The filled row is clipped with an inline
   width (e.g. style="width:90%") so half stars work without images.
   ------------------------------------------------------------------------ */
.stars {
  position: relative; display: inline-block; white-space: nowrap;
  font-size: 1rem; line-height: 1; letter-spacing: .1em; color: #d8d2c1;
  /* Shrink to the width of the five glyphs. Without this the element
     stretches as a flex item and the inline fill percentage is measured
     against the wrong box, so every rating renders as five stars. */
  width: max-content; align-self: flex-start;
}
.stars::before { content: "\2605\2605\2605\2605\2605"; }
.stars i {
  position: absolute; top: 0; left: 0; bottom: 0;
  overflow: hidden; font-style: normal; color: var(--amber);
}
.stars i::before { content: "\2605\2605\2605\2605\2605"; }
.stars-lg { font-size: 1.35rem; }

/* --- Testimonials -------------------------------------------------------- */
.testimonial {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; margin: 0;
}
.testimonial .stars { margin-bottom: 16px; }
.testimonial blockquote {
  margin: 0 0 20px; padding: 0; border: 0; font-style: normal;
  font-family: var(--serif); font-size: 1.05rem; line-height: 1.55; color: var(--ink);
}
.testimonial blockquote p:last-child { margin-bottom: 0; }
.testimonial figcaption {
  display: flex; align-items: center; gap: 12px;
  margin-top: auto; padding-top: 4px; font-size: .88rem; color: var(--ink-faint);
}
.testimonial figcaption .avatar {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: var(--green-pale); color: var(--green-deep);
  font-family: var(--serif); font-size: .95rem;
  display: grid; place-items: center; letter-spacing: .02em;
}
.testimonial figcaption .who { display: block; font-weight: 600; color: var(--ink); }

/* --- Rating summary and review list -------------------------------------- */
.rating-panel {
  display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 32px; box-shadow: var(--shadow);
}
@media (max-width: 640px) { .rating-panel { grid-template-columns: 1fr; gap: 24px; } }

.rating-score { text-align: center; }
.rating-score .score {
  display: block; font-family: var(--serif); font-size: 3.2rem; line-height: 1;
  color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.rating-score .out-of { display: block; font-size: .84rem; color: var(--ink-faint); }
.rating-score .stars { margin: 12px auto 8px; }

.rating-bars { list-style: none; margin: 0; padding: 0; }
.rating-bars li {
  display: grid; grid-template-columns: 52px 1fr 48px; align-items: center;
  gap: 12px; font-size: .85rem; color: var(--ink-faint); margin-bottom: 8px;
}
.rating-bars li:last-child { margin-bottom: 0; }
.rating-bars .track {
  display: block; height: 8px; border-radius: 999px; background: var(--paper-warm);
  border: 1px solid var(--line); overflow: hidden;
}
.rating-bars .fill { display: block; height: 100%; background: var(--amber); }
.rating-bars .pct { text-align: right; font-variant-numeric: tabular-nums; }

.review-list { list-style: none; margin: 32px 0 0; padding: 0; }
.review {
  border-top: 1px solid var(--line); padding: 24px 0;
}
.review-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin-bottom: 10px;
}
.review-head .who { font-weight: 600; color: var(--ink); }
.review-head .when { font-size: .82rem; color: var(--ink-faint); }
.review h3 { font-family: var(--sans); font-size: 1rem; margin: 8px 0 6px; }
.review p { margin-bottom: 0; color: var(--ink-soft); font-size: .97rem; }
.verified {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--green); background: var(--green-pale); border-radius: 999px; padding: 3px 9px;
}

/* --- Download counter ---------------------------------------------------- */
.counter {
  display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 20px; margin: 0 0 4px; box-shadow: var(--shadow);
}
.counter-num {
  font-family: var(--serif); font-size: 1.85rem; line-height: 1.1; color: var(--green-deep);
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.counter-label { font-size: .9rem; color: var(--ink-soft); }
.counter-live {
  display: flex; align-items: center; gap: 7px;
  font-size: .8rem; color: var(--ink-faint); margin-top: 10px;
}
.counter-live .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--amber);
  animation: pulse 2.4s ease-in-out infinite;
}
.counter-num.is-bumped { animation: bump .45s ease-out; }

@keyframes bump {
  0%   { transform: translateY(0);    color: var(--green-deep); }
  35%  { transform: translateY(-3px); color: var(--amber); }
  100% { transform: translateY(0);    color: var(--green-deep); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .25; }
}
@media (prefers-reduced-motion: reduce) {
  .counter-num.is-bumped { animation: none; }
  .counter-live .dot { animation: none; }
}

/* --- References ---------------------------------------------------------- */
.article-body blockquote cite {
  display: block; margin-top: .7em; font-style: normal;
  font-size: .85rem; color: var(--ink-faint);
}
.article-body blockquote cite em { font-style: italic; }

.references {
  list-style: decimal; padding-left: 1.4em; margin: 1.4em 0 0;
  font-size: .88rem; color: var(--ink-soft);
}
.references li { margin-bottom: .8em; }
.references li:target { background: var(--green-pale); border-radius: 4px; }
.references a { word-break: break-word; }

.ref-note { font-size: .85rem; color: var(--ink-faint); }

sup.ref { font-size: .72em; line-height: 0; }
sup.ref a { text-decoration: none; padding: 0 1px; }
sup.ref a:hover { text-decoration: underline; }

/* --- Utilities ----------------------------------------------------------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0; }
.mt-lg { margin-top: 36px; }
.mb-0 { margin-bottom: 0; }
