:root {
  --bg: #f8f5f0;
  --surface: #ffffff;
  --surface-2: #f0ebe3;
  --ink: #1c1c1a;
  --muted: #777267;
  --green: #4e8b68;
  --green-dark: #3d7052;
  --amber: #c4853a;
  --border: rgba(28, 28, 26, 0.09);
  --shadow: 0 18px 50px rgba(28, 28, 26, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 245, 240, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}
.header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}
.header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px 22px;
  font-size: 14px;
  font-weight: 600;
}
.header-nav a { transition: color 160ms ease; }
.header-nav a:hover,
.header-nav a[aria-current="page"] { color: var(--green); }

.magazine-hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0 54px;
  text-align: center;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
h1, h2, h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  line-height: 1.16;
}
.magazine-hero h1 {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(42px, 7vw, 76px);
}
.magazine-hero .lead {
  max-width: 680px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 17px;
}
.filters {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
}
.filter-button {
  min-height: 42px;
  padding: 9px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
}
.filter-button:hover,
.filter-button.is-active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.magazine-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 100px;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.article-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(28, 28, 26, 0.02);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.article-card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}
.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}
.article-card:hover img { transform: scale(1.035); }
.category-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(78, 139, 104, 0.12);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.article-card-image .category-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}
.article-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}
.article-meta span + span::before {
  content: "•";
  margin-right: 7px;
  color: #b0a89e;
}
.article-card h2 {
  margin: 12px 0 10px;
  font-size: 25px;
}
.article-card .excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.read-link {
  margin-top: auto;
  padding-top: 18px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}
.empty-state {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
}

.article-shell {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 62px 0 100px;
}
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 38px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}
.article-header { text-align: center; }
.article-header .category-badge { margin-bottom: 18px; }
.article-header h1 {
  max-width: 840px;
  margin: 0 auto;
  font-size: clamp(38px, 6.2vw, 66px);
}
.article-header .article-meta {
  justify-content: center;
  margin-top: 20px;
  font-size: 13px;
}
.article-hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 42px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--surface-2);
  box-shadow: var(--shadow);
}
.article-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-content {
  width: min(700px, 100%);
  margin: 48px auto 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.82;
}
.article-content .intro {
  margin: 0 0 36px;
  color: #34332f;
  font-size: 22px;
  line-height: 1.65;
}
.article-content h2 {
  margin: 48px 0 16px;
  font-size: 32px;
}
.article-content p { margin: 0 0 20px; }
.takeaway {
  margin-top: 50px;
  padding: 26px 28px;
  border-left: 4px solid var(--green);
  border-radius: 0 18px 18px 0;
  background: var(--surface-2);
}
.takeaway strong {
  display: block;
  margin-bottom: 6px;
  color: var(--green-dark);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.takeaway p { margin: 0; }
.related {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 100px;
}
.related h2 {
  margin: 0 0 26px;
  font-size: 35px;
}

.site-footer {
  padding: 50px 20px;
  background: #1c1c1a;
  color: rgba(255, 255, 255, 0.72);
}
.footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-footer .brand { color: #fff; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  font-size: 13px;
}
.footer-links a:hover { color: #fff; }

@media (max-width: 900px) {
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-inner { padding: 12px 0; flex-wrap: wrap; }
}
@media (max-width: 620px) {
  .header-inner,
  .magazine-hero,
  .magazine-main,
  .article-shell,
  .related { width: min(100% - 28px, 1180px); }
  .header-nav { width: 100%; justify-content: flex-start; gap: 4px 14px; font-size: 12px; }
  .magazine-hero { padding: 58px 0 40px; }
  .magazine-hero .lead { font-size: 15px; }
  .article-grid { grid-template-columns: 1fr; }
  .article-card-body { padding: 20px; }
  .article-shell { padding-top: 38px; }
  .article-header h1 { font-size: 38px; }
  .article-hero-image { margin-top: 30px; border-radius: 20px; }
  .article-content { margin-top: 36px; font-size: 17px; }
  .article-content .intro { font-size: 20px; }
  .article-content h2 { margin-top: 40px; font-size: 28px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
