/*
Theme Name: Quantum Babble
Theme URI: https://quantumbabble.com/
Author: Craig
Author URI: https://quantumbabble.com/
Description: A flowing, zen-inspired WordPress theme built for Quantum Babble. Washi-paper palette, brushed-ink typography, sumi-e mist and ridge artwork, drifting ambient motion, and a full Customizer panel.
Version: 2.1.0
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: quantum-babble
Tags: blog, one-column, two-columns, right-sidebar, left-sidebar, custom-logo, custom-menu, custom-colors, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
  --qbz-paper:        #F5EFE3;
  --qbz-paper-deep:   #EDE4D2;
  --qbz-ink:          #2A2620;
  --qbz-ink-soft:     #5F5749;
  --qbz-accent:       #8C1A15;
  --qbz-moss:         #6C7A56;
  --qbz-gold:         #B08D4F;

  --qbz-line:         rgba(42, 38, 32, 0.13);
  --qbz-line-strong:  rgba(42, 38, 32, 0.26);

  --qbz-font-display: 'Shippori Mincho', Georgia, serif;
  --qbz-font-body:    'Noto Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --qbz-base-size:     17px;
  --qbz-content-width: 1240px;
  --qbz-radius:        2px;
  --qbz-post-gap:      88px;

  --qbz-reveal-y:      26px;
  --qbz-inkwash-opacity: 0.5;
  --qbz-inkwash-speed:   46s;

  --qbz-logo-size:        84px;
  --qbz-logo-size-mobile: 58px;

  /* generous vertical rhythm — the empty space is the design */
  --qbz-space-xl: 120px;
  --qbz-space-lg: 72px;
  --qbz-space-md: 40px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--qbz-paper);
  color: var(--qbz-ink-soft);
  font-family: var(--qbz-font-body);
  font-size: var(--qbz-base-size);
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--qbz-accent); text-decoration: none; transition: color .3s ease; }
a:hover { color: var(--qbz-ink); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--qbz-font-display);
  font-weight: 500;
  line-height: 1.34;
  letter-spacing: .005em;
  color: var(--qbz-ink);
  margin: 0 0 .55em;
}

p { margin: 0 0 1.4em; }

blockquote {
  font-family: var(--qbz-font-display);
  font-style: italic;
  font-size: 1.18em;
  line-height: 1.6;
  border: none;
  margin: 2.4em 0;
  padding: 0 0 0 2em;
  position: relative;
  color: var(--qbz-ink);
}
blockquote::before {
  content: "";
  position: absolute;
  left: 0; top: .35em; bottom: .35em;
  width: 2px;
  background: linear-gradient(to bottom, var(--qbz-accent), transparent);
  opacity: .7;
}

hr { border: 0; height: 1px; background: var(--qbz-line); margin: var(--qbz-space-md) 0; }

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em;
  background: rgba(42, 38, 32, 0.055);
  border-radius: 2px;
}
code { padding: .15em .45em; }
pre { padding: 1.2em 1.4em; overflow-x: auto; }
pre code { background: none; padding: 0; }

table { width: 100%; border-collapse: collapse; margin: 0 0 1.8em; font-size: .95em; }
th, td { padding: .75em .85em; border-bottom: 1px solid var(--qbz-line); text-align: left; }
th { font-weight: 600; color: var(--qbz-ink); }

.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
  clip: auto; clip-path: none; height: auto; width: auto;
  background: var(--qbz-accent); color: var(--qbz-paper);
  padding: 12px 22px; left: 12px; top: 12px; z-index: 999;
}
:focus-visible { outline: 2px solid var(--qbz-accent); outline-offset: 3px; }

/* ==========================================================================
   3. Ambient atmosphere — ink wash, drifting motes
   ========================================================================== */

.qbz-inkwash {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: var(--qbz-inkwash-opacity);
}
.qbz-inkwash span {
  position: absolute; border-radius: 50%;
  filter: blur(80px);
  animation: qbz-drift var(--qbz-inkwash-speed) ease-in-out infinite;
  will-change: transform;
}
.qbz-inkwash .a { width: 620px; height: 620px; left: -220px; top: -180px;  background: radial-gradient(circle, rgba(176,141,79,.26), transparent 70%); }
.qbz-inkwash .b { width: 760px; height: 760px; right: -280px; top: 340px;  background: radial-gradient(circle, rgba(108,122,86,.20), transparent 70%); animation-delay: -15s; }
.qbz-inkwash .c { width: 520px; height: 520px; left: 34%;  bottom: -240px; background: radial-gradient(circle, rgba(140,26,21,.13), transparent 70%);  animation-delay: -30s; }
@keyframes qbz-drift {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(48px,-36px) scale(1.09); }
}

/* dust motes — a few slow specks, never a snowstorm */
.qbz-motes { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.qbz-motes span {
  position: absolute; bottom: -20px;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--qbz-gold);
  opacity: 0;
  animation-name: qbz-mote;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform, opacity;
}
@keyframes qbz-mote {
  0%   { transform: translate(0, 0) scale(.7);          opacity: 0; }
  12%  { opacity: .45; }
  85%  { opacity: .28; }
  100% { transform: translate(60px, -108vh) scale(1.15); opacity: 0; }
}
.qbz-motes span:nth-child(1)  { left:  6%; animation-duration: 46s; animation-delay:  -2s; }
.qbz-motes span:nth-child(2)  { left: 14%; animation-duration: 62s; animation-delay: -18s; width: 2px; height: 2px; }
.qbz-motes span:nth-child(3)  { left: 23%; animation-duration: 54s; animation-delay: -34s; }
.qbz-motes span:nth-child(4)  { left: 35%; animation-duration: 70s; animation-delay:  -9s; width: 4px; height: 4px; }
.qbz-motes span:nth-child(5)  { left: 44%; animation-duration: 50s; animation-delay: -41s; width: 2px; height: 2px; }
.qbz-motes span:nth-child(6)  { left: 56%; animation-duration: 66s; animation-delay: -25s; }
.qbz-motes span:nth-child(7)  { left: 67%; animation-duration: 58s; animation-delay:  -6s; width: 2px; height: 2px; }
.qbz-motes span:nth-child(8)  { left: 78%; animation-duration: 74s; animation-delay: -50s; }
.qbz-motes span:nth-child(9)  { left: 87%; animation-duration: 52s; animation-delay: -29s; width: 4px; height: 4px; }
.qbz-motes span:nth-child(10) { left: 94%; animation-duration: 64s; animation-delay: -13s; width: 2px; height: 2px; }

