/* evincism static – hand-written stylesheet (spec: data/theme-ref/DESIGN.md). 1rem = 16px here. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/InterVariable.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("/fonts/InterVariable-Italic.woff2") format("woff2"); }
:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bg: #ffffff; --text: #1c2729; --ink: #151d1e; --muted: rgba(21, 29, 30, .78); --muted-2: #515151; --muted-3: #545454;
  --link: #017698; --share-link: #09343e; --brand: #1c3f45; --brand-2: #2a5157; --slate: #3a5d65;
  --yellow: #f2f29c; --yellow-2: #eceb72; --red: #f45249; --red-2: #f4756e; --green: #437b5c; --hover-dark: #283a3e;
  --border: rgba(133, 133, 133, .31); --border-2: rgba(133, 133, 133, .38); --border-3: rgba(0, 0, 0, .29);
  --featured-bg: #080c0c; --footer-bg: #070a0a; --ad-bg: rgba(0, 0, 0, .1); --ad-bg-strong: #e0e0e0;
  --thin-grad: linear-gradient(90deg, #142e33 22%, #8b2823 75%, #acab33);
  /* fluid type scale (px-equivalents of the original rem scale at 1rem = 10px) */
  --fs1: clamp(1.383rem, 1.383rem + ((1vw - .225rem) * .548), 2.028rem);
  --fs2: clamp(1.296rem, 1.296rem + ((1vw - .225rem) * .43), 1.803rem);
  --fs3: clamp(1.215rem, 1.215rem + ((1vw - .225rem) * .329), 1.602rem);
  --fs4: clamp(1.139rem, 1.139rem + ((1vw - .225rem) * .242), 1.424rem);
  --fs5: clamp(1.067rem, 1.067rem + ((1vw - .225rem) * .169), 1.266rem);
  --fs6: clamp(1rem, 1rem + ((1vw - .225rem) * .106), 1.125rem);
  --fs7: clamp(.938rem, .938rem + ((1vw - .225rem) * .053), 1rem);
  --fs8: .885rem; --fs9: .823rem; --fs10: .771rem; --fs11: .723rem; --fs12: .678rem;
  --section: clamp(1.563rem, 1.563rem + ((1vw - .225rem) * 1.86), 3.75rem);
  --thin-h: 45px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--thin-h) + 12px); overflow-x: hidden; font-feature-settings: "ss01", "ss03", "ss04"; }
