:root {
  color-scheme: light;
  --paper: #f7f7f2;
  --surface: #ffffff;
  --ink: #122521;
  --ink-soft: #354541;
  --muted: #64736d;
  --line: #dce2dc;
  --forest: #123a32;
  --forest-deep: #0b2925;
  --lime: #e8ff9a;
  --mint: #eaf2e9;
  --gold: #8e5c14;
  --gold-wash: #fbf1df;
  --content-width: 1160px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 1rem;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #a2cf4c;
  outline-offset: 4px;
  border-radius: 3px;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.65rem 1rem;
  color: var(--ink);
  background: var(--lime);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(calc(100% - 3rem), var(--content-width));
  min-height: 82px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 780;
  letter-spacing: -0.055em;
  text-decoration: none;
}

.brand-mark {
  color: var(--forest);
}

.brand-dot {
  color: var(--muted);
  font-weight: 500;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.1rem);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 620;
}

.header-nav a {
  text-decoration: none;
}

.header-nav a:hover {
  color: var(--forest);
  text-decoration: underline;
}

.header-nav .nav-cta {
  padding: 0.56rem 0.9rem;
  border: 1px solid #b9c7bf;
  border-radius: 999px;
}

.hero-wrap {
  padding: 0 1.5rem;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(210px, 0.55fr);
  align-items: end;
  gap: 2rem;
  overflow: hidden;
  width: min(100%, var(--content-width));
  min-height: 360px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.6rem);
  border-radius: 10px;
  color: #f5f8ef;
  background:
    radial-gradient(ellipse at 94% 12%, rgb(232 255 154 / 13%), transparent 34%),
    linear-gradient(120deg, var(--forest-deep), var(--forest));
}

.hero::after {
  position: absolute;
  right: -9rem;
  bottom: -15rem;
  width: 29rem;
  height: 29rem;
  border: 1px solid rgb(232 255 154 / 19%);
  border-radius: 50%;
  box-shadow: 0 0 0 2.6rem rgb(232 255 154 / 3%), 0 0 0 5.2rem rgb(232 255 154 / 3%);
  content: "";
  pointer-events: none;
}

.hero-copy,
.hero-aside {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker,
.article-kicker {
  margin: 0;
  font-size: 0.73rem;
  font-weight: 760;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--lime);
}

.hero h1 {
  max-width: 720px;
  margin: 1rem 0 0.85rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.99;
}

.hero-intro {
  max-width: 590px;
  margin: 0;
  color: #d4e0d9;
  font-size: clamp(1rem, 1.7vw, 1.13rem);
}

.hero-aside {
  display: grid;
  justify-items: start;
  gap: 1rem;
  align-content: end;
  padding-bottom: 0.35rem;
}

.hero-aside p {
  max-width: 230px;
  margin: 0;
  color: #d4e0d9;
  font-size: 0.88rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 48px;
  padding: 0.8rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--forest-deep);
  background: var(--lime);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 150ms ease, transform 150ms ease;
}

.button:hover {
  background: #f0ffbe;
  text-decoration: none;
  transform: translateY(-1px);
}

.button::after {
  content: "↗";
  font-size: 1rem;
}

.page-main {
  width: min(calc(100% - 3rem), var(--content-width));
  margin: 0 auto;
  padding: clamp(3.25rem, 7vw, 5.5rem) 0 5rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-kicker {
  color: var(--muted);
}

.section-heading h2 {
  margin: 0.3rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.5vw, 2.55rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.result-count {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.archive-link {
  margin: 1.5rem 0 0;
  text-align: center;
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--forest);
  background: var(--surface);
}

.button-secondary:hover {
  border-color: #b6c5b8;
  background: var(--mint);
}

.archive-page {
  min-height: 60vh;
}

.archive-page .back-link {
  margin-bottom: 2rem;
}

.post-card {
  --card-padding: clamp(1.25rem, 2vw, 1.7rem);
  --card-gutter: clamp(2.5rem, 4vw, 3.4rem);
  display: flex;
  min-height: 265px;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--card-padding);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.post-card:hover {
  border-color: #b6c5b8;
  box-shadow: 0 12px 28px rgb(19 47 38 / 7%);
  transform: translateY(-2px);
}

.post-card-image {
  width: calc(100% + var(--card-gutter));
  max-width: none;
  height: 175px;
  margin: calc(0px - var(--card-padding)) calc(0px - var(--card-padding)) 1.25rem;
  border-radius: 5px 5px 0 0;
  object-fit: cover;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 630;
}

.card-category {
  color: var(--forest);
}

.sponsored-label {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.48rem;
  border: 1px solid #e5c788;
  border-radius: 999px;
  color: #70470c;
  background: var(--gold-wash);
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.025em;
  line-height: 1.5;
}

.post-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.22;
}

.post-card h3 a {
  text-decoration: none;
}

.post-card h3 a:hover {
  color: var(--forest);
  text-decoration: underline;
}

.post-card-summary {
  margin: 0.7rem 0 1.15rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.read-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  color: var(--forest);
  font-size: 0.84rem;
  font-weight: 740;
  text-decoration: none;
}

.read-link::after {
  content: "→";
}

.read-link:hover {
  text-decoration: underline;
}

.group-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid #d4dfd1;
  border-radius: 6px;
  background: var(--mint);
}