/* ==========================================================================
   4. Header
   ========================================================================== */

.qbz-header {
  position: relative; z-index: 30;
  background: var(--qbz-paper);
  transition: padding .4s ease, box-shadow .4s ease;
}
.qbz-header.is-sticky { position: sticky; top: 0; }
.qbz-header.has-blur {
  background: color-mix(in srgb, var(--qbz-paper) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.qbz-header.qbz-scrolled { box-shadow: 0 1px 30px rgba(42,38,32,.06); }

/* the header's lower edge fades out at both ends, like a drawn stroke */
.qbz-header::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(to right,
    transparent, var(--qbz-line) 12%, var(--qbz-line-strong) 50%, var(--qbz-line) 88%, transparent);
}

.qbz-header-inner {
  max-width: var(--qbz-content-width);
  margin: 0 auto;
  padding: 22px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  transition: padding .4s ease;
}
.qbz-header.qbz-shrink.qbz-scrolled .qbz-header-inner { padding-top: 10px; padding-bottom: 10px; }

.qbz-brand { display: flex; align-items: center; gap: 16px; min-width: 0; }

.qbz-logo-wrap {
  position: relative; flex: none; display: block; line-height: 0;
  width: var(--qbz-logo-size); height: var(--qbz-logo-size);
  transition: width .4s ease, height .4s ease;
}
.qbz-logo-wrap img, .qbz-logo-wrap .custom-logo {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: contain;
}
.qbz-header.qbz-shrink.qbz-scrolled .qbz-logo-wrap {
  width: calc(var(--qbz-logo-size) * .68);
  height: calc(var(--qbz-logo-size) * .68);
}

.qbz-logo-wrap.has-glow::before {
  content: "";
  position: absolute; inset: -22%;
  border-radius: 50%; z-index: 0; pointer-events: none;
  opacity: .55; filter: blur(10px);
  animation: qbz-breathe 8s ease-in-out infinite;
  transition: opacity .6s ease, transform .6s ease;
}
.qbz-logo-wrap.has-glow:hover::before { opacity: .95; transform: scale(1.07); }
@keyframes qbz-breathe {
  0%, 100% { transform: scale(1);    opacity: .46; }
  50%      { transform: scale(1.06); opacity: .70; }
}
.qbz-logo-wrap.blend-multiply img,
.qbz-logo-wrap.blend-multiply .custom-logo { mix-blend-mode: multiply; }

.qbz-enso-ring { position: absolute; inset: -12%; width: 124%; height: 124%; pointer-events: none; overflow: visible; z-index: 2; }
.qbz-enso-ring path {
  fill: none; stroke: var(--qbz-accent); stroke-width: 2.6; stroke-linecap: round;
  stroke-dasharray: 210; stroke-dashoffset: 210;
  animation: qbz-draw 2.4s cubic-bezier(.4,0,.2,1) forwards .35s;
}
@keyframes qbz-draw { to { stroke-dashoffset: 16; } }
.qbz-logo-wrap.spin-on-hover .qbz-enso-ring { transition: transform 1.8s cubic-bezier(.4,0,.2,1); }
.qbz-logo-wrap.spin-on-hover:hover .qbz-enso-ring { transform: rotate(180deg); }

.qbz-brand-text { min-width: 0; }
.qbz-site-title {
  display: block; font-family: var(--qbz-font-display);
  font-size: 23px; font-weight: 500; letter-spacing: .04em;
  color: var(--qbz-ink); line-height: 1.25;
}
.qbz-site-title:hover { color: var(--qbz-accent); }
.qbz-site-tagline {
  display: block; font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--qbz-ink-soft); margin-top: 4px;
}

/* --- navigation --- */
.qbz-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 32px; }
.qbz-nav li { position: relative; }
.qbz-nav a {
  position: relative; display: inline-block;
  font-size: 14px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--qbz-ink-soft); padding: 8px 0;
}
/* the underline is laid down from the centre outward */
.qbz-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px;
  height: 1px; background: var(--qbz-accent);
  transform: scaleX(0); transform-origin: center;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.qbz-nav a:hover { color: var(--qbz-ink); }
.qbz-nav a:hover::after { transform: scaleX(1); }
.qbz-nav .current-menu-item > a,
.qbz-nav .current_page_item > a { color: var(--qbz-ink); }
.qbz-nav .current-menu-item > a::after,
.qbz-nav .current_page_item > a::after { transform: scaleX(1); opacity: .5; }

.qbz-nav ul ul {
  position: absolute; top: 100%; left: 0;
  display: block; min-width: 220px;
  background: var(--qbz-paper);
  border: 1px solid var(--qbz-line);
  padding: 10px 0; flex-direction: column; gap: 0;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
  box-shadow: 0 12px 34px rgba(42,38,32,.09); z-index: 40;
}
.qbz-nav li:hover > ul, .qbz-nav li:focus-within > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.qbz-nav ul ul li { width: 100%; }
.qbz-nav ul ul a { display: block; padding: 9px 20px; width: 100%; text-transform: none; letter-spacing: .01em; font-size: 14.5px; }
.qbz-nav ul ul a::after { display: none; }
.qbz-nav ul ul a:hover { background: rgba(140,26,21,.06); color: var(--qbz-accent); }

