﻿:root {
  --bg: #f4efe7;
  --bg-soft: #efe7db;
  --surface: rgba(255, 252, 247, 0.88);
  --surface-strong: #fffdfa;
  --surface-dark: #1f2937;
  --card: rgba(255, 255, 255, 0.82);
  --card-border: rgba(113, 87, 55, 0.14);
  --text: #1f2937;
  --text-soft: #4b5563;
  --text-faint: #6b7280;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --accent-soft: #d9f2ed;
  --warm: #b45309;
  --warm-soft: #f7e7cf;
  --shadow: 0 20px 48px rgba(74, 52, 30, 0.12);
  --shadow-soft: 0 14px 32px rgba(74, 52, 30, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
  background:
    radial-gradient(circle at top left, rgba(17, 94, 89, 0.09), transparent 26%),
    radial-gradient(circle at top right, rgba(180, 83, 9, 0.09), transparent 24%),
    linear-gradient(180deg, #f7f2ea 0%, #f3ede3 52%, #eee7dc 100%);
}

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

img {
  display: block;
  max-width: 100%;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 239, 231, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(113, 87, 55, 0.1);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.nav-links a {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-soft);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent);
}

.hero {
  padding: 44px 0 30px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  gap: 30px;
  align-items: stretch;
}

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

.hero-grid > div:first-child {
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.92), rgba(255, 255, 255, 0.72));
  border: 1px solid rgba(113, 87, 55, 0.12);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-grid > div:first-child::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(17, 94, 89, 0.12), transparent 70%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid rgba(17, 94, 89, 0.12);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 5.4vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.hero p {
  margin: 0 0 18px;
  font-size: 1.1rem;
  color: var(--text-soft);
  max-width: 62ch;
}

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

.cta-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.96rem;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta-btn {
  background: linear-gradient(135deg, var(--accent), #1d8d83);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.2);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(113, 87, 55, 0.12);
  color: var(--text);
}

.cta-btn:hover,
.ghost-btn:hover,
.cta-btn:focus-visible,
.ghost-btn:focus-visible {
  transform: translateY(-1px);
}

.hero-card {
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.12), rgba(30, 41, 59, 0.04)),
    linear-gradient(180deg, rgba(255, 252, 247, 0.92), rgba(255, 255, 255, 0.74));
  border: 1px solid rgba(113, 87, 55, 0.12);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.breadcrumb a {
  color: var(--accent-strong);
}

.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  background: rgba(180, 83, 9, 0.1);
  border: 1px solid rgba(180, 83, 9, 0.14);
  color: var(--warm);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-summary {
  display: grid;
  gap: 12px;
}

.hero-summary p:last-child {
  margin-bottom: 0;
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.page-hero-panel {
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.94), rgba(255, 255, 255, 0.78));
  border: 1px solid rgba(113, 87, 55, 0.12);
  border-radius: var(--radius-xl);
  padding: 28px 34px 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.page-hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(17, 94, 89, 0.08), transparent 72%);
  pointer-events: none;
}

.page-hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.page-hero-copy {
  position: relative;
  z-index: 1;
}

.page-hero--compact h1 {
  max-width: 10ch;
  font-size: clamp(3.3rem, 7vw, 5.6rem);
  margin-bottom: 10px;
}

.page-hero-lead {
  margin-bottom: 0;
  font-size: 1.08rem;
  max-width: 38ch;
  color: var(--text);
}

.page-hero-notes {
  display: grid;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.page-hero-note {
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(113, 87, 55, 0.12);
  box-shadow: var(--shadow-soft);
}

.page-hero-note strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.page-hero-note span {
  display: block;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.56;
}

.hero-summary-compact {
  display: none;
}

.hero-summary-compact p {
  max-width: 72ch;
  margin-bottom: 0;
}

.page-hero-panel .hero-chip-row {
  margin-top: 14px;
}

.page-hero-panel .hero-actions {
  margin-top: 14px;
}

.content {
  padding: 8px 0 54px;
}

.content-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
  align-items: start;
}

