@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/assets/fonts/playfair-display-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 600 700;
  font-display: swap;
  src: url("/assets/fonts/playfair-display-italic-latin.woff2") format("woff2");
}

:root {
  --paper: #f8f5ef;
  --paper-soft: rgba(255, 253, 249, 0.88);
  --ink: #2d2926;
  --muted: #756c65;
  --accent: #93271d;
  --accent-dark: #711c15;
  --line: rgba(113, 28, 21, 0.14);
  --green: #167d68;
  --content: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: light;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(248, 245, 239, 0.88), rgba(248, 245, 239, 0.96)),
    url("/assets/page-canvas-workspace.webp") top center / 1920px auto repeat-y;
  font: 400 17px/1.72 "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a { color: inherit; }
a:hover { color: var(--accent); }

.skip-link {
  position: fixed;
  z-index: 50;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #fff;
  background: var(--accent-dark);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.knowledge-nav {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 245, 239, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.nav-inner,
.page-shell,
.site-footer-inner {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.nav-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font: italic 650 29px/1 "Playfair Display", Georgia, serif;
  text-decoration: none;
}

.wordmark img {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 5px 16px rgba(70, 30, 20, 0.1);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a { text-decoration: none; }

.language-link {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.56);
}

.page-shell { padding-block: 68px 88px; }

.breadcrumbs {
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.breadcrumbs a { text-decoration: none; }

.hero-copy,
.article-body,
.limitations,
.related,
.hub-intro { max-width: 790px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1, h2, h3 {
  color: var(--accent-dark);
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 18ch;
  font: 650 clamp(2.55rem, 6vw, 5.4rem)/1.01 "Playfair Display", Georgia, serif;
  text-wrap: balance;
}

.answer {
  margin: 28px 0 0;
  color: #463f3a;
  font-size: clamp(1.1rem, 2vw, 1.33rem);
  line-height: 1.62;
}

.fact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.fact-strip li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 750;
}

.article-body { margin-top: 74px; }

.article-body section {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.article-body h2,
.related h2,
.hub-section h2 {
  margin: 0 0 18px;
  font: 650 clamp(1.65rem, 3vw, 2.25rem)/1.15 "Playfair Display", Georgia, serif;
}

.article-body p { margin: 0 0 17px; }
.article-body p:last-child { margin-bottom: 0; }

.limitations {
  margin-top: 30px;
  padding: 24px 0 24px 24px;
  border-left: 3px solid var(--accent);
}

.limitations h2 {
  margin: 0 0 8px;
  color: var(--accent);
  font: 800 14px/1.3 "Inter", sans-serif;
  text-transform: uppercase;
}

.limitations p { margin: 0; }

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 64px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
  box-shadow: 0 20px 52px rgba(73, 40, 25, 0.08);
}

.cta-band strong {
  display: block;
  margin-bottom: 5px;
  color: var(--accent-dark);
  font: 650 1.35rem/1.2 "Playfair Display", Georgia, serif;
}

.cta-band p { margin: 0; color: var(--muted); font-size: 14px; }

.cta-store-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.play-link {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 6px;
  color: #fff;
  background: var(--accent);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.play-link:hover { color: #fff; background: var(--accent-dark); }

.related { margin-top: 64px; }

.related-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 30px;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.related-links a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  text-decoration: none;
}

.hub-intro { margin-bottom: 58px; }

.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 34px;
  margin: 26px 0 70px;
}

.guide-link {
  display: block;
  padding: 23px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.guide-link h2 {
  margin: 0 0 7px;
  color: var(--accent-dark);
  font: 650 1.45rem/1.2 "Playfair Display", Georgia, serif;
}

.guide-link p { margin: 0; color: var(--muted); font-size: 14px; }

.site-footer {
  padding-block: 30px;
  border-top: 1px solid var(--line);
  background: rgba(248, 245, 239, 0.78);
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { text-decoration: none; }

@media (max-width: 720px) {
  body { font-size: 16px; background-size: 1180px auto; }
  .nav-inner, .page-shell, .site-footer-inner { width: min(calc(100% - 28px), var(--content)); }
  .nav-inner { min-height: 64px; }
  .wordmark { font-size: 24px; }
  .wordmark img { width: 34px; height: 34px; }
  .nav-links a:not(.language-link) { display: none; }
  .page-shell { padding-block: 46px 66px; }
  h1 { font-size: clamp(2.45rem, 13vw, 4.15rem); }
  .article-body { margin-top: 54px; }
  .hub-grid, .related-links { grid-template-columns: 1fr; }
  .cta-band, .site-footer-inner { align-items: flex-start; flex-direction: column; }
  .cta-store-links { width: 100%; }
  .play-link { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