.qbz-nav-toggle {
  display: none; width: 44px; height: 44px;
  border: 1px solid var(--qbz-line); border-radius: 50%;
  background: transparent; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px; padding: 0;
}
.qbz-nav-toggle span { display: block; width: 17px; height: 1px; background: var(--qbz-ink); transition: transform .35s ease, opacity .25s ease; }
.qbz-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.qbz-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.qbz-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ==========================================================================
   5. Hero
   ========================================================================== */

.qbz-hero {
  position: relative; z-index: 1;
  text-align: center;
  padding: var(--qbz-space-xl) 48px var(--qbz-space-lg);
  overflow: hidden;
}

/* a large, almost-invisible enso turning imperceptibly behind the words */
.qbz-hero-enso {
  position: absolute; top: 50%; left: 50%;
  width: 560px; height: 560px;
  transform: translate(-50%,-50%);
  opacity: .055; pointer-events: none;
  animation: qbz-turn 300s linear infinite;
}
.qbz-hero-enso path { fill: none; stroke: var(--qbz-ink); stroke-width: 4; stroke-linecap: round; }
@keyframes qbz-turn {
  from { transform: translate(-50%,-50%) rotate(0deg); }
  to   { transform: translate(-50%,-50%) rotate(360deg); }
}

.qbz-hero > *:not(.qbz-hero-enso) { position: relative; z-index: 1; }

.qbz-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11.5px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--qbz-accent); margin-bottom: 30px;
}
.qbz-hero-eyebrow::before, .qbz-hero-eyebrow::after {
  content: ""; width: 34px; height: 1px; opacity: .55;
  background: linear-gradient(to right, transparent, var(--qbz-accent));
}
.qbz-hero-eyebrow::after { background: linear-gradient(to left, transparent, var(--qbz-accent)); }

.qbz-hero h1 {
  font-size: 50px; font-weight: 400; line-height: 1.32;
  max-width: 860px; margin: 0 auto 26px;
}
.qbz-hero-lede {
  max-width: 560px; margin: 0 auto;
  color: var(--qbz-ink-soft); font-size: 17px; line-height: 1.8;
}

/* the hero doesn't end on a straight edge — it pours into the content */
.qbz-hero-wave {
  position: absolute; left: -2%; bottom: -1px;
  width: 104%; height: 60px;
  pointer-events: none; opacity: .5;
}
.qbz-hero-wave path { fill: none; stroke: var(--qbz-line-strong); stroke-width: 1; }
.qbz-hero-wave .a { animation: qbz-flow-a 32s ease-in-out infinite; }
.qbz-hero-wave .b { opacity: .5; animation: qbz-flow-b 44s ease-in-out infinite; }

/* one brushstroke closing the hero, drawn on load */
.qbz-hero-stroke { width: 210px; height: 14px; margin: 38px auto 0; opacity: .55; overflow: visible; }
.qbz-hero-stroke path {
  fill: none; stroke: var(--qbz-accent); stroke-width: 1.6; stroke-linecap: round;
  stroke-dasharray: 260; stroke-dashoffset: 260;
  animation: qbz-stroke 2.6s cubic-bezier(.35,0,.2,1) forwards .5s;
}
@keyframes qbz-stroke { to { stroke-dashoffset: 0; } }

/* ==========================================================================
   6. Layout
   ========================================================================== */

.qbz-shell {
  position: relative; z-index: 1;
  max-width: var(--qbz-content-width);
  margin: 0 auto;
  padding: 0 48px var(--qbz-space-xl);
  display: grid;
  grid-template-columns: minmax(0,1fr) 300px;
  gap: 90px;
  align-items: start;
}
.qbz-shell.sidebar-left { grid-template-columns: 300px minmax(0,1fr); }
.qbz-shell.sidebar-left .qbz-main { order: 2; }
.qbz-shell.sidebar-left .qbz-sidebar { order: 1; }
.qbz-shell.no-sidebar { grid-template-columns: minmax(0,1fr); max-width: 760px; }

/* ==========================================================================
   7. Posts — open on the paper, no boxes
   ========================================================================== */

.qbz-post { position: relative; margin-bottom: var(--qbz-post-gap); }

/* optional card treatments, off by default */
.qbz-post.style-paper {
  background: var(--qbz-paper-deep);
  border: 1px solid var(--qbz-line);
  border-radius: var(--qbz-radius);
  padding: 40px 44px;
}
.qbz-post.style-bordered {
  border: 1px solid var(--qbz-line);
  border-radius: var(--qbz-radius);
  padding: 40px 44px;
}

/* --- arrival ---------------------------------------------------------
   Ink settling into paper. A post's parts arrive in sequence rather than
   the whole block appearing at once, so the eye is carried down the page
   instead of being handed a finished slab. */
.qbz-reveal { opacity: 0; transform: translateY(var(--qbz-reveal-y)); filter: blur(7px); }
.qbz-reveal.is-visible {
  opacity: 1; transform: translateY(0); filter: blur(0);
  transition: opacity 1.1s cubic-bezier(.25,.6,.3,1),
              transform 1.1s cubic-bezier(.25,.6,.3,1),
              filter 1.1s cubic-bezier(.25,.6,.3,1);
}
.no-motion .qbz-reveal { opacity: 1; transform: none; filter: none; }

