@import url("https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=DM+Sans:wght@400;500;600;700;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,500,0,0");

:root {
  color-scheme: light;
  --ink: #202438;
  --muted: #73788d;
  --line: #e9eaf1;
  --paper: #fff;
  --canvas: #f7f8fc;
  --purple: #7658e8;
  --purple-dark: #6344d4;
  --purple-soft: #f0edff;
  --shadow: 0 18px 55px rgba(49, 45, 93, .08);
  font-family: "Amiri", "DM Sans", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.shell { width: min(940px, calc(100% - 40px)); margin-inline: auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; }
.brand img { width: 40px; height: 40px; border-radius: 12px; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.language-button, .home-link { border: 1px solid var(--line); border-radius: 11px; padding: 9px 13px; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 700; }
.language-button:hover, .home-link:hover { border-color: #c9c1f3; color: var(--purple-dark); }
main { padding: 18px 0 64px; }
.breadcrumbs { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-inline-end: 8px; color: #a4a7b5; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }
.article-card { overflow: hidden; border: 1px solid #efeff5; border-radius: 24px; background: var(--paper); box-shadow: var(--shadow); }
.article-header { padding: 34px 40px 27px; border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 30px; color: var(--purple-dark); background: var(--purple-soft); font-size: 12px; font-weight: 700; }
.material-symbols-rounded { font-size: 20px; line-height: 1; }
h1 { margin: 15px 0 10px; font-size: clamp(29px, 5vw, 42px); line-height: 1.35; }
.intro, .article-content p { color: var(--muted); line-height: 1.95; }
.intro { max-width: 760px; margin: 0; font-size: 15px; }
.article-content { max-width: 830px; margin-inline: auto; padding: 8px 40px 38px; }
.article-content section { padding-top: 26px; }
.article-content h2 { margin: 0 0 9px; font-size: 21px; line-height: 1.5; }
.article-content h3 { margin: 18px 0 6px; font-size: 16px; }
.article-content p { margin: 0 0 12px; font-size: 14px; }
.article-content ul, .article-content ol { padding-inline-start: 24px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.article-image { max-width: 420px; margin: 18px auto 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.article-image img { display: block; width: 100%; height: auto; }
.article-image figcaption { padding: 12px 15px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.image-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.image-pair .article-image { width: 100%; margin: 0; }
.app-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; border-radius: 13px; padding: 13px 18px; color: #fff; background: var(--purple); font-weight: 700; box-shadow: 0 8px 18px #7658e833; }
.app-cta:hover { background: var(--purple-dark); }
.related { margin-top: 24px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); }
.related h2 { margin: 0 0 12px; font-size: 16px; }
.related ul { display: flex; flex-wrap: wrap; gap: 9px 18px; margin: 0; padding: 0; list-style: none; }
.related a { color: var(--purple-dark); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
footer { border-top: 1px solid var(--line); padding: 20px 0; color: var(--muted); font-size: 12px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
a:focus-visible, button:focus-visible { outline: 3px solid #b7aaff; outline-offset: 3px; }
[dir="ltr"] { font-family: "DM Sans", "Amiri", sans-serif; }
@media (max-width: 600px) {
  .shell { width: min(100% - 28px, 940px); }
  .topbar { min-height: 68px; }
  .brand { font-size: 12px; }
  .brand img { width: 35px; height: 35px; }
  .home-link, .language-button { padding: 8px 10px; font-size: 11px; }
  .article-card { border-radius: 19px; }
  .article-header { padding: 25px 22px 20px; }
  .article-content { padding-inline: 22px; }
  .image-pair { grid-template-columns: 1fr; }
  .related { padding: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
