@charset "UTF-8";

:root {
  --color-canvas: #ececec;
  --color-paper: #fff;
  --color-ink: #111;
  --color-muted: #626262;
  --color-soft: #f5f5f5;
  --color-line: #d4d4d4;
  --color-line-dark: #b8b8b8;
  --color-code: #151515;
  --site-width: 1240px;
  --reading-width: 760px;
  --radius: 4px;
  --shadow-paper: 0 16px 48px rgba(0, 0, 0, .055);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-canvas);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-menu-open { overflow: hidden; }
img, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; }
button { color: inherit; }
::selection { color: #fff; background: #111; }

.screen-reader-text,
.skip-link:not(:focus) {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 10px 16px;
  color: #fff;
  background: #111;
}
.site-shell { width: min(calc(100% - 40px), var(--site-width)); margin-inline: auto; }
.eyebrow {
  display: inline-flex;
  margin: 0 0 12px;
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .15em;
  text-decoration: none;
  text-transform: uppercase;
}
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.text-link::after { content: "→"; }
.button-link {
  display: inline-flex;
  justify-content: center;
  padding: 12px 20px;
  color: #fff;
  background: #111;
  border: 1px solid #111;
  text-decoration: none;
}

/* Header */
.site-header { position: relative; z-index: 100; background: rgba(236, 236, 236, .96); border-bottom: 1px solid var(--color-line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; }
.site-branding { display: flex; align-items: center; gap: 22px; min-width: 0; }
.site-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; line-height: 1; letter-spacing: -.02em; text-decoration: none; }
.site-logo__mark { display: grid; place-items: center; width: 32px; height: 32px; color: #fff; background: #111; font-size: 16px; }
.site-logo__text { font-size: 21px; }
.site-tagline { margin: 0; color: var(--color-muted); font-size: 12px; }
.site-header__actions { display: none; }
.primary-navigation { background: var(--color-paper); border-bottom: 1px solid var(--color-line); }
.primary-navigation__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 52px; }
.primary-menu { display: flex; flex-wrap: wrap; gap: 4px 26px; margin: 0; padding: 0; list-style: none; }
.primary-menu a { display: block; padding: 13px 0 11px; font-size: 13px; font-weight: 700; text-decoration: none; border-bottom: 2px solid transparent; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { border-bottom-color: #111; }
.site-search { display: flex; min-width: min(100%, 380px); }
.site-search label { flex: 1; }
.site-search__field { width: 100%; min-height: 42px; padding: 9px 12px; color: #111; background: #f1f1f1; border: 1px solid var(--color-line); border-right: 0; border-radius: 0; outline: none; }
.site-search__field:focus { background: #fff; border-color: #111; }
.site-search__submit { min-width: 64px; padding: 8px 12px; color: #fff; background: #111; border: 1px solid #111; cursor: pointer; }

/* Footer */
.site-footer { margin-top: 100px; color: #e8e8e8; background: #111; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 64px; padding-block: 64px 42px; }
.site-logo--footer { color: #fff; }
.site-logo--footer .site-logo__mark { color: #111; background: #fff; }
.site-footer__description { max-width: 460px; margin: 20px 0 0; color: #aaa; font-size: 14px; }
.footer-menu { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-menu a { color: #ccc; font-size: 13px; text-decoration: none; }
.site-footer__bottom { display: flex; justify-content: space-between; padding-block: 20px 30px; color: #888; border-top: 1px solid #333; font-size: 12px; }

/* Shared sections */
.home-section { padding-block: 82px; }
.home-section + .home-section { border-top: 1px solid var(--color-line); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 480px); gap: 50px; align-items: end; margin-bottom: 34px; }
.section-heading h2 { margin: 0; font-size: clamp(28px, 3vw, 42px); line-height: 1.2; letter-spacing: -.04em; }
.section-heading > p { margin: 0; color: var(--color-muted); font-size: 14px; }
.section-heading--line { display: flex; justify-content: space-between; padding-bottom: 18px; border-bottom: 2px solid #111; }

/* Homepage */
.home-intro { border-bottom: 1px solid var(--color-line); }
.home-intro__inner { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 500px; }
.home-intro__copy { display: flex; flex-direction: column; justify-content: center; padding: 76px 8vw 76px 0; }
.home-intro__copy h1 { max-width: 680px; margin: 0 0 30px; font-size: clamp(46px, 6.3vw, 88px); line-height: 1.08; letter-spacing: -.065em; }
.home-intro__copy > p:last-child { max-width: 520px; margin: 0; color: var(--color-muted); font-size: 16px; }
.home-intro__search { display: flex; flex-direction: column; justify-content: center; padding: 70px 7%; background: #dadada; border-inline: 1px solid #c8c8c8; }
.home-intro__search > p { margin: 0 0 18px; font-size: 23px; font-weight: 750; letter-spacing: -.02em; }
.home-intro__search .site-search { width: 100%; }
.home-intro__search .site-search__field { min-height: 56px; padding-inline: 18px; background: #fff; }
.home-intro__search .site-search__submit { min-width: 78px; }
.home-intro__search > span { margin-top: 12px; color: #555; font-size: 12px; }
.category-directory { background: #f1f1f1; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--color-line-dark); border-left: 1px solid var(--color-line-dark); }
.category-card { position: relative; min-height: 330px; padding: 22px 30px 30px; background: #fff; border-right: 1px solid var(--color-line-dark); border-bottom: 1px solid var(--color-line-dark); text-decoration: none; transition: background .18s ease, color .18s ease; }
.category-card:hover { color: #fff; background: #111; }
.category-card__index { display: block; margin-bottom: 18px; color: #666; font-family: var(--font-mono); font-size: 12px; }
.category-card h3 { margin: 0 0 12px; font-size: 24px; line-height: 1.25; letter-spacing: -.03em; }
.category-card p { max-width: 320px; margin: 0; color: var(--color-muted); font-size: 13px; line-height: 1.7; }
.category-card:hover p { color: #bbb; }
.category-card__count { position: absolute; right: 28px; bottom: 24px; color: #666; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; }
.category-card:hover .category-card__index, .category-card:hover .category-card__count { color: #bbb; }
.topic-section:nth-of-type(even) { background: #e5e5e5; }
.latest-section { background: #f4f4f4; }

.category-visual { --category-accent: #a8b4c2; position: relative; isolation: isolate; display: block; width: 100%; height: 100%; min-height: 150px; overflow: hidden; color: #fff; background: linear-gradient(120deg, transparent 0 55%, rgba(255,255,255,.035) 55% 56%, transparent 56%), #151515; }
.category-visual::before { position: absolute; z-index: -2; inset: 0; background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px); background-size: 28px 28px; content: ""; mask-image: linear-gradient(115deg, #000, transparent 78%); }
.category-visual::after { position: absolute; z-index: -1; right: -12%; bottom: -44%; width: 58%; aspect-ratio: 1; background: var(--category-accent); border: clamp(16px, 3vw, 42px) solid rgba(17,17,17,.48); border-radius: 50%; content: ""; opacity: .92; }
.category-visual__rail, .category-visual__footer { position: absolute; z-index: 2; right: clamp(16px, 4%, 34px); left: clamp(16px, 4%, 34px); display: flex; justify-content: space-between; gap: 20px; font: 700 clamp(8px, 1vw, 10px)/1.2 var(--font-mono); letter-spacing: .12em; }
.category-visual__rail { top: clamp(14px, 8%, 28px); color: #a8a8a8; }
.category-visual__footer { bottom: clamp(14px, 8%, 28px); align-items: end; }
.category-visual__footer span:first-child { max-width: 62%; font-family: var(--font-sans); font-size: clamp(10px, 1.2vw, 13px); letter-spacing: .03em; }
.category-visual__footer span:last-child { color: rgba(255, 255, 255, .72); text-align: right; }
.category-visual__mark { position: absolute; z-index: 1; top: 50%; left: clamp(16px, 7%, 56px); max-width: 72%; overflow: hidden; font: 850 clamp(46px, 9vw, 112px)/.85 var(--font-mono); letter-spacing: -.095em; white-space: nowrap; transform: translateY(-50%); }
.category-visual--directory { height: 92px; min-height: 92px; margin-bottom: 18px; }
.category-visual--directory::after { width: 42%; bottom: -70%; }
.category-visual--directory .category-visual__rail { top: 10px; }
.category-visual--directory .category-visual__footer { right: 12px; bottom: 9px; left: 12px; }
.category-visual--directory .category-visual__footer span:first-child { display: none; }
.category-visual--directory .category-visual__mark { left: 14px; font-size: 42px; }
.category-visual--archive { min-height: 180px; border: 1px solid #383838; }

.category-visual--ai { --category-accent: #86d6bb; }
.category-visual--flutter { --category-accent: #61b9e8; }
.category-visual--html, .category-visual--frontend { --category-accent: #efaa7d; }
.category-visual--css { --category-accent: #8db8ef; }
.category-visual--javascript { --category-accent: #e6c85e; }
.category-visual--jquery { --category-accent: #78b9cd; }
.category-visual--react, .category-visual--frameworks { --category-accent: #83cfdf; }
.category-visual--vue { --category-accent: #76c89f; }
.category-visual--php, .category-visual--backend { --category-accent: #aaa0dc; }
.category-visual--wordpress { --category-accent: #8eb0c2; }
.category-visual--database { --category-accent: #d1a367; }
.category-visual--apache { --category-accent: #dc8b77; }
.category-visual--webgl-three-js, .category-visual--creative { --category-accent: #899de2; }
.category-visual--gsap { --category-accent: #a9c95f; }
.category-visual--design, .category-visual--typography, .category-visual--layout, .category-visual--visual, .category-visual--text-and-typefaces, .category-visual--color-scheme { --category-accent: #d598bd; }
.category-visual--git, .category-visual--tooling { --category-accent: #e28c70; }
.category-visual--gulp { --category-accent: #cc858c; }
.category-visual--vscode { --category-accent: #70aee0; }
.category-visual--prompt-engineering { --category-accent: #96c7a6; }

/* Post cards */
.post-grid { display: grid; gap: 34px 24px; }
.post-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.post-grid--archive { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.post-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--color-line); border: 1px solid var(--color-line); }
.post-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-width: 0; background: #fff; border: 1px solid var(--color-line); }
.post-list .post-card { border: 0; }
.post-card--compact { display: block; background: transparent; border: 0; }
.post-card__image { display: block; aspect-ratio: 1.55 / 1; overflow: hidden; background: #d8d8d8; text-decoration: none; }
.post-card:not(.post-card--compact) .post-card__image { aspect-ratio: auto; min-height: 100%; }
.post-card__image .category-visual { min-height: 100%; transition: filter .2s ease, transform .3s ease; }
.post-card:hover .post-card__image .category-visual { filter: saturate(1.08); transform: scale(1.012); }
.post-card__body { min-width: 0; padding: 24px; }
.post-card--compact .post-card__body { padding: 18px 0 0; }
.post-card__title { margin: 0; font-size: 20px; line-height: 1.55; letter-spacing: -.025em; }
.post-card--compact .post-card__title { font-size: 17px; line-height: 1.55; }
.post-card__title a { text-decoration: none; }
.post-card__title a:hover { text-decoration: underline; }
.post-card__excerpt { display: -webkit-box; margin: 14px 0 20px; overflow: hidden; color: var(--color-muted); font-size: 13px; line-height: 1.75; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 16px; color: #555; font-family: var(--font-mono); font-size: 10px; }

/* Archive and category */
.archive-layout, .page-shell { padding-top: 22px; }
.breadcrumbs { margin: 0 0 22px; overflow: hidden; color: #555; font-size: 11px; white-space: nowrap; }
.breadcrumbs ol { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: #aaa; }
.breadcrumbs a { text-decoration: none; }
.archive-header, .search-header { padding: 58px 6vw; margin-bottom: 46px; background: #fff; border: 1px solid var(--color-line); }
.archive-header h1, .search-header h1 { margin: 0; font-size: clamp(38px, 6vw, 72px); line-height: 1.12; letter-spacing: -.055em; }
.archive-header p, .search-header > p { margin: 20px 0 0; color: var(--color-muted); }
.search-header .site-search { margin-top: 30px; max-width: 620px; }
.category-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px) auto; gap: 40px; align-items: end; padding: 62px 6vw; background: #111; color: #fff; }
.category-hero h1 { margin: 0; font-size: clamp(44px, 7vw, 88px); line-height: 1.08; letter-spacing: -.06em; }
.category-hero .eyebrow, .category-hero p { color: #aaa; }
.category-description { max-width: 720px; margin-top: 24px; color: #bbb; }
.category-description p { margin: 0; }
.category-hero__count { min-width: 130px; text-align: right; }
.category-hero__count strong { display: block; font-family: var(--font-mono); font-size: 50px; line-height: 1; }
.category-hero__count span { color: #888; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; }
.term-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 24px; background: #ddd; border: 1px solid #c9c9c9; border-top: 0; }
.term-chips a { display: inline-flex; gap: 8px; padding: 8px 12px; background: #fff; border: 1px solid #bbb; font-size: 12px; text-decoration: none; }
.term-chips span { color: #777; }
.archive-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 54px 0 24px; padding-bottom: 18px; border-bottom: 2px solid #111; }
.archive-toolbar h2 { margin: 0; font-size: 24px; }
.sort-links { display: flex; gap: 4px; }
.sort-links a { padding: 6px 11px; color: var(--color-muted); font-size: 12px; text-decoration: none; border: 1px solid transparent; }
.sort-links a.is-active { color: #fff; background: #111; border-color: #111; }
.pagination { margin-top: 54px; }
.pagination ul { display: flex; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 42px; min-height: 42px; padding: 8px; background: #fff; border: 1px solid var(--color-line); text-decoration: none; }
.pagination .current { color: #fff; background: #111; border-color: #111; }

/* Reading view */
.reading-shell { padding-top: 22px; }
.reading-layout { display: grid; grid-template-columns: minmax(0, 860px) 260px; gap: 44px; justify-content: center; align-items: start; }
.article-paper { min-width: 0; background: var(--color-paper); box-shadow: var(--shadow-paper); }
.article-header { padding: 68px 7.5% 48px; border-bottom: 1px solid var(--color-line); }
.article-header h1 { max-width: 780px; margin: 0; font-size: clamp(34px, 4.5vw, 58px); line-height: 1.25; letter-spacing: -.045em; }
.article-deck { max-width: 720px; margin: 26px 0 0; color: #505050; font-size: 16px; line-height: 1.9; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; color: #747474; font-family: var(--font-mono); font-size: 10px; }
.article-hero-image { margin: 0; aspect-ratio: 16 / 8.5; overflow: hidden; background: #ddd; }
.article-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.article-hero-category .category-visual { min-height: 100%; }
.article-content { max-width: var(--reading-width); padding: 54px 0 72px; margin-inline: auto; font-size: 18px; line-height: 1.9; overflow-wrap: anywhere; }
.article-content > :first-child { margin-top: 0; }
.article-content > :last-child { margin-bottom: 0; }
.article-content p { margin: 1.65em 0; }
.article-content h2, .article-content h3, .article-content h4 { color: #111; scroll-margin-top: 92px; text-wrap: pretty; }
.article-content h2 { margin: 3.8em 0 1.25em; padding: 0 0 .55em; font-size: 1.65em; line-height: 1.45; letter-spacing: -.035em; border-bottom: 2px solid #111; }
.article-content h3 { margin: 2.8em 0 1em; padding-left: .8em; font-size: 1.28em; line-height: 1.5; border-left: 4px solid #111; }
.article-content h4 { margin: 2.2em 0 .8em; font-size: 1.08em; }
.article-content ul, .article-content ol { margin: 1.5em 0; padding-left: 1.5em; }
.article-content li { margin: .55em 0; }
.article-content a { font-weight: 650; }
.article-content hr { margin: 3em 0; border: 0; border-top: 1px solid var(--color-line); }
.article-content blockquote { margin: 2em 0; padding: 1px 1.5em; color: #454545; background: #f2f2f2; border-left: 4px solid #111; }
.article-content img { height: auto; margin-inline: auto; }
.article-content figure { max-width: 100%; margin: 2em 0; }
.article-content figcaption { margin-top: 8px; color: #777; font-size: 12px; text-align: center; }
.article-content table { width: 100%; margin: 2em 0; border-collapse: collapse; font-size: .88em; }
.article-content th, .article-content td { padding: 13px 14px; border: 1px solid #ccc; text-align: left; vertical-align: top; }
.article-content th { background: #ededed; font-weight: 750; }
.article-content :not(pre) > code { padding: .12em .35em; color: #111; background: #e5e5e5; border: 1px solid #d1d1d1; border-radius: 3px; font-family: var(--font-mono); font-size: .86em; }
.article-content pre { position: relative; max-width: 100%; margin: 2em 0; padding: 48px 22px 22px; overflow: auto; color: #f4f4f4; background: var(--color-code); border: 1px solid #303030; border-radius: 3px; font: 13px/1.75 var(--font-mono); tab-size: 2; -webkit-overflow-scrolling: touch; }
.article-content pre code { padding: 0; color: inherit; background: transparent; border: 0; font: inherit; white-space: pre; }
.article-content pre::before { content: "CODE"; position: absolute; top: 14px; left: 20px; color: #888; font-size: 9px; letter-spacing: .12em; }
.article-content pre.language-javascript::before, .article-content pre:has(code.language-javascript)::before { content: "JAVASCRIPT"; }
.article-content pre.language-css::before, .article-content pre:has(code.language-css)::before { content: "CSS"; }
.article-content pre.language-php::before, .article-content pre:has(code.language-php)::before { content: "PHP"; }
.article-content pre.language-markup::before, .article-content pre:has(code.language-markup)::before { content: "HTML"; }
.code-copy { position: absolute; top: 9px; right: 10px; padding: 5px 9px; color: #bbb; background: #292929; border: 1px solid #444; font-size: 10px; cursor: pointer; }
.code-copy:hover { color: #fff; border-color: #777; }
.wp-block-luxe-blocks-syntaxhighlighter { white-space: pre; }
.alignwide { width: min(100vw - 48px, 1040px); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.wp-caption { max-width: 100%; }
.article-footer { padding: 34px 7.5% 50px; border-top: 1px solid var(--color-line); }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.article-tags a { padding: 6px 10px; color: #555; background: #eee; font-size: 11px; text-decoration: none; }
.article-category-return { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0 0; border-top: 1px solid var(--color-line); }
.article-category-return span { color: var(--color-muted); font-size: 12px; }
.article-category-return a { font-weight: 750; }
.desktop-toc { position: sticky; top: 26px; max-height: calc(100vh - 52px); padding: 24px 0; overflow: auto; }
.desktop-toc > p { margin: 0 0 18px; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.toc-list { margin: 0; padding: 0; list-style: none; }
.toc-list li { margin: 0; border-top: 1px solid #cecece; }
.toc-list a { display: block; padding: 9px 4px; color: #5e5e5e; font-size: 11px; line-height: 1.55; text-decoration: none; }
.toc-list a:hover { color: #111; }
.toc-list .toc-level-3 a { padding-left: 16px; color: #777; }
.mobile-toc { display: none; margin: 28px 7.5% 0; background: #f1f1f1; border: 1px solid var(--color-line); }
.mobile-toc summary { padding: 14px 16px; cursor: pointer; font-weight: 750; }
.mobile-toc .toc-list { padding: 0 16px 14px; }
.related-section { margin-top: 74px; }
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 58px; background: #bbb; border: 1px solid #bbb; }
.post-navigation > div { min-width: 0; background: #fff; }
.post-navigation a { display: block; min-height: 120px; padding: 24px; font-size: 14px; font-weight: 700; text-decoration: none; }
.post-navigation span { display: block; margin-bottom: 12px; color: #666; font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em; }
.page-paper { max-width: 980px; margin-inline: auto; }

/* Article component compatibility */
.ds-ai-article { --ds-border: #d0d0d0; --ds-surface: #f2f2f2; color: #171717; }
.ds-ai-lead { margin-top: 0 !important; font-size: 1.08em; line-height: 2; }
.ds-ai-updated { display: inline-block; margin: .4em 0 0; padding: .35em .7em; color: #606060; background: #f2f2f2; border: 1px solid #d0d0d0; border-radius: 999px; font-size: .78em; }
.ds-ai-conclusion, .ds-ai-note, .ds-ai-warning, .ds-ai-checklist { margin: 1.6em 0; padding: 1.2em 1.3em; background: var(--ds-surface); border: 1px solid var(--ds-border); border-left: 4px solid #111; }
.ds-ai-conclusion__label, .ds-ai-checklist__title { margin: 0 0 .6em !important; font-size: .82em; font-weight: 800; letter-spacing: .04em; }
.ds-ai-conclusion ul, .ds-ai-checklist ul { margin: 0; }
.ds-ai-warning { background: #e8e8e8; border-left-width: 7px; }
.ds-ai-model-grid, .ds-ai-feature-grid, .ds-ai-compare-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 1.6em 0; }
.ds-ai-model-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ds-ai-model-card, .ds-ai-feature-card, .ds-ai-compare-card { min-width: 0; padding: 1.1em; background: #f6f6f6; border: 1px solid #ccc; }
.ds-ai-model-card__name, .ds-ai-compare-card__title { margin: 0 0 .3em !important; font-size: 1.05em !important; font-weight: 800; }
.ds-ai-model-card__role { margin: 0 0 .6em !important; color: #666; font-size: .78em; font-weight: 700; }
.ds-ai-model-card p:last-child, .ds-ai-feature-card p:last-child, .ds-ai-compare-card p:last-child { margin-bottom: 0; }
.ds-ai-table-wrap { width: 100%; margin: 1.6em 0; overflow-x: auto; border: 1px solid #ccc; }
.ds-ai-table-wrap .ds-ai-table { min-width: 680px; margin: 0; border: 0; }
.ds-ai-caption { margin-top: -1.2em !important; color: #686868; font-size: .78em; }
.ds-ai-flow { margin: 1.6em 0; padding: 0 !important; list-style: none; }
.ds-ai-flow li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; margin: 0; padding-bottom: 20px; }
.ds-ai-flow li > span { display: grid; place-items: center; width: 34px; height: 34px; color: #fff; background: #111; border-radius: 50%; font-size: 12px; font-weight: 800; }
.ds-ai-faq { margin: 1.6em 0; border-top: 1px solid #bbb; }
.ds-ai-faq details { border-bottom: 1px solid #bbb; }
.ds-ai-faq summary { padding: 16px 4px; cursor: pointer; font-weight: 750; }
.ds-ai-faq details > div { padding: 0 4px 16px; color: #555; }
.ds-ai-reference-list, .ds-ai-related-links { font-size: .9em; }

/* Empty and 404 */
.empty-state, .not-found { max-width: 760px; padding: 80px 6vw; margin: 50px auto; text-align: center; background: #fff; border: 1px solid var(--color-line); }
.empty-state h1, .not-found h1 { margin: 0; font-size: clamp(30px, 5vw, 52px); line-height: 1.3; letter-spacing: -.04em; }
.empty-state p, .not-found > p { color: var(--color-muted); }
.empty-state .site-search, .not-found .site-search { margin: 30px auto 24px; }
.not-found__code { margin: 0 !important; color: #111 !important; font-family: var(--font-mono); font-size: clamp(80px, 18vw, 180px); font-weight: 900; line-height: 1; letter-spacing: -.08em; }

@media (max-width: 1080px) {
  .site-tagline { display: none; }
  .post-grid--four { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .reading-layout { grid-template-columns: minmax(0, 860px); }
  .desktop-toc { display: none; }
  .mobile-toc { display: block; }
}

@media (max-width: 860px) {
  .site-shell { width: min(calc(100% - 28px), var(--site-width)); }
  .site-header__inner { min-height: 66px; }
  .site-header__actions { display: block; }
  .icon-button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; background: transparent; border: 1px solid #bbb; }
  .icon-button__lines, .icon-button__lines::before, .icon-button__lines::after { display: block; width: 18px; height: 1px; background: #111; content: ""; }
  .icon-button__lines { position: relative; }
  .icon-button__lines::before { position: absolute; top: -6px; }
  .icon-button__lines::after { position: absolute; top: 6px; }
  .primary-navigation { display: none; position: absolute; top: 66px; right: 0; left: 0; box-shadow: 0 15px 30px rgba(0,0,0,.12); }
  .primary-navigation.is-open { display: block; }
  .primary-navigation__inner { display: block; padding-block: 18px; }
  .primary-menu { display: block; margin-bottom: 18px; }
  .primary-menu a { padding: 10px 4px; border-bottom: 1px solid #ddd; }
  .primary-navigation .site-search { width: 100%; }
  .home-intro__inner { grid-template-columns: 1fr; }
  .home-intro__copy { min-height: 430px; padding-right: 0; }
  .home-intro__search { padding: 42px 7%; border: 1px solid #c8c8c8; }
  .section-heading { grid-template-columns: 1fr; gap: 12px; }
  .post-list { grid-template-columns: 1fr; }
  .archive-header, .search-header, .category-hero { padding: 46px 7%; }
  .article-content { padding-inline: 7%; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .site-shell { width: min(calc(100% - 20px), var(--site-width)); }
  .site-logo__text { font-size: 18px; }
  .home-section { padding-block: 58px; }
  .home-intro__copy { min-height: 390px; padding-block: 56px; }
  .home-intro__copy h1 { font-size: clamp(42px, 14vw, 62px); }
  .category-grid, .post-grid--four, .post-grid--archive { grid-template-columns: 1fr; }
  .category-card { min-height: 310px; padding: 20px 24px 24px; }
  .section-heading--line { align-items: flex-end; }
  .section-heading--line .text-link { max-width: 120px; text-align: right; }
  .post-card { grid-template-columns: 116px minmax(0, 1fr); }
  .post-card:not(.post-card--compact) .category-visual__rail,
  .post-card:not(.post-card--compact) .category-visual__footer { display: none; }
  .post-card:not(.post-card--compact) .category-visual__mark { left: 12px; font-size: 34px; }
  .post-card__body { padding: 16px; }
  .post-card__title { font-size: 16px; }
  .post-card__excerpt { display: none; }
  .post-card__meta span:last-child { display: none; }
  .post-card--compact { display: block; }
  .post-card--compact .post-card__title { font-size: 17px; }
  .category-hero { grid-template-columns: 1fr; gap: 30px; }
  .category-hero__count { text-align: left; }
  .archive-toolbar { align-items: flex-end; }
  .archive-toolbar h2 { max-width: 180px; font-size: 20px; }
  .reading-shell { width: 100%; padding-top: 0; }
  .reading-shell > .breadcrumbs { width: calc(100% - 24px); margin: 12px auto; }
  .article-paper { box-shadow: none; }
  .article-header { padding: 46px 22px 34px; }
  .article-header h1 { font-size: clamp(31px, 9vw, 42px); }
  .article-deck { font-size: 15px; }
  .article-content { padding: 38px 22px 56px; font-size: 16.5px; line-height: 1.88; }
  .article-content h2 { font-size: 1.5em; }
  .article-content h3 { font-size: 1.22em; }
  .article-content pre { margin-inline: -22px; padding-right: 22px; padding-left: 22px; border-right: 0; border-left: 0; border-radius: 0; }
  .article-content .ds-ai-model-grid, .article-content .ds-ai-feature-grid, .article-content .ds-ai-compare-cards { grid-template-columns: 1fr; }
  .article-footer { padding-inline: 22px; }
  .article-category-return { display: block; }
  .article-category-return a { display: block; margin-top: 8px; }
  .related-section { width: calc(100% - 24px); margin-inline: auto; }
  .post-navigation { grid-template-columns: 1fr; width: calc(100% - 24px); margin-inline: auto; }
  .site-footer { margin-top: 70px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 36px; padding-block: 48px 30px; }
  .site-footer__bottom { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .site-footer, .breadcrumbs, .desktop-toc, .mobile-toc, .related-section, .post-navigation { display: none !important; }
  body { background: #fff; }
  .reading-shell { width: 100%; }
  .article-paper { box-shadow: none; }
  .article-content { max-width: none; }
}