.qbz-stagger > .qbz-thumb,
.qbz-stagger > .qbz-meta,
.qbz-stagger > .entry-title,
.qbz-stagger > .qbz-excerpt,
.qbz-stagger > .qbz-readmore {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(6px);
}
.qbz-stagger.is-visible > .qbz-thumb,
.qbz-stagger.is-visible > .qbz-meta,
.qbz-stagger.is-visible > .entry-title,
.qbz-stagger.is-visible > .qbz-excerpt,
.qbz-stagger.is-visible > .qbz-readmore {
  opacity: 1; transform: translateY(0); filter: blur(0);
  transition: opacity 1s cubic-bezier(.25,.6,.3,1),
              transform 1s cubic-bezier(.25,.6,.3,1),
              filter 1s cubic-bezier(.25,.6,.3,1);
}
.qbz-stagger.is-visible > .qbz-thumb      { transition-delay: 0ms; }
.qbz-stagger.is-visible > .qbz-meta       { transition-delay: 110ms; }
.qbz-stagger.is-visible > .entry-title    { transition-delay: 200ms; }
.qbz-stagger.is-visible > .qbz-excerpt    { transition-delay: 300ms; }
.qbz-stagger.is-visible > .qbz-readmore   { transition-delay: 400ms; }
.no-motion .qbz-stagger > * { opacity: 1; transform: none; filter: none; }

/* sidebar widgets arrive one after another, not as a column */
.qbz-sidebar .widget.qbz-reveal:nth-child(1).is-visible { transition-delay: 0ms; }
.qbz-sidebar .widget.qbz-reveal:nth-child(2).is-visible { transition-delay: 90ms; }
.qbz-sidebar .widget.qbz-reveal:nth-child(3).is-visible { transition-delay: 180ms; }
.qbz-sidebar .widget.qbz-reveal:nth-child(4).is-visible { transition-delay: 270ms; }

.qbz-thumb {
  display: block; overflow: hidden; margin-bottom: 30px;
  border-radius: var(--qbz-radius); position: relative;
}
.qbz-thumb img { width: 100%; transition: transform 1.4s cubic-bezier(.2,.7,.3,1); }
.qbz-hover-on .qbz-thumb:hover img { transform: scale(1.04); }
/* a soft ink veil across the base of every image, lifting on hover */
.qbz-thumb::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(42,38,32,.16), transparent 55%);
  transition: opacity .9s ease;
}
.qbz-hover-on .qbz-thumb:hover::after { opacity: .35; }

/* images step left and right so the column never marches in a straight line */
.qbz-post.offset-a .qbz-thumb { margin-right: 8%; }
.qbz-post.offset-b .qbz-thumb { margin-left: 8%; }

.qbz-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--qbz-gold); margin-bottom: 16px;
}
.qbz-meta a { color: var(--qbz-gold); }
.qbz-meta a:hover { color: var(--qbz-accent); }
.qbz-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--qbz-gold); flex: none; opacity: .8; }

.qbz-post .entry-title { font-size: 32px; font-weight: 400; margin: 0 0 18px; max-width: 22ch; }
.qbz-shell.no-sidebar .qbz-post .entry-title { max-width: none; }
.qbz-post .entry-title a { color: var(--qbz-ink); transition: color .35s ease; }
.qbz-post .entry-title a:hover { color: var(--qbz-accent); }

.qbz-excerpt { color: var(--qbz-ink-soft); font-size: 16.5px; margin: 0 0 24px; max-width: 62ch; }

.qbz-readmore {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--qbz-accent);
}
.qbz-readmore .line {
  display: block; width: 26px; height: 1px; background: currentColor;
  transition: width .45s cubic-bezier(.4,0,.2,1);
}
.qbz-readmore:hover { color: var(--qbz-ink); }
.qbz-readmore:hover .line { width: 46px; }

/* --- the flowing stroke between posts ---------------------------------- */
.qbz-flow {
  display: block; width: 100%; height: 26px;
  margin: 0 0 var(--qbz-post-gap);
  overflow: visible; opacity: .5;
}
.qbz-flow path { fill: none; stroke: var(--qbz-line-strong); stroke-width: 1; stroke-linecap: round; }
/* two waves easing past one another reads as current, not decoration */
.qbz-flow .w1 { animation: qbz-flow-a 26s ease-in-out infinite; }
.qbz-flow .w2 { opacity: .5; animation: qbz-flow-b 34s ease-in-out infinite; }
@keyframes qbz-flow-a { 0%,100% { transform: translateX(0); } 50% { transform: translateX(-22px); } }
@keyframes qbz-flow-b { 0%,100% { transform: translateX(0); } 50% { transform: translateX(26px); } }

/* ==========================================================================
   7b. The ink thread — one continuous line running the length of the page
   ========================================================================== */

.qbz-main, .qbz-sidebar { position: relative; }

.qbz-thread-wrap {
  position: absolute;
  top: 0; bottom: 0;
  left: -58px;
  width: 54px;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}
.qbz-sidebar .qbz-thread-wrap { left: -34px; width: 30px; }

.qbz-thread { display: block; overflow: visible; width: 100%; }
.qbz-thread-line {
  fill: none;
  stroke: var(--qbz-accent);
  stroke-width: 1.1;
  stroke-linecap: round;
  opacity: .34;
}
.qbz-sidebar .qbz-thread-line { stroke: var(--qbz-line-strong); opacity: .8; stroke-width: 1; }

/* a node sits beside each post, filling as the line reaches it */
.qbz-thread-node {
  fill: var(--qbz-paper);
  stroke: var(--qbz-accent);
  stroke-width: 1.2;
  opacity: .3;
  transition: opacity .7s ease, r .7s cubic-bezier(.3,.7,.3,1), fill .7s ease;
}
.qbz-thread-node.lit { opacity: 1; fill: var(--qbz-accent); }
.qbz-sidebar .qbz-thread-node { stroke: var(--qbz-gold); }
.qbz-sidebar .qbz-thread-node.lit { fill: var(--qbz-gold); }

/* without JS the line simply sits there, fully drawn and static */
.no-js .qbz-thread-line { opacity: .2; }

/* ==========================================================================
   8. Single post / page
   ========================================================================== */

.qbz-entry-header { margin-bottom: var(--qbz-space-md); }
.qbz-entry-header .entry-title { font-size: 44px; font-weight: 400; margin-bottom: 18px; max-width: none; }

