:root {
  --bg: #f4efe6;
  --surface: #fffaf3;
  --ink: #1f2a22;
  --muted: #556154;
  --brand: #2e5a45;
  --brand-deep: #1e3b2d;
  --accent: #c77733;
  --ring: #d8c8b2;
  --radius: 16px;
  --shadow: 0 10px 28px rgba(23, 35, 28, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.7;
  background:
    radial-gradient(circle at 94% 2%, rgba(199, 119, 51, 0.18), transparent 38%),
    radial-gradient(circle at 0% 18%, rgba(46, 90, 69, 0.12), transparent 34%),
    var(--bg);
}

h1,
h2,
h3,
.eyebrow,
nav,
.feed-link {
  font-family: "Sora", "Trebuchet MS", sans-serif;
  line-height: 1.2;
}

a {
  color: var(--brand-deep);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

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

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  background: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(31, 42, 34, 0.1);
  background: rgba(244, 239, 230, 0.95);
  backdrop-filter: blur(8px);
}

.nav-wrap {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 220px;
  height: auto;
  border-radius: 4px;
  mix-blend-mode: multiply;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-size: 0.95rem;
  font-weight: 700;
}

nav a {
  text-decoration: none;
}

.blog-hero {
  padding: 5.5rem 0 4rem;
}

.hero-copy {
  max-width: 850px;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--brand-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1 {
  max-width: 16ch;
  margin: 0 0 1rem;
  font-size: clamp(2.35rem, 5vw, 4.35rem);
}

.lead {
  max-width: 66ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.2rem;
}

.posts-section {
  padding: 1rem 0 5rem;
}

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

.section-heading h2,
.principles h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.feed-link {
  font-size: 0.92rem;
  font-weight: 700;
}

.empty-state {
  padding: clamp(1.5rem, 4vw, 2.8rem);
  border: 1px solid rgba(31, 42, 34, 0.13);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.empty-state h3 {
  margin-top: 0;
  font-size: 1.35rem;
}

.empty-state p {
  max-width: 68ch;
  margin-bottom: 0;
  color: var(--muted);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.post-card {
  overflow: hidden;
  border: 1px solid rgba(31, 42, 34, 0.13);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.post-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.post-card-content {
  padding: 1.35rem;
}

.post-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.35rem;
}

.post-card p {
  color: var(--muted);
}

.article-main {
  padding: 4.5rem 0 5rem;
}

.article-shell {
  max-width: 820px;
}

.article-header h1 {
  max-width: none;
  font-size: clamp(2.3rem, 5vw, 4rem);
}

.article-deck {
  color: var(--muted);
  font-size: 1.25rem;
}

.article-meta {
  color: var(--muted);
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 0.88rem;
}

.featured-image {
  margin: 2.5rem 0;
}

.featured-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.featured-image figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.featured-image figcaption:empty {
  display: none;
}

.article-body {
  font-size: 1.12rem;
}

.article-body h2,
.article-body h3 {
  margin-top: 2.2em;
}

.article-body blockquote {
  margin: 2rem 0;
  padding: 0.4rem 0 0.4rem 1.2rem;
  border-left: 4px solid var(--accent);
  color: var(--brand-deep);
  font-size: 1.2rem;
}

.article-cta {
  margin: 3rem 0;
  padding: 1.5rem;
  border: 1px solid rgba(31, 42, 34, 0.13);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.article-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ring);
  font-size: 0.95rem;
}

.ai-disclosure {
  margin-top: 1.5rem;
  color: var(--muted);
  font-style: italic;
}

.principles {
  padding: 4rem 0;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
}

.principles .eyebrow {
  color: #e8f0ea;
}

.principles-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.principles-grid p {
  margin-top: 0;
  font-size: 1.16rem;
}

.principles a {
  color: #fff;
}

footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(31, 42, 34, 0.1);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-wrap p {
  margin: 0;
}

.footer-wrap div {
  display: flex;
  gap: 1rem;
}

@media (max-width: 700px) {
  .nav-wrap,
  .section-heading,
  .footer-wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-wrap {
    padding: 0.75rem 0;
  }

  .brand img {
    width: 190px;
  }

  .blog-hero {
    padding-top: 3.6rem;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
