/* GPT Bugs — base elements, page structure, skip link
   Monochrome, high contrast (WCAG AAA), one signal red reserved for danger. */

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

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

:focus-visible {
  outline: var(--rule) solid var(--ink);
  outline-offset: 3px;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

code,
pre,
kbd,
samp {
  font-family: var(--font-mono);
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Sections inside main run edge to edge; each one sets its own gutter. */
.site-main {
  flex: 1;
  padding-bottom: clamp(3rem, 2rem + 4vw, 6rem);
}

.site-main:focus {
  outline: none;
}

.page-head {
  padding: clamp(2rem, 1rem + 5vw, 5rem) var(--gutter) clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.page-head__lede {
  margin: 0;
  max-width: 52ch;
  font-size: var(--step-1);
  line-height: 1.35;
}

.page-head__meta {
  margin: 1.25rem 0 0;
  color: var(--ink-muted);
  font-size: var(--step--1);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.feed-stats {
  margin: 1.25rem 0 0;
  font-weight: 600;
}

.feed-stats strong {
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.feed-stats__open {
  color: var(--signal);
}

.site-main h1 {
  margin: 0 0 0.5em;
  max-width: 18ch;
  font-size: var(--step-3);
  font-weight: 900;
  font-stretch: 112%;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

/* Skip link -------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-110%);
}

.skip-link:focus-visible {
  transform: none;
  outline-color: var(--paper);
  outline-offset: -6px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
