:root {
  --bg: #f3f5f2;
  --ink: #141d1a;
  --muted: #4f5d57;
  --line: #d4ddd7;
  --card: #ffffff;
  --accent: #0e7b55;
  --accent-ink: #ebfff6;
  --shadow: 0 10px 36px rgba(9, 36, 27, 0.09);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

h1,
h2,
h3 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 700;
  line-height: 1.12;
}

.wrap {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(36px);
  opacity: 0.52;
  animation: drift 18s ease-in-out infinite;
}

.orb-a {
  width: 320px;
  height: 320px;
  background: #d4f2e4;
  top: -80px;
  left: -60px;
}

.orb-b {
  width: 280px;
  height: 280px;
  background: #f6e6c8;
  top: 28%;
  right: -70px;
  animation-delay: -6s;
}

.orb-c {
  width: 300px;
  height: 300px;
  background: #d6e7f7;
  bottom: -80px;
  left: 40%;
  animation-delay: -11s;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 86%, #ffffff 14%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.hero {
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(140deg, #f9fffc 0%, #ffffff 58%, #f8fbff 100%);
  box-shadow: var(--shadow);
  padding: clamp(1.3rem, 2.4vw, 2.4rem);
}

.kicker {
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.1em;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0.5rem 0 0.7rem;
  font-size: clamp(2rem, 6vw, 3.8rem);
}

.hero p {
  margin: 0;
  color: color-mix(in srgb, var(--ink) 88%, black 12%);
  max-width: 70ch;
}

.hero-actions {
  margin-top: 1.1rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.56rem 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
}

.metrics {
  margin: 1.1rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.metrics article {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffffcf;
  padding: 0.95rem;
}

.metric-value {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  font-family: "Newsreader", Georgia, serif;
}

.metric-label {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.controls {
  margin: 1.4rem 0 0.7rem;
  display: grid;
  gap: 0.8rem;
}

.search-row input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.72rem 0.88rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
}

.search-row input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent 65%);
  border-color: var(--accent);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 0.45rem 0.8rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.chip.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, #ffffff 90%);
}

.posts {
  margin: 0.7rem 0 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.post-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.post-card[hidden] {
  display: none;
}

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

.post-card h2 {
  margin: 0.45rem 0 0.45rem;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
}

.post-card h2 a {
  color: inherit;
  text-decoration: none;
}

.post-card p {
  margin: 0;
}

.read-more {
  margin-top: 0.7rem;
  display: inline-flex;
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
}

.article-shell {
  margin: 1.8rem auto 2.4rem;
}

.article {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
  padding: clamp(1.2rem, 2.2vw, 2.2rem);
}

.article h1 {
  margin: 0.45rem 0 0.6rem;
  font-size: clamp(1.9rem, 5.5vw, 3.1rem);
}

.article h2 {
  margin: 1.1rem 0 0.45rem;
  font-size: clamp(1.3rem, 3.6vw, 2rem);
}

.article p {
  margin: 0.65rem 0;
}

.article ul {
  margin: 0.55rem 0;
  padding-left: 1.1rem;
}

.article li {
  margin: 0.3rem 0;
}

.article .lead {
  font-size: 1.06rem;
  color: color-mix(in srgb, var(--ink) 88%, black 12%);
}

.back-link {
  margin-top: 0.95rem;
}

.back-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.cta {
  margin: 0 0 2.4rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.2rem, 2vw, 2rem);
  background: linear-gradient(120deg, #ffffff 0%, #f7fcf9 45%, #f8fbff 100%);
}

.cta h2 {
  margin: 0.5rem 0;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.cta p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1rem 0 1.3rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.92rem;
  color: var(--muted);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reveal {
  animation: revealUp 0.65s ease both;
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(16px) translateX(6px);
  }
}

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

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

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

@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.65rem 0;
  }

  nav {
    flex-wrap: wrap;
  }

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