.qbz-entry-content { font-size: 17.5px; line-height: 1.9; }
.qbz-entry-content h2 { font-size: 30px; margin-top: 1.9em; }
.qbz-entry-content h3 { font-size: 24px; margin-top: 1.7em; }
.qbz-entry-content ul, .qbz-entry-content ol { padding-left: 1.35em; margin-bottom: 1.5em; }
.qbz-entry-content li { margin-bottom: .5em; }
.qbz-entry-content img { border-radius: var(--qbz-radius); margin: 2em 0; }
.qbz-entry-content a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: rgba(140,26,21,.4); }
.qbz-entry-content a:hover { text-decoration-color: currentColor; }
.qbz-dropcap-on .qbz-entry-content > p:first-of-type::first-letter {
  font-family: var(--qbz-font-display);
  font-size: 3.4em; line-height: .86; float: left;
  margin: .08em .12em 0 0; color: var(--qbz-accent);
}

.qbz-featured { margin-bottom: var(--qbz-space-md); border-radius: var(--qbz-radius); overflow: hidden; }

.qbz-enso-divider { display: flex; align-items: center; gap: 22px; margin: var(--qbz-space-lg) 0 var(--qbz-space-md); }
.qbz-enso-divider::before, .qbz-enso-divider::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, var(--qbz-line));
}
.qbz-enso-divider::after { background: linear-gradient(to left, transparent, var(--qbz-line)); }
.qbz-enso-divider svg { width: 24px; height: 24px; flex: none; opacity: .7; }
.qbz-enso-divider svg path { fill: none; stroke: var(--qbz-accent); stroke-width: 6; stroke-linecap: round; }

.qbz-post-tags { margin-top: 10px; font-size: 12px; }
.qbz-post-tags a {
  display: inline-block; padding: 5px 15px; margin: 0 7px 7px 0;
  border: 1px solid var(--qbz-line); border-radius: 20px;
  color: var(--qbz-ink-soft); letter-spacing: .06em;
  transition: border-color .35s ease, color .35s ease;
}
.qbz-post-tags a:hover { border-color: var(--qbz-accent); color: var(--qbz-accent); }

.qbz-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: var(--qbz-space-md); }
.qbz-post-nav a {
  display: block; padding: 26px 0 0;
  border-top: 1px solid var(--qbz-line);
  color: var(--qbz-ink); font-family: var(--qbz-font-display);
  font-size: 18px; line-height: 1.45; transition: border-color .4s ease, color .4s ease;
}
.qbz-post-nav a:hover { border-color: var(--qbz-accent); color: var(--qbz-accent); }
.qbz-post-nav .label {
  display: block; font-family: var(--qbz-font-body);
  font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--qbz-accent); margin-bottom: 10px;
}
.qbz-post-nav .next { text-align: right; }

/* ==========================================================================
   9. Comments
   ========================================================================== */

.qbz-comments { margin-top: var(--qbz-space-lg); }
.qbz-comments .comments-title, .qbz-comments .comment-reply-title {
  font-family: var(--qbz-font-body);
  font-size: 11.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--qbz-accent); margin-bottom: 28px;
  display: flex; align-items: center; gap: 12px;
}
.qbz-comments .comments-title::before, .qbz-comments .comment-reply-title::before {
  content: ""; width: 20px; height: 1px; background: var(--qbz-accent);
}
.qbz-comments ol.comment-list { list-style: none; margin: 0 0 var(--qbz-space-md); padding: 0; }
.qbz-comments ol.children { list-style: none; margin: 0; padding-left: 32px; }
.qbz-comments .comment-body { padding: 26px 0; border-bottom: 1px solid var(--qbz-line); }
.qbz-comments .comment-author { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.qbz-comments .comment-author img { border-radius: 50%; }
.qbz-comments .comment-author .fn { font-weight: 600; font-style: normal; color: var(--qbz-ink); }
.qbz-comments .comment-metadata { font-size: 12px; letter-spacing: .06em; color: var(--qbz-gold); margin-bottom: 12px; }
.qbz-comments .comment-metadata a { color: var(--qbz-gold); }
.qbz-comments .reply { font-size: 11.5px; text-transform: uppercase; letter-spacing: .16em; }

.qbz-comments input[type="text"], .qbz-comments input[type="email"],
.qbz-comments input[type="url"], .qbz-comments textarea {
  width: 100%; padding: 14px 18px;
  border: 1px solid var(--qbz-line); border-radius: var(--qbz-radius);
  background: transparent; font-family: var(--qbz-font-body); font-size: 15.5px;
  color: var(--qbz-ink); margin-bottom: 16px;
  transition: border-color .35s ease;
}
.qbz-comments input:focus, .qbz-comments textarea:focus { border-color: var(--qbz-accent); outline: none; }
.qbz-comments textarea { min-height: 160px; }
.qbz-comments .submit, .qbz-btn {
  display: inline-block; padding: 14px 34px;
  border: 1px solid var(--qbz-accent); border-radius: 30px;
  background: transparent; color: var(--qbz-accent);
  font-family: var(--qbz-font-body); font-size: 11.5px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; cursor: pointer;
  transition: background .4s ease, color .4s ease;
}
.qbz-comments .submit:hover, .qbz-btn:hover { background: var(--qbz-accent); color: var(--qbz-paper); }

/* ==========================================================================
   10. Sidebar — open, hairline-separated, no boxes
   ========================================================================== */

.qbz-sidebar { display: flex; flex-direction: column; gap: 52px; }
.qbz-sidebar .widget, .qbz-footer-widgets .widget { font-size: 15px; }

.qbz-sidebar .widget-title, .qbz-sidebar .widgettitle,
.qbz-sidebar .widget h2, .qbz-sidebar .widget h3,
.qbz-footer-widgets .widget-title, .qbz-footer-widgets .widget h2, .qbz-footer-widgets .widget h3 {
  font-family: var(--qbz-font-body);
  font-size: 10.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
  color: var(--qbz-accent); margin: 0 0 22px;
  display: flex; align-items: center; gap: 12px;
}
/* the rule trails off to the right instead of boxing the widget in */
.qbz-sidebar .widget-title::after, .qbz-sidebar .widgettitle::after,
.qbz-sidebar .widget h2::after, .qbz-sidebar .widget h3::after,
.qbz-footer-widgets .widget-title::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(to right, var(--qbz-line), transparent);
}

