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

:root {
  --accent: #1048ff;
  --blue: #1686ff;
  --ink: #171717;
  --muted: #5f6368;
  --quiet: #929cac;
  --line: #e5e5e7;
  --panel: #ffffff;
  --hero-a: #e699ef;
  --hero-b: #9b85ef;
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: #fff; color: var(--ink); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.hero { min-height: 420px; color: #fff; background: linear-gradient(122deg, var(--hero-a) 0%, #c58bea 43%, var(--hero-b) 100%); }
.home-hero {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0%) 0%, rgb(255 255 255 / 0%) 48%, rgb(255 255 255 / 58%) 78%, #fff 100%),
    linear-gradient(110deg, #e79aef 0%, #cc8ceb 48%, #9f86ee 100%);
}
.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.top-nav { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 32px; font-size: 15px; font-weight: 600; }
.brand { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.top-nav a { transition: opacity .16s ease; }
.top-nav a:hover, .top-nav a:focus-visible { opacity: .72; }
.hero-content { padding-top: 84px; text-align: center; }
.hero h1 { margin: 0 0 28px; font-size: clamp(32px, 3vw, 42px); line-height: 1.15; letter-spacing: -.04em; }

.search-shell { position: relative; width: 100%; }
.search-icon { position: absolute; z-index: 2; top: 50%; left: 25px; width: 18px; height: 18px; border: 3px solid currentColor; border-radius: 50%; color: #fff; transform: translateY(-56%); pointer-events: none; }
.search-icon::after { content: ""; position: absolute; right: -7px; bottom: -5px; width: 8px; height: 3px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.search-input { display: block; width: 100%; height: 74px; padding: 0 25px 0 58px; border: 1px solid rgb(85 61 145 / 10%); border-radius: 17px; outline: 0; background: rgb(255 255 255 / 28%); box-shadow: 0 3px 8px rgb(72 45 120 / 12%); color: #fff; font-size: 22px; transition: background .16s ease, box-shadow .16s ease; }
.search-input::placeholder { color: rgb(255 255 255 / 92%); }
.search-input:focus { background: rgb(255 255 255 / 36%); box-shadow: 0 0 0 4px rgb(255 255 255 / 15%); }
.search-results { position: absolute; z-index: 10; top: calc(100% + 10px); left: 0; right: 0; display: none; max-height: 390px; overflow: auto; border: 1px solid var(--line); border-radius: 15px; background: #fff; color: var(--ink); text-align: left; box-shadow: 0 16px 50px rgb(35 20 64 / 18%); }
.search-results.is-open { display: block; }
.search-result { display: block; padding: 15px 18px; border-bottom: 1px solid #ededee; }
.search-result:last-child { border-bottom: 0; }
.search-result strong { display: block; font-size: 15px; }
.search-result span { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.search-result:hover, .search-result:focus-visible { background: #f7f5ff; outline: 0; }
.search-empty { margin: 0; padding: 18px; color: var(--muted); font-size: 14px; text-align: center; }

.home-main { position: relative; z-index: 1; margin-top: -1px; padding: 0 0 80px; background: linear-gradient(180deg, rgb(214 197 255 / 42%) 0, #fff 300px); }
.collection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; transform: translateY(-1px); }
.collection-card { min-height: 248px; padding: 36px 28px 28px; border: 1px solid #dfdfe1; border-radius: 18px; background: var(--panel); box-shadow: 0 2px 3px rgb(20 20 20 / 4%); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.collection-card:hover, .collection-card:focus-visible { border-color: #c8c8cc; box-shadow: 0 10px 28px rgb(20 20 20 / 8%); transform: translateY(-3px); outline: 0; }
.collection-card h2 { margin: 25px 0 2px; font-size: 21px; line-height: 1.25; letter-spacing: -.025em; }
.collection-card p { margin: 0; max-width: 240px; font-size: 20px; line-height: 1.42; }
.collection-card .article-count { display: block; margin-top: 25px; color: var(--muted); font-size: 16px; }
.line-icon { position: relative; display: block; width: 28px; height: 28px; color: var(--accent); }
.icon-play { border: 2px solid currentColor; border-radius: 50%; }
.icon-play::after { content: ""; position: absolute; top: 7px; left: 10px; border-width: 6px 0 6px 9px; border-style: solid; border-color: transparent transparent transparent currentColor; }
.icon-folder { width: 30px; height: 21px; margin-top: 5px; border: 2px solid currentColor; border-radius: 2px; }
.icon-folder::before { content: ""; position: absolute; top: -7px; left: 1px; width: 13px; height: 7px; border: 2px solid currentColor; border-bottom: 0; border-radius: 2px 2px 0 0; }
.icon-question { border: 2px solid currentColor; border-radius: 50%; text-align: center; font-size: 20px; line-height: 24px; }
.icon-life { border: 2px solid currentColor; border-radius: 50%; }
.icon-life::before, .icon-life::after { content: ""; position: absolute; inset: 6px; border: 2px solid currentColor; border-radius: 50%; }
.icon-life::after { inset: 1px 11px; border-width: 0 2px; border-radius: 0; transform: rotate(45deg); }

.popular-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 54px; margin-top: 56px; padding: 22px 28px; border: 1px solid #dfdfe1; border-radius: 18px; background: #fff; }
.popular-link { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 56px; font-size: 19px; }
.popular-link::after { content: "›"; color: var(--blue); font-size: 25px; font-weight: 300; }
.popular-link:hover span, .popular-link:focus-visible span { text-decoration: underline; text-underline-offset: 3px; }

.site-footer { padding: 140px 24px 40px; color: var(--quiet); text-align: center; }
.footer-logo { display: block; width: 22px; height: 22px; margin: 0 auto 20px; object-fit: contain; }
.footer-note { margin: 0; font-size: 15px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; margin-top: 46px; font-size: 15px; }
.footer-links a:hover, .footer-links a:focus-visible { color: #5e6570; }
.fin-credit { margin: 58px 0 0; font-size: 12px; }
.fin-credit img { width: 13px; height: 13px; margin-right: 5px; vertical-align: -2px; }

.inner-wrap { width: min(814px, calc(100% - 40px)); margin: 0 auto; }
.inner-hero { min-height: 158px; }
.inner-hero .top-nav { min-height: 58px; font-size: 13px; }
.inner-hero .brand { font-size: 15px; }
.inner-hero .nav-links { gap: 22px; }
.inner-search { padding-top: 17px; }
.inner-search .search-input { height: 53px; padding-left: 43px; border-radius: 13px; font-size: 16px; }
.inner-search .search-icon { left: 19px; width: 14px; height: 14px; border-width: 2px; }
.inner-search .search-icon::after { right: -6px; bottom: -4px; width: 7px; height: 2px; }
.inner-main { min-height: 720px; padding: 31px 0 20px; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: #555; font-size: 13px; }
.breadcrumbs a { color: #222; }
.breadcrumbs a:hover, .breadcrumbs a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs > span[aria-hidden="true"] { color: #898989; font-size: 17px; }

.collection-intro { padding: 33px 0 17px; }
.collection-intro .line-icon { margin: 0 0 22px 4px; }
.collection-intro h1 { margin: 0; font-size: 31px; line-height: 1.18; letter-spacing: -.04em; }
.collection-intro p { margin: 3px 0 0; font-size: 15px; }
.collection-intro > span:last-child { display: block; margin-top: 19px; color: var(--muted); font-size: 13px; }
.collection-panels { display: grid; gap: 16px; }
.collection-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.collection-panel-heading { padding: 19px 20px 17px; }
.collection-panel-heading h2 { margin: 0; font-size: 20px; line-height: 1.3; letter-spacing: -.025em; }
.collection-panel-heading h2 a:hover, .collection-panel-heading h2 a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.collection-panel-heading p { margin: 2px 0 0; font-size: 14px; }
.collection-panel-heading + .article-list { border-top: 1px solid #ededee; margin: 0 20px; }
.article-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 63px; padding: 10px 0; }
.article-row + .article-row { border-top: 1px solid #f0f0f1; }
.collection-panel > .article-list > .article-row { padding-right: 20px; padding-left: 20px; }
.collection-panel-heading + .article-list > .article-row { padding-right: 0; padding-left: 0; }
.article-row strong { display: block; font-size: 14px; line-height: 1.35; font-weight: 500; }
.article-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.article-row b { flex: 0 0 auto; color: var(--blue); font-size: 20px; font-weight: 400; }
.article-row:hover strong, .article-row:focus-visible strong { text-decoration: underline; text-underline-offset: 3px; }

.article-main { padding-top: 31px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 542px) minmax(160px, 1fr); gap: 75px; padding-top: 37px; }
.article-column { min-width: 0; }
.article-heading h1 { margin: 0; font-size: 31px; line-height: 1.14; letter-spacing: -.04em; }
.article-heading p { margin: 4px 0 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.article-heading time { display: block; margin-top: 18px; color: #696969; font-size: 13px; }
.article-toc { position: sticky; top: 24px; align-self: start; padding: 2px 0 2px 13px; border-left: 1px solid #e7e7e7; }
.article-toc a { display: block; padding: 5px 0; color: #555; font-size: 12px; line-height: 1.35; }
.article-toc a:first-child { border-left: 1px solid #333; margin-left: -14px; padding-left: 13px; color: #222; }
.article-toc .toc-level-3 { padding-left: 9px; }
.article-toc a:hover, .article-toc a:focus-visible { color: #111; text-decoration: underline; text-underline-offset: 2px; }
.article-body { margin-top: 35px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.article-body p { margin: 0 0 14px; }
.article-body p:empty, .article-body p.no-margin:empty { display: none; }
.article-body h2 { margin: 22px 0 8px; font-size: 23px; line-height: 1.22; letter-spacing: -.03em; scroll-margin-top: 24px; }
.article-body h3 { margin: 20px 0 7px; font-size: 19px; line-height: 1.28; scroll-margin-top: 24px; }
.article-body ol, .article-body ul { margin: 7px 0 16px; padding-left: 27px; }
.article-body li { margin: 2px 0; }
.article-body a { color: #1887ef; text-decoration: underline; text-underline-offset: 2px; }
.article-body img { display: block; max-width: 100%; height: auto; margin: 18px auto; border-radius: 8px; }
.article-body iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; margin: 18px 0; border: 0; border-radius: 10px; }
.article-body hr { height: 1px; margin: 28px 0; border: 0; background: #e3e3e3; }
.article-body pre { overflow: auto; padding: 15px; border-radius: 8px; background: #f3f3f4; font-size: 13px; white-space: pre-wrap; }
.article-body details { margin: 12px 0; border: 1px solid var(--line); border-radius: 9px; background: #fafafa; }
.article-body summary { padding: 12px 14px; cursor: pointer; }
.article-body summary h2 { display: inline; margin: 0 0 0 6px; font-size: 18px; }
.article-body .collapsible-section-content { padding: 0 14px 4px; }
.article-divider { height: 2px; margin: 32px 0 29px; border: 0; background: #ededed; }
.related h2 { margin: 0 0 12px; font-size: 20px; letter-spacing: -.025em; }
.related > div { padding: 8px 20px; border: 1px solid var(--line); border-radius: 14px; }
.related .article-row { min-height: 41px; padding: 5px 0; }
.related .article-row small { display: none; }
.feedback { margin-top: 26px; padding: 19px 20px 17px; border-radius: 10px; background: #f1f1f2; color: #626262; text-align: center; }
.feedback p { margin: 0 0 9px; font-size: 14px; }
.feedback button { padding: 3px 8px; border: 0; border-radius: 7px; background: transparent; font-size: 24px; cursor: pointer; transition: transform .14s ease, background .14s ease; }
.feedback button:hover, .feedback button:focus-visible, .feedback button.is-selected { background: #fff; transform: translateY(-2px); outline: 0; }
.feedback small { display: block; min-height: 18px; margin-top: 5px; color: #555; }
.article-main + .site-footer { padding-top: 95px; }

.not-found { min-height: 520px; padding: 95px 0; text-align: center; }
.not-found p { margin: 0; color: var(--accent); font-size: 15px; font-weight: 700; }
.not-found h1 { margin: 8px 0 26px; font-size: 34px; }
.not-found a { display: inline-block; padding: 11px 17px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 600; }

@media (max-width: 820px) {
  .wrap { width: min(100% - 32px, 640px); }
  .hero { min-height: 395px; }
  .top-nav { align-items: flex-start; padding: 22px 0; }
  .nav-links { gap: 15px; font-size: 13px; }
  .hero-content { padding-top: 58px; }
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inner-hero { min-height: 158px; }
  .inner-hero .top-nav { align-items: center; padding: 10px 0; }
  .inner-search { padding-top: 8px; }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .article-toc { display: none; }
  .article-column { max-width: 640px; }
}

@media (max-width: 570px) {
  .hero { min-height: 355px; }
  .home-hero { min-height: 420px; }
  .home-main { margin-top: -80px; background: transparent; }
  .top-nav { align-items: center; }
  .brand { font-size: 16px; }
  .nav-links a:not(:last-child) { display: none; }
  .hero-content { padding-top: 46px; }
  .hero h1 { font-size: 30px; }
  .search-input { height: 64px; font-size: 18px; }
  .collection-grid { grid-template-columns: 1fr; gap: 16px; }
  .collection-card { min-height: 0; padding: 27px 24px; }
  .collection-card h2 { margin-top: 20px; }
  .popular-panel { grid-template-columns: 1fr; margin-top: 28px; padding: 12px 22px; }
  .popular-link { border-bottom: 1px solid #ededee; font-size: 17px; }
  .popular-link:last-child { border-bottom: 0; }
  .site-footer { padding-top: 90px; }
  .footer-links { gap: 18px; }
  .inner-wrap { width: min(100% - 32px, 640px); }
  .inner-hero { min-height: 150px; }
  .inner-hero .nav-links a:last-child { display: block; }
  .inner-main { padding-top: 24px; }
  .breadcrumbs { gap: 7px; font-size: 12px; }
  .collection-intro { padding: 27px 0 24px; }
  .collection-intro h1, .article-heading h1 { font-size: 28px; }
  .article-layout { padding-top: 29px; }
  .article-body { font-size: 16px; }
  .article-row small { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .collection-panel-heading { padding: 17px; }
  .collection-panel-heading + .article-list { margin: 0 17px; }
}

/* Balanced homepage sizing: fluid enough for laptops, restrained on large
   screens, and still readable without browser zoom. */
@media (min-width: 571px) {
  .home-hero {
    min-height: 430px;
    background:
      linear-gradient(180deg, rgb(255 255 255 / 0%) 0%, rgb(255 255 255 / 0%) 50%, rgb(255 255 255 / 52%) 76%, #fff 100%),
      linear-gradient(112deg, #e99af0 0%, #cb8cec 48%, #9b84ee 100%);
  }
  .home-hero .wrap,
  .home-main .wrap { width: min(1040px, calc(100% - 40px)); }
  .home-hero .top-nav { min-height: 54px; gap: 24px; padding: 0; font-size: 13px; }
  .home-hero .brand { font-size: 15px; }
  .home-hero .nav-links { gap: 24px; font-size: 13px; }
  .home-hero .hero-content { padding-top: 56px; }
  .home-hero h1 { margin-bottom: 22px; font-size: clamp(30px, 2.7vw, 36px); line-height: 1.15; }
  .home-hero .search-input { height: 60px; padding: 0 20px 0 48px; border-radius: 14px; font-size: 17px; }
  .home-hero .search-icon { left: 20px; width: 15px; height: 15px; border-width: 2px; }
  .home-hero .search-icon::after { right: -6px; bottom: -4px; width: 7px; height: 2px; }

  .home-main { margin-top: -100px; padding-bottom: 60px; background: transparent; }
  .home-main .collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .home-main .collection-card,
  .home-main .collection-card:nth-child(4) { min-height: 190px; padding: 26px 22px 22px; border-radius: 16px; box-shadow: 0 8px 26px rgb(40 30 65 / 5%); }
  .home-main .collection-card:nth-child(4) p { font-size: 15px; letter-spacing: normal; }
  .home-main .collection-card h2 { margin: 19px 0 3px; font-size: 17px; }
  .home-main .collection-card p { max-width: 250px; font-size: 15px; line-height: 1.45; }
  .home-main .collection-card .article-count { margin-top: 18px; font-size: 13px; }
  .home-main .line-icon { width: 24px; height: 24px; }
  .home-main .icon-play { border-width: 2px; }
  .home-main .icon-play::after { top: 6px; left: 9px; border-width: 5px 0 5px 7px; }
  .home-main .icon-folder { width: 26px; height: 18px; margin-top: 4px; border-width: 2px; border-radius: 2px; }
  .home-main .icon-folder::before { top: -6px; left: 1px; width: 11px; height: 6px; border-width: 2px; border-bottom: 0; }
  .home-main .icon-question { border-width: 2px; font-size: 17px; line-height: 20px; }
  .home-main .icon-life { border-width: 2px; }
  .home-main .icon-life::before,
  .home-main .icon-life::after { inset: 5px; border-width: 2px; }
  .home-main .icon-life::after { inset: 1px 9px; border-width: 0 2px; }

  .home-main .popular-panel { column-gap: 32px; margin-top: 40px; padding: 16px 22px; border-radius: 16px; box-shadow: 0 8px 26px rgb(40 30 65 / 4%); }
  .home-main .popular-link { gap: 14px; min-height: 44px; font-size: 15px; }
  .home-main .popular-link::after { font-size: 21px; }

  .home-main + .site-footer { padding: 100px 20px 38px; }
  .home-main + .site-footer .footer-logo { width: 20px; height: 20px; margin-bottom: 16px; }
  .home-main + .site-footer .footer-note { font-size: 13px; }
  .home-main + .site-footer .footer-links { gap: 24px; margin-top: 32px; font-size: 13px; }
}

@media (min-width: 571px) and (max-width: 720px) {
  .home-main .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