.group-banner .section-kicker {
  color: var(--forest);
}

.group-banner h2 {
  margin: 0.4rem 0 0.3rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.group-banner p:not(.section-kicker) {
  max-width: 650px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.group-banner .button {
  color: #f8faf4;
  background: var(--forest);
}

.group-banner .button:hover {
  background: var(--forest-deep);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #f0f1eb;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  width: min(calc(100% - 3rem), var(--content-width));
  margin: 0 auto;
  padding: 1.7rem 0 2rem;
}

.footer-brand {
  margin-bottom: 0.25rem;
  font-weight: 760;
  letter-spacing: -0.04em;
}

.footer-inner p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  color: var(--ink-soft);
  font-size: 0.83rem;
}

.footer-nav a {
  text-decoration: none;
}

.footer-nav .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
}

.social-link svg {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.article-shell {
  max-width: 850px;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 2.7rem;
  color: var(--forest);
  font-size: 0.86rem;
  font-weight: 730;
  text-decoration: none;
}

.back-link::before {
  content: "←";
}

.article-kicker {
  color: var(--forest);
}

.article-title {
  margin: 0.8rem 0 1.2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 6vw, 4.45rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.article-meta p {
  margin: 0;
}

.article-image {
  width: 100%;
  max-height: 530px;
  margin: 2.2rem 0 0;
  border-radius: 6px;
  object-fit: cover;
}

.source-note {
  margin: 2rem 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid #a9c66f;
  color: var(--ink-soft);
  background: #eef2e7;
  font-size: 0.88rem;
}

.source-note p {
  margin: 0;
}

.sponsorship-note {
  margin: 1rem 0;
  padding: 1rem 1.2rem;
  border: 1px solid #e5c788;
  border-radius: 4px;
  color: #5d400f;
  background: var(--gold-wash);
  font-size: 0.88rem;
}

.article-body {
  padding-top: 0.3rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 2vw, 1.24rem);
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.article-body h2,
.article-body h3 {
  margin: 2rem 0 0.7rem;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 690;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.article-body h2 {
  font-size: 1.65rem;
}

.article-body h3 {
  font-size: 1.3rem;
}

.article-body p {
  margin: 0 0 1.35rem;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.5rem;
  padding-left: 1.35rem;
}

.article-body li {
  margin: 0.38rem 0;
  padding-left: 0.2rem;
}

.article-body blockquote {
  margin: 1.5rem 0;
  padding: 0.15rem 0 0.15rem 1.2rem;
  border-left: 3px solid #a9c66f;
  color: var(--ink-soft);
}

.article-body a {
  color: #145943;
  text-decoration-thickness: 1px;
}

.article-body code {
  padding: 0.12em 0.3em;
  border-radius: 3px;
  background: #e9eee7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84em;
}

.article-join {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 1.5rem;
  border-radius: 6px;
  background: var(--forest-deep);
  color: #f5f8ef;
}

.article-join h2 {
  margin: 0 0 0.3rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.article-join p {
  margin: 0;
  color: #d4e0d9;
  font-size: 0.88rem;
}

.article-join .button {
  flex: 0 0 auto;
}

.empty-state {
  padding: 2rem;
  border: 1px dashed #b9c7bf;
  border-radius: 6px;
  color: var(--muted);
  text-align: center;
}

.not-found {
  max-width: 660px;
  margin: 4rem auto;
  padding: 1rem;
  text-align: center;
}

.not-found .article-title {
  font-size: clamp(2.5rem, 7vw, 4rem);
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-aside {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1rem 1.4rem;
  }

  .hero-aside p {
    max-width: 300px;
  }

  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-header {
    width: min(calc(100% - 2rem), var(--content-width));
    min-height: 72px;
  }

  .header-nav {
    gap: 0.55rem;
    font-size: 0.76rem;
  }

  .header-nav a:first-child {
    display: none;
  }

  .header-nav a[href="/feed.xml"] {
    display: none;
  }

  .header-nav .nav-cta {
    padding: 0.45rem 0.55rem;
  }

  .hero-wrap {
    padding: 0 0.65rem;
  }

  .hero {
    gap: 1.5rem;
    padding: 2rem 1.35rem;
    border-radius: 7px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 13vw, 3.7rem);
  }

  .hero-aside {
    grid-template-columns: 1fr;
  }

  .page-main,
  .footer-inner {
    width: min(calc(100% - 2rem), var(--content-width));
  }

  .page-main {
    padding-top: 3rem;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .post-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .post-card {
    min-height: 0;
  }

  .post-card-image {
    --card-padding: 1.25rem;
    --card-gutter: 2.5rem;
  }

  .group-banner {
    grid-template-columns: 1fr;
    margin-top: 2.5rem;
  }

  .group-banner .button {
    justify-self: start;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .article-shell {
    width: 100%;
  }

  .back-link {
    margin-bottom: 2rem;
  }

  .article-title {
    font-size: clamp(2.3rem, 12vw, 3.5rem);
  }

  .article-join {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
