:root {
  --bg: #f5efe7;
  --bg-soft: #fcf8f2;
  --surface: rgba(255, 250, 244, 0.84);
  --surface-strong: rgba(255, 252, 247, 0.95);
  --text: #302820;
  --muted: #6c6158;
  --line: rgba(48, 40, 32, 0.12);
  --accent: #7f8f69;
  --accent-deep: #5f7050;
  --tone-earth: #b57d57;
  --tone-berry: #c08b84;
  --shadow: 0 24px 80px rgba(78, 58, 40, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(181, 125, 87, 0.14), transparent 30%),
    radial-gradient(circle at right 18%, rgba(127, 143, 105, 0.12), transparent 24%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

a {
  color: inherit;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.ambient {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  pointer-events: none;
}

.ambient-left {
  top: -100px;
  left: -80px;
  background: rgba(215, 185, 158, 0.6);
}

.ambient-right {
  top: 220px;
  right: -120px;
  background: rgba(189, 204, 181, 0.5);
}

.site-header,
main,
.site-footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 26px 0 10px;
}

.brand {
  text-decoration: none;
  font-family: "Newsreader", serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.nav a,
.article-nav a {
  text-decoration: none;
  color: var(--muted);
}

.language-switcher {
  display: flex;
  gap: 8px;
}

.lang-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.34);
  text-decoration: none;
  color: var(--muted);
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.lang-chip.active {
  background: var(--surface-strong);
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.88fr;
  gap: 20px;
  align-items: stretch;
  padding: 30px 0 10px;
}

.hero-copy,
.hero-panel,
.guide-card,
.feature-card,
.topic-layout,
.faq-list details,
.article-shell,
.toc-card,
.article-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-copy,
.hero-panel {
  border-radius: 34px;
  padding: 38px;
}

.eyebrow,
.tag,
.panel-label,
.article-kicker {
  margin: 0 0 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3,
summary {
  margin: 0;
  font-family: "Newsreader", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(3.3rem, 7vw, 6.1rem);
  line-height: 0.95;
  max-width: 10ch;
}

h2 {
  font-size: clamp(2.2rem, 3.8vw, 3.3rem);
  line-height: 1;
  max-width: 16ch;
}

h3,
summary {
  font-size: 1.45rem;
}

.lead,
.hero-panel p,
.feature-card p,
.guide-card p,
.topic-copy p,
.topic-item p,
.faq-list p,
.article-card p,
.article-card li,
.toc-card li {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}

.lead {
  margin: 20px 0 0;
  max-width: 43rem;
}

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

.button,
.soft-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.button:hover,
.soft-toggle:hover,
.lang-chip:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #fdfbf7;
}

.button-primary:hover {
  background: var(--accent-deep);
}

.button-secondary,
.soft-toggle {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.trust-row span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.trust-row strong {
  display: block;
  margin-top: 6px;
  font-weight: 700;
}

.hero-panel h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 14px;
}

.calm-list,
.toc-card ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

.calm-list li + li,
.toc-card li + li {
  margin-top: 8px;
}

.section {
  padding: 58px 0 0;
}

.section-tight {
  padding-top: 34px;
}

.section-heading {
  margin-bottom: 20px;
}

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

.section-note {
  max-width: 30rem;
  color: var(--muted);
  line-height: 1.7;
}

.guide-grid,
.feature-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.guide-card,
.feature-card,
.article-card {
  border-radius: 26px;
  padding: 24px;
  text-decoration: none;
}

.guide-card {
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(249, 242, 233, 0.92));
}

.guide-card:nth-child(2n) {
  background:
    linear-gradient(180deg, rgba(248, 252, 245, 0.96), rgba(238, 244, 232, 0.92));
}

.guide-card:nth-child(3n) {
  background:
    linear-gradient(180deg, rgba(252, 245, 242, 0.96), rgba(247, 235, 232, 0.92));
}

.guide-card h3,
.feature-card h3,
.article-card h3 {
  margin-bottom: 12px;
}

.topic-layout {
  display: grid;
  grid-template-columns: 1fr 0.94fr;
  gap: 20px;
  border-radius: 32px;
  padding: 28px;
}

.topic-stack {
  display: grid;
  gap: 14px;
}

.topic-item {
  padding: 18px;
  border: 1px solid rgba(48, 40, 32, 0.08);
  background: rgba(255, 255, 255, 0.45);
  border-radius: 22px;
}

.topic-item span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 18px 20px;
  border-radius: 22px;
}

summary {
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

.faq-list p {
  margin: 12px 0 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 34px 0 52px;
  color: var(--muted);
}

.article-header {
  padding-top: 14px;
}

.article-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.article-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
  border-radius: 34px;
  padding: 24px;
}

.toc-card,
.article-card {
  border-radius: 26px;
}

.toc-card {
  padding: 20px;
  position: sticky;
  top: 20px;
  align-self: start;
}

.toc-card a {
  text-decoration: none;
}

.article-content {
  display: grid;
  gap: 16px;
}

.article-card ul {
  padding-left: 20px;
}

.article-card ul li + li {
  margin-top: 10px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.article-callout {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(48, 40, 32, 0.08);
}

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

body.soft-mode {
  --bg: #f7f1ea;
  --bg-soft: #fffdfa;
  --surface: rgba(255, 253, 249, 0.9);
  --accent: #9f7c56;
  --accent-deep: #7f6144;
}

@media (max-width: 1080px) {
  .guide-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .site-header,
  .hero,
  .topic-layout,
  .article-shell,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    display: grid;
    justify-items: start;
  }

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

  .section-inline {
    display: block;
  }

  .section-note {
    margin-top: 12px;
  }

  .toc-card {
    position: static;
  }

  h1,
  h2 {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .guide-grid,
  .feature-grid,
  .trust-row {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-panel,
  .topic-layout,
  .article-shell {
    padding: 24px;
    border-radius: 24px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
