/* Hekta - shared editorial (blog) body for static pages.
   The bespoke part of the editorial tier: one narrow reading column, one calm
   warm surface, generous rhythm, Marcellus display headings over Nunito Sans
   body. No tinted bands, no feature cards, no grids, no marketing furniture.
   Static only: no JS, just a reduced-motion-safe load fade.

   Owner of the .ed-* body classes shared by /about and the editorial guide
   pages. A new editorial page is created by linking site-fonts.css +
   site-chrome.css + this file and using .ed-* markup; do not copy these rules
   per page. The site chrome (nav/footer) lives in site-chrome.css.

   Color tokens mirror src/styles/tokens.css (a Vite build input). Fonts come
   from site-fonts.css. The site rulebook avoids CSS gradients, so the body
   rests on a single solid surface. This file also owns the global reset and
   base typography for the page. */

:root {
  --ed-ink: #1a181b;
  --ed-ink-2: #494949;
  --ed-ink-3: #737373;
  --ed-surface: #faf7f2; /* warm off-white reading surface */
  --ed-border: #ece7df;
  --ed-blue: #1a90ff;
  --ed-blue-hover: #087fe9;
  --ed-flame: #ff5500;
  --ed-display: var(--hk-display); /* Marcellus, from site-fonts.css */
  --ed-body: var(--hk-body);       /* Nunito Sans, from site-fonts.css */
  --ed-col: 40rem;                 /* the reading column */
  --ed-edge: clamp(22px, 6vw, 40px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--ed-surface);
  color: var(--ed-ink-2);
  font-family: var(--ed-body);
  font-size: 19px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--ed-blue);
  text-decoration: none;
}

a:hover {
  color: var(--ed-blue-hover);
  text-decoration: underline;
}

h1,
h2,
h3 {
  color: var(--ed-ink);
  font-family: var(--ed-display);
  font-weight: 400;
  line-height: 1.08;
}

/* The article bands share one narrow column so the page reads as one piece. */
.ed-hero-inner,
.ed-body,
.ed-maker-inner,
.ed-related {
  max-width: var(--ed-col);
  margin: 0 auto;
  padding-inline: var(--ed-edge);
}

/* ---------- Hero (single column, article header) ---------- */
.ed-hero-inner {
  padding-top: clamp(40px, 8vw, 76px);
}

.ed-eyebrow {
  margin-bottom: 18px;
  font-family: var(--ed-body);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ed-ink-3);
}

.ed-hero h1 {
  font-size: clamp(40px, 8vw, 64px);
}

.ed-lede {
  margin-top: 24px;
  font-size: clamp(20px, 2.6vw, 24px);
  line-height: 1.5;
  color: var(--ed-ink-2);
}

/* Optional hero illustration (used by /about; the SEO guide pages omit it). */
.ed-hero-art {
  margin-top: clamp(36px, 6vw, 56px);
}

.ed-hero-art img {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

/* ---------- Body sections (flowing prose) ---------- */
.ed-body {
  padding-top: clamp(36px, 6vw, 64px);
}

.ed-section {
  padding-block: clamp(36px, 6vw, 60px);
  border-top: 1px solid var(--ed-border);
}

.ed-section h2 {
  margin-bottom: 22px;
  font-size: clamp(30px, 6vw, 42px);
}

.ed-section p + p {
  margin-top: 1.25em;
}

.ed-section ol,
.ed-section ul {
  margin-top: 1.25em;
  padding-left: 1.3em;
}

.ed-section li + li {
  margin-top: 0.6em;
}

/* Emphasis on a single existing sentence; words unchanged, weight/color only. */
.ed-flameline {
  color: var(--ed-ink);
  font-weight: 700;
}

/* Supporting points as quiet inline beats, not cards or a grid. */
.ed-beats {
  margin-top: clamp(32px, 5vw, 44px);
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 32px);
}

.ed-beat h3 {
  margin-bottom: 6px;
  font-size: 21px;
}

.ed-beat h3::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 11px;
  border-radius: 50%;
  background: var(--ed-flame);
  vertical-align: middle;
}

.ed-beat p {
  font-size: 17px;
  color: var(--ed-ink-2);
}

/* ---------- Maker note (used by /about) ---------- */
.ed-maker-inner {
  padding-top: clamp(36px, 6vw, 60px);
  padding-bottom: clamp(48px, 8vw, 96px);
  border-top: 1px solid var(--ed-border);
}

.ed-maker h2 {
  margin-bottom: 22px;
  font-size: clamp(30px, 6vw, 42px);
}

.ed-maker p:first-of-type {
  font-size: clamp(19px, 2.2vw, 22px);
  line-height: 1.6;
  color: var(--ed-ink);
}

.ed-maker p + p {
  margin-top: 1.25em;
}

/* ---------- Mascot row (press kit cast; content, not decoration) ---------- */
.ed-mascots {
  margin-top: 1.25em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.ed-mascots img {
  width: 72px;
  height: 72px;
}

/* ---------- Related (quiet internal-link list, not a funnel band) ---------- */
.ed-related {
  padding-block: clamp(36px, 6vw, 56px);
  border-top: 1px solid var(--ed-border);
}

.ed-related h2 {
  margin-bottom: 16px;
  font-size: clamp(22px, 4vw, 28px);
}

.ed-related-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ed-related-links a {
  font-size: 17px;
  font-weight: 650;
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  body {
    font-size: 17px;
  }
}

/* Subtle, reduced-motion-safe entrance for the article header (no JS, on load). */
@media (prefers-reduced-motion: no-preference) {
  .ed-eyebrow,
  .ed-hero h1,
  .ed-lede {
    animation: ed-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .ed-hero h1 {
    animation-delay: 0.05s;
  }

  .ed-lede {
    animation-delay: 0.12s;
  }

  @keyframes ed-rise {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
