:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #22221d;
  --muted: #6c6b64;
  --faint: #999890;
  --line: #dfdfd9;
  --line-soft: #ecece7;
  --surface: #f6f6f2;
  --accent: #22221d;
  --header-height: 54px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 74px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
button, input, select { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 12px; z-index: 100; padding: 8px 12px; color: #fff; background: var(--ink); font-size: 13px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(223, 223, 217, .68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.brand { color: var(--ink); font-size: 17px; font-weight: 740; letter-spacing: -.045em; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 3px; }
.site-nav a { padding: 8px 10px; color: var(--muted); border-radius: 5px; font-size: 12px; text-decoration: none; }
.site-nav a:hover { color: var(--ink); background: var(--surface); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.language-menu { position: relative; }
.language-menu summary { position: relative; min-width: 48px; padding: 8px 24px 8px 10px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 7px; cursor: pointer; font-size: 11px; font-weight: 650; line-height: 1; list-style: none; }
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary::after { content: ""; position: absolute; top: 50%; right: 9px; width: 5px; height: 5px; border-right: 1px solid var(--muted); border-bottom: 1px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .15s ease; }
.language-menu[open] summary::after { transform: translateY(-25%) rotate(225deg); }
.language-menu summary:hover { background: var(--surface); }
.language-options { position: absolute; top: calc(100% + 8px); right: 0; z-index: 50; width: 168px; padding: 5px; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 12px 32px rgba(34, 34, 29, .12); }
.language-options a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; color: var(--muted); border-radius: 6px; font-size: 11px; text-decoration: none; }
.language-options a:hover { color: var(--ink); background: var(--surface); }
.language-options a.active { color: var(--ink); background: var(--surface); font-weight: 650; }
.language-options small { color: var(--faint); font-size: 9px; font-weight: 500; }

main { width: min(calc(100% - 48px), 1060px); margin: 0 auto; }
.knowledge-hero { padding: 142px 0 92px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 18px; color: var(--accent); font-size: 10px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 900px; margin-bottom: 24px; font-size: clamp(52px, 9vw, 104px); font-weight: 710; line-height: .94; letter-spacing: -.072em; }
.hero-copy { max-width: 710px; margin: 0; color: #4f4e48; font-size: 15px; line-height: 1.46; letter-spacing: -.017em; }
.collection-meta { margin: 30px 0 0; color: var(--faint); font-size: 11px; letter-spacing: .015em; }
.collection-meta strong { color: var(--muted); font-weight: 680; }
.collection-meta span { margin: 0 8px; color: #c6c5bf; }

.search-section, .topics-section, .archive-section { padding: 80px 0 96px; }
.search-section { border-bottom: 1px solid var(--line); }
.section-heading { margin-bottom: 36px; }
.section-heading h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); font-weight: 680; line-height: 1.06; letter-spacing: -.045em; }
.section-heading p { max-width: 470px; margin: 2px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.search-form { width: 100%; margin-bottom: 28px; }
.search-control { display: flex; align-items: center; gap: 14px; min-height: 62px; padding: 0 16px; background: var(--paper); border: 1px solid #d4d4ce; border-radius: 14px; box-shadow: 0 1px 2px rgba(34, 34, 29, .04); transition: border-color .15s ease, box-shadow .15s ease; }
.search-control:focus-within { border-color: #97968f; box-shadow: 0 0 0 4px rgba(34, 34, 29, .07); }
.search-icon { position: relative; flex: 0 0 auto; width: 17px; height: 17px; border: 2px solid var(--muted); border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; right: -5px; bottom: -3px; width: 7px; height: 2px; background: var(--muted); border-radius: 999px; transform: rotate(45deg); transform-origin: left center; }
.search-field { flex: 1 1 auto; min-width: 0; }
.search-field input { width: 100%; padding: 18px 0; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 16px; font-weight: 400; line-height: 1.4; }
.search-field input::placeholder { color: #9b9a93; opacity: 1; }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-control kbd { flex: 0 0 auto; min-width: 24px; padding: 3px 6px; color: var(--faint); background: var(--surface); border: 1px solid var(--line); border-radius: 5px; font: 600 10px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; }
.clear-button { flex: 0 0 auto; padding: 7px 10px; color: var(--muted); background: var(--surface); border: 0; border-radius: 7px; cursor: pointer; font-size: 11px; }
.clear-button:hover { color: var(--ink); }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.filter-row label { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 12px; background: var(--surface); border: 1px solid transparent; border-radius: 10px; }
.filter-row label:focus-within { border-color: #b8b7b0; }
.filter-row label > span { color: var(--faint); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.filter-row select { min-width: 112px; padding: 0 22px 0 0; color: var(--muted); background: transparent; border: 0; outline: 0; font-size: 12px; }
.filter-row label:last-child select { min-width: 210px; }
.filter-row select:focus { color: var(--ink); }
.search-status { margin: 32px 0 12px; color: var(--faint); font-size: 11px; }
.search-status:empty { display: none; }

.session-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.session-item { margin: 0; border-bottom: 1px solid var(--line-soft); }
.session-item a { display: grid; grid-template-columns: minmax(230px, 1.1fr) minmax(150px, .7fr) minmax(280px, 1.4fr); gap: 28px; align-items: baseline; padding: 20px 0 21px; text-decoration: none; }
.session-item a:hover .session-title { color: var(--accent); }
.session-title { font-size: 14px; font-weight: 660; line-height: 1.4; letter-spacing: -.012em; transition: color .15s ease; }
.session-meta { color: var(--faint); font-size: 10px; line-height: 1.5; }
.session-description { color: var(--muted); font-size: 12px; line-height: 1.58; }
.search-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; border-top: 0; }
.session-card { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(34, 34, 29, .03); transition: border-color .15s ease, box-shadow .15s ease; }
.session-card:hover { border-color: #c8c7c0; box-shadow: 0 12px 28px rgba(34, 34, 29, .08); }
.session-card > a { display: block; height: 100%; text-decoration: none; }
.session-card-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #151513; border-bottom: 1px solid var(--line); }
.session-card-media::after { content: ""; position: absolute; inset: auto 0 0; height: 58%; background: linear-gradient(transparent, rgba(0, 0, 0, .62)); pointer-events: none; }
.session-card-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.session-card-action { position: absolute; right: 12px; bottom: 11px; z-index: 1; display: flex; align-items: center; gap: 6px; padding: 6px 9px; color: #fff; background: rgba(18, 18, 16, .72); border: 1px solid rgba(255, 255, 255, .24); border-radius: 999px; font-size: 9px; font-weight: 650; line-height: 1; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.session-card-action span { font-size: 8px; }
.session-card-body { display: flex; min-height: 238px; padding: 19px; flex-direction: column; gap: 12px; }
.session-card .session-title { font-size: 18px; line-height: 1.28; }
.session-card .session-meta { color: var(--faint); font-size: 10px; }
.session-card .session-description { display: -webkit-box; overflow: hidden; margin-top: auto; font-size: 12px; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.session-card:hover .session-title { color: var(--accent); }
.more-button { display: block; margin: 28px auto 0; padding: 10px 15px; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 9px; cursor: pointer; font-size: 12px; }
.more-button:hover { color: var(--ink); border-color: #b8b7b0; }
.empty-result { padding: 34px 0; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 14px; }
.search-results .empty-result { grid-column: 1 / -1; border: 0; }
.noscript-note { color: var(--muted); font-size: 12px; }

.topic-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.topic-card { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(34, 34, 29, .03); transition: border-color .15s ease, box-shadow .15s ease; }
.topic-card:hover { border-color: #c8c7c0; box-shadow: 0 12px 28px rgba(34, 34, 29, .08); }
.topic-video { aspect-ratio: 16 / 9; overflow: hidden; background: #151513; border-bottom: 1px solid var(--line); }
.topic-video iframe { width: 100%; height: 100%; display: block; border: 0; }
.topic-card-body { display: flex; min-height: 248px; padding: 19px; flex-direction: column; gap: 13px; text-decoration: none; }
.topic-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.topic-name { font-size: 18px; font-weight: 670; line-height: 1.25; letter-spacing: -.025em; }
.topic-count { flex: 0 0 auto; padding: 4px 7px; color: var(--faint); background: var(--surface); border-radius: 999px; font-size: 9px; white-space: nowrap; }
.topic-summary { color: var(--muted); font-size: 12px; line-height: 1.62; }
.topic-featured { margin-top: auto; color: var(--ink); font-size: 10px; font-weight: 600; line-height: 1.45; }
.topic-years { color: var(--faint); font-size: 9px; letter-spacing: .02em; }
.topic-card-body:hover .topic-name { color: var(--accent); }

.archive-section { border-top: 1px solid var(--line); }
.archive-section .year-section { padding-top: 42px; }
.archive-section .year-heading h3 { margin: 0; font-size: 26px; font-weight: 670; letter-spacing: -.035em; }

.knowledge-footer { width: min(calc(100% - 48px), 1060px); margin: 0 auto; padding: 40px 0 48px; border-top: 1px solid var(--line); }
.knowledge-footer { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: center; }
.knowledge-footer nav { display: flex; flex-wrap: wrap; gap: 18px; justify-content: flex-end; }
.knowledge-footer nav a { color: var(--muted); font-size: 11px; text-decoration: none; }
.knowledge-footer nav a:hover { color: var(--accent); }
.knowledge-footer p { grid-column: 1 / -1; margin: 12px 0 0; color: var(--faint); font-size: 9px; }

.topic-page, .api-page, .session-page { padding-top: calc(var(--header-height) + 44px); }
.breadcrumb { display: flex; gap: 9px; margin: 0 0 78px; color: var(--faint); font-size: 11px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.topic-hero { max-width: 830px; padding-bottom: 72px; }
.topic-hero h1 { margin-bottom: 25px; font-size: clamp(48px, 8vw, 84px); }
.topic-dek { max-width: 760px; margin: 0 0 22px; color: #45443f; font-size: clamp(18px, 2.6vw, 24px); line-height: 1.48; letter-spacing: -.018em; }
.topic-intro { max-width: 680px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.72; }
.topic-stats { display: flex; flex-wrap: wrap; gap: 30px; margin: 42px 0 0; }
.topic-stats div { display: grid; gap: 5px; min-width: 62px; }
.topic-stats dt { color: var(--faint); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.topic-stats dd { margin: 0; font-size: 17px; font-weight: 650; }
.focus-section { display: grid; grid-template-columns: 1fr 1.6fr; gap: 50px; padding: 45px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.focus-section h2 { margin: 0; font-size: 21px; font-weight: 660; letter-spacing: -.025em; }
.focus-section ul { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.focus-section li { position: relative; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.focus-section li::before { content: ""; position: absolute; top: .58em; left: 0; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }
.year-nav { display: flex; gap: 22px; padding: 25px 0 8px; }
.year-nav a { color: var(--muted); font-size: 11px; text-decoration: none; }
.year-nav a:hover { color: var(--accent); }
.year-section { padding: 68px 0 22px; }
.year-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.year-heading h2 { margin: 0; font-size: 31px; font-weight: 680; letter-spacing: -.04em; }
.year-heading span { color: var(--faint); font-size: 10px; }
.topic-page + .knowledge-footer, .api-page + .knowledge-footer, .session-page + .knowledge-footer { margin-top: 84px; }

.session-page { max-width: 940px; }
.session-page .breadcrumb { margin-bottom: 68px; }
.session-hero { max-width: 850px; padding-bottom: 48px; }
.session-hero h1 { margin-bottom: 24px; font-size: clamp(45px, 7vw, 76px); line-height: 1; letter-spacing: -.055em; }
.session-page-meta { margin: 30px 0 0; color: var(--faint); font-size: 11px; }
.session-feature { margin: 0 0 64px; overflow: hidden; background: #111; border: 1px solid var(--line); border-radius: 14px; }
.session-feature img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.session-information { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); gap: 76px; padding: 52px 0; border-top: 1px solid var(--line); }
.session-about h2, .official-session h2 { margin: 0 0 18px; font-size: 26px; font-weight: 670; letter-spacing: -.035em; }
.session-about p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.session-facts { margin: 0; }
.session-facts > div { padding: 16px 0; border-top: 1px solid var(--line-soft); }
.session-facts > div:first-child { padding-top: 0; border-top: 0; }
.session-facts dt { margin-bottom: 9px; color: var(--faint); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.session-facts dd { margin: 0; }
.session-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.session-tags a, .session-tags span { padding: 6px 8px; color: var(--muted); background: var(--surface); border-radius: 6px; font-size: 10px; line-height: 1.2; text-decoration: none; }
.session-tags a:hover { color: var(--ink); }
.official-session { display: flex; align-items: center; justify-content: space-between; gap: 36px; padding: 38px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.official-session h2 { margin-bottom: 8px; }
.official-session p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.official-session > a { flex: 0 0 auto; padding: 12px 15px; color: #fff; background: var(--ink); border: 1px solid var(--ink); border-radius: 8px; font-size: 12px; font-weight: 650; text-decoration: none; }
.official-session > a:hover { color: var(--ink); background: var(--paper); }

.api-page { max-width: 800px; }
.api-section { padding: 55px 0; border-top: 1px solid var(--line); }
.api-section h2 { margin: 0 0 22px; font-size: 27px; font-weight: 670; letter-spacing: -.035em; }
.api-section p { color: var(--muted); font-size: 14px; line-height: 1.7; }
pre { margin: 0 0 24px; padding: 18px 20px; overflow-x: auto; background: #24241f; color: #f4f2e9; border-radius: 5px; font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; }
.parameter-list { margin: 0; }
.parameter-list div { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.parameter-list dt { font: 650 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.parameter-list dd { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

@media (max-width: 820px) {
  main, .knowledge-footer { width: min(calc(100% - 40px), 680px); }
  .knowledge-hero { padding: 128px 0 76px; }
  .search-section, .topics-section, .archive-section { padding: 68px 0 78px; }
  .search-results { grid-template-columns: 1fr; }
  .session-item a { grid-template-columns: 1fr auto; gap: 8px 20px; }
  .session-description { grid-column: 1 / -1; max-width: 620px; }
  .topic-list { grid-template-columns: 1fr; }
  .topic-card-body, .session-card-body { min-height: 0; }
  .focus-section { grid-template-columns: 1fr; gap: 26px; }
  .session-information { grid-template-columns: 1fr; gap: 42px; }
}

@media (max-width: 560px) {
  :root { --header-height: 50px; }
  .site-header { padding-inline: 16px; }
  .site-nav a { padding-inline: 7px; font-size: 11px; }
  .site-nav a:first-child { display: none; }
  main, .knowledge-footer { width: calc(100% - 36px); }
  .knowledge-hero { padding: 112px 0 62px; }
  h1 { font-size: 51px; }
  .hero-copy { font-size: 15px; }
  .collection-meta span { margin: 0 4px; }
  .search-section, .topics-section, .archive-section { padding: 56px 0 66px; }
  .search-control { min-height: 56px; padding-inline: 14px; }
  .search-control kbd { display: none; }
  .search-field input { padding: 15px 0; font-size: 16px; }
  .filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .filter-row label, .filter-row select { min-width: 0; width: 100%; }
  .filter-row label:last-child select { min-width: 0; }
  .session-item a { display: grid; grid-template-columns: 1fr; padding: 18px 0; }
  .session-meta { order: -1; }
  .topic-card-body, .session-card-body { padding: 18px; }
  .knowledge-footer { grid-template-columns: 1fr; }
  .knowledge-footer nav { justify-content: flex-start; }
  .breadcrumb { margin-bottom: 52px; }
  .topic-hero { padding-bottom: 54px; }
  .topic-hero h1 { font-size: 46px; }
  .topic-stats { gap: 20px; }
  .session-page .breadcrumb { margin-bottom: 48px; }
  .session-hero h1 { font-size: 43px; }
  .session-feature { margin-bottom: 44px; border-radius: 10px; }
  .official-session { align-items: flex-start; flex-direction: column; }
  .year-section { padding-top: 54px; }
  .parameter-list div { grid-template-columns: 1fr; gap: 5px; }
}

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