/**
 * Base — reset, typography, container, utilities
 */

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body-size);
  line-height: var(--text-body-lh);
  font-weight: 400;
  color: var(--color-ink);
  background: var(--color-surface);
  overflow-x: hidden;
}

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

a {
  color: var(--color-brand-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:visited {
  color: var(--color-brand-primary-hover);
}

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

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-12);
  color: var(--color-ink);
}

h1 {
  font-size: var(--text-h1-size);
  line-height: var(--text-h1-lh);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-lh);
  font-weight: 600;
}

h3 {
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-lh);
  font-weight: 600;
}

p {
  margin: 0 0 var(--space-16);
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--space-16);
  top: -100px;
  z-index: 10000;
  padding: var(--space-12) var(--space-20);
  background: var(--color-brand-primary);
  color: var(--color-on-primary);
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-16);
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Section helpers */
.section {
  padding-block: var(--section-pad-y);
}

.section--muted {
  background: var(--color-surface-muted);
}

.section--tint {
  background: var(--color-surface-tint);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-12);
  margin-bottom: var(--space-24);
}

@media (min-width: 1024px) {
  .section__head {
    margin-bottom: var(--space-32);
  }
}

.section__title {
  margin: 0;
}

.section__link {
  font-weight: 600;
  font-size: var(--text-body-size);
  white-space: nowrap;
}

/* Utilities */
.u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.u-text-muted {
  color: var(--color-ink-muted);
}

.u-text-sm {
  font-size: var(--text-body-sm-size);
  line-height: var(--text-body-sm-lh);
}

.u-caption {
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-lh);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.u-mt-0 { margin-top: 0; }
.u-mb-0 { margin-bottom: 0; }


/* Inner page titles — breathing room under header */
.entry-header,
.site-main > .container > article > .entry-title,
.entry-title {
  margin-top: 0;
}
.site-main--about > .container,
.site-main > .container:first-child {
  padding-top: clamp(2rem, 4vw, 3rem);
}
.entry-title {
  margin-bottom: 1.25rem;
}
