:root {
  --carbon: #17201e;
  --cobalt: #2448c8;
  --copper: #a8492b;
  --mineral: #a8b5b0;
  --mist: #dce3df;
  --porcelain: #f3f5f2;
  --display: "Arial Narrow", "Roboto Condensed", "Liberation Sans Narrow", sans-serif;
  --body: "Segoe UI Variable", "Aptos", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--carbon);
  font-family: var(--body);
}

a { color: inherit; }

.reader-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 4.2rem;
  padding: 0 clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--carbon);
  background: rgb(243 245 242 / 94%);
  backdrop-filter: blur(12px);
}

.identity,
.reader-header button {
  min-height: 44px;
  border: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.reader-header nav { display: flex; gap: 0.7rem; align-items: center; }
.reader-header button { cursor: pointer; }
.reader-header button.active { color: var(--cobalt); text-decoration: underline; text-underline-offset: 0.5rem; }

.field-note {
  width: min(100%, 72rem);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 9rem) clamp(1.2rem, 6vw, 6rem);
}

.article-hero { max-width: 62rem; }

.article-type,
.edition-label {
  color: var(--copper);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.article-hero h1 {
  max-width: 15ch;
  margin: 1.2rem 0 1.5rem;
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 7.5rem);
  letter-spacing: -0.05em;
  line-height: 0.88;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.article-deck {
  max-width: 48rem;
  margin: 0;
  color: #52605c;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.edition-label { margin-top: 2rem; color: var(--cobalt); }

.article-body {
  margin-top: clamp(4rem, 9vw, 8rem);
  border-top: 1px solid var(--carbon);
}

.article-body section {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 4rem);
  padding: clamp(2rem, 5vw, 4rem) 0;
  border-bottom: 1px solid var(--mineral);
}

.article-body section > span {
  color: var(--cobalt);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.article-body h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  line-height: 1;
  text-transform: uppercase;
}

.article-body p {
  max-width: 48rem;
  margin: 0;
  color: #44514e;
  font-size: 1.05rem;
  line-height: 1.75;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 4rem;
}

.article-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.reader-error { max-width: 40rem; margin: 5rem auto; padding: 2rem; }

@media (max-width: 600px) {
  .article-body section { grid-template-columns: 2rem minmax(0, 1fr); }
  .article-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
