/* ==========================================================================
   null-packet blog

   Shares the shop's design language: layered near-black surfaces, glass
   hairlines, a single restrained accent, 14px radii, layered shadows, and the
   Inter / JetBrains Mono token pair (both with system fallbacks, no web fonts
   loaded). The content column stays reading-width — the brand consistency is in
   the design language, not in a full-bleed layout.
   ========================================================================== */

:root {
  /* Surfaces — near-black with a cool cast, layered rather than flat */
  --bg:            #06080b;
  --bg-alt:        #090c11;
  --surface-1:     #0d1117;
  --surface-2:     #111721;
  --surface-3:     #161d29;

  /* Hairlines. Light-on-dark borders read as glass, not as boxes. */
  --line:          rgba(255, 255, 255, 0.07);
  --line-strong:   rgba(255, 255, 255, 0.12);
  --line-accent:   rgba(61, 220, 132, 0.28);

  /* Type */
  --text:          #e6edf3;
  --text-soft:     #b3c0cd;
  --text-dim:      #7d8b99;
  --text-faint:    #55616e;

  /* One accent, used sparingly. */
  --accent:        #3ddc84;
  --accent-bright: #5ef39c;
  --accent-deep:   #1f7f4d;
  --accent-glow:   rgba(61, 220, 132, 0.15);

  --warn:          #e6b455;
  --danger:        #e6555a;

  --radius:        14px;
  --radius-sm:     8px;

  /* Layered shadows — a single flat shadow is the classic "cheap" tell. */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.3),
               0 8px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3),
               0 12px 28px rgba(0, 0, 0, 0.45),
               0 32px 64px rgba(0, 0, 0, 0.35);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Consolas", monospace;

  /* Reading-width container shared by header, content and footer. */
  --content: 940px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02", "cv03", "cv04", "ss01";
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }

::selection { background: var(--accent-glow); color: var(--accent-bright); }

/* ==========================================================================
   Header — sticky glass bar, boxed brand mark, underline-sweep nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 8, 11, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(155deg, var(--surface-3), var(--surface-1));
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), var(--shadow-sm);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
}

.brand h1, .brand .brand-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.brand h1 a, .brand .brand-title a { color: var(--text); }

.tagline {
  margin: 0.1rem 0 0;
  color: var(--text-faint);
  font-size: 0.78rem;
  line-height: 1.4;
  max-width: 46ch;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.875rem;
}

.site-nav a {
  position: relative;
  color: var(--text-dim);
  transition: color 0.2s var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Current section/page reads green; cross-links stay plain. */
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav a[aria-current="page"]::after { display: none; }

/* ==========================================================================
   Layout
   ========================================================================== */

.layout {
  max-width: var(--content);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

/* ==========================================================================
   Home — intro panel + post grid
   ========================================================================== */

.home-intro {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 80% 130% at 100% 0%, rgba(61, 220, 132, 0.07), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface-1));
  box-shadow: var(--shadow-md);
  padding: 2rem;
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.home-intro::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, transparent, var(--line-strong) 50%, transparent);
  pointer-events: none;
}

.home-intro-h {
  margin: 0 0 0.6rem;
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
}

.home-intro p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.98rem;
  max-width: 68ch;
}

.home-intro-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.35rem;
  margin-top: 1.35rem !important;
}

.home-intro-alt {
  color: var(--text-dim);
  font-size: 0.88rem;
  transition: color 0.2s var(--ease);
}

.home-intro-alt:hover { color: var(--accent); }

.home-latest-h {
  margin: 0 0 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
}

.post-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.post-card {
  position: relative;
  display: flex;
  gap: 1.35rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface-1) 100%);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.35s var(--ease),
              border-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
}

.post-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, transparent, var(--line-strong) 50%, transparent);
  pointer-events: none;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-accent);
  box-shadow: var(--shadow-lg), 0 0 40px -12px var(--accent-glow);
}

.post-card-thumb {
  width: 150px;
  height: 96px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-3);
}

.post-card-body { min-width: 0; }

.post-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.post-meta {
  color: var(--text-faint);
  font-size: 0.76rem;
  margin-bottom: 0.5rem;
}

