:root {
  color-scheme: light;
  --ink: #17201a;
  --muted: #667067;
  --line: #dbe3dc;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --surface-strong: #edf4ef;
  --accent: #1d6f5f;
  --accent-dark: #12473e;
  --gold: #b2852b;
  --shadow: 0 24px 70px rgba(24, 38, 30, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(29, 111, 95, 0.12), transparent 38%),
    radial-gradient(circle at 88% 8%, rgba(189, 79, 58, 0.16), transparent 28%),
    var(--paper);
  color: var(--ink);
  min-width: 320px;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(247, 245, 239, 0.84);
  border-bottom: 1px solid rgba(219, 227, 220, 0.75);
  display: flex;
  height: 72px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(18px, 4vw, 56px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand,
.desktop-nav,
.hero-actions,
.post-meta,
.email-row {
  align-items: center;
  display: flex;
}

.brand {
  font-weight: 800;
  gap: 12px;
}

.brand-mark {
  background: var(--ink);
  border-radius: 8px;
  color: white;
  display: grid;
  height: 38px;
  place-items: center;
  width: 38px;
}

.desktop-nav {
  color: var(--muted);
  font-size: 0.95rem;
  gap: 22px;
}

.desktop-nav a:hover,
.post-card a:hover {
  color: var(--accent);
}

.language-toggle,
.mobile-nav button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 9px 14px;
}

.menu-button {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: none;
  height: 42px;
  padding: 0 11px;
  width: 42px;
}

.menu-button span {
  background: var(--ink);
  display: block;
  height: 2px;
  margin: 5px 0;
  width: 18px;
}

.mobile-nav {
  background: rgba(247, 245, 239, 0.97);
  border-bottom: 1px solid var(--line);
  display: none;
  gap: 6px;
  padding: 12px 18px 18px;
}

.mobile-nav a,
.mobile-nav button {
  border-radius: 8px;
  padding: 12px;
  text-align: left;
}

.hero {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  margin: 0 auto;
  max-width: 1180px;
  min-height: calc(100vh - 72px);
  padding: clamp(52px, 8vw, 96px) clamp(18px, 4vw, 56px) 36px;
}

.hero-copy {
  align-self: center;
}

.eyebrow,
.panel-label,
.featured-meta,
.post-meta {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 7vw, 6.6rem);
  letter-spacing: 0;
  line-height: 0.95;
  margin-bottom: 28px;
  max-width: 780px;
}

.intro {
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.7;
  max-width: 680px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.primary-action,
.secondary-action,
.newsletter button {
  border-radius: 8px;
  font-weight: 800;
  min-height: 46px;
  padding: 13px 18px;
}

.primary-action,
.newsletter button {
  background: var(--accent);
  color: white;
}

.secondary-action {
  border: 1px solid var(--line);
  color: var(--accent-dark);
}

.featured-panel,
.post-card,
.about-block,
.topic-block,
.newsletter,
.article-detail {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(219, 227, 220, 0.88);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.featured-panel {
  align-self: end;
  padding: clamp(24px, 4vw, 38px);
}

.featured-panel h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: 0;
  line-height: 1.05;
  margin-bottom: 16px;
}

.featured-panel p,
.about-block p,
.newsletter p,
.article-summary,
.article-content p {
  color: var(--muted);
  line-height: 1.75;
}

.featured-body {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 22px;
}

.content-grid,
.lower-grid,
.article-page {
  margin: 0 auto;
  max-width: 1180px;
  padding: 42px clamp(18px, 4vw, 56px);
}

.section-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-heading h2,
.about-block h2,
.topic-block h2,
.newsletter h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: 0;
  margin-bottom: 0;
}

.posts-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card {
  box-shadow: none;
  min-height: 270px;
  padding: 24px;
}

.post-meta {
  color: var(--gold);
  gap: 12px;
  justify-content: space-between;
}

.post-card h3 {
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 22px 0 14px;
}

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

.post-card a,
.back-link {
  color: var(--accent-dark);
  display: inline-block;
  font-weight: 800;
  margin-top: 12px;
}

.lower-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 360px;
  padding-bottom: 80px;
}

.about-block,
.topic-block,
.newsletter {
  box-shadow: none;
  padding: 26px;
}

.about-block {
  background: var(--surface-strong);
}

.sidebar {
  display: grid;
  gap: 18px;
}

.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.topic-chip {
  background: #f0eee6;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-dark);
  font-weight: 800;
  padding: 9px 12px;
}

.email-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  gap: 8px;
  margin-top: 18px;
  padding: 6px;
}

.email-row input {
  background: transparent;
  border: 0;
  flex: 1;
  font: inherit;
  min-width: 0;
  outline: 0;
  padding: 0 8px;
}

.email-row button {
  border: 0;
  cursor: pointer;
  min-height: 40px;
  padding: 10px 14px;
}

.article-page {
  min-height: calc(100vh - 72px);
}

.article-detail {
  margin: 0 auto;
  max-width: 760px;
  padding: clamp(26px, 5vw, 54px);
}

.article-detail h1 {
  font-size: clamp(2.7rem, 7vw, 5rem);
}

@media (max-width: 860px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: grid;
    place-items: center;
  }

  .mobile-nav.is-open {
    display: grid;
    position: sticky;
    top: 72px;
    z-index: 18;
  }

  .hero,
  .lower-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 46px;
  }

  .featured-panel {
    align-self: auto;
  }

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

  .post-card {
    min-height: auto;
  }

  .lower-grid {
    padding-bottom: 48px;
  }
}

@media (max-width: 560px) {
  .site-header {
    height: 64px;
  }

  .brand {
    font-size: 0.95rem;
  }

  .brand-mark {
    height: 34px;
    width: 34px;
  }

  .mobile-nav.is-open {
    top: 64px;
  }

  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: 3rem;
  }

  .hero-actions,
  .email-row {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .secondary-action,
  .newsletter button {
    text-align: center;
    width: 100%;
  }

  .featured-panel,
  .post-card,
  .about-block,
  .topic-block,
  .newsletter {
    padding: 22px;
  }
}
