:root {
  --purple: #603dcc;
  --purple-dark: #43238e;
  --mint: #c8ffe4;
  --lavender: #eee8ff;
  --ink: #211637;
  --muted: #6f657b;
  --line: #ded7e7;
  --page: #faf9fd;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
img { width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, summary:focus-visible, .access-matrix:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 5px;
}
.container { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 15px; background: var(--mint); color: var(--ink); padding: 12px; z-index: 90; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 40; background: #faf9fdf5; border-bottom: 1px solid var(--line); backdrop-filter: blur(15px); }
.header-wrap { max-width: 1400px; margin: auto; padding: 19px 32px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--purple); color: white; font-weight: 900; font-size: 18px; letter-spacing: -1px; padding-right: 3px; }
.brand-icon > span { color: var(--mint); }
.brand-word { font-weight: 900; font-size: 22px; line-height: 1; }
.brand-word > span { display: block; font-size: 7px; font-weight: 700; letter-spacing: 1.2px; margin-top: 8px; color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: 27px; margin: auto; }
.main-nav a { font-size: 13px; font-weight: 700; color: var(--muted); padding: 9px 0; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--purple); }
.main-nav a[aria-current] { box-shadow: 0 2px var(--purple); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.account { border-radius: 30px; border: 1px solid var(--line); padding: 8px 19px; white-space: nowrap; font-size: 12px; font-weight: 700; }
.register { background: var(--purple); color: white; border-color: var(--purple); }
.register:hover { background: var(--purple-dark); }
.login:hover { color: var(--purple); border-color: var(--purple); }
.language-control { position: relative; }
.globe-button, .menu-toggle { background: none; color: var(--purple); border: 1px solid var(--line); width: 37px; height: 37px; display: grid; place-items: center; border-radius: 50%; }
.globe-button svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.menu-toggle { display: none; border-radius: 10px; }
.language-menu { position: absolute; right: 0; top: 48px; width: 188px; padding: 8px; border: 1px solid var(--line); background: white; border-radius: 14px; box-shadow: 0 15px 40px #21163718; }
.language-menu a { display: block; border-radius: 8px; padding: 9px 12px; font-size: 13px; }
.language-menu a:hover { background: var(--lavender); color: var(--purple); }
h1, h2, h3 { line-height: 1.16; margin: 0; font-weight: 800; }
h1 { font-size: clamp(40px, 5.4vw, 76px); letter-spacing: -3.5px; text-wrap: balance; }
h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -1.3px; }
h3 { font-size: 23px; letter-spacing: -.5px; }
p { color: var(--muted); margin: 0 0 20px; }
.overline { font-size: 10px; font-weight: 700; letter-spacing: 2px; display: block; color: var(--purple); margin-bottom: 15px; }
.portal-hero { position: relative; overflow: hidden; margin-top: 28px; border-radius: 28px; padding: 70px 80px; background: var(--lavender); text-align: center; }
.portal-hero h1 { position: relative; max-width: 890px; margin: 0 auto 22px; color: var(--purple-dark); }
.portal-hero > p { position: relative; max-width: 640px; margin: 0 auto 28px; font-size: 16px; }
.portal-hero .overline { position: relative; }
.hero-orbit { position: absolute; width: 540px; height: 540px; border-radius: 50%; border: 1px solid #ab93e780; top: -330px; right: -80px; box-shadow: 0 0 0 45px #ab93e71c, 0 0 0 90px #ab93e710; }
.portal-hero:after { content: ''; position: absolute; width: 130px; height: 130px; border-radius: 50%; background: var(--mint); bottom: -60px; left: 30px; }
.hero-stamp { position: absolute; right: 25px; bottom: 18px; font-size: 10px; letter-spacing: 2px; color: var(--purple); }
.primary-link { position: relative; display: inline-flex; align-items: center; gap: 35px; border-radius: 40px; background: var(--purple); color: white; padding: 12px 22px; font-size: 13px; font-weight: 700; }
.primary-link:hover { background: var(--purple-dark); }
.section-top { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 27px; }
.start-section { padding-top: 50px; }
.start-section .section-top { display: block; }
.bento-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.bento { position: relative; padding: 30px; overflow: hidden; border-radius: 24px; border: 1px solid var(--line); transition: border-color .15s ease; }
.bento:hover { border-color: var(--purple); }
.tile-label { display: block; font-size: 10px; letter-spacing: 1.8px; font-weight: 700; margin-bottom: 17px; }
.bento h3 { font-size: 31px; margin-bottom: 15px; line-height: 1.17; letter-spacing: -1px; }
.bento p { font-size: 14px; max-width: 380px; margin: 0; }
.tile-arrow { position: absolute; bottom: 22px; right: 25px; font-size: 25px; font-weight: 400; }
.bento-promo { grid-column: span 7; grid-row: span 2; background: white; }
.bento-promo img { margin-top: 29px; border-radius: 12px; }
.bento-promo .tile-arrow { position: static; display: block; text-align: right; margin-top: 12px; color: var(--purple); }
.bento-register { grid-column: span 5; background: var(--mint); border-color: #b2ddc9; padding-right: 95px; }
.bento-register .tile-symbol { font-size: 68px; font-weight: 400; line-height: 1; position: absolute; right: 27px; top: 23px; color: #438867; }
.bento-register h3 { font-size: 27px; }
.bento-login { grid-column: span 5; background: var(--purple); color: white; border-color: var(--purple); }
.bento-login p { color: #e0d5ff; }
.bento-login .tile-label { color: #e0d5ff; }
.bento-login h3 { font-size: 27px; }
.bento-app { grid-column: 1 / -1; background: #f0edf5; display: flex; align-items: center; justify-content: space-between; gap: 35px; padding-right: 90px; }
.bento-app h3 { font-size: 27px; }
.device-drawing { width: 71px; height: 104px; border: 2px solid var(--purple); border-radius: 14px; background: white; position: relative; display: grid; place-items: center; color: var(--purple); font-weight: 900; font-size: 24px; }
.device-drawing:before { content: ''; position: absolute; width: 24px; height: 3px; background: var(--purple); border-radius: 5px; top: 7px; left: 21px; }
.home-reading { display: grid; grid-template-columns: 1fr 1.6fr; gap: 85px; margin-top: 70px; padding: 60px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.reading-intro { align-self: start; position: sticky; top: 120px; }
.reading-intro h2 { margin-bottom: 24px; }
.reading-intro p { font-size: 14px; max-width: 250px; }
.home-chapters > section { position: relative; padding-left: 45px; }
.home-chapters > section + section { margin-top: 35px; }
.chapter-label { color: var(--purple); font-size: 11px; font-weight: 700; }
.home-chapters .chapter-label { position: absolute; left: 0; top: 4px; }
.home-chapters h3 { margin-bottom: 20px; font-size: 24px; }
.home-chapters p { font-size: 15px; }
.home-chapters p:last-child { margin-bottom: 0; }
.home-themes { padding-top: 55px; }
.underlined-link { display: inline-flex; border-bottom: 1px solid var(--purple); color: var(--purple); font-size: 12px; padding-bottom: 4px; white-space: nowrap; }
.section-description { max-width: 650px; font-size: 14px; }
.theme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.home-themes .theme-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.theme-card { margin: 0; background: white; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.theme-card img { width: 100%; }
.theme-card figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; font-size: 13px; font-weight: 700; }
.reference-tag { font-size: 8px; color: var(--muted); letter-spacing: .7px; font-weight: 400; }
.faq-area { display: grid; grid-template-columns: 1fr 1.6fr; gap: 85px; margin-top: 65px; padding: 48px; background: var(--lavender); border-radius: 24px; }
details { border-bottom: 1px solid #c8bee0; }
summary { position: relative; list-style: none; padding: 17px 25px 17px 0; font-size: 14px; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary:after { content: '+'; position: absolute; right: 0; color: var(--purple); font-size: 20px; }
details[open] > summary:after { content: '−'; }
details p { font-size: 13px; margin: 0 0 17px; }
.related-area { margin-top: 65px; margin-bottom: 65px; }
.related-area h2 { margin-bottom: 25px; }
.related-area > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.related-link { padding: 20px 22px; display: flex; align-items: center; gap: 17px; border: 1px solid var(--line); background: white; border-radius: 15px; }
.related-link:hover { background: #f3eefb; border-color: #b3a0d5; }
.related-link strong { font-size: 15px; }
.related-link p { font-size: 12px; margin: 2px 0 0; }
.related-link > span:last-child { margin-left: auto; color: var(--purple); font-size: 20px; }
.topic-index { color: var(--purple); font-size: 11px; }
.inner-hero { background: var(--lavender); padding: 38px 50px 45px; border-radius: 28px; position: relative; overflow: hidden; margin-top: 28px; }
.inner-heading { max-width: 880px; position: relative; z-index: 1; }
.inner-heading h1 { font-size: clamp(34px, 3.7vw, 50px); max-width: 820px; margin-bottom: 23px; letter-spacing: -1.8px; }
.inner-heading p { max-width: 680px; margin: 0; font-size: 16px; }
.breadcrumb { display: block; color: var(--muted); font-size: 11px; margin-bottom: 32px; }
.inner-glyph { position: absolute; right: 22px; bottom: -65px; font-size: 230px; font-weight: 400; color: #603dcc13; line-height: 1; }
.inner-1 { background: #ddf8e9; }
.inner-2 { background: #ece6fc; }
.inner-3 { background: #e4edf8; }
.inner-4 { background: #faefda; }
.prep-strip { margin: 24px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 22px 30px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.prep-strip span { display: flex; gap: 15px; align-items: center; font-size: 14px; font-weight: 700; }
.prep-strip b { border-radius: 50%; background: var(--mint); width: 35px; height: 35px; display: grid; place-items: center; font-size: 11px; color: #327959; }
.issue-picker { margin-top: 24px; padding: 26px 30px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.issue-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.issue-buttons button, .filter-bar button { border: 1px solid var(--line); border-radius: 30px; background: white; padding: 10px 16px; color: var(--muted); font-size: 12px; }
.issue-buttons button[aria-pressed="true"], .filter-bar button[aria-pressed="true"] { color: white; background: var(--purple); border-color: var(--purple); }
.issue-answer { margin: 20px 0 0; padding: 18px 20px; background: #f5f0fd; font-size: 14px; border-radius: 12px; }
.access-matrix { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: white; margin-top: 24px; }
table { width: 100%; border-collapse: collapse; min-width: 520px; text-align: left; }
th { font-size: 11px; letter-spacing: .5px; color: var(--purple); background: #f3f0fa; }
th, td { padding: 17px 22px; border-bottom: 1px solid var(--line); }
td { font-size: 13px; }
tbody tr:last-child td { border: 0; }
.article-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 70px; margin-top: 45px; }
.article-index { position: sticky; top: 120px; align-self: start; padding: 24px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.article-index a { display: flex; gap: 12px; font-size: 12px; line-height: 1.6; padding: 10px 0; color: var(--muted); }
.article-index a:hover { color: var(--purple); }
.article-index a > span { color: var(--purple); font-size: 10px; flex-shrink: 0; padding-top: 2px; }
.article-chapters > section { padding-bottom: 30px; }
.article-chapters > section + section { border-top: 1px solid var(--line); padding-top: 30px; }
.article-chapters h2 { font-size: 29px; letter-spacing: -.8px; margin: 12px 0 22px; }
.article-chapters p { font-size: 15px; }
.article-chapters p:last-child { margin-bottom: 0; }
.promotion-gallery { margin-top: 35px; }
.promotion-gallery h2 { margin-bottom: 18px; }
.promotion-gallery > p { font-size: 14px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.filter-status { margin: 14px 0 20px; font-size: 11px; }
.brand-reference { margin-top: 25px; padding: 5px 20px 12px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.brand-reference img { max-width: 656px; margin-bottom: 12px; border-radius: 10px; }
.site-footer { background: #eee9f7; border-top: 1px solid var(--line); padding-top: 40px; }
.footer-top { display: flex; gap: 45px; justify-content: space-between; align-items: center; padding-bottom: 30px; }
.footer-top > p { font-size: 13px; margin: 0; }
.footer-top nav { display: flex; gap: 17px; flex-wrap: wrap; font-size: 12px; }
.footer-top nav a:hover { color: var(--purple); }
.footer-bottom { display: flex; justify-content: space-between; gap: 15px; font-size: 10px; color: var(--muted); border-top: 1px solid #cfc4e0; padding-block: 20px; }

@media (max-width: 1050px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 16px 32px; background: var(--page); border-bottom: 1px solid var(--line); }
  .main-nav.is-open { display: grid; gap: 4px; }
  .main-nav a[aria-current] { box-shadow: none; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: grid; }
  .home-reading, .faq-area { gap: 40px; }
  .article-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 38px; }
  .bento-promo { grid-column: span 7; }
  .bento-register, .bento-login { grid-column: span 5; }
  .bento h3 { font-size: 27px; }
  .footer-top { gap: 25px; }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 32px); }
  .header-wrap { padding: 15px 16px; gap: 12px; }
  .brand-icon { width: 36px; height: 36px; font-size: 14px; border-radius: 10px; }
  .brand-word { font-size: 19px; }
  .brand-word > span { display: none; }
  .brand { gap: 7px; }
  .header-actions { gap: 6px; }
  .account { padding: 7px 11px; font-size: 11px; }
  .globe-button, .menu-toggle { width: 32px; height: 32px; }
  .portal-hero { margin-top: 18px; padding: 45px 22px 50px; border-radius: 21px; }
  .portal-hero h1 { font-size: 45px; letter-spacing: -1.8px; }
  .portal-hero > p { font-size: 14px; }
  .hero-orbit { right: -250px; }
  .hero-stamp { font-size: 8px; right: 18px; bottom: 12px; }
  .primary-link { font-size: 12px; }
  .start-section { padding-top: 32px; }
  .section-top { display: block; }
  .section-top .underlined-link { margin-top: 16px; }
  h2 { font-size: 29px; }
  .bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .bento { padding: 22px; border-radius: 18px; }
  .bento-promo { grid-column: 1 / -1; grid-row: auto; }
  .bento-promo h3 { font-size: 28px; }
  .bento-promo img { margin-top: 22px; }
  .bento-register, .bento-login { grid-column: span 1; padding: 20px 18px 50px; }
  .bento-register h3, .bento-login h3 { font-size: 21px; }
  .bento-register .tile-symbol { display: none; }
  .bento p { font-size: 12px; }
  .tile-label { font-size: 8px; letter-spacing: 1px; }
  .tile-arrow { bottom: 14px; right: 18px; }
  .bento-app { padding-right: 55px; gap: 15px; }
  .bento-app h3 { font-size: 23px; }
  .device-drawing { width: 53px; height: 80px; flex-shrink: 0; font-size: 18px; }
  .device-drawing:before { width: 18px; left: 15px; }
  .home-reading { display: block; margin-top: 40px; padding-block: 35px; }
  .reading-intro { position: static; margin-bottom: 30px; }
  .reading-intro h2 br { display: none; }
  .home-chapters > section { padding-left: 30px; }
  .home-chapters h3 { font-size: 22px; }
  .home-chapters p { font-size: 14px; }
  .home-themes { padding-top: 35px; }
  .theme-grid, .home-themes .theme-grid { grid-template-columns: 1fr; gap: 17px; }
  .theme-card figcaption { font-size: 13px; }
  .faq-area { display: block; margin-top: 40px; padding: 25px 22px; border-radius: 18px; }
  .faq-title { margin-bottom: 18px; }
  .related-area { margin-block: 40px; }
  .related-area > div { grid-template-columns: 1fr; gap: 12px; }
  .related-link { padding: 17px; }
  .inner-hero { padding: 27px 24px 32px; margin-top: 18px; border-radius: 20px; }
  .inner-heading h1 { font-size: 35px; letter-spacing: -1.3px; }
  .inner-heading p { font-size: 14px; }
  .breadcrumb { margin-bottom: 24px; }
  .inner-glyph { font-size: 160px; }
  .prep-strip { gap: 7px; padding: 17px 15px; }
  .prep-strip span { flex-direction: column; align-items: start; gap: 7px; font-size: 11px; }
  .prep-strip b { width: 28px; height: 28px; font-size: 10px; }
  .issue-picker { padding: 20px; }
  .issue-buttons { gap: 7px; }
  .issue-buttons button { font-size: 11px; padding: 8px 12px; }
  .issue-answer { padding: 15px; font-size: 13px; }
  .article-layout { display: block; margin-top: 30px; }
  .article-index { position: static; padding: 20px; margin-bottom: 30px; }
  .article-index a { padding-block: 6px; }
  .article-chapters h2 { font-size: 26px; }
  .article-chapters p { font-size: 14px; }
  .filter-bar button { font-size: 11px; padding: 8px 13px; }
  .footer-top { display: grid; gap: 23px; }
  .footer-bottom { flex-wrap: wrap; gap: 8px 18px; font-size: 9px; }
}

@media (max-width: 380px) {
  .header-wrap { padding-inline: 10px; gap: 8px; }
  .header-actions { gap: 4px; }
  .brand-word { display: none; }
  .brand-icon { width: 34px; height: 34px; font-size: 13px; }
  .account { padding: 7px 10px; }
  .globe-button, .menu-toggle { width: 30px; height: 30px; }
  .container { width: calc(100% - 24px); }
  .portal-hero h1 { font-size: 39px; }
  .bento-register, .bento-login { padding-inline: 15px; }
  .bento-register h3, .bento-login h3 { font-size: 19px; }
  .inner-heading h1 { font-size: 30px; }
}

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