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

html {
  color-scheme: light;
}

body {
  margin: 0;
  font-family: "Noto Sans", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.625;
  min-height: 100vh;
}

h1,
h2,
h3 {
  margin: 0 0 var(--space-3);
  font-family: "Noto Serif", Merriweather, Georgia, serif;
  color: var(--text-primary);
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.125rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(1.375rem, 3vw, 1.625rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.125rem, 2.4vw, 1.25rem);
  font-weight: 600;
}

p,
li {
  font-size: 1.0625rem;
  line-height: 1.65;
  margin: 0 0 var(--space-3);
}

a {
  color: var(--brand-ink);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.15em;
}

button,
input {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-2);
  background: var(--brand-navy);
  color: var(--text-on-brand);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  z-index: 1000;
}

.skip-link:focus {
  left: var(--space-2);
}

.label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-2);
}

.input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--surface-primary);
  padding: 0 var(--space-3);
  color: var(--text-primary);
}

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

details > summary {
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
