:root {
  --bg: #f3efe7;
  --bg-soft: rgba(255, 255, 255, 0.72);
  --paper: rgba(255, 250, 244, 0.84);
  --ink: #1d1d1b;
  --muted: #5d5a54;
  --line: rgba(29, 29, 27, 0.12);
  --brand: #bb4d00;
  --brand-deep: #8f3300;
  --accent: #0f766e;
  --shadow: 0 24px 60px rgba(58, 39, 25, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(187, 77, 0, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.12), transparent 22%),
    linear-gradient(180deg, #f8f1e8 0%, #f1ebdf 48%, #ebe4d8 100%);
  font-family: Georgia, "Times New Roman", serif;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px 0;
  backdrop-filter: blur(14px);
  background: rgba(243, 239, 231, 0.72);
  border-bottom: 1px solid rgba(29, 29, 27, 0.08);
}

.topbar-inner,
.site-footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--muted);
}

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

button,
input {
  font: inherit;
}

code {
  border-radius: 8px;
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.06);
  font-size: 0.92em;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 28px;
}

.hero-copy,
.hero-aside,
.intro-strip,
.finder,
.panel {
  border: 1px solid var(--line);
  background: var(--paper);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-copy {
  border-radius: 32px;
  padding: 36px;
}

.hero-copy h1 {
  margin: 12px 0 16px;
  font-size: clamp(2.5rem, 6vw, 5.3rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.hero-text,
.intro-strip p,
.card p,
.group-header p,
.link-item span {
  color: var(--muted);
  line-height: 1.65;
  font-size: 1rem;
}

.eyebrow,
.mini-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--brand);
}

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

.hero-actions a {
  border-radius: 999px;
  padding: 12px 18px;
  transition: transform 160ms ease, background-color 160ms ease;
}

.hero-actions a:first-child {
  background: var(--brand);
  color: #fff8f0;
}

.hero-actions a:last-child {
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent);
}

.hero-actions a:hover,
.tag:hover,
.link-item:hover {
  transform: translateY(-2px);
}

.hero-aside {
  border-radius: 32px;
  padding: 20px;
  display: grid;
  gap: 18px;
}

.highlight-card,
.stat-card,
.group-card,
.card {
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.highlight-card {
  border-radius: 24px;
  padding: 22px;
}

.highlight-card ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--ink);
  line-height: 1.8;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-card {
  border-radius: 20px;
  padding: 16px;
}

.stat-card strong {
  display: block;
  font-size: 1.55rem;
  margin-bottom: 8px;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.intro-strip {
  border-radius: 28px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}

.intro-strip h2,
.finder h2,
.panel-head h3 {
  margin: 8px 0 0;
}

.resource-shell {
  display: grid;
  gap: 24px;
}

.featured-shell {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: end;
}

.section-heading h2 {
  margin: 8px 0 0;
}

.section-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.featured-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.92), rgba(247, 240, 231, 0.88));
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.featured-card h3 {
  margin: 12px 0 10px;
  font-size: 1.5rem;
}

.featured-card p {
  color: var(--muted);
  line-height: 1.7;
}

.featured-card a {
  display: inline-flex;
  margin-top: 16px;
  color: var(--brand);
  font-weight: 700;
}

.finder {
  border-radius: 28px;
  padding: 26px;
  display: grid;
  gap: 18px;
}

.search-input {
  display: grid;
  gap: 8px;
}

.search-input span {
  font-size: 0.95rem;
  color: var(--muted);
}

.search-input input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.68);
  outline: none;
}

.search-input input:focus {
  border-color: rgba(187, 77, 0, 0.45);
  box-shadow: 0 0 0 4px rgba(187, 77, 0, 0.08);
}

.tag-row,
.meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tag,
.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
}

.tag {
  background: rgba(255, 255, 255, 0.74);
  cursor: pointer;
}

.tag.active {
  background: var(--ink);
  color: #fff;
}

.pill {
  font-size: 0.82rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.5);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.panel {
  border-radius: 28px;
  padding: 22px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}

.panel-head span {
  color: var(--muted);
}

.card-list,
.group-list,
.link-list {
  display: grid;
  gap: 16px;
}

.card,
.group-card {
  border-radius: 24px;
  padding: 18px;
}

.card-muted {
  opacity: 0.78;
}

.article-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--brand-deep);
  font-size: 0.88rem;
}

.card h4,
.group-card h4 {
  margin: 12px 0 10px;
  font-size: 1.3rem;
}

.card a {
  display: inline-flex;
  margin-top: 16px;
  color: var(--brand);
  font-weight: 700;
}

.group-header {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.link-item {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.6);
  transition: transform 160ms ease, border-color 160ms ease;
}

.link-item:hover {
  border-color: rgba(15, 118, 110, 0.4);
}

.article-page {
  width: min(860px, calc(100% - 32px));
}

.article-layout {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 36px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--brand);
  font-weight: 700;
}

.article-layout h1 {
  margin: 12px 0 16px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.article-lead {
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--muted);
}

.article-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.article-section h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.article-section p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.8;
}

.article-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.9;
}

.article-list.ordered {
  padding-left: 24px;
}

.site-footer {
  margin-top: 28px;
  padding: 22px 0 44px;
}

.site-footer-inner {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 28px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.site-footer-inner h2 {
  margin: 8px 0 12px;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.footer-links {
  display: grid;
  gap: 12px;
  align-content: start;
}

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

@media (max-width: 920px) {
  .hero,
  .intro-strip,
  .content-grid,
  .section-heading,
  .featured-grid,
  .site-footer-inner {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .page {
    width: min(100% - 20px, 1180px);
    padding-top: 18px;
    padding-bottom: 44px;
  }

  .topbar-inner,
  .site-footer-inner {
    width: min(100% - 20px, 1180px);
  }

  .hero-copy,
  .hero-aside,
  .finder,
  .panel,
  .intro-strip,
  .article-layout {
    padding: 18px;
    border-radius: 22px;
  }

  .hero-copy h1 {
    font-size: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions a {
    text-align: center;
  }

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

  .main-nav {
    gap: 10px 14px;
  }
}
