/* ============================================================
   hop & cotton — Base / reset
   Light-touch element defaults built on the tokens.
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  color: var(--text-body);
  background: var(--surface-page);
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Headings — Josefin Sans, light & airy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-strong);
  font-weight: var(--fw-light);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: var(--fw-regular); }
h4 { font-size: var(--fs-h4); font-weight: var(--fw-medium); }

p { margin: 0 0 var(--space-4); text-wrap: pretty; }

a {
  color: var(--text-strong);
  text-decoration: none;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: color var(--dur-fast) var(--ease-inout),
              opacity var(--dur-fast) var(--ease-inout);
}
a:hover { color: var(--action-primary); }

small { font-size: var(--fs-sm); }
strong, b { font-weight: var(--fw-semibold); }

hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: var(--space-6) 0;
}

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

::selection { background: var(--hc-rose-200); color: var(--text-strong); }

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-xs);
}

/* Layout helpers */
.hc-container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.hc-container--narrow { max-width: var(--container-narrow); }
.hc-section { padding-block: var(--section-y); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
