@import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@500;700&family=Newsreader:wght@400;600;700&display=swap");

:root {
  --bg: #f4f0e6;
  --bg-deep: #dbe9dd;
  --ink: #0f2b1f;
  --muted: #2d4b3b;
  --accent: #1a7a44;
  --accent-2: #f0b429;
  --card: #fffaf0;
  --shadow: rgba(15, 43, 31, 0.18);
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Newsreader", "Georgia", serif;
  color: var(--ink);
  background:
    radial-gradient(900px 600px at 10% -10%, #fef7d4 0%, transparent 60%),
    radial-gradient(700px 500px at 110% 10%, #d6f0e0 0%, transparent 60%),
    linear-gradient(120deg, var(--bg), var(--bg-deep));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(transparent 94%, rgba(15, 43, 31, 0.06) 96%),
    linear-gradient(90deg, transparent 94%, rgba(15, 43, 31, 0.06) 96%);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.3;
  z-index: 0;
}

a {
  color: inherit;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.site-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 28px;
  border-radius: 26px;
  background: rgba(255, 250, 240, 0.8);
  border: 1px solid rgba(15, 43, 31, 0.12);
  box-shadow: 0 18px 30px -24px var(--shadow);
  animation: fade-in 0.8s ease both;
}

.site-hero.home-hero {
  width: 100%;
}

.site-hero.home-hero .lead {
  font-weight: 500;
  line-height: 1.5;
}

.site-hero.compact {
  padding: 22px 24px;
}

.hero-copy h1 {
  margin: 0 0 8px;
  font-family: "Fraunces", "Georgia", serif;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: 0.3px;
}

.lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(26, 122, 68, 0.14);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1.2px;
  font-size: 0.7rem;
}

.hero-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 43, 31, 0.08);
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.pill.link {
  color: var(--accent);
  background: rgba(26, 122, 68, 0.12);
}

.archive {
  margin-top: 22px;
  padding: 12px 4px;
}

.archive-title {
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.archive-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 43, 31, 0.15);
  background: rgba(255, 250, 240, 0.9);
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--muted);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px -12px var(--shadow);
}

.chip.active {
  background: rgba(26, 122, 68, 0.12);
  border-color: rgba(26, 122, 68, 0.4);
  color: var(--accent);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.card {
  position: relative;
  padding: 20px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid rgba(15, 43, 31, 0.12);
  box-shadow: 0 16px 26px -24px var(--shadow);
  animation: rise 0.6s ease both;
  animation-delay: var(--delay, 0ms);
}

.card-media {
  margin: -20px -20px 12px;
  border-radius: 18px 18px 14px 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 43, 31, 0.12);
}

.card-media img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card h2 {
  margin: 6px 0 10px;
  font-family: "Fraunces", "Georgia", serif;
  font-size: 1.3rem;
}

.card-meta {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.2px;
}

.card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.4;
}

.card .cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--accent);
}

.article-page {
  margin-top: 24px;
}

.article {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.article-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.article-meta time {
  font-weight: 600;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(26, 122, 68, 0.12);
  border: 1px solid rgba(26, 122, 68, 0.28);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tag-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -14px var(--shadow);
}

.article-lead {
  font-size: 1.1rem;
  color: var(--muted);
}

.article-body {
  background: var(--card);
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(15, 43, 31, 0.12);
  box-shadow: 0 16px 28px -24px var(--shadow);
}

.article-visual {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(15, 43, 31, 0.12);
  box-shadow: 0 16px 28px -24px var(--shadow);
}

.article-visual img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  font-family: "Fraunces", "Georgia", serif;
  margin: 24px 0 12px;
}

.article-body h2 {
  font-size: 1.5rem;
}

.article-body h3 {
  font-size: 1.25rem;
}

.article-body h4 {
  font-size: 1.1rem;
}

.article-body p {
  line-height: 1.7;
  margin: 0 0 16px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 16px 22px;
  padding: 0;
  line-height: 1.6;
}

.article-body li {
  margin-bottom: 8px;
}

.muted {
  color: var(--muted);
}

.empty {
  margin-top: 30px;
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 250, 240, 0.8);
  border: 1px dashed rgba(15, 43, 31, 0.2);
}

.site-footer {
  margin-top: 32px;
  text-align: center;
  font-size: 0.9rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .site-hero,
  .site-hero.compact {
    padding: 20px;
  }

  .hero-meta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
