:root {
  --bg: #f4efe7;
  --bg-strong: #efe5d7;
  --surface: rgba(255, 252, 247, 0.8);
  --surface-strong: #fff9f0;
  --ink: #18212b;
  --muted: #5f6670;
  --accent: #ad4f2e;
  --accent-strong: #8e3c20;
  --line: rgba(24, 33, 43, 0.12);
  --shadow: 0 20px 45px rgba(24, 33, 43, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --page-width: 1120px;
  --body-font: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --display-font: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --mono-font: "SFMono-Regular", "SF Mono", "Menlo", "Consolas", monospace;
}

* {
  box-sizing: border-box;
}

html {
  background:
    radial-gradient(circle at top left, rgba(173, 79, 46, 0.12), transparent 35%),
    linear-gradient(180deg, #f8f2e9 0%, #f4efe7 60%, #efe6da 100%);
  color: var(--ink);
  font-family: var(--body-font);
  line-height: 1.6;
}

body {
  margin: 0;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.page-shell {
  margin: 0 auto;
  max-width: calc(var(--page-width) + 64px);
  padding: 24px 32px 48px;
}

.site-header,
.site-footer,
.hero,
.subpage-hero,
.content-section,
.article-shell {
  backdrop-filter: blur(14px);
}

.site-header {
  align-items: center;
  background: rgba(255, 249, 240, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
  padding: 16px 20px;
  position: sticky;
  top: 16px;
  z-index: 10;
}

.brand {
  font-family: var(--display-font);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

.hero,
.subpage-hero,
.content-section,
.article-shell {
  background: rgba(255, 250, 243, 0.78);
  border: 1px solid rgba(24, 33, 43, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero {
  align-items: start;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.95fr);
  margin-bottom: 28px;
  overflow: hidden;
  padding: 40px;
}

.hero::after {
  background:
    linear-gradient(135deg, rgba(173, 79, 46, 0.2), transparent 40%),
    radial-gradient(circle at bottom right, rgba(24, 33, 43, 0.14), transparent 42%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero,
.subpage-hero,
.content-section,
.article-shell {
  position: relative;
}

.hero-copy,
.hero-panel,
.section-heading,
.card,
.post-card,
.article-shell > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--accent-strong);
  font-family: var(--mono-font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--display-font);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.2rem, 3.2vw, 3.4rem);
  max-width: 18ch;
}

h2 {
  font-size: clamp(1.75rem, 2.4vw, 2.55rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 16px;
}

.hero-copy {
  max-width: 46rem;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 4vw, 4.1rem);
  max-width: 15ch;
}

.subpage-hero h1 {
  max-width: 16ch;
}

.article-shell h1 {
  font-size: clamp(2.2rem, 3vw, 3.25rem);
  max-width: none;
}

.lead {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 54ch;
}

.hero-panel,
.card,
.post-card {
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(24, 33, 43, 0.08);
  border-radius: var(--radius-md);
  padding: 22px;
}

.hero-panel {
  align-self: end;
}

.panel-kicker,
.post-meta,
.article-meta {
  color: var(--muted);
  font-family: var(--mono-font);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}

.signal-list {
  margin: 0;
  padding-left: 18px;
}

.signal-list li + li {
  margin-top: 10px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  border-radius: 999px;
  display: inline-flex;
  font-weight: 700;
  padding: 12px 18px;
  text-decoration: none;
}

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

.button-secondary {
  background: transparent;
  border: 1px solid rgba(24, 33, 43, 0.18);
}

.subpage-hero,
.content-section,
.article-shell {
  margin-bottom: 24px;
  padding: 32px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.two-column {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr);
}

.stacked-cards {
  display: grid;
  gap: 16px;
}

.compact-card {
  padding-top: 18px;
}

.index-pill {
  border: 1px solid rgba(173, 79, 46, 0.25);
  border-radius: 999px;
  color: var(--accent-strong);
  display: inline-block;
  font-family: var(--mono-font);
  font-size: 0.78rem;
  margin-bottom: 12px;
  padding: 5px 10px;
}

.accent-section {
  background:
    linear-gradient(135deg, rgba(173, 79, 46, 0.12), rgba(255, 249, 240, 0.72)),
    rgba(255, 250, 243, 0.78);
}

.accent-copy {
  font-size: 1.06rem;
  max-width: 60ch;
}

.post-preview-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.post-card h3 a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.callout {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
}

.article-shell {
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
}

.article-shell p {
  color: var(--ink);
  font-size: 1.06rem;
}

.prose-card p:last-child,
.card p:last-child,
.post-card p:last-child,
.article-shell p:last-child,
.site-footer p:last-child {
  margin-bottom: 0;
}

.site-footer {
  align-items: center;
  background: rgba(255, 249, 240, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  padding: 18px 22px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 860px) {
  .page-shell {
    padding: 18px 18px 36px;
  }

  .site-header {
    align-items: flex-start;
    border-radius: 24px;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    position: static;
  }

  .hero,
  .two-column {
    grid-template-columns: 1fr;
  }

  .hero,
  .subpage-hero,
  .content-section,
  .article-shell {
    padding: 24px;
  }

  h1 {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .site-nav {
    gap: 12px 16px;
  }

  .button,
  .footer-links a {
    width: 100%;
  }

  .callout {
    align-items: stretch;
  }
}