.post-excerpt {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 0 0 0.7rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-dim);
  font-size: 0.72rem;
}

/* ==========================================================================
   Article
   ========================================================================== */

.article-header { margin-bottom: 1.5rem; }

.article-header h1 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0.5rem 0;
}

.back-link {
  display: inline-block;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  transition: color 0.2s var(--ease);
}

.back-link:hover { color: var(--accent); }

.article-feature img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  margin: 1rem 0;
}

.article-body {
  font-size: 1rem;
  color: var(--text-soft);
}

.article-body h2, .article-body h3, .article-body h4 {
  color: var(--text);
  margin-top: 2rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.article-body h2 { font-size: 1.45rem; font-weight: 600; }
.article-body h3 { font-size: 1.18rem; font-weight: 600; }
.article-body h4 { font-size: 1rem; font-weight: 600; margin-top: 1.5rem; }

.article-body p { color: var(--text-soft); }

.article-body a {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 2px;
}

.article-body a:hover { text-decoration-color: var(--accent); }

.article-body img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.article-body pre, .article-body code {
  font-family: var(--font-mono);
  background: #04070a;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.article-body pre {
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.article-body code {
  padding: 0.12rem 0.4rem;
  font-size: 0.88em;
  color: var(--accent);
}

.article-body pre code {
  padding: 0;
  border: none;
  background: none;
  color: inherit;
}

.article-body blockquote {
  border-left: 3px solid var(--accent-deep);
  margin: 1.25rem 0;
  padding: 0.25rem 1rem;
  color: var(--text-dim);
}

.article-body figure { margin: 1rem 0; }
.article-body figcaption { color: var(--text-faint); font-size: 0.8rem; text-align: center; }

.notice-banner {
  background: linear-gradient(180deg, #1c1508, #140f06);
  border-bottom: 1px solid #3a2c10;
  color: var(--warn);
  padding: 0.7rem 1.5rem;
  font-size: 0.85rem;
  text-align: center;
}

/* Tables — used by several articles. */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.article-body th,
.article-body td {
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.article-body thead th {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
}
.article-body tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }
.article-body tbody tr:last-child td { border-bottom: none; }
.article-body td code, .article-body th code { white-space: nowrap; }

/* Affiliate disclosure — small, dim, set apart from the article lede. */
.article-body .affiliate-disclosure {
  font-size: 0.8rem;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.5rem 0.8rem;
  margin-bottom: 1.25rem;
}

/* Callouts — note / tip pull-boxes. */
.callout {
  margin: 1.25rem 0;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: var(--radius-sm);
  background: var(--surface-1);
}
.callout p { margin: 0; color: var(--text-soft); }
.callout p + p { margin-top: 0.5rem; }
.callout-note { border-left-color: var(--accent-deep); }
.callout-tip { border-left-color: var(--warn); background: #140f06; }

/* Diagrams — inline SVG figures scale to the column and never overflow. */
.article-body figure.diagram { margin: 1.5rem 0; }
.article-body figure.diagram svg {
  width: 100%;
  height: auto;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
}

/* ==========================================================================
   Post tail — author, product CTA, related reading
   ========================================================================== */

.author-box {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-top: 2.5rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 70% 120% at 0% 0%, rgba(61, 220, 132, 0.06), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface-1));
  box-shadow: var(--shadow-md);
}

.author-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(155deg, var(--surface-3), var(--surface-1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), var(--shadow-sm);
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
}

.author-name {
  margin: 0 0 0.3rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
}

.author-bio {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.author-links {
  margin: 0.7rem 0 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.author-links a { text-decoration: none; }
.author-links a:hover { text-decoration: underline; }

.post-cta {
  position: relative;
  margin-top: 1.75rem;
  padding: 1.75rem;
  border: 1px solid var(--line-accent);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 90% 130% at 100% 0%, rgba(61, 220, 132, 0.08), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface-1));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.post-cta::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
  opacity: 0.5;
}

.post-cta-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.post-cta-title {
  margin: 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.post-cta-desc {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.92rem;
  max-width: 62ch;
}

.post-cta-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.post-cta-specs li {
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.post-cta-note {
  margin: 0.9rem 0 0;
  color: var(--text-faint);
  font-size: 0.76rem;
}

.post-cta-price {
  margin-left: 0.15rem;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-family: var(--font-mono);
}

.related { margin-top: 2.25rem; }

.related-h {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.related-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.3s var(--ease),
              border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}

.related-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-accent);
  box-shadow: var(--shadow-md), 0 0 30px -14px var(--accent-glow);
}

.related-date { color: var(--text-faint); font-size: 0.72rem; }

.related-title {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}

/* ==========================================================================
   Topic hubs — "Filed under" row, homepage + /topics/ grid
   ========================================================================== */

.filed-under {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 1.75rem 0 0;
}

.filed-under-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.filed-under-link {
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-dim);
  font-size: 0.78rem;
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.filed-under-link:hover {
  color: var(--accent);
  border-color: var(--line-accent);
}

.home-topics { margin: 2.5rem 0 0; }

.home-topics-h {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
}

.home-topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
}

.home-topic {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.3s var(--ease),
              border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}

.home-topic:hover {
  transform: translateY(-3px);
  border-color: var(--line-accent);
  box-shadow: var(--shadow-md), 0 0 30px -14px var(--accent-glow);
}

.home-topic-name {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
}

.home-topic-desc {
  color: var(--text-soft);
  font-size: 0.85rem;
  line-height: 1.45;
}

.home-topic-count {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

/* ==========================================================================
   Buttons — accent gradient primary, shared with the shop
   ========================================================================== */

.home-intro-btn,
.post-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--accent-bright), var(--accent-deep));
  color: #04140b;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28),
              0 4px 14px -4px var(--accent-glow);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.home-intro-btn:hover,
