:root {
  --paper: #f7f4ee;
  --paper-deep: #efeae0;
  --ink: #1c1915;
  --text: #2c2823;
  --muted: #6b645a;
  --rule: #d8d1c4;
  --accent: #8a3d12;
  --link: #6b2e0c;
  --white: #fffdf8;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --measure: 40rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--link);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.65rem 1rem;
  background: var(--ink);
  color: var(--white);
  z-index: 100;
  font-family: var(--sans);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.masthead-inner {
  width: min(44rem, calc(100% - 2.5rem));
  margin: 0 auto;
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.wordmark img {
  display: block;
  width: 20px;
  height: 20px;
}

.masthead nav {
  display: flex;
  gap: 1.25rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.masthead nav a {
  color: var(--muted);
  text-decoration: none;
}

.masthead nav a:hover {
  color: var(--ink);
}

.article {
  width: min(var(--measure), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 3.25rem 0 4.5rem;
}

.article-head {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.25rem;
}

.kicker {
  margin: 0 0 1rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.article-head h1 {
  margin: 0;
  font-size: clamp(2.15rem, 6vw, 3.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--ink);
}

.dek {
  margin: 1.15rem 0 0;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--muted);
  font-style: italic;
}

.byline {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.75rem;
}

.byline-name {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.byline-meta {
  margin: 0.15rem 0 0;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
}

.byline-meta span {
  margin: 0 0.35rem;
}

.article-body p,
.article-body li {
  font-size: 1.125rem;
  line-height: 1.72;
}

.article-body p {
  margin: 0 0 1.25rem;
}

.lede::first-letter {
  float: left;
  margin: 0.12em 0.12em 0 0;
  font-size: 3.4rem;
  line-height: 0.78;
  font-weight: 500;
  color: var(--ink);
}

.article-body h2 {
  margin: 2.4rem 0 0.85rem;
  font-size: 1.55rem;
  font-weight: 550;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.article-body blockquote {
  margin: 2rem 0;
  padding: 0 0 0 1.25rem;
  border-left: 2px solid var(--accent);
}

.article-body blockquote p {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.45;
  font-style: italic;
  color: var(--ink);
}

.endnote {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}

.endnote h2 {
  margin: 0 0 0.65rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.endnote p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--paper-deep);
}

.footer-inner {
  width: min(var(--measure), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.footer-brand {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.footer-brand span {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  margin-left: 0.5rem;
}

.site-footer nav {
  display: flex;
  gap: 1.15rem;
  font-family: var(--sans);
  font-size: 0.8rem;
}

.site-footer nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--ink);
}

.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  padding: 1rem 1.25rem;
  background: var(--ink);
  color: #f3eee6;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-inner {
  width: min(44rem, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1rem;
}

.cookie-inner p {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 28rem;
}

.cookie-inner a {
  color: #e8c4a4;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
}

.button {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  min-height: 2.4rem;
  padding: 0 0.95rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
}

.button-outline {
  background: transparent;
  color: #f3eee6;
  border-color: #6a6258;
}

.button-primary {
  background: var(--white);
  color: var(--ink);
}

@media (max-width: 600px) {
  .masthead-inner {
    min-height: 3.5rem;
  }

  .article {
    padding-top: 2.25rem;
  }

  .article-body p,
  .article-body li {
    font-size: 1.05rem;
  }

  .lede::first-letter {
    font-size: 2.8rem;
  }
}
