
:root {
  color-scheme: light;
  --bg: #f4efe6;
  --bg-soft: #fbf8f2;
  --surface: rgba(255, 251, 245, 0.88);
  --surface-strong: #fffdfa;
  --line: rgba(42, 39, 36, 0.12);
  --line-strong: rgba(42, 39, 36, 0.2);
  --text: #1d1b19;
  --muted: #6f685f;
  --brand: #0f766e;
  --brand-strong: #115e59;
  --accent: #b45309;
  --accent-soft: rgba(180, 83, 9, 0.12);
  --success-soft: rgba(15, 118, 110, 0.12);
  --shadow: 0 24px 60px rgba(29, 27, 25, 0.08);
  --shadow-soft: 0 12px 30px rgba(29, 27, 25, 0.06);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --container: 1180px;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Source Han Serif SC", serif;
  --font-body: "Avenir Next", "PingFang SC", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(180, 83, 9, 0.12), transparent 22%),
    linear-gradient(180deg, #fbf7ef 0%, var(--bg) 46%, #efe7d8 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  position: relative;
  overflow: clip;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(24px);
  z-index: 0;
}

.site-shell::before {
  width: 22rem;
  height: 22rem;
  top: 6rem;
  left: -7rem;
  background: rgba(15, 118, 110, 0.08);
}

.site-shell::after {
  width: 18rem;
  height: 18rem;
  right: -5rem;
  top: 26rem;
  background: rgba(180, 83, 9, 0.08);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(251, 248, 242, 0.74);
  border-bottom: 1px solid rgba(42, 39, 36, 0.08);
}

.site-header__inner,
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fefefe;
  background:
    linear-gradient(160deg, #0f766e 0%, #155e75 60%, #1e3a8a 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 10px 22px rgba(15, 118, 110, 0.24);
  letter-spacing: 0.08em;
  font-size: 14px;
  font-weight: 700;
}

.brand__meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
}

.brand__tagline {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: 180ms ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav a.is-active {
  color: var(--brand-strong);
  background: rgba(15, 118, 110, 0.08);
  outline: none;
}

.nav .nav__search {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, #1d4ed8 100%);
}

.nav .nav__search:hover,
.nav .nav__search:focus-visible,
.nav .nav__search.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-strong) 0%, #1e40af 100%);
}

.page {
  position: relative;
  z-index: 1;
  padding: 28px 0 96px;
}

#app {
  transition: opacity 180ms ease, transform 180ms ease;
}

#app.is-updating {
  opacity: 0.66;
  transform: translateY(4px);
  pointer-events: none;
}

.hero,
.panel,
.feature-card,
.card,
.detail-hero,
.list-shell,
.search-shell,
.empty-state,
.error-state {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.hero,
.detail-hero,
.search-shell {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
  padding: 18px;
}

.hero__copy,
.hero__panel,
.detail-hero__copy,
.detail-hero__aside,
.search-shell__panel {
  border-radius: 24px;
  padding: 28px;
  background: rgba(255,255,255,0.5);
}

.hero__copy,
.detail-hero__copy {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.68), rgba(255,255,255,0.54)),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 40%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-strong);
  background: var(--success-soft);
}

.hero h1,
.page-title h1,
.detail-hero h1,
.section-heading h2 {
  margin: 16px 0 14px;
  font-family: var(--font-display);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 76px);
}

.page-title h1,
.detail-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.hero p,
.detail-hero p,
.page-title p,
.muted,
.meta-line,
.empty-state p,
.error-state p {
  color: var(--muted);
  line-height: 1.75;
}

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

.stat {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.66);
  border: 1px solid rgba(42, 39, 36, 0.08);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  margin-bottom: 6px;
}

.hero__panel {
  display: grid;
  gap: 14px;
  align-content: start;
  background:
    linear-gradient(160deg, rgba(15, 118, 110, 0.08), rgba(180, 83, 9, 0.08)),
    rgba(255,255,255,0.6);
}

.quick-links {
  display: grid;
  gap: 12px;
}

.quick-links a,
.feature-card,
.card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.quick-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(42, 39, 36, 0.1);
  background: rgba(255,255,255,0.62);
}

.quick-links a:hover,
.feature-card:hover,
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(15, 118, 110, 0.2);
}

.section {
  margin-top: 30px;
}