.qbz-sidebar .widget ul, .qbz-footer-widgets .widget ul { list-style: none; margin: 0; padding: 0; }
.qbz-sidebar .widget li, .qbz-footer-widgets .widget li {
  padding: 11px 0; border-bottom: 1px solid var(--qbz-line); line-height: 1.55;
}
.qbz-sidebar .widget li:last-child, .qbz-footer-widgets .widget li:last-child { border-bottom: none; padding-bottom: 0; }
.qbz-sidebar .widget li:first-child { padding-top: 0; }
.qbz-sidebar .widget li a, .qbz-footer-widgets .widget li a { color: var(--qbz-ink-soft); }
.qbz-sidebar .widget li a:hover, .qbz-footer-widgets .widget li a:hover { color: var(--qbz-accent); }
.qbz-sidebar .widget li ul { padding-left: 16px; margin-top: 10px; }
.qbz-sidebar .widget li ul li:first-child { padding-top: 11px; border-top: 1px solid var(--qbz-line); }

.qbz-sidebar .widget_categories li > a::before,
.qbz-sidebar .widget_archive li > a::before {
  content: ""; display: inline-block;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--qbz-moss); margin-right: 12px; vertical-align: middle;
}

.qbz-sidebar .widget blockquote {
  font-family: var(--qbz-font-display); font-size: 20px; font-style: italic;
  border: none; padding: 0; margin: 0 0 14px; color: var(--qbz-ink); line-height: 1.6;
}
.qbz-sidebar .widget blockquote::before { display: none; }
.qbz-sidebar .widget cite { font-size: 12.5px; letter-spacing: .08em; color: var(--qbz-gold); font-style: normal; }
.qbz-sidebar .widget p { font-size: 15px; color: var(--qbz-ink-soft); }
.qbz-sidebar .widget p:last-child { margin-bottom: 0; }

/* --- widget form fields ---
   The submit rules are scoped away from search forms so the search button
   can never inherit the full-width treatment. */
.qbz-sidebar .widget input[type="text"],
.qbz-sidebar .widget input[type="email"],
.qbz-sidebar .widget select,
.qbz-footer-widgets .widget input[type="text"],
.qbz-footer-widgets .widget input[type="email"],
.qbz-footer-widgets .widget select {
  width: 100%; padding: 13px 18px;
  border: 1px solid var(--qbz-line); border-radius: 26px;
  background: transparent; font-family: var(--qbz-font-body);
  font-size: 14.5px; color: var(--qbz-ink); margin-bottom: 12px;
  transition: border-color .35s ease;
}
.qbz-sidebar .widget input:focus, .qbz-sidebar .widget select:focus { border-color: var(--qbz-accent); outline: none; }

.qbz-sidebar .widget form:not(.qbz-searchform):not(.wp-block-search) input[type="submit"],
.qbz-sidebar .widget form:not(.qbz-searchform):not(.wp-block-search) button[type="submit"],
.qbz-footer-widgets .widget form:not(.qbz-searchform):not(.wp-block-search) input[type="submit"] {
  width: 100%; padding: 13px 18px;
  border: 1px solid var(--qbz-moss); border-radius: 26px;
  background: transparent; color: var(--qbz-moss);
  font-family: var(--qbz-font-body); font-size: 11px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; cursor: pointer;
  transition: background .4s ease, color .4s ease;
}
.qbz-sidebar .widget form:not(.qbz-searchform):not(.wp-block-search) input[type="submit"]:hover,
.qbz-sidebar .widget form:not(.qbz-searchform):not(.wp-block-search) button[type="submit"]:hover,
.qbz-footer-widgets .widget form:not(.qbz-searchform):not(.wp-block-search) input[type="submit"]:hover {
  background: var(--qbz-moss); color: var(--qbz-paper);
}

/* ==========================================================================
   11. Search form — one pill holding field and button
        Covers the classic widget (searchform.php) and the block widget.
   ========================================================================== */

.qbz-searchform,
.qbz-sidebar .qbz-searchform,
.qbz-sidebar .wp-block-search__inside-wrapper,
.wp-block-search__inside-wrapper {
  display: flex; align-items: center; gap: 0;
  width: 100%; padding: 0;
  border: 1px solid var(--qbz-line);
  border-radius: 30px;
  background: transparent;
  overflow: hidden;
  transition: border-color .35s ease;
}
.qbz-searchform:focus-within,
.qbz-sidebar .qbz-searchform:focus-within,
.qbz-sidebar .wp-block-search__inside-wrapper:focus-within,
.wp-block-search__inside-wrapper:focus-within { border-color: var(--qbz-accent); }

.qbz-searchform input[type="search"],
.qbz-sidebar .widget .qbz-searchform input[type="search"],
.qbz-sidebar .widget .wp-block-search__input,
.wp-block-search__input {
  flex: 1 1 auto;
  min-width: 0;                       /* lets the field shrink instead of shoving the button out */
  width: auto;
  margin: 0;
  padding: 14px 6px 14px 22px;
  border: none; border-radius: 0;
  background: transparent;
  font-family: var(--qbz-font-body);
  font-size: 14.5px; color: var(--qbz-ink);
  box-shadow: none;
}
.qbz-searchform input[type="search"]:focus,
.qbz-sidebar .widget .qbz-searchform input[type="search"]:focus,
.qbz-sidebar .widget .wp-block-search__input:focus,
.wp-block-search__input:focus { outline: none; border: none; box-shadow: none; }

