:root {
  --bg: #f4f0e8;
  --paper: #fffaf2;
  --ink: #1f2328;
  --muted: #5f665f;
  --line: rgba(31, 35, 40, 0.12);
  --accent: #005e52;
  --accent-soft: #d8eee8;
  --shadow: 0 18px 45px rgba(31, 35, 40, 0.08);
  --radius: 20px;
  --content-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(0, 94, 82, 0.15), transparent 28rem),
    radial-gradient(circle at top right, rgba(205, 126, 74, 0.15), transparent 22rem),
    linear-gradient(180deg, #f8f5ee 0%, var(--bg) 100%);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

img,
video {
  display: block;
  max-width: 100%;
}

.site-shell {
  width: min(100% - 2rem, var(--content-width));
  margin: 0 auto;
  padding-bottom: 4rem;
}

.site-header,
.site-footer,
.hero,
.panel,
.article {
  background: color-mix(in srgb, var(--paper) 92%, white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.site-header {
  margin: 1.5rem 0 1rem;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: inherit;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 1rem;
  height: 3rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #005e52 0%, #e77f42 100%);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text small,
.eyebrow,
.news-card-date,
.section-meta,
.article-meta,
.site-footer {
  color: var(--muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.main-content {
  display: grid;
  gap: 1rem;
}

.hero {
  padding: 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  overflow: hidden;
}

.hero h1,
.section-heading h1,
.article h1 {
  margin: 0;
  font-family: "Iowan Old Style", "Georgia", serif;
  font-weight: 700;
  line-height: 1.05;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  max-width: 11ch;
}

.hero-copy {
  max-width: 52rem;
  font-size: 1.1rem;
}

.hero-stats {
  display: grid;
  gap: 0.75rem;
}

.stat {
  padding: 1rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(0, 94, 82, 0.08), rgba(0, 94, 82, 0.02));
  border: 1px solid rgba(0, 94, 82, 0.12);
}

.stat-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
}

.panel,
.article {
  padding: 1.5rem;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-grid,
.year-grid,
.tag-cloud,
.taxonomy-grid {
  display: grid;
  gap: 1rem;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.year-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.tag-cloud {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.taxonomy-grid-tags {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.year-tile,
.news-card-link,
.tag-cloud-item,
.tag-index-card {
  display: block;
  color: inherit;
}

.year-tile {
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(231, 127, 66, 0.08), rgba(231, 127, 66, 0.02));
}

.tag-cloud-item {
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0, 94, 82, 0.08), rgba(0, 94, 82, 0.02));
}

.tag-index-card {
  min-width: 0;
  min-height: 9rem;
  padding: 1.15rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(0, 94, 82, 0.08), transparent 9rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(0, 94, 82, 0.03));
}

.year-tile:hover,
.news-card-link:hover,
.tag-cloud-item:hover,
.tag-index-card:hover {
  text-decoration: none;
}

.year-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
}

.tag-cloud-name {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
}

.tag-cloud-count {
  color: var(--muted);
}

.tag-index-name {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--ink);
  font-size: clamp(1.2rem, 2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.08;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.tag-index-count {
  color: var(--muted);
  font-size: 1rem;
}

.news-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  background: white;
}

.news-card-image {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.news-card-body {
  padding: 1rem;
}

.news-card-body h2 {
  margin: 0.2rem 0 0.5rem;
  font-size: 1.15rem;
  line-height: 1.2;
}

.news-card-body p:last-child {
  margin-bottom: 0;
}

.article {
  max-width: 880px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 1.5rem;
}

.article-meta,
.article-tags,
.article-taxonomy,
.attachments ul,
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.article-body > :first-child {
  margin-top: 0;
}

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

.article-figure,
.article-video {
  margin: 1.5rem 0;
}

.article-figure img,
.article-video video {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid var(--line);
}

.article-figure figcaption,
.article-video figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(0, 94, 82, 0.14);
  color: var(--accent);
  font-size: 0.95rem;
}

.tag-pill:hover {
  text-decoration: none;
  background: #cbe6df;
}

.attachments {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.post-nav-link,
.post-nav-spacer {
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: white;
}

.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  color: inherit;
}

.post-nav-link:hover {
  text-decoration: none;
  border-color: rgba(0, 94, 82, 0.24);
}

.post-nav-link-older {
  text-align: right;
}

.post-nav-label,
.post-nav-link small {
  color: var(--muted);
}

.post-nav-link strong {
  font-size: 1rem;
  line-height: 1.35;
}

.pagination {
  justify-content: center;
  margin-top: 1.5rem;
}

.pagination-link,
.pagination-state {
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
}

.site-footer {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .site-header,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-shell {
    width: min(100% - 1rem, var(--content-width));
  }

  .panel,
  .article {
    padding: 1rem;
  }

  .post-nav {
    grid-template-columns: 1fr;
  }
}
