:root {
  --bg: #f5f1e8;
  --panel: #fffdf8;
  --ink: #171717;
  --muted: #635e55;
  --line: #d4cbbd;
  --accent: #b54d24;
  --accent-soft: #f2d6c7;
  --shadow: 0 18px 40px rgba(32, 24, 12, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  font-family: Georgia, "Times New Roman", serif;
  background: radial-gradient(circle at top, #fff9ef 0%, var(--bg) 52%, #ebe3d7 100%);
  color: var(--ink);
}

body {
  margin: 0;
}

a {
  color: inherit;
}

.shell {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(107, 91, 70, 0.12);
  backdrop-filter: blur(10px);
}

.header-inner,
.footer-inner,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 1rem;
}

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

.hero,
.page-intro {
  padding: 4rem 0 2rem;
}

.hero h1,
.page-intro h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 0.95;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.lede,
.page-intro p,
.article-summary {
  max-width: 64ch;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  padding-bottom: 4rem;
}

.stack {
  display: grid;
  gap: 1rem;
}

.entry-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.25rem 1.1rem;
}

.entry-card h2 {
  margin: 0.4rem 0 0.5rem;
  font-size: 1.4rem;
}

.entry-card h2 a {
  text-decoration: none;
}

.entry-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.entry-meta,
.article-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.status {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  text-transform: capitalize;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0.9rem 0 0;
}

.tag-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.prose {
  max-width: 72ch;
  padding-bottom: 4rem;
}

.prose h2,
.prose h3 {
  margin-top: 2rem;
}

.prose p,
.prose li {
  line-height: 1.8;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
}

.prose th,
.prose td {
  text-align: left;
  padding: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.article {
  padding-top: 3rem;
}

.site-footer {
  padding: 1.25rem 0 2.2rem;
  border-top: 1px solid rgba(107, 91, 70, 0.12);
  color: var(--muted);
}

@media (max-width: 820px) {
  .section-grid {
    grid-template-columns: 1fr;
  }

  .header-inner,
  .footer-inner,
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