body { margin: 0; font-family: var(--font); font-size: var(--fs6); line-height: 1.62; color: var(--text); background: var(--bg); font-optical-sizing: auto; font-variation-settings: "opsz" 32; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .15em; }
h1, h2, h3, h4, h5, h6 { color: var(--text); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: var(--fs1); } h2 { font-size: var(--fs2); } h3 { font-size: var(--fs3); } h4 { font-size: var(--fs4); }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: .5em 1em; }
.skip:focus { left: 8px; }
.wrap { width: 90vw; max-width: 1382px; margin-inline: auto; }
.wrap--narrow { max-width: 760px; }
.center { text-align: center; }
.section { padding-block: var(--section); }
.section-label { font-size: var(--fs5); font-weight: 700; margin-bottom: 1em; display: flex; align-items: center; gap: .4em; }
.section-label--small { font-size: var(--fs9); font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: .3em; margin-bottom: 1.2em; }
.section-label--featured { color: #fff; font-weight: 650; letter-spacing: -.02em; }
.section-label--featured svg { width: .6em; height: .6em; color: var(--green); }

/* ---------- buttons / pills ---------- */
.btn { display: inline-flex; align-items: center; gap: .45em; padding: .4em 1.1em; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 600; font-size: var(--fs7); cursor: pointer; border-radius: 3px; }
.btn:hover { text-decoration: none; background: var(--hover-dark); }
.btn--outline { background: #fff; color: var(--ink); font-weight: 550; box-shadow: 0 0 16px 4px rgba(21, 29, 30, .28); border: 0; padding: .3em 1.2em .4em; }
.btn--outline:hover { background: var(--yellow); }
.pill { display: inline-block; padding: .1em .5em .15em; border-radius: 5px; font-size: var(--fs8); font-weight: 600; letter-spacing: -.01em; line-height: 1.5; }
.pill--support { background: var(--yellow); color: var(--text); }
.pill--support:hover { background: var(--hover-dark); color: #fff; text-decoration: none; }
.pill--white { background: #fff; color: var(--text); }
.pill--white:hover { background: var(--hover-dark); color: #fff; text-decoration: none; }
.pill--cat { background: var(--slate); color: #fff; font-size: var(--fs12); font-weight: 500; padding: .3em .7em .4em; border-radius: 2px; margin-right: .5rem; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0; }
.icon-btn svg { width: 24px; height: 24px; }

/* ---------- header: fixed gradient bar ---------- */
.thin-header { position: fixed; top: 0; left: 0; right: 0; z-index: 45; height: var(--thin-h); color: #fff; background: var(--thin-grad); }
.thin-header__row { display: flex; align-items: center; gap: .9em; height: 100%; }
.thin-header .menu-btn { width: 1.6em; height: 1.6em; }
.thin-header .pill { line-height: 1.6; }
.thin-header__brand { display: block; color: #fff; }
.wordmark { display: inline-flex; align-items: center; gap: .3em; font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; line-height: 1; height: 1.4em; }
.wordmark .i-mark { width: 1.1em; height: 1.1em; margin: 0; }
.menu-btn svg { width: 1.4em; height: 1.4em; }
.thin-header .pill { margin-left: auto; }
.site-main { padding-top: var(--thin-h); }
/* transparent header that sits under the fixed bar (its Support pill and socials peek out, as on the original) */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 44; padding: 1.5em 0 2.5em; background: linear-gradient(rgba(4, 6, 6, .88), rgba(0, 0, 0, 0)); color: #fff; pointer-events: none; }
.site-header__row { display: flex; align-items: center; justify-content: space-between; }
.site-header__left { display: flex; align-items: center; gap: .7em; }
.site-header__left svg { width: 1.4em; height: 1.4em; }
.site-logo img { width: 6.2em; height: auto; }
.site-header__right { display: flex; align-items: center; gap: .4em; }
.site-header .social { font-size: .95em; margin-right: .7em; }
.ad--top { background: var(--ad-bg-strong); min-height: 7.5em; }
body.single-post .ad--top { min-height: 19.6em; }
.social { display: flex; gap: .7em; list-style: none; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; color: inherit; transition: transform .3s ease, color .3s ease; }
.social a:hover { color: var(--yellow); transform: scale(1.3); }
.social svg { width: 1em; height: 1em; }

/* ---------- menu: drop-down panel over a dimmed page ---------- */
.site-menu { position: fixed; inset: 0; z-index: 60; }
.site-menu__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.site-menu__panel { position: relative; background: var(--ink); color: #fff; animation: slideDown .35s ease; max-height: 100vh; overflow-y: auto; }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: none; } }
.site-menu__inner { width: 70%; max-width: 1000px; margin-inline: auto; padding: 1.5em 0 2em; }
.site-menu__close { display: inline-flex; align-items: center; gap: .3em; border: 0; background: none; color: #f5f5f5; font-size: var(--fs9); text-transform: uppercase; cursor: pointer; padding: 0 0 .2em; border-bottom: 1px solid transparent; }
.site-menu__close:hover { border-bottom-color: #c2c2c2; }
.site-menu__close svg { width: 1.2em; height: 1.2em; }
.menu-cols { display: grid; gap: 2rem 1.5rem; }
.menu-cols--popup { grid-template-columns: 1fr 1fr auto; padding: 2em 0 1.5em; }
.menu-col ul { list-style: none; margin: 0; padding: 0; }
.menu-col__label { font-size: var(--fs9); font-weight: 500; letter-spacing: .01em; text-transform: uppercase; color: inherit; margin-bottom: .4em; }
.menu-cols--popup .menu-col a { font-size: var(--fs4); font-weight: 650; line-height: 1.7; }
.menu-cols--popup .menu-col--main a { font-size: var(--fs5); font-weight: 400; }
.site-menu a:hover { text-decoration: underline; text-decoration-color: var(--red-2); }
.site-menu__foot { display: flex; align-items: center; justify-content: space-between; gap: 1em; font-size: var(--fs7); }
.menu-search { display: flex; }
.menu-search input { width: 16em; font: inherit; padding: .6em .8em; border: 1px solid var(--yellow); background: transparent; color: #fff; }
.menu-search input::placeholder { color: rgba(255, 255, 255, .7); }
.menu-search button { width: 3.2em; border: 0; background: var(--yellow); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.menu-search button svg { width: 1.2em; height: 1.2em; }
.site-menu__social { display: flex; align-items: center; gap: 1.5em; }
.site-menu__social .pill { padding: .35em .7em .4em; font-size: var(--fs7); letter-spacing: -.025em; }
.site-menu__social .pill:hover { background: #19383e; color: #fff; }
body.menu-open { overflow: hidden; }

/* ---------- home: top banner ---------- */
.hero { position: relative; margin-top: calc(-1 * var(--thin-h)); padding-top: var(--thin-h); aspect-ratio: 16 / 6; display: flex; align-items: flex-end; color: #fff; background: var(--ink); isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(8, 12, 12, .5); }
.hero__inner { margin-bottom: 3em; }
.hero__text { position: relative; z-index: 2; }
.hero__title { font-size: calc(var(--fs1) * 1.5); line-height: 1.1; color: #fff; max-width: 25ch; margin: 0 0 .25em; }
.hero__excerpt { font-size: var(--fs6); line-height: 1.4; max-width: 56ch; margin-bottom: .6em; }
.hero .meta { color: #fff; }
.hero__link { position: absolute; inset: 0; z-index: 1; }

/* ---------- cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5em; width: 89%; margin-inline: auto; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.3em; }
.card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #e9eaea; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.meta { display: flex; align-items: center; gap: .2em; font-size: var(--fs9); color: var(--ink); margin: .6em 0 .3em; }
.meta__cat { font-weight: 600; }
.meta__sep { font-size: var(--fs10); margin: 0 .2em 0 .3em; }
.i-mark { width: 1.1em; height: 1.1em; fill: currentColor; margin-right: .3em; }
.card__title { font-size: calc(var(--fs5) * 1.05); line-height: 1.2; letter-spacing: -.01em; margin: 0; }
.card__excerpt { font-size: calc(var(--fs8) * 1.02); line-height: 1.5; margin: .5em 0 .2em; }
.card__author { font-size: var(--fs9); color: var(--muted); margin: 0; }
.featured { background: var(--featured-bg); color: #fff; padding-block: calc(var(--section) * .6) calc(var(--section) * .8); }
.featured .card__title, .featured .card__title a, .featured .meta, .featured .card__excerpt, .featured .card__author { color: #fff; }
.featured .meta { font-size: var(--fs10); }
.featured .card__title { font-size: calc(var(--fs6) * 1.07); line-height: 1.3; margin-bottom: .2em; }
.featured .card__excerpt { font-size: var(--fs9); }
.featured .card__author { font-size: var(--fs10); }
.related .card__title { font-size: calc(var(--fs6) * 1.05); margin: .5em 0 .2em; }
.related .card__excerpt { font-size: calc(var(--fs7) / 1.1); }
.related .meta { display: none; }
.related .card__author { display: none; }

/* ---------- ads ---------- */
.ad { background: var(--ad-bg); padding: .5em 0; position: relative; min-height: 48px; overflow: hidden; }
.ad ins, .ad iframe { max-width: 100% !important; }
.ad::before { content: "AD"; position: absolute; top: 1px; left: 1px; font-size: var(--fs9); background: rgba(0, 0, 0, .04); padding: 0 .3em; }
.ad--aside { background: transparent; position: sticky; top: 70px; }

/* ---------- archive ---------- */
.archive { padding-top: var(--section); padding-bottom: 1em; }
.archive__label { font-size: var(--fs10); font-weight: 700; color: var(--green); margin-bottom: -.6em; }
.archive__title { font-size: var(--fs3); margin: .6em 0 .3em; }
.archive__desc { color: var(--muted-3); max-width: 60ch; }
.archive__list { padding-bottom: var(--section); }
.archive__layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.archive__col, .archive__aside, .article__main, .article__aside { min-width: 0; }
.archive__col { border-top: 1px solid currentColor; border-right: 1px solid currentColor; padding: 2.5em 2.5em 0 0; }
.archive__aside { padding-left: 2em; }
.lcard { display: grid; grid-template-columns: 2fr 3fr; gap: 1em; margin-bottom: 2.5em; }
.lcard__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #e9eaea; }
.lcard__media img { width: 100%; height: 100%; object-fit: cover; }
.lcard__title { font-size: calc(var(--fs4) / 1.1); line-height: 1.2; margin: 0 0 .3em; }
.lcard .meta { margin: 0; }
.lcard .meta span:first-child { font-weight: 700; }
.lcard__excerpt { font-size: var(--fs7); line-height: 1.5; margin: .5em 0 0; }
.pagination ul { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; padding: 0; margin: 0; font-size: var(--fs7); }
.pagination a, .pagination span { display: inline-grid; place-items: center; width: 2em; height: 2em; border: 1px solid var(--border-3); }
.pagination a:hover { background: var(--yellow); color: var(--ink); text-decoration: none; }
.pagination__current { background: var(--brand-2); color: #fff; border-color: var(--brand-2); }
.pagination__dots { border: 0; }
.pagination__arrow svg { width: 1em; height: 1em; }

/* ---------- single post ---------- */
.article { padding-top: 0; }
.article__layout { display: flex; justify-content: space-between; align-items: flex-start; width: 100%; max-width: none; border-bottom: 1px solid var(--border-2); }
.toc { width: 25%; align-self: stretch; background: var(--ink); }
.article__main { width: 40%; }
.article__aside { width: 30%; padding: 6em 1.5em 0 5em; }
.article__aside-sticky { display: flex; flex-direction: column; gap: 1.5em; }
.article__header { margin: 1.5em 0 1em; }
.article__cats { font-size: var(--fs8); font-weight: 700; margin-bottom: 0; }
.article__title { font-size: calc(var(--fs1) * 1.08); line-height: 1.25; letter-spacing: -.02em; font-weight: 720; margin: .3em 0; }
.article__date { font-size: var(--fs8); margin: 0; }
.article__figure { margin: .5em 0 0; padding-top: 1.2em; border-top: 1px solid var(--border); }
.article__figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article__figure figcaption { margin-top: .6em; font-size: var(--fs8); color: var(--muted-2); font-weight: 300; line-height: 1.55; }
.authors { display: none; margin-top: 2em; }
.author-card { display: grid; grid-template-columns: 1fr 7fr; gap: 1rem; align-items: flex-start; margin: .6em 0 1em; }
.author-card__avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.author-card__name { font-size: var(--fs9); font-weight: 700; line-height: 1.6; }
.author-card__bio { font-size: var(--fs10); line-height: 1.5; margin: 0; }
.share { display: flex; align-items: center; gap: .4em; flex-wrap: wrap; margin: 2rem 0 5%; }
.share__label { font-size: var(--fs7); font-weight: 700; }
.share ul { display: flex; gap: 14px; list-style: none; margin: 0 0 0 .4em; padding: 0; }
.share a { display: grid; place-items: center; color: var(--share-link); }
.share svg { width: 17px; height: 17px; }
.article__main .ad { margin-top: 2em; background: var(--ad-bg-strong); }
.ad--aside { background: transparent; min-height: 0; }
.related { padding-bottom: var(--section); }
.related .wrap { width: 80vw; }

/* table of contents */
.toc__box { position: sticky; top: var(--thin-h); background: var(--ink); color: #fff; max-height: calc(100vh - var(--thin-h)); overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) rgba(255, 255, 255, .1); padding: 0 0 5em; }
.toc__head { display: flex; align-items: center; justify-content: space-between; gap: .3em; padding: .9em .8em 0; border-bottom: 1px solid rgba(133, 133, 133, .53); }
.toc__label { font-size: var(--fs7); color: #fff; margin: 0 0 1em; }
.toc__close { display: none; background: none; border: 0; color: #fff; font-size: var(--fs9); cursor: pointer; }
.toc__close:hover { text-decoration: underline; }
.toc__top { display: block; font-size: calc(var(--fs8) * 1.2); font-weight: 600; line-height: 1.3; margin: 1em 1.5em .8em .7em; padding-left: .7em; }
.toc__top-tag { font-weight: 400; opacity: .8; }
.toc__list { padding: 0 1.5em 0 .7em; counter-reset: lvl1; }
.toc__list ul { list-style: none; margin: 0; padding: 0; }
.toc__list > ul > li { counter-increment: lvl1; counter-reset: lvl2; }
.toc__list > ul > li > a::before { content: counter(lvl1) "."; }
.toc__list ul ul > li { counter-increment: lvl2; }
.toc__list ul ul > li > a::before { content: counter(lvl1) "." counter(lvl2) "."; }
.toc__list ul ul { padding-left: 1em; }
.toc__list a { position: relative; display: block; padding-left: 2.2em; font-size: calc(var(--fs8) * 1.1); line-height: 1.5; margin: .3em 0; color: #fff; }
.toc__list a::before { position: absolute; left: .3em; top: 0; opacity: .8; }
.toc__list a.is-active { text-decoration: underline; text-decoration-color: var(--red-2); }
.toc__refs { display: block; margin: 1em 1.5em 0 1em; font-size: calc(var(--fs8) * 1.1); font-weight: 500; }
.toc__fab { display: none; }

/* post content */
.prose { font-size: calc(var(--fs6) / 1.05); line-height: 1.6; }
.prose > * + * { margin-top: 1.15em; }
.prose p { margin: 0; }
.prose a { color: var(--link); }
.prose h2 { font-size: var(--fs3); margin: 1.6em 0 .5em; }
.prose h3 { font-size: var(--fs4); margin: 1.4em 0 .4em; }
.prose h4 { font-size: var(--fs5); margin: 1.2em 0 .4em; }
.prose figure { margin: 1.5em 0; }
.prose figure.aligncenter, .prose .aligncenter { margin-inline: auto; }
.prose figcaption { font-size: var(--fs8); color: var(--ink); line-height: 1.55; margin-top: .6em; }
.prose blockquote { border-left: 2px solid rgba(0, 0, 0, .2); padding-left: .7em; margin: 1em 0; font-size: calc(var(--fs6) * 1.1); line-height: 1.4; font-family: Georgia, "Times New Roman", serif; }
.prose blockquote cite { font-family: var(--font); font-style: normal; font-size: var(--fs8); letter-spacing: .3px; color: rgba(0, 0, 0, .7); }
.prose .wp-block-pullquote { box-shadow: 0 0 10px rgba(0, 0, 0, .3); padding: 4% 5%; font-size: .7em; text-align: left; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .35em 0; }
.prose .wp-block-table { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { border: 1px solid var(--text); padding: .5em; text-align: left; vertical-align: top; }
.prose th { font-weight: 700; }
.prose pre { overflow-x: auto; background: #f4f4f4; padding: 1em; font-size: .9em; }
.prose code { background: #f4f4f4; padding: .1em .35em; font-size: .92em; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.prose .wp-block-embed__wrapper { position: relative; }
.prose .wp-embed-aspect-16-9 .wp-block-embed__wrapper { aspect-ratio: 16 / 9; }
.prose .wp-embed-aspect-16-9 iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.prose iframe { max-width: 100%; }
.prose img { margin-inline: auto; }
.prose .wp-block-image img, .prose .size-large img, .prose .size-full img { width: 100%; }
.prose .has-text-align-center { text-align: center; }
.prose sup { line-height: 0; }
.prose .footnote-identifier-link { font-weight: 700; text-decoration: none; padding: 0 .1em; }
.prose h2#references { margin-top: 2em; }
.prose ol.footnotes { font-size: var(--fs7); color: rgba(0, 0, 0, .8); padding-left: 1.5em; }
.prose ol.footnotes li { margin: .5em 0; word-break: break-word; }
.footnote-back-link-wrapper { margin-left: .3em; }
.prose .wp-block-buttons .wp-block-button__link { display: inline-block; padding: .6em 1.2em; background: var(--slate); color: #fff; border-radius: 2px; }

/* plain pages */
.article--plain { padding-top: 2em; padding-bottom: var(--section); }
.article--plain .article__title { margin-bottom: 1em; }

/* calculator */
.calculator { display: grid; gap: 1rem; padding: 1.25rem; margin: 1.5rem 0 2.5rem; border: 1px solid var(--border); background: #f7f8f8; }
.calculator__field { display: grid; gap: .3rem; }
.calculator__field label { font-weight: 600; font-size: var(--fs8); }
.calculator__field input { font: inherit; padding: .6em .8em; border: 1px solid var(--border-3); background: #fff; color: var(--text); border-radius: 3px; }
.calculator__actions { display: flex; gap: .5rem; margin: 0; }
.calculator__result { font-size: var(--fs4); }
.calculator__note { font-size: var(--fs9); color: var(--muted-3); margin: 0; }

/* search */
.search-form { display: flex; gap: .5rem; margin-bottom: 2rem; }
.search-form input { flex: 1; font: inherit; padding: .5em .7em; border: 1px solid var(--yellow); min-width: 0; }
.search-form .btn { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.search-results .lcard { grid-template-columns: 200px minmax(0, 1fr); }
.search-results__empty { color: var(--muted-3); }

/* 404 */
.notfound { padding: 5rem 0 var(--section); text-align: center; }
.notfound__code { font-family: "Press Start 2P", monospace; font-size: calc(var(--fs1) * 5); color: #0a0f0f; line-height: 1; margin: 0; }
.notfound__msg { font-family: "Press Start 2P", monospace; font-size: calc(var(--fs5) * 1.2); color: var(--ink); margin: 5vh 0; }
.notfound .section-label { justify-content: center; margin-top: 1em; }
.notfound__grid { gap: 1.9em; margin-top: 1.8em; text-align: left; }
.notfound__grid .card__title { font-size: var(--fs5); line-height: 1.3; margin: .5em 0 .2em; }
.notfound__grid .card__excerpt { color: var(--ink); }
.pills { margin: .5em 0 0; }
.notfound__home { margin-top: 3em; }

/* ---------- footer ---------- */
.site-footer { background: var(--footer-bg); color: #fff; padding-block: var(--section); }
.site-footer__cols { grid-template-columns: repeat(5, auto); gap: 7em; justify-content: start; }
.site-footer .menu-col__label { font-size: var(--fs7); font-weight: 600; text-transform: none; letter-spacing: 0; margin-bottom: .4em; }
.site-footer .menu-col a { font-size: var(--fs7); line-height: 1.8; }
.site-footer .menu-col a:hover { text-decoration: underline; text-decoration-color: var(--red-2); }
.bmc { display: inline-flex; align-items: center; gap: .4em; width: 10em; color: #fff; font-weight: 700; font-style: italic; font-size: var(--fs6); transition: transform .2s ease; }
.bmc:hover { transform: scale(1.02); text-decoration: none; }
.bmc svg { width: 1.5em; height: 1.5em; flex: none; }
.site-footer__tagline { margin-top: 2em; font-size: var(--fs7); font-weight: 600; }
.site-footer__tagline strong { color: var(--yellow-2); }
.site-footer__social { margin-top: .5em; font-size: .9em; }
.site-footer__social a:hover { color: var(--yellow-2); }
.site-footer__legal { margin-top: 2em; font-size: var(--fs9); color: #f9f9f9; line-height: 1.8; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .toc { width: 22%; }
  .article__main { width: 44%; }
  .article__aside { padding: 7em 1em 0; }
  .article__title { font-size: var(--fs2); }
  .article__cats, .article__date { font-size: var(--fs9); }
  .lcard__excerpt { font-size: var(--fs8); }
}
@media (max-width: 991px) {
  .wrap { width: 93vw; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5em; }
  .card__title { font-size: var(--fs2); }
  .card__excerpt { font-size: var(--fs7); }
  .hero { aspect-ratio: 16 / 8; }
  .hero__inner { margin-bottom: 2em; }
  .site-footer__cols { grid-template-columns: repeat(4, 1fr); gap: 1.5em; }
  .menu-cols--popup .menu-col a { font-size: var(--fs5); }
  .site-menu__inner { width: 89%; }
  .menu-cols--popup { grid-template-columns: 1fr 1fr 1fr; }
  .archive__layout { grid-template-columns: minmax(0, 1fr); }
  .archive__col { border: 0; padding: 0; }
  .archive__aside { padding: 2em 0 0; }
  .lcard__media { aspect-ratio: 16 / 10; }
  .lcard__title { font-size: var(--fs4); }
  .lcard .meta { font-size: var(--fs10); }
  .article__layout { display: block; border: 0; }
  .article__main { width: 85vw; margin-inline: auto; }
  .article__aside { display: none; }
  .authors { display: block; }
  .author-card { grid-template-columns: 1fr 10fr; align-items: center; }
  .related .wrap { width: 85vw; }
  /* TOC drawer */
  .toc { position: fixed; top: 0; left: 0; height: 100vh; width: 50%; z-index: 70; transform: translateX(-100%); transition: transform .4s ease-in-out; }
  .toc.is-open { transform: none; }
  .toc__box { position: static; height: 100%; max-height: none; }
  .toc__close { display: inline-block; }
  .toc__fab { display: grid; place-items: center; position: fixed; top: 50vh; left: 0; z-index: 69; width: 2.1em; height: 2.1em; border: 0; background: #fff; color: var(--brand-2); box-shadow: 0 0 6px rgba(0, 0, 0, .25); cursor: pointer; padding: 0; }
  .toc__fab svg { width: 1.3em; height: 1.3em; }
}
@media (max-width: 768px) {
  .hero { aspect-ratio: 16 / 9; }
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .featured .card { margin-bottom: 1.5em; }
  .site-footer__cols { grid-template-columns: auto 1fr 1fr 1fr; gap: 1.2em; }
  .site-footer__cols .menu-col:last-child { grid-column: 1 / -1; }
  .toc { width: 65%; }
  .menu-cols--popup .menu-col a { font-size: var(--fs6); }
  .related .wrap { width: 100%; }
  .search-results .lcard { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .wrap { width: 90vw; }
  .site-header { display: none; }
  .hero { display: none; }
  .grid-3 { width: 100%; display: block; }
  .grid-3 .card { margin-bottom: 2.5em; }
  .grid-3 .card__body { padding: 0 5%; }
  .card__title { font-size: calc(var(--fs4) * 1.1); }
  .featured .card__title { font-size: var(--fs4); }
  .section-label--featured { font-size: var(--fs3); }
  .featured .card__body { margin: 0 5%; }
  .article__main { width: 90vw; }
  .article__header { margin-top: 0; }
  .article__title { font-size: calc(var(--fs1) * 1.1); line-height: 1.2; }
  .prose { font-size: 1em; }
  .share { margin-bottom: 3rem; }
  .author-card { grid-template-columns: 1fr; }
  .author-card__avatar { width: 3.2em; height: 3.2em; }
  .lcard { grid-template-columns: minmax(0, 1fr); }
  .lcard__title { font-size: var(--fs3); }
  .lcard__media { aspect-ratio: 16 / 9; }
  .pagination a, .pagination span { width: auto; padding: 0 .5em; }
  .toc { width: 95%; }
  .toc__fab { width: 2em; }
  .toc__label { font-size: var(--fs5); }
  .site-menu__inner { width: 85%; }
  .menu-cols--popup { grid-template-columns: 1fr; }
  .menu-cols--popup .menu-col:nth-child(2) { margin-left: 0; }
  .menu-cols--popup .menu-col a { font-size: var(--fs4); }
  .menu-col__label { font-size: var(--fs11); }
  .site-menu__foot { flex-direction: column; align-items: flex-start; }
  .menu-search { width: 100%; }
  .site-footer { background: linear-gradient(rgba(6, 9, 9, .95), rgba(6, 9, 9, .95)), linear-gradient(270deg, #19383e, #1c2729); }
  .site-footer__cols { grid-template-columns: 1fr; }
  .notfound__code { font-size: calc(var(--fs1) * 4); }
  .notfound__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
