/* editorial — base
 *
 * Element-level styling. Touches only HTML primitives.
 * For class-based components, see components.css.
 */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  transition: color 0.25s ease, background 0.25s ease;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); margin-bottom: var(--s-4); }
h3 { font-size: var(--fs-h3); }
h4 {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

p {
  margin: 0 0 var(--s-2);
}

a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
a:hover { color: var(--color-accent); border-color: var(--color-accent); }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

input,
textarea,
button,
select {
  font: inherit;
}

ul, ol {
  padding-left: var(--s-3);
}

button {
  color: inherit;
}

[hidden] {
  display: none !important;
}

::selection {
  color: var(--color-accent-text);
  background: var(--color-accent);
}
