@layer reset, tokens, base, components, pages, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
  ul, ol { margin: 0; padding: 0; }
  img, picture, svg, video, canvas { display: block; max-width: 100%; }
  input, button, textarea, select { font: inherit; }
  button, a { -webkit-tap-highlight-color: transparent; }
}

@layer tokens {
  :root {
    color-scheme: light;
    --theme-color-canvas: #f4f5f7;
    --theme-color-surface: #ffffff;
    --theme-color-surface-soft: #eceef2;
    --theme-color-ink: #101114;
    --theme-color-muted: #676b74;
    --theme-color-line: #d8dbe2;
    --theme-color-primary: #5b4df5;
    --theme-color-primary-deep: #4434d8;
    --theme-color-accent: #c8ff4a;
    --theme-color-coral: #ff6b57;
    --theme-color-focus: #1677ff;
    --theme-font-body: Inter, "Segoe UI Variable", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    --theme-font-display: "Arial Narrow", "Aptos Display", "Segoe UI Variable Display", "PingFang SC", sans-serif;
    --theme-font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --theme-radius-sm: .5rem;
    --theme-radius-md: 1rem;
    --theme-radius-lg: 1.5rem;
    --theme-radius-pill: 999px;
    --theme-shadow-soft: 0 1rem 3rem rgb(22 24 30 / 8%);
    --theme-shadow-float: 0 1.25rem 4rem rgb(31 24 91 / 16%);
    --theme-content-width: 76rem;
    --theme-reading-width: 46rem;
    --theme-header-height: 4.75rem;
    --theme-space: clamp(1rem, 2vw, 1.5rem);
    --theme-ease: cubic-bezier(.2, .75, .2, 1);
    --ambient-x: 72vw;
    --ambient-y: 24vh;
    --grid-x: 0px;
    --grid-y: 0px;
  }
}

@layer base {
  html { background: var(--theme-color-canvas); color: var(--theme-color-ink); }
  body {
    min-width: 20rem;
    min-height: 100vh;
    overflow-x: hidden;
    background:
      radial-gradient(circle at 8% 4%, rgb(91 77 245 / 9%), transparent 27rem),
      radial-gradient(circle at 92% 22%, rgb(200 255 74 / 11%), transparent 28rem),
      var(--theme-color-canvas);
    color: var(--theme-color-ink);
    font-family: var(--theme-font-body);
    font-size: 1rem;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
  }
  a { color: inherit; text-decoration: none; }
  button { color: inherit; }
  :focus-visible { outline: 3px solid var(--theme-color-focus); outline-offset: 3px; }
  ::selection { background: var(--theme-color-accent); color: var(--theme-color-ink); }
  h1, h2, h3 { font-family: var(--theme-font-display); font-weight: 750; letter-spacing: -.045em; line-height: 1.05; text-wrap: balance; }
  p { text-wrap: pretty; }
  main { min-height: calc(100vh - var(--theme-header-height)); }
}