.qbz-searchform button,
.qbz-sidebar .widget .qbz-searchform button,
.qbz-sidebar .widget .wp-block-search__button,
.wp-block-search__button {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  margin: 0; padding: 0;
  border: none; border-radius: 0;
  background: transparent;
  color: var(--qbz-accent);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 0; letter-spacing: 0; text-transform: none;
  transition: background .35s ease, color .35s ease;
}
.qbz-searchform button:hover,
.qbz-sidebar .widget .qbz-searchform button:hover,
.qbz-sidebar .widget .wp-block-search__button:hover,
.wp-block-search__button:hover { background: var(--qbz-accent); color: var(--qbz-paper); }

.qbz-searchform button svg,
.qbz-sidebar .widget .qbz-searchform button svg { width: 17px; height: 17px; display: block; }

.wp-block-search .wp-block-search__label { display: none; }

/* ==========================================================================
   12. Pagination
   ========================================================================== */

.qbz-pagination { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: var(--qbz-space-lg); }
.qbz-pagination .page-numbers {
  min-width: 42px; height: 42px; padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center;
  border-bottom: 1px solid transparent;
  font-size: 14px; letter-spacing: .06em; color: var(--qbz-ink-soft);
  transition: border-color .4s ease, color .4s ease;
}
.qbz-pagination .page-numbers:hover,
.qbz-pagination .page-numbers.current { border-color: var(--qbz-accent); color: var(--qbz-accent); }

/* ==========================================================================
   13. Footer — sumi-e ridges drifting in mist
   ========================================================================== */

.qbz-ridges {
  position: relative; z-index: 1;
  width: 100%; height: 230px;
  margin-top: var(--qbz-space-xl);
  overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 42%);
  mask-image: linear-gradient(to bottom, transparent, #000 42%);
}
.qbz-ridges svg { position: absolute; bottom: 0; left: -8%; width: 116%; height: 100%; }
/* three ranges at different depths, each drifting at its own pace */
.qbz-ridges .range-3 { opacity: .10; animation: qbz-range 150s ease-in-out infinite; }
.qbz-ridges .range-2 { opacity: .16; animation: qbz-range 105s ease-in-out infinite reverse; }
.qbz-ridges .range-1 { opacity: .24; animation: qbz-range  78s ease-in-out infinite; }
.qbz-ridges .range-parallax { transition: transform .1s linear; }
.qbz-ridges path { fill: var(--qbz-ink); }
@keyframes qbz-range {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(-5%); }
}

/* mist bands sliding across the ridges */
.qbz-mist {
  position: absolute; left: -20%; width: 140%; height: 28px;
  border-radius: 50%; filter: blur(18px);
  background: var(--qbz-paper); opacity: .55;
}
.qbz-mist.m1 { bottom: 56px;  animation: qbz-mist 68s ease-in-out infinite; }
.qbz-mist.m2 { bottom: 106px; height: 18px; opacity: .4; animation: qbz-mist 92s ease-in-out infinite reverse; }
@keyframes qbz-mist {
  0%, 100% { transform: translateX(-4%); }
  50%      { transform: translateX(6%); }
}

.qbz-footer {
  position: relative; z-index: 1;
  padding: 0 48px var(--qbz-space-lg);
  text-align: center; font-size: 13px; letter-spacing: .04em;
  color: var(--qbz-ink-soft);
}
.qbz-footer a { color: var(--qbz-ink-soft); text-decoration: underline; text-underline-offset: 4px; }
.qbz-footer a:hover { color: var(--qbz-accent); }
.qbz-footer-enso { width: 28px; height: 28px; margin: 0 auto 16px; opacity: .6; }
.qbz-footer-enso path { fill: none; stroke: var(--qbz-accent); stroke-width: 6; stroke-linecap: round; }

.qbz-footer-widgets {
  max-width: var(--qbz-content-width); margin: 0 auto;
  padding: var(--qbz-space-md) 48px 10px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 48px; text-align: left;
}

.qbz-top {
  position: fixed; right: 28px; bottom: 28px;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--qbz-line);
  background: var(--qbz-paper); color: var(--qbz-ink-soft);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .4s ease, transform .4s ease, visibility .4s, border-color .4s ease, color .4s ease;
  z-index: 40;
}
.qbz-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.qbz-top:hover { border-color: var(--qbz-accent); color: var(--qbz-accent); }
.qbz-top svg { width: 16px; height: 16px; }

