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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--size-base);
  line-height: 1.55;
}

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

h1, h2, h3 { line-height: 1.15; margin: 0; }

button { font: inherit; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

a { color: var(--accent); }

.wrap {
  width: min(100% - 2.5rem, 760px);
  margin-inline: auto;
}

.site-header {
  padding: var(--space-4) 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--size-md);
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand svg { width: 26px; height: 26px; }

.site-footer {
  padding: var(--space-6) 0 var(--space-7);
  color: var(--ink-faint);
  font-size: var(--size-xs);
  text-align: center;
}

.view { display: none; }
.view.is-active { display: block; }

/* Sections carry the vertical rhythm; components stay margin-quiet. */
.section { margin-top: var(--space-7); }
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--size-xl);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.section-sub {
  margin: var(--space-2) 0 0;
  color: var(--ink-soft);
  font-size: var(--size-sm);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  /* iteration-count matters: without it, infinite spinner/shimmer loops
     restart every 0.01ms and strobe instead of stopping. */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