@layer components {
  .shell { width: min(calc(100% - 2rem), var(--theme-content-width)); margin-inline: auto; }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .skip-link { position: fixed; z-index: 1000; top: .75rem; left: .75rem; padding: .75rem 1rem; border-radius: var(--theme-radius-sm); background: var(--theme-color-ink); color: white; transform: translateY(-160%); transition: transform .2s; }
  .skip-link:focus { transform: translateY(0); }
  .ambient-grid { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background-image: linear-gradient(rgb(16 17 20 / 3.5%) 1px, transparent 1px), linear-gradient(90deg, rgb(16 17 20 / 3.5%) 1px, transparent 1px), radial-gradient(circle, rgb(91 77 245 / 11%) 1px, transparent 1.5px); background-position: var(--grid-x) var(--grid-y); background-size: 4rem 4rem, 4rem 4rem, 1rem 1rem; mask-image: linear-gradient(to bottom, black 0%, rgb(0 0 0 / 70%) 48%, transparent 92%); }
  .ambient-grid::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle 28rem at var(--ambient-x) var(--ambient-y), rgb(91 77 245 / 14%), rgb(200 255 74 / 5%) 34%, transparent 72%); }
  .ambient-grid::after { content: ""; position: absolute; width: 34rem; height: 34rem; top: -12rem; right: -8rem; border-radius: 43% 57% 62% 38%; background: linear-gradient(135deg, rgb(91 77 245 / 12%), rgb(200 255 74 / 10%)); filter: blur(4rem); animation: ambient-drift 18s ease-in-out infinite alternate; }
  body[data-page="post"] .ambient-grid { opacity: .42; }
  main, .site-footer { position: relative; z-index: 1; }
  @keyframes ambient-drift { from { transform: translate3d(-3rem, -1rem, 0) rotate(-8deg) scale(.92); } to { transform: translate3d(2rem, 5rem, 0) rotate(12deg) scale(1.08); } }

  .site-header { position: sticky; z-index: 100; top: 0; height: var(--theme-header-height); border-bottom: 1px solid transparent; transition: background .25s, border-color .25s, box-shadow .25s; }
  .site-header.is-scrolled { border-color: rgb(16 17 20 / 8%); background: rgb(244 245 247 / 82%); box-shadow: 0 .5rem 2rem rgb(18 20 28 / 5%); backdrop-filter: blur(18px) saturate(130%); }
  .header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
  .brand { display: inline-flex; align-items: center; gap: .7rem; min-width: 0; font-weight: 760; letter-spacing: -.025em; }
  .brand img { flex: 0 0 auto; }
  .brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .primary-nav { display: flex; align-items: center; gap: .2rem; font-size: .9rem; font-weight: 610; }
  .primary-nav > a, .nav-account { padding: .65rem .75rem; border-radius: var(--theme-radius-pill); transition: background .2s, color .2s; }
  .primary-nav > a:hover, .nav-account:hover { background: var(--theme-color-surface); }
  .nav-search { display: flex; align-items: center; margin-left: .35rem; border: 1px solid var(--theme-color-line); border-radius: var(--theme-radius-pill); background: rgb(255 255 255 / 65%); }
  .nav-search input { width: 7rem; padding: .55rem 0 .55rem .85rem; border: 0; outline: 0; background: transparent; }
  .nav-search button { width: 2.25rem; height: 2.25rem; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
  .nav-search:focus-within { border-color: var(--theme-color-primary); box-shadow: 0 0 0 3px rgb(91 77 245 / 13%); }
  .nav-logout { border: 0; background: transparent; cursor: pointer; }
  .menu-toggle { display: none; width: 2.75rem; height: 2.75rem; padding: .7rem; border: 1px solid var(--theme-color-line); border-radius: 50%; background: var(--theme-color-surface); cursor: pointer; }
  .menu-toggle span:not(.sr-only) { display: block; height: 1px; margin: .25rem 0; background: currentColor; transition: transform .2s, opacity .2s; }

  .eyebrow { display: flex; align-items: center; gap: .55rem; color: var(--theme-color-muted); font-family: var(--theme-font-mono); font-size: .72rem; font-weight: 700; letter-spacing: .13em; line-height: 1.2; text-transform: uppercase; }
  .eyebrow > span { width: 1.4rem; height: 2px; overflow: hidden; background: var(--theme-color-primary); transform-origin: left; animation: signal-pulse 3.8s var(--theme-ease) infinite; }
  @keyframes signal-pulse { 0%, 70%, 100% { transform: scaleX(1); opacity: 1; } 82% { transform: scaleX(.45); opacity: .45; } }
  .section { padding-block: clamp(4rem, 8vw, 7.5rem); }
  .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
  .section-heading h2 { margin-top: .65rem; font-size: clamp(2rem, 4vw, 3.6rem); }
  .text-link, .card-link { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 700; }
  .text-link span, .card-link span { transition: transform .2s var(--theme-ease); }
  .text-link:hover span, .card-link:hover span { transform: translateX(.25rem); }
  .button { position: relative; display: inline-flex; min-height: 3rem; align-items: center; justify-content: center; gap: .65rem; padding: .7rem 1.15rem; overflow: hidden; border: 1px solid transparent; border-radius: var(--theme-radius-pill); font-weight: 720; cursor: pointer; isolation: isolate; transition: transform .2s var(--theme-ease), background .2s, box-shadow .2s; }
  .button::after { content: ""; position: absolute; z-index: -1; width: 40%; height: 220%; top: -60%; left: -55%; background: linear-gradient(90deg, transparent, rgb(255 255 255 / 35%), transparent); transform: rotate(18deg); transition: left .55s var(--theme-ease); }
  .button:hover::after { left: 115%; }
  .button:hover { transform: translateY(-2px); }
  .button:disabled { opacity: .55; cursor: wait; transform: none; }
  .button-primary { background: var(--theme-color-ink); color: white; box-shadow: 0 .6rem 1.6rem rgb(16 17 20 / 17%); }
  .button-primary:hover { background: var(--theme-color-primary); box-shadow: 0 .8rem 2rem rgb(91 77 245 / 24%); }
  .button-quiet { border-color: var(--theme-color-line); background: rgb(255 255 255 / 62%); }
  .button-quiet:hover { background: white; }
  .button-block { width: 100%; }
  .status-chip { display: inline-flex; align-items: center; padding: .18rem .5rem; border-radius: var(--theme-radius-pill); background: #fff1ce; color: #714b00; font-size: .68rem; font-weight: 750; }
  .post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; color: var(--theme-color-muted); font-family: var(--theme-font-mono); font-size: .72rem; letter-spacing: .025em; }
  .post-meta a { color: var(--theme-color-primary); font-weight: 700; }
  .post-meta > * + *::before { content: "·"; margin-right: .9rem; color: #a2a5ad; }

  .page-shell { padding-block: clamp(3rem, 7vw, 7rem); }
  .page-header { max-width: 55rem; margin-bottom: clamp(3rem, 7vw, 6rem); }
  .page-header h1 { margin-top: .75rem; font-size: clamp(3.2rem, 8vw, 7rem); }
  .page-header > p:last-child { max-width: 40rem; margin-top: 1.2rem; color: var(--theme-color-muted); font-size: clamp(1rem, 2vw, 1.25rem); }
  .hash { color: var(--theme-color-primary); }

  .archive-list { border-top: 1px solid var(--theme-color-line); }
  .archive-item { display: grid; grid-template-columns: 3rem minmax(0, 1fr) 3.2rem; gap: clamp(1rem, 3vw, 2rem); align-items: start; padding-block: 2rem; border-bottom: 1px solid var(--theme-color-line); }
  .archive-number { padding-top: .2rem; color: #9b9fa8; font-family: var(--theme-font-mono); font-size: .72rem; }
  .archive-item h2 { max-width: 52rem; margin-top: .7rem; font-size: clamp(1.5rem, 3vw, 2.4rem); }
  .archive-item h2 a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--theme-ease), color .2s; }
  .archive-item h2 a:hover { color: var(--theme-color-primary); background-size: 100% 2px; }
  .archive-item p { max-width: 48rem; margin-top: .8rem; color: var(--theme-color-muted); }
  .round-link { display: grid; width: 3rem; height: 3rem; place-items: center; border: 1px solid var(--theme-color-line); border-radius: 50%; background: var(--theme-color-surface); font-size: 1.1rem; transition: transform .2s, background .2s, color .2s; }
  .round-link:hover { transform: rotate(8deg); background: var(--theme-color-ink); color: white; }
  .pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin-top: 3rem; font-size: .85rem; font-weight: 650; text-align: center; }
  .pagination a, .pagination > span:first-child, .pagination > span:last-child { padding: .8rem 1rem; border: 1px solid var(--theme-color-line); border-radius: var(--theme-radius-pill); }
  .pagination a:first-child, .pagination > span:first-child { justify-self: start; }
  .pagination a:last-child, .pagination > span:last-child { justify-self: end; }
  .pagination a:hover { background: var(--theme-color-ink); color: white; }
  .pagination [aria-disabled="true"] { opacity: .4; }

  .empty-state { display: grid; min-height: 22rem; place-items: center; align-content: center; padding: 2rem; border: 1px dashed #bcc0c9; border-radius: var(--theme-radius-lg); text-align: center; }
  .empty-state > span { color: var(--theme-color-primary); font-size: 3rem; }
  .empty-state h2 { margin-top: 1rem; font-size: 2rem; }
  .empty-state p { margin: .65rem 0 1.25rem; color: var(--theme-color-muted); }

  .form-field { display: grid; gap: .45rem; }
  .form-field label { font-size: .78rem; font-weight: 750; }
  .form-field input, .form-field textarea, .page-search input { width: 100%; border: 1px solid var(--theme-color-line); border-radius: .85rem; outline: 0; background: var(--theme-color-surface); color: var(--theme-color-ink); transition: border .2s, box-shadow .2s; }
  .form-field input { min-height: 3.2rem; padding: .75rem .9rem; }
  .form-field textarea { padding: .9rem; resize: vertical; }
  .form-field input:focus, .form-field textarea:focus, .page-search input:focus { border-color: var(--theme-color-primary); box-shadow: 0 0 0 4px rgb(91 77 245 / 12%); }
  .form-message { min-height: 1.5rem; color: var(--theme-color-muted); font-size: .8rem; }
  .form-message.is-error { color: #b42318; }
  .form-message.is-success { color: #137333; }

  .site-footer { padding-block: 4rem 2rem; border-top: 1px solid var(--theme-color-line); background: rgb(255 255 255 / 48%); }
  .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 3rem; align-items: end; }
  .footer-grid p { max-width: 28rem; margin-top: .8rem; color: var(--theme-color-muted); font-size: .85rem; }
  .footer-grid nav { display: grid; grid-template-columns: repeat(2, max-content); gap: .55rem 1.5rem; font-size: .85rem; font-weight: 650; }
  .footer-grid nav a:hover { color: var(--theme-color-primary); }
  .footer-grid .copyright { white-space: nowrap; }
  .back-to-top { position: fixed; z-index: 80; right: 1.25rem; bottom: 5.35rem; display: grid; width: 2.8rem; height: 2.8rem; place-items: center; border: 0; border-radius: 50%; background: var(--theme-color-ink); color: white; box-shadow: var(--theme-shadow-soft); cursor: pointer; opacity: 0; transform: translateY(1rem); pointer-events: none; transition: opacity .2s, transform .2s; }
  .back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

  .content-guide-launcher { position: fixed; z-index: 90; right: 1.25rem; bottom: 1.25rem; display: flex; align-items: center; gap: .65rem; min-height: 3.25rem; padding: .65rem 1rem .65rem .7rem; border: 1px solid rgb(255 255 255 / 18%); border-radius: var(--theme-radius-pill); background: var(--theme-color-ink); color: white; box-shadow: 0 1rem 2.8rem rgb(16 17 20 / 24%); font-size: .84rem; font-weight: 720; cursor: pointer; transition: transform .25s var(--theme-ease), box-shadow .25s; }
  .content-guide-launcher:hover { transform: translateY(-3px); box-shadow: 0 1.25rem 3rem rgb(16 17 20 / 30%); }
  .content-guide-launcher-mark { display: grid; width: 1.9rem; height: 1.9rem; place-items: center; border-radius: 50%; background: var(--theme-color-accent); color: var(--theme-color-ink); animation: guide-pulse 3.2s ease-in-out infinite; }
  @keyframes guide-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgb(200 255 74 / 0%); } 45% { box-shadow: 0 0 0 .5rem rgb(200 255 74 / 12%); } }
  .content-guide-panel { position: fixed; z-index: 100; right: 1.25rem; bottom: 5.25rem; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; width: min(28rem, calc(100vw - 2.5rem)); max-height: min(42rem, calc(100svh - 7rem)); overflow: hidden; border: 1px solid rgb(216 219 226 / 88%); border-radius: 1.6rem; background: radial-gradient(circle 16rem at 92% 0%, rgb(91 77 245 / 13%), transparent 66%), rgb(255 255 255 / 94%); box-shadow: 0 1.6rem 5rem rgb(26 23 62 / 22%); backdrop-filter: blur(24px); animation: content-guide-in .28s var(--theme-ease); }
  .content-guide-panel[hidden] { display: none; }
  @keyframes content-guide-in { from { opacity: 0; transform: translateY(1rem) scale(.97); } }
  .content-guide-header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; padding: 1.35rem 1.35rem 1.1rem; border-bottom: 1px solid var(--theme-color-line); }
  .content-guide-header h2 { margin-top: .35rem; font-size: 1.55rem; letter-spacing: -.035em; }
  .content-guide-close { display: grid; width: 2.25rem; height: 2.25rem; flex: 0 0 auto; place-items: center; border: 1px solid var(--theme-color-line); border-radius: 50%; background: rgb(255 255 255 / 70%); color: var(--theme-color-muted); font-size: 1.45rem; line-height: 1; cursor: pointer; }
  .content-guide-close:hover { border-color: var(--theme-color-ink); color: var(--theme-color-ink); }
  .content-guide-body { min-height: 0; padding: 1.15rem 1.35rem; overflow-y: auto; }
  .content-guide-intro { color: var(--theme-color-muted); font-size: .88rem; line-height: 1.65; }
  .content-guide-prompts { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .85rem; }
  .content-guide-prompts button { padding: .5rem .7rem; border: 1px solid var(--theme-color-line); border-radius: var(--theme-radius-pill); background: rgb(255 255 255 / 72%); color: var(--theme-color-muted); font-size: .73rem; cursor: pointer; }
  .content-guide-prompts button:hover { border-color: var(--theme-color-primary); color: var(--theme-color-primary); }
  .content-guide-result:not(:empty) { margin-top: 1.1rem; }
  .content-guide-status, .content-guide-answer { font-size: .86rem; line-height: 1.65; }
  .content-guide-status { padding: .9rem; border-radius: .8rem; background: var(--theme-color-surface-soft); color: var(--theme-color-muted); }
  .content-guide-status.is-loading::before { content: ""; display: inline-block; width: .55rem; height: .55rem; margin-right: .5rem; border-radius: 50%; background: var(--theme-color-primary); animation: guide-loading .9s ease-in-out infinite alternate; }
  @keyframes guide-loading { to { opacity: .25; transform: scale(.7); } }
  .content-guide-suggestions { display: grid; gap: .55rem; margin-top: .8rem; }
  .content-guide-suggestions > a { display: grid; grid-template-columns: 1.8rem minmax(0, 1fr) auto; gap: .65rem; align-items: center; padding: .8rem; border: 1px solid var(--theme-color-line); border-radius: .9rem; background: rgb(255 255 255 / 70%); transition: border-color .2s, transform .2s, background .2s; }
  .content-guide-suggestions > a:hover { border-color: var(--theme-color-primary); background: white; transform: translateX(3px); }
  .content-guide-number { color: var(--theme-color-primary); font: 650 .69rem/1 var(--theme-font-mono); }
  .content-guide-suggestions strong, .content-guide-suggestions small { display: block; }
  .content-guide-suggestions strong { overflow: hidden; font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
  .content-guide-suggestions small { margin-top: .3rem; color: var(--theme-color-muted); font-size: .72rem; line-height: 1.45; }
  .content-guide-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .8rem; }
  .content-guide-actions a { color: var(--theme-color-primary); font-size: .76rem; font-weight: 700; }
  .content-guide-actions a::after { content: " →"; }
  .content-guide-form { display: grid; grid-template-columns: minmax(0, 1fr) 2.75rem; gap: .55rem; padding: .85rem 1rem; border-top: 1px solid var(--theme-color-line); background: rgb(244 245 247 / 72%); }
  .content-guide-form textarea { width: 100%; min-height: 2.75rem; max-height: 7rem; padding: .7rem .8rem; resize: vertical; border: 1px solid var(--theme-color-line); border-radius: .8rem; outline: 0; background: white; font-size: .8rem; line-height: 1.45; }
  .content-guide-form textarea:focus { border-color: var(--theme-color-primary); box-shadow: 0 0 0 3px rgb(91 77 245 / 11%); }
  .content-guide-form button { display: grid; height: 2.75rem; place-items: center; border: 0; border-radius: .8rem; background: var(--theme-color-primary); color: white; font-size: 1.1rem; cursor: pointer; }
  .content-guide-form button:disabled { cursor: wait; opacity: .55; }
  .content-guide-privacy { padding: 0 1.1rem .75rem; background: rgb(244 245 247 / 72%); color: var(--theme-color-muted); font: .62rem/1.4 var(--theme-font-mono); }

  .reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity .65s var(--theme-ease), transform .65s var(--theme-ease); }
  .reveal.is-visible { opacity: 1; transform: none; }
}

