/*
 * base.css — typography baseline, reset, link, focus.
 * Uses only tokens from tokens.css. No component styling here.
 */

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

html,
body {
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--surface-page);
  color: var(--ink-on-page);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote {
  margin: 0;
}

h1 {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  letter-spacing: var(--ls-h1);
  font-weight: var(--fw-heading);
  text-transform: uppercase;
  color: var(--ink-on-page);
}

h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  font-weight: var(--fw-heading);
  text-transform: uppercase;
  color: var(--ink-on-page);
}

h3 {
  font-family: var(--font-subhead);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  letter-spacing: var(--ls-h3);
  font-weight: var(--fw-subhead);
  font-style: italic;
  color: var(--ink-on-page);
}

p {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

a {
  color: var(--c-bottle-green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--dur-base) var(--ease-default);
}

a:hover {
  text-decoration-color: var(--c-lemon-rind);
}

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

button {
  font-family: var(--font-ui);
}

:focus-visible {
  outline: 2px solid var(--c-lemon);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection {
  background-color: var(--c-lemon-soft);
  color: var(--c-ink);
}

@media (max-width: 768px) {
  :root {
    --fs-display: 48px;
    --fs-h1:      33px;
    --fs-h2:      21px;
  }
}

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