:root {
  --bg: #fff9f4;
  --surface: #ffffff;
  --surface-soft: #fff3e8;
  --text: #202223;
  --muted: #5c6470;
  --brand: #f58b54;
  --brand-ink: #8b3a14;
  --line: #f0d3bf;
  --ok: #1f9a74;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(120, 58, 30, 0.12);
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -20%, #ffd9c2 0, transparent 45%),
    radial-gradient(circle at 90% 0, #ffeede 0, transparent 40%),
    var(--bg);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.6;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  z-index: 9999;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 249, 244, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(130deg, var(--brand), #f3ae67);
}

.brand-text {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 1.2rem;
}

.main-nav {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.main-nav a {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--brand-ink);
  font-weight: 700;
}

.main-nav a:hover {
  background: #ffe1cf;
}

.main-nav a[aria-current="page"] {
  background: linear-gradient(120deg, var(--brand), #eda360);
  color: #fff;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
  padding: 2rem 0 1rem;
}

.hero-copy,
.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}

.kicker {
  color: var(--ok);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  font-size: 0.75rem;
  margin: 0 0 0.3rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.8rem;
}

h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

h3 {
  font-size: 1.1rem;
}

.lead {
  margin-top: 0.2rem;
  color: var(--muted);
  max-width: 56ch;
}

.search-box {
  margin-top: 1.2rem;
}

.search-box label {
  display: block;
  font-size: 0.93rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.search-row {
  display: flex;
  gap: 0.55rem;
}

.search-row input {
  flex: 1;
  border: 1px solid #e7c6af;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font: inherit;
}

.search-row button {
  border: 0;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  background: linear-gradient(120deg, var(--brand), #eda360);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.hero-panel ul {
  margin: 0.9rem 0 0;
  padding-left: 1.2rem;
}

.hero-panel a {
  color: var(--brand-ink);
}

.page-hero {
  margin-top: 0.4rem;
}

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

.breadcrumbs a {
  color: var(--brand-ink);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.subnav {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.chip {
  display: inline-block;
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--brand-ink);
  background: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.chip:hover {
  background: var(--surface-soft);
}

.section {
  padding: 1.4rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: end;
  margin-bottom: 0.9rem;
}

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

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

.featured {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(130, 62, 30, 0.12);
}

.thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #f1d6c4;
  background: #fff4ea;
}

.cat {
  margin: 0 0 0.4rem;
  color: var(--ok);
  font-weight: 800;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card h3 {
  margin-bottom: 0.55rem;
}

.card a {
  color: var(--text);
  text-decoration: none;
}

.card a:hover {
  color: var(--brand-ink);
}

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

.archive-list {
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.archive-list li + li {
  border-top: 1px solid var(--line);
}

.archive-list a {
  display: block;
  padding: 0.85rem 1rem;
  color: var(--text);
  text-decoration: none;
}

.archive-list a:hover {
  background: var(--surface-soft);
}

.site-footer {
  margin-top: 2.2rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #fff4ea 0%, #ffeedf 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.9fr;
  gap: 1rem;
  padding: 1.4rem 0;
}

.site-footer h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.site-footer p {
  margin: 0 0 0.5rem;
}

.small-note {
  font-size: 0.86rem;
  color: var(--muted);
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 0.45rem;
}

.footer-links a {
  color: var(--brand-ink);
  text-decoration: none;
  font-weight: 700;
}

.footer-links a:hover {
  text-decoration: underline;
}

.copyright {
  padding: 0.8rem 0 1.2rem;
  color: var(--muted);
  border-top: 1px dashed #e7c8b3;
  font-size: 0.9rem;
}

.article-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-top: 1.4rem;
}

.article-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 1rem 0;
  display: block;
  border: 1px solid #f1d6c4;
}

.policy-content,
.category-intro {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-top: 1.4rem;
  max-width: 75ch;
}

.articles-list {
  margin-top: 1.4rem;
}

@media (max-width: 980px) {
  .hero,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .cards,
  .featured {
    grid-template-columns: 1fr;
  }

  .header-bar {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.8rem 0;
  }

  .search-row {
    flex-direction: column;
  }
}