@layer pages {
  .hero { min-height: calc(100svh - var(--theme-header-height)); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(22rem, .92fr); gap: clamp(4rem, 8vw, 8rem); align-items: center; padding-block: clamp(5rem, 10vh, 8rem); }
  .hero-copy { max-width: 46rem; padding-inline: clamp(0rem, 1.5vw, 1.25rem); }
  .hero-title { display: grid; justify-items: start; gap: clamp(1rem, 2.2vh, 1.5rem); max-width: none; margin-top: clamp(2rem, 4vh, 3rem); line-height: 1; }
  .hero-title-primary { display: block; font-size: clamp(4.25rem, 6vw, 6.75rem); font-weight: 780; letter-spacing: -.065em; line-height: 1.08; }
  .hero-title-secondary { position: relative; display: block; padding-top: clamp(1rem, 2vh, 1.4rem); border-top: 1px solid var(--theme-color-line); color: var(--theme-color-ink); font-size: clamp(2.25rem, 3.5vw, 3.9rem); font-weight: 680; letter-spacing: -.045em; line-height: 1.18; }
  .hero-title-secondary::before { content: ""; position: absolute; top: -3px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--theme-color-accent); box-shadow: 0 0 0 .35rem rgb(200 255 74 / 16%), 0 0 1rem rgb(91 77 245 / 28%); animation: title-signal 7s var(--theme-ease) infinite; }
  @keyframes title-signal { 0%, 12% { left: 0; } 45%, 62% { left: calc(100% - 5px); } 88%, 100% { left: 0; } }
  .hero-lead { max-width: 40rem; margin-top: clamp(2.5rem, 5vh, 3.75rem); color: var(--theme-color-muted); font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.95; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: clamp(2rem, 4vh, 3rem); }
  .hero-guide { --spot-x: 78%; --spot-y: 10%; overflow: hidden; border: 1px solid var(--theme-color-line); border-radius: calc(var(--theme-radius-lg) + .5rem); background: radial-gradient(circle 16rem at var(--spot-x) var(--spot-y), rgb(91 77 245 / 10%), transparent 68%), rgb(255 255 255 / 78%); box-shadow: var(--theme-shadow-soft); backdrop-filter: blur(18px); animation: guide-shadow 7s ease-in-out infinite alternate; }
  @keyframes guide-shadow { from { box-shadow: 0 1rem 3rem rgb(22 24 30 / 8%); } to { box-shadow: 0 1.6rem 4rem rgb(91 77 245 / 13%); } }
  .hero-guide-heading { padding: clamp(1.75rem, 3vw, 2.5rem); border-bottom: 1px solid var(--theme-color-line); }
  .hero-guide-heading h2 { margin-top: .8rem; font-size: clamp(2rem, 3vw, 3rem); }
  .hero-guide-heading > p:last-child { max-width: 28rem; margin-top: .8rem; color: var(--theme-color-muted); }
  .hero-guide-links { display: grid; }
  .hero-guide-links a { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: 1rem; align-items: center; min-height: 6.5rem; padding: 1.25rem clamp(1.5rem, 3vw, 2.25rem); border-bottom: 1px solid var(--theme-color-line); transition: background .2s, color .2s, padding .25s var(--theme-ease); }
  .hero-guide-links a:last-child { border-bottom: 0; }
  .hero-guide-links a:hover { padding-left: calc(clamp(1.5rem, 3vw, 2.25rem) + .35rem); background: var(--theme-color-ink); color: white; }
  .hero-guide-index { color: var(--theme-color-primary); font-family: var(--theme-font-mono); font-size: .72rem; }
  .hero-guide-links a:hover .hero-guide-index { color: var(--theme-color-accent); }
  .hero-guide-links strong, .hero-guide-links small { display: block; }
  .hero-guide-links strong { font-size: 1.08rem; }
  .hero-guide-links small { margin-top: .2rem; color: var(--theme-color-muted); font-size: .85rem; }
  .hero-guide-links a:hover small { color: #b9bcc4; }
  .hero-guide-links i { font-style: normal; font-size: 1.2rem; transition: transform .25s var(--theme-ease); }
  .hero-guide-links a:hover i { transform: translate(.2rem, -.2rem); }

  .hero-copy > .eyebrow { animation: hero-enter .65s .05s both var(--theme-ease); }
  .hero-title-primary { animation: hero-enter .8s .14s both var(--theme-ease); }
  .hero-title-secondary { animation: hero-enter .8s .23s both var(--theme-ease); }
  .hero-lead { animation: hero-enter .8s .32s both var(--theme-ease); }
  .hero-actions { animation: hero-enter .8s .41s both var(--theme-ease); }
  .hero-guide { animation: hero-guide-enter .9s .2s both var(--theme-ease), guide-shadow 7s 1.1s ease-in-out infinite alternate; }
  @keyframes hero-enter { from { opacity: 0; transform: translateY(1.25rem); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
  @keyframes hero-guide-enter { from { opacity: 0; transform: translate3d(1.5rem, 1rem, 0) scale(.985); filter: blur(7px); } to { opacity: 1; transform: none; filter: none; } }

  .featured-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .post-card { min-height: 17rem; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid var(--theme-color-line); border-radius: var(--theme-radius-lg); background: rgb(255 255 255 / 72%); box-shadow: 0 .3rem 1.2rem rgb(20 22 30 / 3%); backdrop-filter: blur(10px); transition: border .25s, transform .25s var(--theme-ease), box-shadow .25s; }
  .post-card:hover { border-color: #b6b2f8; transform: translateY(-4px); box-shadow: var(--theme-shadow-soft); }
  .post-card-featured { grid-row: span 2; min-height: 35rem; justify-content: flex-start; gap: clamp(4rem, 7vw, 7rem); background: var(--theme-color-ink); color: white; }
  .post-card-featured .post-meta, .post-card-featured p { color: #c2c5ce; }
  .post-card-featured .post-meta a { color: var(--theme-color-accent); }
  .post-card-protected { min-height: 20rem; border-color: #d7d2ff; background: radial-gradient(circle 14rem at 90% 5%, rgb(91 77 245 / 12%), transparent 70%), linear-gradient(145deg, rgb(255 255 255 / 88%), rgb(239 237 255 / 82%)); }
  .post-card-protected:hover { border-color: var(--theme-color-primary); box-shadow: 0 1.25rem 3.5rem rgb(91 77 245 / 13%); }
  .protected-mark { display: flex; align-items: center; justify-content: space-between; padding-block: clamp(1.5rem, 4vw, 3rem); color: var(--theme-color-primary); }
  .protected-mark small { font-family: var(--theme-font-mono); font-size: .62rem; font-weight: 700; letter-spacing: .14em; line-height: 1.5; text-align: right; }
  .protected-lock { position: relative; display: grid; width: 4.5rem; height: 4.5rem; place-items: center; border: 1px solid rgb(91 77 245 / 24%); border-radius: 50%; background: rgb(255 255 255 / 54%); box-shadow: 0 0 0 .65rem rgb(91 77 245 / 5%); }
  .protected-lock i { position: relative; width: 1.55rem; height: 1.25rem; margin-top: .65rem; border-radius: .22rem; background: var(--theme-color-primary); }
  .protected-lock i::before { content: ""; position: absolute; width: .9rem; height: 1rem; left: 50%; bottom: .8rem; border: .2rem solid var(--theme-color-primary); border-bottom: 0; border-radius: .7rem .7rem 0 0; transform: translateX(-50%); }
  .protected-lock i::after { content: ""; position: absolute; width: .22rem; height: .45rem; top: .38rem; left: 50%; border-radius: 1rem; background: white; transform: translateX(-50%); }
  .post-card-protected .status-chip { background: #e9e6ff; color: var(--theme-color-primary-deep); }
  .post-card-protected .card-link { color: var(--theme-color-primary-deep); }
  .post-card-index { color: #969aa4; font-family: var(--theme-font-mono); font-size: .72rem; }
  .post-card-body h3 { margin-top: .9rem; font-size: clamp(1.65rem, 3vw, 3rem); }
  .post-card-body > p { margin-top: 1rem; color: var(--theme-color-muted); }
  .post-card .card-link { margin-top: 1.5rem; }
  .post-feed-control { position: relative; display: grid; justify-items: center; gap: .7rem; min-height: 5rem; margin-top: 2rem; }
  .post-feed-button { min-width: 9rem; cursor: pointer; }
  .post-feed-button:disabled { cursor: wait; opacity: .58; }
  .post-feed-status { min-height: 1.2rem; color: var(--theme-color-muted); font: .7rem/1.4 var(--theme-font-mono); }
  .post-feed-sentinel { position: absolute; bottom: 0; width: 100%; height: 1px; pointer-events: none; }
  .topic-section { padding-top: 2rem; }
  .topic-cloud { display: flex; flex-wrap: wrap; gap: .65rem; }
  .topic-cloud a { padding: .75rem 1rem; border: 1px solid var(--theme-color-line); border-radius: var(--theme-radius-pill); background: rgb(255 255 255 / 62%); font-weight: 650; transition: background .2s, transform .2s; }
  .topic-cloud a span { color: var(--theme-color-primary); }
  .topic-cloud a:hover { background: var(--theme-color-accent); transform: rotate(-1deg); }

  .taxonomy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .taxonomy-card { min-height: 18rem; display: flex; flex-direction: column; padding: 1.5rem; border: 1px solid var(--theme-color-line); border-radius: var(--theme-radius-lg); background: rgb(255 255 255 / 72%); }
  .taxonomy-card:nth-child(3n+2) { background: #e9e7ff; }
  .taxonomy-card:nth-child(3n+3) { background: #efffc9; }
  .taxonomy-index { color: var(--theme-color-muted); font-family: var(--theme-font-mono); font-size: .72rem; }
  .taxonomy-card h2 { margin-top: auto; font-size: clamp(1.8rem, 3vw, 2.6rem); }
  .taxonomy-card p { margin-top: .75rem; color: var(--theme-color-muted); }
  .taxonomy-card .card-link { margin-top: 1.25rem; }
  .tag-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--theme-color-line); }
  .tag-index a { display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: center; padding: 1.35rem 1rem; border-bottom: 1px solid var(--theme-color-line); transition: background .2s, padding .2s; }
  .tag-index a:nth-child(odd) { border-right: 1px solid var(--theme-color-line); }
  .tag-index a:hover { padding-inline: 1.3rem; background: var(--theme-color-surface); }
  .tag-index span { color: var(--theme-color-primary); font-family: var(--theme-font-mono); }
  .tag-index i { font-style: normal; }

  .search-header { max-width: 65rem; }
  .page-search { display: grid; grid-template-columns: 1fr auto; gap: .75rem; margin-top: 2rem; }
  .page-search input { min-height: 3.5rem; padding: .75rem 1rem; font-size: 1.05rem; }
  .search-summary { font-size: .9rem !important; }

  .reading-layout { display: grid; grid-template-columns: minmax(16rem, .65fr) minmax(0, 1.35fr); gap: clamp(3rem, 8vw, 8rem); align-items: start; }
  .sticky-intro { position: sticky; top: calc(var(--theme-header-height) + 2rem); }
  .sticky-intro h1 { font-size: clamp(3.2rem, 6vw, 5.5rem); }
  .prose { color: #24262c; font-size: clamp(1.03rem, 1.5vw, 1.13rem); line-height: 1.85; overflow-wrap: anywhere; }
  .prose > * + * { margin-top: 1.2em; }
  .prose h2 { margin-top: 1.9em; font-size: clamp(1.75rem, 3vw, 2.45rem); line-height: 1.2; }
  .prose h3 { margin-top: 1.6em; font-size: 1.45rem; line-height: 1.3; }
  .article-content > :first-child { margin-top: 0; }
  .article-content h2 + h2, .article-content h3 + h3 { margin-top: .85em; }
  .prose a { color: var(--theme-color-primary-deep); text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .18em; }
  .prose blockquote { padding: 1rem 1.4rem; border-left: 3px solid var(--theme-color-primary); background: #efedff; border-radius: 0 var(--theme-radius-md) var(--theme-radius-md) 0; font-size: 1.08em; }
  .prose pre { max-width: 100%; padding: 1.2rem; overflow: auto; border-radius: var(--theme-radius-md); background: #17181c; color: #f5f6f8; font: .88rem/1.7 var(--theme-font-mono); }
  .prose code:not(pre code) { padding: .15rem .35rem; border-radius: .3rem; background: #e5e7ec; font: .9em var(--theme-font-mono); }
  .prose table { width: 100%; display: block; overflow-x: auto; border-collapse: collapse; }
  .prose th, .prose td { padding: .7rem .85rem; border: 1px solid var(--theme-color-line); text-align: left; }
  .prose img { height: auto; margin-inline: auto; border-radius: var(--theme-radius-md); }
  .prose .lead { font-size: 1.35em; line-height: 1.55; }
  .social-links { display: flex; flex-wrap: wrap; gap: .6rem; padding-top: 1rem; }
  .social-links a { padding: .65rem .9rem; border: 1px solid var(--theme-color-line); border-radius: var(--theme-radius-pill); text-decoration: none; }

  .article-shell { display: grid; grid-template-columns: minmax(0, 50rem) minmax(13rem, 15rem); gap: clamp(2.5rem, 5vw, 5rem); justify-content: center; align-items: start; padding-block: clamp(3.5rem, 7vw, 6.5rem); }
  .article-shell > article { min-width: 0; }
  .article-header { max-width: 50rem; margin-bottom: 2rem; }
  .article-header h1 { max-width: none; margin-top: 1.25rem; font-size: clamp(2.8rem, 3.7vw, 4rem); letter-spacing: -.045em; line-height: 1.16; }
  .article-header > p { display: -webkit-box; max-width: 46rem; margin-top: 1.6rem; overflow: hidden; color: #555a64; font-size: clamp(1.03rem, 1.25vw, 1.12rem); line-height: 1.82; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
  .article-rule { display: grid; grid-template-columns: 1fr auto 1fr; gap: .75rem; align-items: center; margin-block: 2rem 2.75rem; color: #9b9fa8; font: .65rem var(--theme-font-mono); letter-spacing: .14em; }
  .article-rule span { height: 1px; background: var(--theme-color-line); }
  .article-rule i { font-style: normal; }
  .article-tags { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--theme-color-line); }
  .article-tags > span { color: var(--theme-color-muted); font: .7rem var(--theme-font-mono); text-transform: uppercase; }
  .article-tags div { display: flex; flex-wrap: wrap; gap: .5rem; }
  .article-tags a { padding: .35rem .65rem; border-radius: var(--theme-radius-pill); background: #e8e5ff; color: var(--theme-color-primary-deep); font-size: .8rem; font-weight: 700; }
  .article-aside { position: sticky; top: calc(var(--theme-header-height) + 1.5rem); align-self: start; display: grid; gap: 1rem; }
  .aside-card { padding: 1.25rem; border: 1px solid var(--theme-color-line); border-radius: var(--theme-radius-md); background: rgb(255 255 255 / 72%); box-shadow: 0 .5rem 1.5rem rgb(22 24 30 / 4%); backdrop-filter: blur(12px); }
  .aside-label { color: var(--theme-color-muted); font: .64rem var(--theme-font-mono); letter-spacing: .12em; text-transform: uppercase; }
  .reading-progress { height: 3px; margin-block: .8rem; overflow: hidden; border-radius: 2px; background: var(--theme-color-line); }
  .reading-progress i { display: block; width: 0; height: 100%; background: var(--theme-color-primary); }
  .aside-card > a { font-size: .78rem; font-weight: 700; }
  .aside-card ul { list-style: none; }
  .aside-card li + li { border-top: 1px solid var(--theme-color-line); }
  .aside-card li a { display: block; padding-block: .75rem; font-size: .82rem; font-weight: 650; line-height: 1.35; }
  .aside-card li small { display: block; margin-top: .25rem; color: var(--theme-color-muted); font: .64rem var(--theme-font-mono); }
  .comments { grid-column: 1; margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--theme-color-line); }
  .comment-form { display: grid; gap: 1rem; padding: 1.3rem; border: 1px solid var(--theme-color-line); border-radius: var(--theme-radius-lg); background: rgb(255 255 255 / 70%); }
  .comment-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
  .comment-list { display: grid; gap: .8rem; margin-top: 1.5rem; }
  .comment-item { padding: 1.1rem; border: 1px solid var(--theme-color-line); border-radius: var(--theme-radius-md); background: var(--theme-color-surface); }
  .comment-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
  .comment-author { font-weight: 760; }
  .comment-date { color: var(--theme-color-muted); font: .66rem var(--theme-font-mono); }
  .comment-body { margin-top: .65rem; white-space: pre-wrap; }
  .comment-actions { display: flex; gap: .5rem; margin-top: .8rem; }
  .comment-actions button { padding: .35rem .55rem; border: 0; border-radius: var(--theme-radius-pill); background: var(--theme-color-surface-soft); cursor: pointer; font-size: .72rem; font-weight: 700; }
  .comment-replies { display: grid; gap: .65rem; margin: .8rem 0 0 1.2rem; padding-left: .8rem; border-left: 2px solid #cac6ff; }
  .reply-form { display: grid; gap: .7rem; margin-top: .8rem; padding: .8rem; border-radius: var(--theme-radius-md); background: var(--theme-color-surface-soft); }
  .loading-state { display: flex; align-items: center; justify-content: center; gap: .7rem; min-height: 8rem; color: var(--theme-color-muted); }
  .loading-state span { width: 1rem; height: 1rem; border: 2px solid var(--theme-color-line); border-top-color: var(--theme-color-primary); border-radius: 50%; animation: spin .7s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }

  .auth-shell { min-height: calc(100svh - var(--theme-header-height)); display: grid; place-items: center; padding-block: 3rem; }
  .auth-panel { width: min(100%, 62rem); display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid var(--theme-color-line); border-radius: 2rem; background: rgb(255 255 255 / 72%); box-shadow: var(--theme-shadow-float); backdrop-filter: blur(18px); }
  .auth-copy { position: relative; min-height: 32rem; padding: clamp(2rem, 5vw, 4rem); overflow: hidden; background: var(--theme-color-ink); color: white; }
  .auth-copy::after { content: ""; position: absolute; width: 18rem; height: 18rem; right: -6rem; bottom: -6rem; border-radius: 45% 55% 62% 38%; background: linear-gradient(145deg, var(--theme-color-primary), var(--theme-color-coral)); filter: blur(1px); }
  .auth-copy .eyebrow { color: #b8bbc3; }
  .auth-copy h1 { position: relative; z-index: 1; margin-top: 1rem; font-size: clamp(3rem, 6vw, 5.2rem); }
  .auth-copy > p:last-of-type { position: relative; z-index: 1; max-width: 24rem; margin-top: 1rem; color: #bdc0c8; }
  .auth-signal { position: absolute; z-index: 1; bottom: 3rem; left: 3rem; display: flex; gap: .4rem; }
  .auth-signal span { width: .7rem; height: .7rem; border-radius: 50%; background: var(--theme-color-accent); }
  .auth-signal span:nth-child(2) { opacity: .55; }.auth-signal span:nth-child(3) { opacity: .2; }
  .form-card { display: grid; align-content: center; gap: 1rem; padding: clamp(2rem, 5vw, 4rem); }
  .form-back { justify-self: center; color: var(--theme-color-muted); font-size: .78rem; }
  .lock-mark { position: absolute; z-index: 1; bottom: 3rem; left: 3rem; width: 5rem; height: 4rem; border: 2px solid var(--theme-color-accent); border-radius: 1rem; }
  .lock-mark::before { content: ""; position: absolute; width: 2.5rem; height: 2.5rem; left: 1.1rem; top: -2.1rem; border: 2px solid var(--theme-color-accent); border-bottom: 0; border-radius: 2rem 2rem 0 0; }
  .lock-mark span { position: absolute; width: .55rem; height: .55rem; left: 2.1rem; top: 1.2rem; border-radius: 50%; background: var(--theme-color-accent); }

  .error-page { min-height: calc(100svh - var(--theme-header-height)); display: flex; flex-direction: column; align-items: center; justify-content: center; padding-block: 4rem; text-align: center; }
  .error-code { display: flex; align-items: center; color: var(--theme-color-primary); font-family: var(--theme-font-display); font-size: clamp(7rem, 20vw, 17rem); font-weight: 800; letter-spacing: -.12em; line-height: .75; }
  .error-code i { color: var(--theme-color-accent); font-style: normal; text-shadow: 0 0 0 1px var(--theme-color-ink); }
  .error-page .eyebrow { margin-top: 3rem; }
  .error-page h1 { margin-top: .8rem; font-size: clamp(2rem, 5vw, 4rem); }
  .error-page > p:not(.eyebrow) { margin-top: 1rem; color: var(--theme-color-muted); }
  .error-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; margin-top: 2.5rem; color: var(--theme-color-muted); font-size: .8rem; }
}

@layer utilities {
  [hidden] { display: none !important; }
  .paid-content-section { margin-block: 2rem; padding: 1.25rem; border: 1px solid #c7c2ff; border-radius: var(--theme-radius-lg); background: linear-gradient(135deg, #f1efff, #fbffe9); }
  .paid-content-header h3 { font-size: 1.4rem; }
  .paid-content-price { color: var(--theme-color-primary-deep); font-size: 1.35rem; font-weight: 800; }
  .buy-now-btn { min-height: 2.8rem; padding: .65rem 1rem; border: 0; border-radius: var(--theme-radius-pill); background: var(--theme-color-ink); color: white; cursor: pointer; font-weight: 720; }
  .math-block, .mermaid-diagram { width: 100%; max-width: 100%; margin-block: 2rem; overflow-x: auto; border: 1px solid var(--theme-color-line); border-radius: var(--theme-radius-lg); background: rgb(255 255 255 / 66%); }
  .math-block { padding: 1.5rem; }
  .mermaid-diagram { display: grid; min-height: 14rem; place-items: center; padding: clamp(1.25rem, 4vw, 2.5rem); }
  .mermaid-diagram svg { width: auto; max-width: 100%; height: auto; }
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .primary-nav { position: fixed; inset: var(--theme-header-height) 1rem auto; display: grid; gap: .35rem; max-height: calc(100svh - var(--theme-header-height) - 1rem); padding: 1rem; overflow-y: auto; border: 1px solid var(--theme-color-line); border-radius: var(--theme-radius-lg); background: rgb(255 255 255 / 94%); box-shadow: var(--theme-shadow-float); backdrop-filter: blur(20px); opacity: 0; transform: translateY(-.75rem); pointer-events: none; transition: opacity .2s, transform .2s; }
  .primary-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .primary-nav > a, .nav-account { padding: .8rem; }
  .nav-search { margin: .4rem 0 0; }
  .nav-search input { width: 100%; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(4) { transform: translateY(-5px) rotate(-45deg); }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-guide { width: 100%; max-width: 38rem; }
  .featured-grid { grid-template-columns: 1fr; }
  .post-card-featured { grid-row: auto; min-height: auto; gap: 3rem; }
  .taxonomy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reading-layout { grid-template-columns: 1fr; }
  .sticky-intro { position: static; }
  .article-shell { grid-template-columns: minmax(0, var(--theme-reading-width)); padding-top: 3rem; }
  .article-aside { position: static; grid-row: 2; }
  .comments { grid-column: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .copyright { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .shell { width: min(calc(100% - 1.25rem), var(--theme-content-width)); }
  .brand-name { max-width: 12rem; }
  .hero { padding-top: 2rem; }
  .hero-title { margin-top: 1.5rem; }
  .hero-title-primary { font-size: clamp(3.4rem, 16vw, 4.75rem); }
  .hero-title-secondary { font-size: clamp(2rem, 9.5vw, 2.8rem); }
  .hero-lead { margin-top: 2rem; line-height: 1.85; }
  .hero-guide-links a { grid-template-columns: 1.75rem minmax(0, 1fr) auto; gap: .75rem; }
  .post-card-featured { gap: 2.25rem; padding-block: 2.25rem; }
  .article-shell { padding-top: 2.25rem; }
  .article-header h1 { font-size: clamp(2.5rem, 11vw, 3.6rem); }
  .article-header > p { margin-top: 1.25rem; font-size: 1rem; line-height: 1.75; -webkit-line-clamp: 4; }
  .article-rule { margin-block: 1.75rem 2.25rem; }
  .mermaid-diagram { min-height: 10rem; padding: 1rem; }
  .section-heading { align-items: start; }
  .archive-item { grid-template-columns: 2rem minmax(0, 1fr); }
  .archive-item .round-link { display: none; }
  .pagination { grid-template-columns: 1fr 1fr; }
  .pagination > span:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
  .taxonomy-grid, .tag-index { grid-template-columns: 1fr; }
  .tag-index a:nth-child(odd) { border-right: 0; }
  .page-search { grid-template-columns: 1fr; }
  .auth-panel { grid-template-columns: 1fr; border-radius: var(--theme-radius-lg); }
  .auth-copy { min-height: 19rem; }
  .auth-copy::after { width: 12rem; height: 12rem; }
  .auth-signal, .lock-mark { bottom: 1.5rem; left: 2rem; }
  .comment-form-footer { align-items: stretch; flex-direction: column; }
  .article-tags { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid .copyright { grid-column: auto; }
  .content-guide-launcher { right: .7rem; bottom: .7rem; }
  .content-guide-panel { right: .65rem; bottom: 4.65rem; width: calc(100vw - 1.3rem); max-height: calc(100svh - 5.5rem); border-radius: 1.25rem; }
  .back-to-top { right: .85rem; bottom: 4.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .article-aside, .comments, .back-to-top, .content-guide-launcher, .content-guide-panel { display: none !important; }
  body { background: white; }
  .article-shell { display: block; padding: 0; }
  .prose { font-size: 11pt; }
}