.section-heading,
.page-title {
  margin-bottom: 18px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.section-heading h2 {
  font-size: clamp(28px, 3.8vw, 42px);
  margin-bottom: 6px;
}

.section-heading a {
  color: var(--brand-strong);
  font-weight: 700;
}

.feature-grid,
.card-grid {
  display: grid;
  gap: 16px;
}

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

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-card,
.card {
  display: grid;
  gap: 14px;
  border-radius: 24px;
  padding: 18px;
  min-height: 100%;
}

.feature-card__image,
.card__image {
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(15, 118, 110, 0.16), rgba(180, 83, 9, 0.18)),
    linear-gradient(180deg, #d5e6e2, #ecd8be);
}

.feature-card__image img,
.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card__meta,
.card__meta,
.detail-meta,
.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1;
}

.chip {
  border: 1px solid rgba(42, 39, 36, 0.1);
  background: rgba(255,255,255,0.72);
  color: var(--muted);
}

.badge {
  background: var(--accent-soft);
  color: #8a490c;
  font-weight: 700;
}

.badge--brand {
  background: rgba(15, 118, 110, 0.12);
  color: var(--brand-strong);
}

.feature-card h3,
.card h3,
.detail-section h2 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.15;
}

.feature-card h3,
.card h3 {
  font-size: 26px;
}

.feature-card p,
.card p,
.detail-copy,
.detail-section p,
.detail-section li {
  color: var(--muted);
  line-height: 1.75;
}

.list-shell,
.search-shell {
  padding: 20px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,0.58);
  margin-bottom: 18px;
}

.toolbar__form,
.search-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

.toolbar input,
.toolbar select,
.search-form input {
  min-width: min(280px, 100%);
  flex: 1 1 240px;
  border-radius: 16px;
  border: 1px solid rgba(42, 39, 36, 0.14);
  background: rgba(255,255,255,0.9);
  padding: 13px 15px;
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 16px;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, #1d4ed8 100%);
  box-shadow: 0 12px 22px rgba(29, 78, 216, 0.18);
}

.button--soft {
  color: var(--text);
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(42, 39, 36, 0.1);
  box-shadow: none;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 18px;
  padding: 18px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  margin-top: 20px;
}

.detail-section,
.detail-aside__card {
  border-radius: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.detail-section + .detail-section,
.detail-aside__card + .detail-aside__card {
  margin-top: 16px;
}

.detail-section h2 {
  font-size: 30px;
  margin-bottom: 14px;
}

.detail-copy {
  font-size: 16px;
}

.detail-copy h1,
.detail-copy h2,
.detail-copy h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 1.4em 0 0.5em;
  color: var(--text);
}

.detail-copy h1 { font-size: 34px; }
.detail-copy h2 { font-size: 28px; }
.detail-copy h3 { font-size: 22px; }
.detail-copy p,
.detail-copy ul,
.detail-copy ol,
.detail-copy blockquote {
  margin: 0 0 1em;
}

.detail-copy ul,
.detail-copy ol {
  padding-left: 1.25em;
}

.detail-copy blockquote {
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: rgba(180, 83, 9, 0.08);
  color: #6f4a17;
}

.detail-copy a {
  color: var(--brand-strong);
  text-decoration: underline;
}

.key-facts {
  display: grid;
  gap: 12px;
}

.key-facts dt {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.key-facts dd {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

.empty-state,
.error-state {
  border-radius: 24px;
  padding: 28px;
}

.footer-note {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(42, 39, 36, 0.08);
  background: rgba(255, 251, 245, 0.58);
  backdrop-filter: blur(12px);
}

.site-footer__inner {
  align-items: flex-start;
  padding-block: 28px 34px;
}

.site-footer__links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
}

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  min-height: 120px;
  background: linear-gradient(90deg, rgba(239, 231, 216, 0.85), rgba(250, 246, 239, 0.95), rgba(239, 231, 216, 0.85));
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  animation: shimmer 1.8s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

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

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

  .site-header__inner,
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .hero,
  .detail-hero,
  .list-shell,
  .search-shell {
    padding: 14px;
  }

  .hero__copy,
  .hero__panel,
  .detail-hero__copy,
  .detail-hero__aside,
  .search-shell__panel,
  .detail-section,
  .detail-aside__card {
    padding: 20px;
  }

  .page {
    padding-top: 20px;
    padding-bottom: 80px;
  }
}
