

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-height) + var(--ticker-height) + 16px);
  background-color: var(--bg-parchment);
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--ink-primary);
  background-color: var(--bg-parchment);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(var(--ink-primary) 0.5px, transparent 0.5px);
  background-size: 24px 24px;
  opacity: 0.035;
  pointer-events: none;
  z-index: 9999;
}

:focus-visible {
  outline: 2px solid var(--accent-terracotta);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

:focus:not(:focus-visible) {
  outline: none;
}

::selection {
  background-color: var(--accent-terracotta);
  color: var(--ink-light);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-editorial),
              border-color var(--duration-fast) var(--ease-editorial);
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

input,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  color: var(--ink-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p {
  color: var(--ink-secondary);
  line-height: var(--lh-relaxed);
}

.text-serif {
  font-family: var(--font-serif);
}

.text-italic {
  font-style: italic;
}

.text-mono {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: -0.01em;
}

.text-terracotta {
  color: var(--accent-terracotta);
}

.text-muted {
  color: var(--ink-muted);
}

.section-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-terracotta);
  margin-bottom: var(--space-sm);
}

.section-meta::before {
  content: '✷';
  font-size: 0.9em;
}

.section-heading {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-md);
  font-weight: var(--fw-semibold);
}

.section-subheading {
  font-size: 1.05rem;
  color: var(--ink-secondary);
  max-width: 640px;
  line-height: var(--lh-relaxed);
}

.divider {
  width: 100%;
  height: 1px;
  background-color: var(--border-subtle);
  border: none;
  margin: var(--space-2xl) 0;
}

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