/*
 * Design tokens: the single source for colour, type, spacing and focus values.
 * style.css and the block editor both load this file; theme.json mirrors the
 * subset WordPress needs for editor presets. Do not redeclare these values in
 * style.css or editor-style.css.
 */

:root {
  --hopa-canvas: #f3f0e8;
  --hopa-paper: #fbfaf6;
  --hopa-ink: #142019;
  --hopa-muted: #566159;
  --hopa-forest: #176b4a;
  --hopa-ember: #e2633b;
  --hopa-ember-text: #a94329;
  --hopa-line: #cbc7bc;
  --hopa-soft: #e5eadf;
  --hopa-danger: #9d241c;
  --hopa-zalo: #0068ff;
  --hopa-zalo-on: #fff;
  --hopa-text-xs: 0.75rem;
  --hopa-text-sm: 0.875rem;
  --hopa-text-body: 0.95rem;
  --hopa-text-base: 1rem;
  --hopa-text-lead: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  --hopa-text-h3: clamp(1.15rem, 1rem + 0.65vw, 1.6rem);
  --hopa-text-h2: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
  --hopa-text-h2-lg: clamp(2rem, 1.5rem + 1.8vw, 3rem);
  --hopa-text-h1: clamp(2.4rem, 1.9rem + 1.6vw, 3.25rem);
  --hopa-text-display: clamp(3.125rem, 2.2rem + 2.6vw, 4.5rem);
  --hopa-text-numeral: clamp(8.5rem, 12vw, 11rem);
  --hopa-text-step: 1.6rem;
  --hopa-font: "Be Vietnam Pro", system-ui, sans-serif;
  --hopa-display-font: "Newsreader", Georgia, serif;
  --hopa-max: 76rem;
  --hopa-reading: 68ch;
  --hopa-section-space: clamp(3rem, 5vw, 4.5rem);
  --hopa-section-space-compact: clamp(2.5rem, 4vw, 3.5rem);
  --hopa-header-offset: 5rem;
  /* Height of the sticky jump-pill bar (2.75rem pill floor + 2 x 0.5rem list
     padding + 1px border) plus a 2px sub-pixel buffer. Anchor scrolling must
     clear the bar itself, not only the header. */
  --hopa-jump-offset: 4rem;
  /* Vertical padding that separates a service section edge from its eyebrow. */
  --hopa-service-inset: clamp(1.6rem, 3vw, 2.4rem);
  --hopa-focus: 3px solid var(--hopa-ember);
  color-scheme: light;
  font-family: var(--hopa-font);
  scroll-behavior: smooth;
}

/* Phone sizes stay inherited from :root instead of restyling each heading. */
@media (max-width: 36.25rem) {
  :root {
    --hopa-text-display: 2.8125rem;
    --hopa-text-numeral: clamp(8rem, 32vw, 12rem);
  }
}
