@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Merriweather"; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap; size-adjust: 89.97%; src: url("/fonts/merriweather-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Merriweather"; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap; size-adjust: 89.97%; src: url("/fonts/merriweather-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Merriweather Fallback"; font-style: normal; font-weight: 400 600; src: local("Georgia"); size-adjust: 97.54%; ascent-override: 90.77%; descent-override: 25.18%; line-gap-override: 0%; }
@font-face { font-family: "Merriweather Fallback"; font-style: normal; font-weight: 700 900; src: local("Georgia Bold"), local("Georgia-Bold"); size-adjust: 85.78%; ascent-override: 103.21%; descent-override: 28.63%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback"; font-style: normal; font-weight: 400 500; src: local("Arial"), local("ArialMT"); size-adjust: 106.26%; ascent-override: 91.19%; descent-override: 22.68%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback"; font-style: normal; font-weight: 600 900; src: local("Arial Bold"), local("Arial-BoldMT"); size-adjust: 100.5%; ascent-override: 96.42%; descent-override: 23.98%; line-gap-override: 0%; }
:root { color-scheme: dark; --brand-primary: #D90429; --brand-primary-hover: #b90322; --brand-on-dark: #ff7188; --brand-accent: #3A86FF; --color-danger: #ef4444; --color-danger-hover: #dc2626; --color-success: #10b981; --color-warning: #f59e0b; --surface-page: #09111d; --surface-media: #0a0f18; --surface-raised: #101827; --bg-body: rgba(10, 15, 24, 0.9); --bg-card: rgba(10, 15, 24, 0.96); --text-primary: #f4f7fb; --text-secondary: rgba(226, 232, 240, 0.76); --text-muted: rgba(186, 197, 211, 0.66); --border-light: rgba(255, 255, 255, 0.08); --border-medium: rgba(255, 255, 255, 0.14); --space-xs: 0.25rem; --space-sm: 0.5rem; --space-md: 1rem; --space-lg: 1.5rem; --space-xl: 2.5rem; --space-2xl: 4rem; --page-gutter: clamp(1rem, 4vw, 2rem); --page-gutter-wide: clamp(0.875rem, 2.7vw, 2.5rem); --page-max: 1400px; --page-max-home: 1680px; --reading-max: 780px; --safe-top: env(safe-area-inset-top, 0px); --header-h: calc(4rem + var(--safe-top)); --site-menu-toggle-display: none; --site-menu-inset: 0 auto 0 0; --site-menu-offscreen: -100%; --site-menu-border-start: 0; --site-menu-border-end: 1px; --site-menu-shadow-x: 24px; --surface-header-scrolled: color-mix(in srgb, var(--surface-page) 96%, transparent); --font-sans: "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; --font-serif: "Merriweather", "Merriweather Fallback", Georgia, "Times New Roman", Times, serif; --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); --shadow-hover: 0 14px 30px -16px rgba(0, 0, 0, 0.22), 0 10px 18px -18px rgba(0, 0, 0, 0.18); --radius-card: 18px; --radius-sm: 4px; --radius-md: 10px; --radius-lg: 14px; --radius-full: 9999px; }

* { box-sizing: border-box; }
html { background-color: var(--surface-page); scrollbar-gutter: stable; scroll-padding-top: calc(var(--header-h) + var(--space-md)); -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { min-height: 100vh; background: linear-gradient(180deg, var(--surface-page) 0%, #0d1522 22%, var(--surface-raised) 100%); font-family: var(--font-sans), sans-serif; color: var(--text-primary); line-height: 1.6; margin: 0; padding: 0; font-size: 16px; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); font-weight: 700; line-height: 1.25; margin-bottom: 0.75em; color: var(--text-primary); }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
a:hover { color: var(--brand-on-dark); }
:where(a, button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; }
:where(input:not([type="checkbox"], [type="radio"]), select, textarea):focus-visible { outline: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(100%, var(--page-max)); margin: 0 auto; padding-inline: var(--page-gutter); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 44px; padding: 0.625rem 1.1rem; font-size: 0.9rem; font-weight: 600; border-radius: var(--radius-md); border: 1px solid var(--border-medium); background-color: var(--bg-card); color: var(--text-primary); cursor: pointer; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.12s ease; text-decoration: none; line-height: 1.4; }
.btn:active { transform: scale(0.96); }
.btn:hover { background-color: var(--bg-body); border-color: var(--text-secondary); }
.btn-primary { background-color: var(--brand-primary); border-color: var(--brand-primary); color: white; }
.btn-primary:hover { background-color: var(--brand-primary-hover); border-color: var(--brand-primary-hover); color: white; }
.btn-secondary { background-color: var(--bg-card); border-color: var(--border-medium); color: var(--text-primary); }
.btn-danger { background-color: var(--color-danger); border-color: var(--color-danger); color: white; }
.btn-danger:hover { background-color: var(--color-danger-hover); border-color: var(--color-danger-hover); }
.btn-sm { min-height: 38px; padding: 0.5rem 0.85rem; font-size: 0.8125rem; }
.btn-xs { min-height: 32px; padding: 0.35rem 0.65rem; font-size: 0.75rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; font-size: 0.875rem; color: var(--text-secondary); }
.form-control { width: 100%; min-height: 44px; scroll-margin-block-start: 2.5rem; padding: 0.625rem 0.875rem; font-family: var(--font-sans), sans-serif; font-size: 1rem; color: var(--text-primary); background-color: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-md); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.form-control:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(217, 4, 41, 0.18); }
.form-control[aria-invalid="true"] { border-color: rgba(239, 68, 68, 0.6); }
.form-control-sm { padding: 0.375rem 0.625rem; font-size: 0.875rem; }
textarea.form-control { min-height: 100px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.form-hint { display: block; margin-top: 0.375rem; font-size: 0.8125rem; color: var(--text-muted); }
.form-hint a { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; }
.form-error { display: block; margin-top: 0.375rem; font-size: 0.8125rem; color: #fecaca; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 1.5rem; }
.form-card { position: relative; padding: clamp(1.25rem, 4vw, 2rem); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius-card); background: rgba(255, 255, 255, 0.025); }
.form-card .form-grid { grid-template-columns: minmax(0, 1fr); gap: 0 1rem; }
.form-card .form-control { background: rgba(3, 7, 14, 0.5); border-color: rgba(255, 255, 255, 0.14); }
.form-counter { display: block; margin-top: 0.375rem; font-size: 0.8125rem; color: var(--text-muted); text-align: right; font-variant-numeric: tabular-nums; }
.form-counter.is-near-limit { color: #fecaca; }
.form-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.slug-preview { font-family: var(--font-mono), monospace; color: var(--brand-on-dark); }

.siteheader { position: fixed; inset: 0 0 auto; z-index: 1000; display: flex; align-items: center; block-size: var(--header-h); padding-top: var(--safe-top); background: var(--surface-page); transition: background-color 0.25s ease, backdrop-filter 0.25s ease, box-shadow 0.25s ease; }
.siteheader.is-scrolled { background: var(--surface-header-scrolled); -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05), 0 6px 22px rgba(0, 0, 0, 0.22); }
.app-shell:has(.hero) .siteheader:not(.is-scrolled) { background: linear-gradient(180deg, rgba(5, 8, 15, 0.78) 0%, rgba(5, 8, 15, 0.4) 60%, transparent 100%); box-shadow: none; }
.reading-progress { position: fixed; top: var(--safe-top); left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--brand-primary) 0%, #ff5068 100%); z-index: 1100; pointer-events: none; transform: scaleX(0); transform-origin: left center; will-change: transform; transition: transform 0.08s linear; box-shadow: 0 0 8px rgba(217, 4, 41, 0.4); }
.header-content { flex: 1; display: flex; align-items: center; gap: 0.75rem; width: min(100%, var(--page-max-home)); margin: 0 auto; padding-inline: var(--page-gutter-wide); position: relative; }
.header-brand { flex: 1 1 auto; min-width: 0; text-align: left; }
.brand-heading { display: inline-block; font-family: var(--font-serif); font-size: clamp(1.1rem, 4.6vw, 1.6rem); letter-spacing: -0.04em; margin: 0; padding: 0; line-height: 1; font-weight: 700; text-wrap: balance; color: var(--text-primary); }
.logo-title { color: #ffffff; display: inline-block; letter-spacing: -0.045em; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); transition: color 0.2s ease; }
.logo-title:hover { color: #ffffff; }
.logo-title:active { color: var(--brand-primary); }
.site-description { display: none; margin: 0.3rem 0 0; color: rgba(255, 255, 255, 0.66); font-size: 0.75rem; font-weight: 600; line-height: 1.2; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-actions { display: flex; flex-shrink: 0; align-items: center; justify-content: flex-end; gap: 0.55rem; flex-wrap: nowrap; margin-inline-start: auto; }
.header-icon-button { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 0.5rem; min-inline-size: 44px; block-size: 44px; padding: 0; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius-full); color: rgba(255, 255, 255, 0.82); font: inherit; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.12s ease; }
.header-icon-button:hover { background: rgba(255, 255, 255, 0.15); color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.header-icon-button:active { transform: scale(0.96); }
.header-icon-button svg { flex-shrink: 0; width: 18px; height: 18px; }
.header-nav { margin-top: 0; }
.header-nav ul { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; justify-content: center; background: rgba(255, 255, 255, 0.06); border-radius: var(--radius-full); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: none; overflow: hidden; flex-wrap: wrap; }
.header-nav li { display: flex; }
.header-nav li:not(:last-child) { border-right: 1px solid rgba(255, 255, 255, 0.08); }
.nav-link { display: block; padding: 0.55rem 0.75rem; border-radius: var(--radius-full); font-weight: 600; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.nav-link:hover { color: #ffffff; background: rgba(255, 255, 255, 0.1); text-shadow: 0 0 10px rgba(255, 255, 255, 0.3); }
.nav-link[aria-current="page"] { color: var(--text-primary); text-decoration: underline 2px var(--brand-primary); text-underline-offset: 0.6em; }
.logout-form { margin: 0; display: flex; }
.logout-btn { background: transparent; border: none; cursor: pointer; font-family: inherit; color: inherit; -webkit-appearance: none; appearance: none; }
.header-sections { display: none; }
.header-sections__list { display: flex; align-items: center; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.header-sections__list > li { display: none; min-width: 0; }
@container header-sections (min-width: 9rem) { .header-sections__list > li:nth-child(-n + 1) { display: block; } }
@container header-sections (min-width: 18rem) { .header-sections__list > li:nth-child(-n + 2) { display: block; } }
@container header-sections (min-width: 27rem) { .header-sections__list > li:nth-child(-n + 3) { display: block; } }
@container header-sections (min-width: 36rem) { .header-sections__list > li:nth-child(-n + 4) { display: block; } }
@container header-sections (min-width: 45rem) { .header-sections__list > li:nth-child(-n + 5) { display: block; } }
@container header-sections (min-width: 54rem) { .header-sections__list > li:nth-child(-n + 6) { display: block; } }

@supports selector(:open) { :root { --site-menu-toggle-display: inline-flex; } }
:root[data-site-menu="ready"] { --site-menu-toggle-display: inline-flex; }
.site-menu-toggle { display: var(--site-menu-toggle-display); }
.site-menu-toggle--wide { display: none; padding-inline: 0.85rem 1.05rem; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
html:has(.site-menu[open]) { overflow: hidden; }
.site-menu { position: fixed; inset: var(--site-menu-inset); inline-size: min(24rem, 88vw); max-inline-size: none; block-size: auto; max-block-size: none; margin: 0; padding: 0; border: 0 solid var(--border-light); border-inline-width: var(--site-menu-border-start) var(--site-menu-border-end); background: var(--surface-raised); color: var(--text-primary); box-shadow: var(--site-menu-shadow-x) 0 60px -28px rgba(0, 0, 0, 0.85); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.2) transparent; }
.site-menu::backdrop { inset: 0 calc(-1 * var(--root-gutter, 0px)) 0 0; background: rgba(3, 6, 12, 0.72); }
.site-menu__panel { display: flex; flex-direction: column; gap: var(--space-md); min-block-size: 100%; padding: var(--safe-top) var(--space-lg) max(var(--space-lg), env(safe-area-inset-bottom)); padding-inline: max(var(--space-lg), env(safe-area-inset-left)) max(var(--space-lg), env(safe-area-inset-right)); padding-inline-end: var(--site-menu-padding-end, max(var(--space-lg), env(safe-area-inset-right))); }
.site-menu__header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-block-size: calc(var(--header-h) - var(--safe-top)); }
.site-menu__group { display: flex; flex-direction: column; }
.site-menu__group--secondary { margin-block-start: auto; }
.site-menu__group--admin { padding-block-start: var(--space-sm); border-block-start: 1px solid var(--border-light); }
.site-menu__heading { padding: var(--space-md) 0.85rem var(--space-sm); }
.site-menu__list { display: grid; margin: 0; padding: 0; list-style: none; }
.site-menu__link { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); inline-size: 100%; min-block-size: 44px; padding: 0.45rem 0.85rem; border: 0; border-inline-start: 2px solid transparent; border-radius: 0 var(--radius-md) var(--radius-md) 0; background: transparent; color: var(--text-secondary); font: inherit; font-size: 0.98rem; font-weight: 500; line-height: 1.35; text-align: start; cursor: pointer; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.site-menu__link:hover { background: rgba(255, 255, 255, 0.05); color: var(--text-primary); }
.site-menu__link[aria-current="page"] { border-inline-start-color: var(--brand-primary); background: rgba(217, 4, 41, 0.1); color: var(--text-primary); font-weight: 600; }
.site-menu__link--lead { color: var(--text-primary); font-weight: 600; }
.site-menu__count { flex-shrink: 0; color: var(--text-muted); font-size: 0.8rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.site-menu__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.site-menu__links a { display: flex; align-items: center; min-block-size: 40px; padding: 0.4rem 0.85rem; border-radius: var(--radius-md); color: var(--text-secondary); font-size: 0.88rem; transition: background-color 0.2s ease, color 0.2s ease; }
.site-menu__links a:hover { background: rgba(255, 255, 255, 0.05); color: var(--text-primary); }
@media (pointer: fine) { .site-menu__link { min-block-size: 2.5rem; } }
@media (prefers-reduced-motion: no-preference) {
 .site-menu,
 .site-menu::backdrop { transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease, display 0.28s allow-discrete, overlay 0.28s allow-discrete; }
 .site-menu { transform: translateX(var(--site-menu-offscreen)); }
 .site-menu[open] { transform: none; }
 .site-menu::backdrop { opacity: 0; }
 .site-menu[open]::backdrop { opacity: 1; }
 @starting-style {
  .site-menu[open] { transform: translateX(var(--site-menu-offscreen)); }
  .site-menu[open]::backdrop { opacity: 0; }
 }
}

main { padding-top: var(--header-h); }
main:focus { outline: none; }
.public-content-shell { --layout-max: var(--page-max); --layout-gutter: var(--page-gutter); display: grid; grid-template-columns: [full-start] minmax(var(--layout-gutter), 1fr) [content-start] min(100% - 2 * var(--layout-gutter), var(--layout-max) - 2 * var(--layout-gutter)) [content-end] minmax(var(--layout-gutter), 1fr) [full-end]; align-content: start; padding-bottom: var(--space-2xl); }
.public-content-shell--wide { --layout-max: var(--page-max-home); --layout-gutter: var(--page-gutter-wide); }
.full-bleed { display: grid; grid-template-columns: subgrid; }
:is(.public-content-shell, .full-bleed) > * { grid-column: content; min-width: 0; }
:is(.public-content-shell, .full-bleed) > .full-bleed { grid-column: full; }
.section-stack { row-gap: clamp(1.25rem, 3vw, 2.75rem); }

.eyebrow { margin: 0; font-family: var(--font-sans), sans-serif; font-size: 0.72rem; font-weight: 800; line-height: 1.3; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-on-dark); }
.term-chip { display: inline-flex; align-items: center; min-height: 1.65rem; padding: 0.3rem 0.68rem; border: 1px solid transparent; border-radius: var(--radius-full); font-family: var(--font-sans), sans-serif; font-size: 0.66rem; font-weight: 800; line-height: 1; letter-spacing: 0.09em; text-transform: uppercase; white-space: nowrap; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.term-chip--category { background: var(--brand-primary); color: #fff; }
a.term-chip--category:hover { background: var(--brand-primary-hover); color: #fff; }
.term-chip--tag { border-color: rgba(217, 4, 41, 0.32); color: var(--brand-on-dark); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; text-transform: none; }
a.term-chip--tag:hover { background: rgba(217, 4, 41, 0.12); border-color: var(--brand-primary); color: var(--text-primary); }
.term-list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.meta-list { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.6rem; }
.meta-list > * + *::before { content: "·" / ""; margin-inline-end: 0.6rem; opacity: 0.6; }
.post-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.7rem; font-family: var(--font-sans), sans-serif; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.03em; color: rgba(255, 255, 255, 0.66); font-variant-numeric: tabular-nums; }
.page-intro { display: flex; flex-direction: column; gap: 0.55rem; margin: clamp(1rem, 3vw, 2rem) 0 clamp(1.75rem, 4vw, 2.75rem); padding-top: 0.5rem; max-width: var(--reading-max); }
.page-intro--ruled { max-width: none; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.page-intro-title { margin: 0; font-family: var(--font-serif); font-size: clamp(2rem, 5.4vw, 3rem); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; color: var(--text-primary); }
.page-intro-meta { margin: 0; color: var(--text-secondary); font-size: 0.95rem; letter-spacing: 0.01em; }
.page-intro-meta a { color: var(--brand-on-dark); text-decoration: underline; text-underline-offset: 0.2em; }
.message-panel { width: min(100%, 760px); margin: clamp(3rem, 10vw, 6.5rem) auto; padding: clamp(1.75rem, 5vw, 3rem); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius-card); background: linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)); box-shadow: 0 28px 80px -56px rgba(0, 0, 0, 0.95); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-md); }
.message-panel__title { max-width: 11ch; margin: 0; font-family: var(--font-serif); font-size: clamp(2.55rem, 9vw, 5.15rem); font-weight: 900; line-height: 0.94; letter-spacing: -0.055em; text-wrap: balance; color: var(--text-primary); }
.message-panel__text { max-width: 48ch; margin: 0; font-size: clamp(1rem, 2vw, 1.14rem); line-height: 1.62; color: var(--text-secondary); }
.message-panel__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 0.45rem; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 0.85rem; padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem); text-align: center; color: var(--text-muted); }
.empty-state__icon { width: 48px; height: 48px; margin-bottom: 0.4rem; color: rgba(255, 255, 255, 0.22); }
.empty-state__title { margin: 0; font-family: var(--font-serif); font-size: clamp(1.556rem, 3.112vw, 1.945rem); font-weight: 700; letter-spacing: -0.02em; overflow-wrap: anywhere; color: rgba(255, 255, 255, 0.85); }
.empty-state__hint { max-width: 42ch; margin: 0; font-size: 0.98rem; line-height: 1.55; }
.empty-state__tips { display: grid; gap: 0.35rem; margin: 0; padding: 0; list-style: none; font-size: 0.95rem; line-height: 1.55; }
.empty-state .btn { margin-top: 0.85rem; }
.stretched-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.stretched-link:focus-visible { outline: none; }
.stretched-link:focus-visible::after { outline: 2px solid var(--brand-primary); outline-offset: 3px; }
:is(.post-card, .hero) a:not(.stretched-link) { position: relative; z-index: 2; }

.hero { --hero-min-block: clamp(22rem, 62svh, 34rem); position: relative; isolation: isolate; min-block-size: var(--hero-min-block); margin-top: calc(var(--header-h) * -1); }
.hero__media { grid-column: full; grid-row: 1; position: relative; overflow: hidden; background: var(--surface-media); }
.hero__media picture { position: absolute; inset: 0; display: block; }
.hero__image { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.hero::after { content: ""; grid-column: full; grid-row: 1; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(5, 8, 15, 0.5) 0%, rgba(6, 10, 18, 0.14) 20%, rgba(6, 10, 18, 0.2) 42%, rgba(7, 11, 20, 0.74) 74%, var(--surface-page) 100%); }
.hero__body { grid-row: 1; z-index: 2; align-self: end; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 0.75rem; padding-block: calc(var(--header-h) + var(--space-lg)) clamp(1.25rem, 4vw, 2.75rem); }
.hero__title { max-width: 16ch; margin: 0; font-family: var(--font-serif); font-size: clamp(1.85rem, 1rem + 3.4vw, 4.65rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.01em; color: var(--text-primary); text-wrap: balance; overflow-wrap: break-word; hyphens: auto; text-shadow: 0 2px 28px rgba(0, 0, 0, 0.78), 0 1px 4px rgba(0, 0, 0, 0.58); }
.hero__title a { color: inherit; }
.hero__excerpt { max-width: 54ch; margin: 0; font-size: clamp(0.95rem, 1.6vw, 1.05rem); line-height: 1.55; color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55); text-wrap: pretty; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero__excerpt > * { display: inline; margin: 0; }
.hero .post-kicker { color: rgba(255, 255, 255, 0.88); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7); }
.hero--article .hero__body { justify-items: center; text-align: center; }

.post-card { --post-card-split: minmax(0, 9fr) minmax(0, 11fr); --post-card-split-areas: "media body"; container: post-card / inline-size; position: relative; min-width: 0; }
.post-card--media-trailing { --post-card-split: minmax(0, 11fr) minmax(0, 9fr); --post-card-split-areas: "body media"; }
.post-card__layout { display: grid; grid-template-columns: 6.75rem minmax(0, 1fr); grid-template-areas: "media body"; gap: 0.85rem; align-items: center; }
.post-card__media { grid-area: media; position: relative; overflow: hidden; aspect-ratio: 1; border-radius: var(--radius-md); background: var(--surface-media); }
.post-card__media picture { display: block; height: 100%; }
.post-card__image { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.post-card__body { grid-area: body; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 0.4rem; min-width: 0; }
.post-card__title { margin: 0; font-size: clamp(1.05rem, 0.6rem + 2.4cqi, 1.3rem); font-weight: 700; line-height: 1.12; letter-spacing: 0; color: var(--text-primary); overflow-wrap: break-word; hyphens: auto; text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__title a { color: inherit; }
.post-card__excerpt { display: none; margin: 0; font-size: 0.98rem; line-height: 1.55; color: var(--text-secondary); text-wrap: pretty; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__excerpt > * { display: inline; margin: 0; }
.post-card__excerpt mark { padding: 0 0.1em; border-radius: 2px; background: linear-gradient(120deg, rgba(220, 38, 38, 0.15) 0%, rgba(220, 38, 38, 0.25) 100%); color: var(--text-primary); font-weight: 500; }
@container post-card (min-width: 25.5rem) {
 .post-card__layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "body"; row-gap: 1rem; align-items: start; }
 .post-card__media { aspect-ratio: 16 / 11; border-radius: 0; }
 .post-card--landscape .post-card__media { aspect-ratio: 21 / 9; }
 .post-card__body { align-content: start; gap: 0.7rem; }
 .post-card__title { font-size: clamp(1.35rem, 0.4rem + 4.6cqi, 2.6rem); line-height: 1.06; display: block; overflow: visible; }
 .post-card__excerpt { display: -webkit-box; }
}
@container post-card (min-width: 28rem) {
 .post-card--lead .post-card__layout { grid-template-columns: var(--post-card-split); grid-template-areas: var(--post-card-split-areas); column-gap: 1.25rem; align-items: center; }
 .post-card--lead .post-card__media { aspect-ratio: 16 / 10; }
 .post-card--lead .post-card__title { font-size: clamp(1.35rem, 0.3rem + 3cqi, 2.4rem); }
}
@container post-card (min-width: 40rem) {
 .post-card--standard .post-card__layout { grid-template-columns: var(--post-card-split); grid-template-areas: var(--post-card-split-areas); column-gap: 1.25rem; align-items: center; }
 .post-card--standard .post-card__media { aspect-ratio: 16 / 10; }
 .post-card--standard .post-card__title { font-size: clamp(1.35rem, 0.3rem + 3cqi, 2.4rem); }
}
.post-card--detailed .post-card__layout { align-items: start; }
.post-card--detailed .post-card__excerpt { display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 25.5rem), 1fr)); gap: clamp(1rem, 2.4vw, 1.75rem); align-items: start; }
.post-grid > .post-card--landscape { grid-column: 1 / -1; }
.post-rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr)); gap: clamp(1rem, 2vw, 1.45rem); align-items: start; }

.article-header { margin-bottom: var(--space-md); text-align: center; }
.article-header:not(.hero) { padding-block: clamp(1.25rem, 4vw, 2rem); }
.article-header__body { width: 100%; max-width: 900px; margin-inline: auto; }
.article-header :is(.post-kicker, .meta-list, .share-links) { justify-content: center; }
.article-header .post-kicker { margin-bottom: var(--space-sm); font-size: 0.85rem; font-weight: 600; color: rgba(255, 255, 255, 0.78); }
.article-title { margin: 0 0 var(--space-sm); font-size: clamp(1.65rem, 5.4vw, 3.25rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; color: var(--text-primary); text-wrap: balance; overflow-wrap: break-word; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7); }
.article-byline { margin: 0 0 var(--space-sm); font-size: 0.88rem; font-weight: 500; line-height: 1.5; color: rgba(255, 255, 255, 0.8); font-variant-numeric: tabular-nums; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7); }
.article-byline__author { color: var(--text-primary); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 0.22em; }
.article-byline__author:hover { color: var(--text-primary); text-decoration-color: var(--brand-primary); }
.hero .article-title,
.hero .article-byline { margin-bottom: 0; }
.share-links { position: relative; display: flex; flex-wrap: wrap; align-items: center; }
.share-links__list { display: flex; flex-wrap: wrap; justify-content: inherit; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.share-links__action { display: inline-flex; align-items: center; justify-content: center; inline-size: 2.25rem; block-size: 2.25rem; padding: 0; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius-full); background: rgba(5, 8, 15, 0.42); color: rgba(255, 255, 255, 0.86); font: inherit; cursor: pointer; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.share-links__action:hover { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.share-links__icon { inline-size: 1rem; block-size: 1rem; }
.share-links__status { position: absolute; inset: 100% 0 auto; margin: 0.4rem 0 0; font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); pointer-events: none; }
.article-container { --toc-gap: clamp(2rem, 3vw, 3.5rem); --contents-rail-max: 17rem; display: grid; grid-template-columns: [wide-start main-start] minmax(0, var(--reading-max)) [main-end wide-end]; justify-content: center; }
.article-container > *,
.article-layout > * { grid-column: main; min-width: 0; }
.article-section--wide { grid-column: wide; }
.article-layout { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; }
.contents-nav { margin-bottom: var(--space-xl); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.025); }
.contents-nav__summary { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 44px; padding: 0.65rem 1.1rem; border-radius: var(--radius-lg); cursor: pointer; list-style: none; }
.contents-nav__summary::-webkit-details-marker { display: none; }
.contents-nav__chevron { inline-size: 1rem; block-size: 1rem; flex-shrink: 0; color: var(--text-secondary); transition: transform 0.2s ease; }
.contents-nav__details[open] .contents-nav__chevron { transform: rotate(180deg); }
.contents-nav__list { display: grid; gap: 0.1rem; margin: 0; padding: 0 0.75rem 0.9rem; list-style: none; }
.contents-nav__list--nested { padding: 0.1rem 0 0.2rem 0.85rem; }
.contents-nav__link { display: block; padding: 0.4rem 0.6rem; border-left: 2px solid transparent; border-radius: 0 6px 6px 0; font-size: 0.9rem; line-height: 1.4; color: var(--text-secondary); transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.contents-nav__list--nested .contents-nav__link { font-size: 0.84rem; color: var(--text-muted); }
.contents-nav__link:hover { background: rgba(255, 255, 255, 0.04); color: var(--text-primary); }
.contents-nav__link[aria-current="location"] { border-left-color: var(--brand-primary); background: rgba(217, 4, 41, 0.1); color: var(--text-primary); }
.article-content { font-family: var(--font-serif); font-size: clamp(1.05rem, 1.4vw, 1.18rem); line-height: 1.78; color: var(--text-primary); }
.article-content p { margin-bottom: 1.4em; }
.article-content h2 { font-size: clamp(1.55rem, 2.6vw, 2.05rem); line-height: 1.18; margin-top: 2.2em; margin-bottom: 0.6em; color: var(--text-primary); letter-spacing: -0.02em; }
.article-content h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.25; margin-top: 1.8em; margin-bottom: 0.5em; color: var(--text-primary); }
.article-content h4 { font-size: 1.08rem; line-height: 1.3; margin: 1.6em 0 0.4em; }
.article-content :is(ul, ol) { margin: 0 0 1.4em; padding-left: 1.4em; }
.article-content li { margin-bottom: 0.45em; }
.article-content strong { font-weight: 700; color: var(--text-primary); }
.article-content code { padding: 0.08em 0.35em; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.06); font-family: var(--font-mono), monospace; font-size: 0.82em; }
.article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 2em 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.article-content figure { margin: 2em 0; }
.article-content figure img { margin: 0; }
.article-content figcaption { margin-top: 0.65em; font-family: var(--font-sans), sans-serif; font-size: 0.779rem; line-height: 1.5; color: var(--text-muted); text-align: center; }
.article-content blockquote { border-left: 3px solid var(--brand-primary); margin: 1.75em 0; padding: 0.5em 0 0.5em 1.6em; font-style: italic; color: rgba(255, 255, 255, 0.92); font-size: 1.1em; line-height: 1.65; }
.article-content blockquote cite { display: block; margin-top: 0.5em; font-size: 0.85rem; font-style: normal; color: var(--text-muted); }
.article-body > p:first-of-type::first-letter { font-size: 3.2em; line-height: 0.85; font-weight: 700; float: left; margin: 0.05em 0.12em 0 0; color: var(--brand-primary); font-family: var(--font-serif), serif; }
.article-section { margin-top: clamp(3rem, 8vw, 5rem); padding-top: clamp(2rem, 5vw, 3rem); border-top: 1px solid rgba(255, 255, 255, 0.12); }
.article-section__header { display: grid; gap: 0.45rem; margin-bottom: 1.5rem; }
.article-section__title { margin: 0; font-size: clamp(1.7rem, 5vw, 2.35rem); letter-spacing: -0.03em; }
.source-list { display: grid; gap: 1.1rem; margin: 0; padding-left: 1.4rem; color: var(--text-secondary); font-size: 0.92rem; line-height: 1.5; }
.source-list__item::marker { color: var(--text-muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.source-list__publisher { display: block; margin-bottom: 0.15rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.source-list__publisher--origin { color: var(--brand-on-dark); }
.source-list__title { display: block; font-family: var(--font-serif); font-size: 1.134rem; line-height: 1.45; color: var(--text-primary); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 0.2em; overflow-wrap: anywhere; }
.source-list__title:hover { color: var(--brand-on-dark); text-decoration-color: currentColor; }
.source-list__dates { margin-top: 0.2rem; font-size: 0.8rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.article-footer { display: grid; gap: 1.25rem; margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.term-row { display: grid; grid-template-columns: minmax(0, 1fr); align-items: baseline; gap: 0.6rem 0.85rem; }
.prose-page { width: 100%; max-width: var(--reading-max); margin-inline: auto; }

.comments-title-row { display: flex; align-items: center; gap: 0.75rem; }
.comments-count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.8rem; height: 1.8rem; padding-inline: 0.5rem; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius-full); color: var(--text-secondary); font-size: 0.75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.comment-list { display: grid; }
.comment-item { padding: 1.5rem 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.comment-meta { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.65rem; }
.comment-author { color: var(--text-primary); font-size: 0.95rem; font-weight: 700; }
.comment-admin-badge { padding: 0.15rem 0.45rem; border-radius: var(--radius-full); background: rgba(217, 4, 41, 0.14); color: var(--brand-on-dark); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.comment-date { margin-left: auto; color: var(--text-muted); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.comment-body { color: var(--text-secondary); font-family: var(--font-serif); font-size: 1.089rem; line-height: 1.72; overflow-wrap: anywhere; }
.comment-body > :first-child { margin-top: 0; }
.comment-body > :last-child { margin-bottom: 0; }
.comment-body a, .article-content a { color: var(--brand-on-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.comment-body a:hover, .article-content a:hover { color: var(--text-primary); }
.comment-body pre { max-width: 100%; overflow-x: auto; padding: 0.9rem; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-md); background: rgba(0, 0, 0, 0.24); }
.comments-empty { margin: 0 0 1.5rem; color: var(--text-muted); }
.comment-cta { display: flex; align-items: center; gap: 0.85rem 1rem; flex-wrap: wrap; margin-top: 1rem; }
.comment-cta span { color: var(--text-muted); font-size: 0.8rem; }
.comments-closed { margin: 1rem 0 0; color: var(--text-muted); font-size: 0.9rem; }

.sitefooter { background: transparent; padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.25rem, 2.5vw, 1.75rem); margin-top: clamp(3rem, 8vw, 5rem); position: relative; }
.sitefooter::before { content: ''; position: absolute; top: 0; left: var(--page-gutter); right: var(--page-gutter); height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14) 18%, rgba(255, 255, 255, 0.14) 82%, transparent); }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: var(--space-lg); text-align: center; }
.footer-brand { display: flex; flex-direction: column; gap: 0.4rem; align-items: center; }
.footer-logo { font-family: var(--font-serif); font-weight: 700; font-size: 1.389rem; letter-spacing: -0.02em; color: rgba(255, 255, 255, 0.92); }
.copyright { font-size: 0.78rem; color: rgba(255, 255, 255, 0.62); margin: 0; letter-spacing: 0.02em; line-height: 1.5; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.15rem 0.35rem; }
.footer-nav li { display: flex; align-items: center; }
.footer-nav a { color: rgba(255, 255, 255, 0.62); font-size: 0.72rem; font-weight: 600; transition: color 0.2s ease; padding: 0.5rem 0.85rem; display: block; letter-spacing: 0.12em; text-transform: uppercase; background: transparent; }
.footer-nav a:hover { color: var(--brand-on-dark); }

.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; top: -100px; left: 0.5rem; padding: 0.75rem 1.25rem; background: var(--brand-primary); color: #fff; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.02em; text-decoration: none; border-radius: var(--radius-md); z-index: 9999; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); }
.skip-link:focus { top: 0.5rem; outline: 2px solid #fff; outline-offset: 2px; color: #fff; }
.alert { padding: 1rem; margin-bottom: 1rem; border-radius: var(--radius-md); border: 1px solid transparent; font-size: 0.9rem; }
.alert-danger { background-color: rgba(239, 68, 68, 0.14); border-color: rgba(239, 68, 68, 0.4); color: #fecaca; }
.alert-success { background-color: rgba(16, 185, 129, 0.14); border-color: rgba(16, 185, 129, 0.4); color: #a7f3d0; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.me-2 { margin-right: 0.5rem; }
.text-secondary { color: var(--text-secondary); }
.spinner-small { display: inline-block; width: 1rem; height: 1rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.75s linear infinite; margin-right: 0.5rem; }
.spinner { width: 2.5rem; height: 2.5rem; border: 3px solid rgba(255, 255, 255, 0.18); border-top-color: var(--brand-primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.pagination { display: grid; grid-template-columns: 1fr; gap: 0.75rem; padding: var(--space-lg) 0 0; margin-top: var(--space-xl); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.pagination-link { display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem; min-height: 3rem; padding: 0.85rem 1.25rem; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius-lg); color: rgba(255, 255, 255, 0.88); font-weight: 600; letter-spacing: 0.01em; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, gap 0.2s ease, transform 0.12s ease; }
.pagination-link:active { transform: scale(0.97); }
.pagination-link:hover { background: var(--brand-primary); border-color: var(--brand-primary); color: white; gap: 0.95rem; }
.pagination-arrow { width: 18px; height: 18px; flex-shrink: 0; }
.pagination-link.next,
.pagination-link.previous { justify-self: stretch; }

.search-page { width: 100%; max-width: 640px; margin-inline: auto; }
.search-form { container: search-form / inline-size; width: 100%; position: relative; }
.search-page > .search-form { margin: 0 0 clamp(1.25rem, 3vw, 2rem); }
.search-input-wrapper { display: flex; align-items: center; flex-wrap: nowrap; min-width: 0; max-width: 100%; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; overflow: hidden; transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease; }
.search-input-wrapper:hover { border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.05); }
.search-input-wrapper:focus-within { border-color: rgba(217, 4, 41, 0.6); background: rgba(255, 255, 255, 0.05); box-shadow: 0 0 0 3px rgba(217, 4, 41, 0.18); }
.search-icon { width: 18px; height: 18px; color: rgba(255, 255, 255, 0.62); margin: 0 0.4rem 0 1.25rem; flex-shrink: 0; align-self: center; }
.search-input { flex: 1 1 0; min-width: 0; background: transparent; border: none; padding: 0.95rem 0.5rem 0.95rem 0.5rem; font-size: 1.05rem; font-family: inherit; color: var(--text-primary); -webkit-appearance: none; appearance: none; }
.search-input::placeholder { color: rgba(255, 255, 255, 0.45); }
.search-input:focus { outline: none; box-shadow: none; }
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search-submit { flex: 0 0 auto; min-height: 44px; background: var(--brand-primary); border: none; margin: 0.3rem; padding: 0.72rem 1.4rem; font-size: 0.9rem; font-weight: 700; color: white; cursor: pointer; border-radius: 999px; white-space: nowrap; letter-spacing: 0.02em; transition: background-color 0.2s ease, transform 0.2s ease; }
.search-submit:hover { background: var(--brand-primary-hover); }
.search-hint { margin: var(--space-md) 0 0; font-size: 0.875rem; color: var(--text-muted); }
.autocomplete-dropdown { position: absolute; top: calc(100% + 0.5rem); left: 0; right: 0; background: rgba(10, 14, 22, 0.98); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-card); box-shadow: 0 28px 56px -24px rgba(0, 0, 0, 0.8); z-index: 100; display: none; max-height: 400px; overflow-y: auto; padding: 0.4rem; }
.autocomplete-dropdown.active { display: block; }
.autocomplete-item { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: 0.7rem 0.9rem; text-decoration: none; color: var(--text-primary); border-radius: var(--radius-md); transition: background-color 0.15s ease; }
.autocomplete-item:hover,
.autocomplete-item.autocomplete-active { background: rgba(255, 255, 255, 0.06); }
.autocomplete-title { font-weight: 500; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.autocomplete-item .term-chip { flex-shrink: 0; }
.search-status { margin: 0 0 var(--space-lg); padding-bottom: var(--space-md); border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 1.05rem; color: var(--text-secondary); }
.search-status strong { color: var(--text-primary); }
.search-results { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }

@media (prefers-reduced-motion: reduce) {
 *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@container search-form (max-width: 21rem) {
 .search-icon { margin-left: 0.85rem; }
 .search-input { padding: 0.85rem 0.4rem 0.85rem 0.55rem; font-size: 0.98rem; }
 .search-submit { min-height: 44px; padding: 0.6rem 1rem; font-size: 0.85rem; margin: 0.25rem; }
}
@media (min-width: 768px) {
 .header-content { gap: var(--space-md); }
 .header-nav ul { background: rgba(255, 255, 255, 0.12); }
 .brand-heading { font-size: clamp(1.55rem, 2.2vw, 1.85rem); }
 .site-description { display: block; }
 .hero { --hero-min-block: clamp(28rem, 62svh, 40rem); }
 .article-body > p:first-of-type::first-letter { font-size: 3.6em; }
 .share-links__action { inline-size: 2.5rem; block-size: 2.5rem; }
 .term-row { grid-template-columns: 7rem minmax(0, 1fr); }
 .share-links__icon { inline-size: 1.05rem; block-size: 1.05rem; }
 .form-card .form-grid { grid-template-columns: 1fr 1fr; }
 .footer-content { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
 .footer-brand { align-items: flex-start; }
 .pagination { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .pagination-link.previous { justify-content: flex-start; }
 .pagination-link.next { justify-content: flex-end; }
}
@media (min-width: 1024px) {
 .header-content { gap: var(--space-lg); }
 .header-brand { flex: 0 0 auto; }
 .site-description { display: none; }
 .header-sections { display: block; flex: 1 1 0; min-width: 0; container: header-sections / inline-size; }
 .site-menu-toggle--compact { display: none; }
 .site-menu-toggle--wide { display: var(--site-menu-toggle-display); }
 :root { --site-menu-inset: 0 calc(-1 * var(--root-gutter, 0px)) 0 auto; --site-menu-offscreen: 100%; --site-menu-border-start: 1px; --site-menu-border-end: 0; --site-menu-shadow-x: -24px; --site-menu-padding-end: calc(max(var(--space-lg), env(safe-area-inset-right)) + var(--root-gutter, 0px)); }
 .hero--article { --hero-min-block: clamp(32rem, 72svh, 44rem); }
 .hero--lead { --hero-min-block: min(calc(100vw * 9 / 21), 78svh); }
}
@media (min-width: 1280px) {
 .article-container { --wide-inset: calc((var(--toc-gap) + var(--contents-rail-max)) / 2); grid-template-columns: [wide-start] minmax(0, var(--wide-inset)) [main-start] minmax(0, var(--reading-max)) [main-end] minmax(0, var(--wide-inset)) [wide-end]; }
 .article-container--with-toc { grid-template-columns: [wide-start main-start] minmax(0, var(--reading-max)) [main-end] var(--toc-gap) [aside-start] minmax(14rem, var(--contents-rail-max)) [aside-end wide-end]; }
 .article-container--with-toc .article-layout__main { grid-row: 1; }
 .contents-nav:not([data-toc-initialized]) .contents-nav__details::details-content { content-visibility: visible; }
 .contents-nav:not([data-toc-initialized]) .contents-nav__chevron { display: none; }
 .article-container--with-toc .contents-nav { grid-column: aside; grid-row: 1; align-self: start; position: sticky; top: calc(var(--header-h) + var(--space-lg)); max-block-size: calc(100svh - var(--header-h) - 2 * var(--space-lg)); margin-bottom: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.2) transparent; }
}
@media (hover: hover) {
 .logo-title:hover { color: rgba(255, 255, 255, 0.86); }
 .btn { transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
 .btn:hover { transform: translateY(-1px); }
 .post-card:hover .post-card__image { transform: scale(1.04); }
 .hero--lead:hover .hero__image { transform: scale(1.035); }
}