.article {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 250, 244, 0.9));
  border: 1px solid rgba(113, 87, 55, 0.1);
  border-radius: 32px;
  padding: 38px;
  box-shadow: var(--shadow);
}

.article h2,
.article h3 {
  margin: 0 0 12px;
  line-height: 1.18;
}

.article h2 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.article h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

.article p,
.article li {
  font-size: 1.04rem;
  color: var(--text-soft);
}

.article p {
  margin: 0 0 15px;
  max-width: 72ch;
}

.article ul,
.article ol {
  margin: 0 0 15px;
  padding-left: 22px;
}

.article li {
  margin: 8px 0;
}

.article hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(113, 87, 55, 0.18), transparent);
  margin: 34px 0;
}

.article-lead {
  font-size: 1.08rem;
  color: var(--text);
}

.article-section {
  scroll-margin-top: 92px;
}

.article-section h2,
.article-section h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-image {
  margin: 18px 0 10px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(113, 87, 55, 0.12);
  box-shadow: var(--shadow-soft);
}

.article-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.section {
  padding: 8px 0 2px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section-title p {
  margin: 8px 0 0;
  max-width: 62ch;
}

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

.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 242, 233, 0.9));
  border: 1px solid rgba(113, 87, 55, 0.12);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.article-card:hover,
.article-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 22px 38px rgba(74, 52, 30, 0.12);
  border-color: rgba(17, 94, 89, 0.2);
}

.article-thumb {
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #efe3d2, #f7f3ed);
  border: 1px solid rgba(113, 87, 55, 0.1);
  margin-bottom: 14px;
}

.article-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(17, 94, 89, 0.08);
  border: 1px solid rgba(17, 94, 89, 0.1);
  color: var(--accent-strong);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.article-card h3 {
  margin: 0 0 10px;
  font-size: 1.32rem;
  line-height: 1.25;
}

.muted {
  color: var(--text-faint);
}

.article-card .muted {
  flex: 1;
  font-size: 0.98rem;
}

.article-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--accent-strong);
}

.article-link:hover,
.article-link:focus-visible {
  color: var(--warm);
}

.sidebar-stack {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 92px;
}

.sidebar-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 242, 233, 0.92));
  border: 1px solid rgba(113, 87, 55, 0.12);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.sidebar-card h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.toc-list,
.related-list,
.keyword-list {
  display: grid;
  gap: 10px;
}

.toc-list a,
.related-list a {
  color: var(--text-soft);
  font-size: 0.97rem;
}

.toc-list a:hover,
.related-list a:hover,
.toc-list a:focus-visible,
.related-list a:focus-visible {
  color: var(--accent-strong);
}

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

.keyword-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(17, 94, 89, 0.08);
  color: var(--accent-strong);
  border: 1px solid rgba(17, 94, 89, 0.1);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.related-card {
  display: block;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(113, 87, 55, 0.12);
  box-shadow: var(--shadow-soft);
}

.related-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.related-card span {
  color: var(--text-faint);
  font-size: 0.95rem;
}

.footer {
  padding: 24px 0 42px;
}

.footer .container {
  font-size: 0.96rem;
  color: var(--text-faint);
  text-align: center;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(113, 87, 55, 0.08);
}

@media (max-width: 1040px) {
  .hero-grid,
  .grid-3,
  .content-shell {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 860px;
  }

  .sidebar-stack {
    position: static;
    top: auto;
  }

  .page-hero-head {
    grid-template-columns: 1fr;
  }

  .page-hero--compact h1,
  .page-hero-lead {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

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

  .nav-links {
    gap: 14px;
  }

  .hero-grid > div:first-child,
  .article,
  .page-hero-panel {
    padding: 24px;
  }

  .hero h1 {
    max-width: none;
  }

  .hero p,
  .article p,
  .article li {
    font-size: 1rem;
  }

  .keyword-list,
  .related-grid {
    grid-template-columns: 1fr;
  }
}

