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

html {
  scrollbar-gutter: stable;
  color-scheme: var(--color-scheme);
}

body {
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.6;
  background: var(--bg-0);
  color: var(--fg-2);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  transition: var(--transition-theme);
}

.site-layout {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0 auto;
}

/* Header and footer run edge to edge; their contents stay on the grid. */
.site-chrome {
  width: 100%;
}

/* Archive-goal strip above the header. */
.archive-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 40px;
  padding: var(--space-2) var(--gutter);
  background: var(--strip-bg);
  color: var(--strip-fg);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
}

.archive-strip__title { font-weight: 600; }

.archive-strip__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--strip-sep);
}

.archive-strip__count { color: var(--strip-dim); }

.archive-strip__cta {
  color: var(--strip-link);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.archive-strip:hover .archive-strip__cta { text-decoration: underline; }

@media (max-width: 560px) {
  .archive-strip__title,
  .archive-strip__dot { display: none; }
}

.site-chrome--header {
  background: var(--bg-0);
  border-bottom: 1px solid var(--rule);
}

.site-chrome--footer {
  margin-top: var(--section-gap);
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
}

.site-layout--narrow .page-shell {
  max-width: calc(420px + 2 * var(--gutter));
}

.page-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: var(--page-top) var(--gutter) 0;
}

.page-shell--narrow {
  max-width: calc(420px + 2 * var(--gutter));
}

.page-shell--content {
  max-width: calc(var(--reading-max) + 2 * var(--gutter));
}

body.page--login .page-shell {
  padding-top: 10vh;
}

.page-content {
  flex: 1;
}

.container {
  max-width: 640px;
  width: 100%;
  margin-top: 2rem;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--fg-0);
  letter-spacing: -0.018em;
}

h1 {
  font-size: 2.6rem;
  line-height: 1.04;
  margin-bottom: 0.25rem;
  letter-spacing: -0.022em;
}

.subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--fg-4);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

:where(a) { color: var(--accent); text-decoration: none; }
:where(a:hover) { color: var(--accent-hover); }

/* Prose keeps underlined links, where they carry meaning mid-sentence. */
.public-page__body a,
.analysis-summary a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* The small-caps label that opens an editorial section. */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm);
}

.meta-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-5);
}