/* ==========================================================================
   14. Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .qbz-shell, .qbz-shell.sidebar-left { grid-template-columns: minmax(0,1fr); gap: var(--qbz-space-lg); }
  .qbz-shell.sidebar-left .qbz-main { order: 1; }
  .qbz-shell.sidebar-left .qbz-sidebar { order: 2; }
  .qbz-post .entry-title { max-width: none; }
  .qbz-post.offset-a .qbz-thumb, .qbz-post.offset-b .qbz-thumb { margin-left: 0; margin-right: 0; }
}

@media (max-width: 782px) {
  /* Phones get a tighter rhythm — the desktop spacing reads as emptiness
     rather than calm on a 380px screen. */
  :root {
    --qbz-space-xl: 60px;
    --qbz-space-lg: 40px;
    --qbz-post-gap: 52px;
    --qbz-base-size: 16px;
  }

  .qbz-header-inner { padding: 12px 20px; flex-wrap: wrap; }
  /* backdrop blur is expensive on older phones; solid paper instead */
  .qbz-header.has-blur { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--qbz-paper); }

  .qbz-nav-toggle { display: flex; }
  .qbz-nav { flex-basis: 100%; max-height: 0; overflow: hidden; transition: max-height .5s ease; }
  .qbz-nav.is-open { max-height: 680px; }
  .qbz-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 0 6px; }
  .qbz-nav li { border-bottom: 1px solid var(--qbz-line); }
  .qbz-nav li:last-child { border-bottom: none; }
  /* 48px tap target, comfortably above the 44px minimum */
  .qbz-nav a { display: block; padding: 15px 2px; font-size: 13.5px; }
  .qbz-nav a::after { display: none; }
  .qbz-nav ul ul { position: static; opacity: 1; visibility: visible; transform: none; border: none; box-shadow: none; background: transparent; padding: 0 0 8px 18px; }

  .qbz-logo-wrap { width: var(--qbz-logo-size-mobile); height: var(--qbz-logo-size-mobile); }
  .qbz-header.qbz-shrink.qbz-scrolled .qbz-logo-wrap {
    width: calc(var(--qbz-logo-size-mobile) * .8);
    height: calc(var(--qbz-logo-size-mobile) * .8);
  }

  .qbz-hero { padding: var(--qbz-space-xl) 20px var(--qbz-space-lg); }
  .qbz-hero h1 { font-size: 29px; line-height: 1.36; }
  .qbz-hero-lede { font-size: 15.5px; }
  .qbz-hero-enso { width: 320px; height: 320px; }
  .qbz-hero-eyebrow { letter-spacing: .18em; font-size: 10px; margin-bottom: 22px; }
  .qbz-hero-eyebrow::before, .qbz-hero-eyebrow::after { width: 22px; }
  .qbz-hero-wave { height: 36px; }
  .qbz-hero-stroke { width: 150px; margin-top: 28px; }

  .qbz-shell { padding: 0 20px var(--qbz-space-xl); }

  /* the thread survives on phones — thinner, tucked into the margin */
  .qbz-thread-wrap { left: -15px; width: 13px; }
  .qbz-sidebar .qbz-thread-wrap { left: -15px; width: 13px; }
  .qbz-thread-line { stroke-width: .9; opacity: .26; }

  .qbz-post.style-paper, .qbz-post.style-bordered { padding: 26px 20px; }
  .qbz-post .entry-title { font-size: 24px; }
  .qbz-excerpt { font-size: 15.5px; }
  .qbz-flow { height: 18px; }
  /* less travel on a short screen, so nothing arrives from off-canvas */
  .qbz-stagger > .qbz-thumb, .qbz-stagger > .qbz-meta,
  .qbz-stagger > .entry-title, .qbz-stagger > .qbz-excerpt,
  .qbz-stagger > .qbz-readmore { transform: translateY(12px); filter: blur(4px); }

  .qbz-entry-header .entry-title { font-size: 29px; }
  .qbz-entry-content { font-size: 16.5px; line-height: 1.8; }
  .qbz-dropcap-on .qbz-entry-content > p:first-of-type::first-letter { font-size: 2.9em; }
  .qbz-post-nav { grid-template-columns: 1fr; }
  .qbz-post-nav .next { text-align: left; }
  .qbz-post-tags a { padding: 8px 16px; }   /* thumb-sized */

  .qbz-sidebar { gap: 40px; }
  .qbz-searchform input[type="search"] { font-size: 16px; }  /* 16px stops iOS zooming on focus */
  .qbz-sidebar .widget input[type="text"],
  .qbz-sidebar .widget input[type="email"],
  .qbz-sidebar .widget select { font-size: 16px; }
  .qbz-comments input, .qbz-comments textarea { font-size: 16px; }

  /* fewer motes, cheaper blurs — battery and paint cost */
  .qbz-motes span:nth-child(n+6) { display: none; }
  .qbz-inkwash span { filter: blur(52px); }
  .qbz-inkwash .a { width: 340px; height: 340px; }
  .qbz-inkwash .b { width: 420px; height: 420px; }
  .qbz-inkwash .c { width: 300px; height: 300px; }

  .qbz-ridges { height: 140px; }
  .qbz-mist { filter: blur(12px); }
  .qbz-mist.m1 { bottom: 32px; }
  .qbz-mist.m2 { bottom: 66px; }

  .qbz-footer { padding: 0 20px var(--qbz-space-lg); }
  .qbz-footer-widgets { padding: var(--qbz-space-md) 20px 10px; gap: 34px; }
  .qbz-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
  .qbz-pagination { gap: 8px; }
  .qbz-pagination .page-numbers { min-width: 44px; height: 44px; }
}

/* very narrow phones */
@media (max-width: 380px) {
  .qbz-hero h1 { font-size: 26px; }
  .qbz-post .entry-title { font-size: 22px; }
  .qbz-thread-wrap, .qbz-sidebar .qbz-thread-wrap { left: -12px; width: 10px; }
  .qbz-shell { padding-left: 16px; padding-right: 16px; }
  .qbz-hero { padding-left: 16px; padding-right: 16px; }
}

/* devices without hover (phones, tablets): don't hide anything behind it */
@media (hover: none) {
  .qbz-thumb::after { opacity: .7; }
  .qbz-readmore .line { width: 34px; }
  .qbz-logo-wrap.has-glow::before { opacity: .6; }
}

/* ==========================================================================
   15. Motion preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .qbz-reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .qbz-enso-ring path { stroke-dashoffset: 16; }
  .qbz-hero-stroke path { stroke-dashoffset: 0; }
  .qbz-motes { display: none; }
  .qbz-thread-line { stroke-dashoffset: 0 !important; }
  .qbz-thread-node { opacity: .8 !important; }
  .qbz-stagger > * { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ==========================================================================
   16. WordPress core classes
   ========================================================================== */

.alignleft  { float: left;  margin: .4em 2em 1.4em 0; }
.alignright { float: right; margin: .4em 0 1.4em 2em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.no-sidebar .alignwide { margin-left: -70px; margin-right: -70px; max-width: calc(100% + 140px); }
.wp-caption { max-width: 100%; }
.wp-caption-text, .wp-block-image figcaption {
  font-size: 12.5px; letter-spacing: .06em; color: var(--qbz-gold);
  text-align: center; margin-top: .8em;
}
.sticky .entry-title::after { content: " \25CF"; color: var(--qbz-accent); font-size: .55em; vertical-align: middle; }
