/* ==========================================================================
   ANewLog — Global Styling Foundation
   Ported from REFERENCE/APPROVED-PROTOTYPE/css/style.css: the reset,
   global typography classes, and generic layout primitives (.container,
   .section, .grid, .hairline). Depends on design-tokens.css being enqueued
   first.

   Deliberately NOT included here (Phase C / page-build scope, not the
   global foundation): buttons, tags/pills, the header/mobile-nav/footer
   chrome, forms, cards, and the recurring "spine" motif — those are
   components, not tokens/typography/layout, and get ported when the
   section that uses them is built.
   ========================================================================== */

/* -------------------------------- Reset --------------------------------- */
/* Deliberately NOT ported from the prototype's reset block: a blanket
   `a{color:inherit;text-decoration:none}`, `ul{list-style:none}`, and
   `body/h1-h4/p{margin:0}`. The prototype is hand-authored static HTML with
   no other markup to coexist with; this site also renders core/plugin/
   Gutenberg-block output, where those blanket resets would strip WordPress's
   own link styling and fight Astra's block-level spacing everywhere, not
   just inside the custom-built sections. Astra's seeded Link/Hover colors
   (inc/astra-defaults.php) already give generic content links the correct
   on-brand color; any "no underline, inherit color" treatment for a specific
   component (nav, footer, cards) is applied scoped to that component's class
   when it's built, not globally. */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
img, svg{ display: block; max-width: 100%; }
button{ font: inherit; }
input, textarea{ font: inherit; }

body{
  font-family: var(--font-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
}

::selection{ background: var(--anl-blue); color: var(--anl-white); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible{
  outline: 2px solid var(--anl-cta);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ------------------------------ Typography ------------------------------- */
.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.eyebrow .tick{
  width: 14px;
  height: 1px;
  background: var(--anl-red);
  display: inline-block;
}

h1, .h1{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 5.4vw, 4.75rem);
  line-height: 1.03;
  letter-spacing: -0.01em;
  color: var(--ink-strong);
}
h2, .h2{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.005em;
  color: var(--ink-strong);
}
h3, .h3{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 1.8vw, 1.625rem);
  line-height: 1.25;
  color: var(--ink-strong);
}
.h4{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--ink-strong);
}
.lede{
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.65;
  color: var(--anl-dark-grey);
  max-width: 42ch;
}
p.body, .body-text{
  font-size: 1.0625rem;
  color: var(--anl-dark-grey);
  line-height: 1.75;
  max-width: 62ch;
}
.mono-label{
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.num{
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* -------------------------------- Layout --------------------------------- */
.container{
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--edge);
}
.section{
  padding-block: var(--sp-8);
  position: relative;
}
.section--tight{ padding-block: var(--sp-6); }
.section--dark{
  background: var(--surface-dark);
  color: var(--anl-white);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark .h1, .section--dark .h2{
  color: var(--anl-white);
}
.section--dark .lede, .section--dark .body-text{ color: #C3CBCF; }
.section--dark .eyebrow{ color: var(--muted-on-dark); }
.section--dark .mono-label{ color: var(--muted-on-dark); }

.grid{ display: grid; gap: var(--sp-5); }
@media (min-width: 900px){
  .grid-12{ grid-template-columns: repeat(12, 1fr); }
}

.hairline{
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}
.section--dark .hairline{ border-top-color: #3A4145; }
