:root {
  --bg: #efe7d7;
  --paper: #fffdf8;
  --ink: #191713;
  --muted: #5c5549;
  --line: rgba(25, 23, 19, 0.1);
  --accent: #0f5c4d;
  --accent-2: #b55233;
  --accent-soft: rgba(15, 92, 77, 0.08);
  --shadow: 0 28px 80px rgba(25, 23, 19, 0.08);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top left, rgba(181, 82, 51, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(15, 92, 77, 0.12), transparent 34%),
    linear-gradient(180deg, #f5efe3 0%, #ece3d2 100%);
}

a {
  color: inherit;
}

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

.shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-header {
  padding: 28px 0 10px;
}

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 700;
}

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

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

.hero,
.panel,
.post-card,
.article-shell {
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid rgba(25, 23, 19, 0.06);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 22px;
  padding: 34px;
  margin: 26px 0 24px;
}

.hero-blog {
  grid-template-columns: 1fr;
}

.hero-copy h1,
.story-copy h1 {
  line-height: 0.98;
  margin: 0 0 16px;
}

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

.story-copy h1 {
  font-size: clamp(2.4rem, 4.8vw, 4.8rem);
  max-width: 13ch;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero p,
.deck,
.lede,
.panel p,
.article-body p,
.article-body li,
.post-card p {
  font-size: 1.04rem;
  line-height: 1.72;
}

.hero p,
.deck,
.lede {
  color: var(--muted);
  max-width: 62ch;
}

.hero-note {
  padding: 26px;
  align-self: end;
  background:
    linear-gradient(180deg, rgba(15, 92, 77, 0.06), rgba(181, 82, 51, 0.06)),
    var(--paper);
}

.section-head {
  margin: 38px 0 16px;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-secondary {
  background: var(--accent-soft);
  color: var(--accent);
}

.post-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin: 20px 0 36px;
}

.post-card {
  overflow: hidden;
}

.card-cover {
  display: block;
  border-bottom: 1px solid var(--line);
}

.card-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-card-body {
  padding: 22px;
}

.post-card h3 {
  margin: 12px 0;
  font-size: 1.6rem;
  line-height: 1.08;
}

.post-card h3 a {
  text-decoration: none;
}

.card-deck {
  color: var(--ink);
  font-style: italic;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.story {
  margin: 26px 0 40px;
}

.story-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: stretch;
}

.story-copy,
.story-cover,
.takeaways,
.cta-panel,
.sources {
  padding: 28px;
}

.story-cover {
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-cover img {
  width: 100%;
  border-radius: 18px;
}

.image-credit {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.image-credit a {
  color: var(--accent);
}

.takeaways {
  margin: 20px 0 0;
}

.takeaways ul {
  margin: 0;
  padding-left: 22px;
}

.quote-band {
  margin: 24px 0;
  padding: 8px 0;
}

.quote-band blockquote {
  margin: 0;
  padding: 8px 0 8px 26px;
  border-left: 4px solid var(--accent-2);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.32;
  font-weight: 700;
}

.article-shell {
  padding: clamp(24px, 4vw, 48px);
  margin: 0;
}

.article-body h2,
.article-body h3 {
  line-height: 1.08;
  margin: 32px 0 14px;
}

.article-body h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.article-body h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
}

.article-body p {
  margin: 0 0 18px;
}

.article-body p + p {
  text-indent: 0.2em;
}

.article-body strong {
  color: var(--accent);
}

.article-body blockquote {
  margin: 26px 0;
  padding: 18px 22px;
  background: rgba(15, 92, 77, 0.05);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent);
  font-size: 1.15rem;
}

.article-body ul,
.article-body ol {
  padding-left: 22px;
  margin: 0 0 18px;
}

.cta-panel,
.sources {
  margin-top: 22px;
}

.empty {
  padding: 26px;
  background: rgba(255, 253, 248, 0.55);
  border-radius: 20px;
  border: 1px dashed var(--line);
}

.site-footer {
  padding: 0 0 42px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero,
  .story-hero {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .story-copy h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .hero,
  .story-copy,
  .story-cover,
  .takeaways,
  .cta-panel,
  .sources,
  .article-shell {
    padding: 22px;
  }

  .masthead {
    align-items: flex-start;
    flex-direction: column;
  }
}