.post-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35),
              0 8px 24px -6px rgba(61, 220, 132, 0.4);
}

.home-intro-btn:active,
.post-cta-btn:active { transform: translateY(0); }

.post-cta-btn { margin-top: 1.15rem; }

/* ==========================================================================
   Accessibility — skip link + visible focus
   ========================================================================== */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.15rem;
  background: var(--accent);
  color: #04140b;
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
}

.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 0 1.5rem;
  color: var(--text-faint);
  font-size: 0.8rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  max-width: var(--content);
  margin: 0 auto;
  padding-block: 2.5rem 0;
  text-align: left;
}

.footer-col { display: flex; flex-direction: column; gap: 0.45rem; }

.footer-col p { margin: 0; max-width: 34ch; }

.footer-brand {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.3rem !important;
}

.footer-brand span { color: var(--accent); font-family: var(--font-mono); }

.footer-h {
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.35rem !important;
}

.footer-col a { color: var(--text-dim); text-decoration: none; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--accent); }

.footer-legal {
  max-width: var(--content);
  margin: 1.5rem auto 0;
  padding-block: 1.25rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 0.76rem;
  text-align: left;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 600px) {
  .tagline { display: none; }
  .site-nav { gap: 1.15rem; flex-wrap: wrap; justify-content: flex-end; }
  .post-card { flex-direction: column; }
  .post-card-thumb { width: 100%; height: 170px; }
  .home-intro { padding: 1.5rem; }
  .author-box { flex-direction: column; gap: 0.85rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .post-cta { padding: 1.5rem; }
  .home-intro-btn, .post-cta-btn { width: 100%; justify-content: center; }
  .article-body table { display: block; overflow-x: auto; white-space: nowrap; }

  /* WCAG 2.5.8 — 24px minimum touch target for inline links. */
  .footer-col a,
  .author-links a,
  .site-nav a,
  .back-link,
  .home-intro-alt {
    display: inline-block;
    padding-block: 0.3rem;
    min-height: 24px;
  }

  .footer-col { gap: 0.15rem; }
}

/* ==========================================================================
   Reduced motion — kill every non-essential transform/animation
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .post-card:hover,
  .related-card:hover,
  .home-intro-btn:hover,
  .post-cta-btn:hover { transform: none; }
}
