.hb-doc { display: flex; flex-direction: column; gap: 0; }
.hb { position: relative; min-width: 0; margin: 0 0 1.15em; }
.hb:last-child { margin-bottom: 0; }
.hb > :last-child { margin-bottom: 0; }
.hb.w-25 { width: 25%; } .hb.w-33 { width: 33.333%; } .hb.w-50 { width: 50%; } .hb.w-66 { width: 66.666%; } .hb.w-75 { width: 75%; } .hb.w-100 { width: 100%; }
.hb.float-left { float: left; margin: .3em 1.4em 1em 0; } .hb.float-right { float: right; margin: .3em 0 1em 1.4em; }
.hb.w-bleed { width: calc(100% + 2 * clamp(14px, 4vw, 64px)); margin-left: calc(-1 * clamp(14px, 4vw, 64px)); max-width: none; }
.hb-doc::after { content: ""; display: block; clear: both; }
.hb-quote blockquote { margin: 0; padding: .2em 0 .2em 1.2em; border-left: 3px solid var(--ink); font-family: var(--f-serif); font-size: 1.15em; line-height: 1.55; }
.hb-quote cite { display: block; margin-top: .5em; font: .62rem var(--f-mono); letter-spacing: .22em; color: var(--mid); text-transform: uppercase; font-style: normal; }
.hb-quote.is-pull blockquote { border: 0; padding: .4em 0; font-size: 1.6em; line-height: 1.25; font-family: var(--f-display); text-transform: lowercase; }
.hb-quote.is-pull blockquote::first-letter { text-transform: uppercase; }
.hb-divider { height: 26px; margin: 1.6em 0; }
.hb-divider hr { border: 0; height: 100%; margin: 0; background:
  linear-gradient(var(--line) 0 0) center / 100% 1px no-repeat,
  repeating-linear-gradient(90deg, transparent 0 14px, var(--ink) 14px 15px, transparent 15px 28px) center / 100% 60% no-repeat; opacity: .8; }
.hb-divider.is-plain hr { background: var(--line-dim); height: 1px; margin-top: 12px; }
.hb-divider.is-dots hr { background: radial-gradient(circle, var(--ink) 0 1.5px, transparent 2px) center / 10px 10px repeat-x; height: 10px; margin-top: 8px; }
.hb-image figure, .hb-video figure, .hb-audio figure, .hb-embed figure, .hb-gallery figure { margin: 0; }
.hb-image img { display: block; width: 100%; height: auto; }
.hb-image.is-plate img { border: 1px solid var(--line); padding: 6px; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line-dim) inset; }
.hb-image.is-plate figure { position: relative; }
.hb-image.is-plate figure::before, .hb-image.is-plate figure::after { content: ""; position: absolute; width: 14px; height: 5px; border: 1px solid var(--ink); background: var(--bg); top: -3px; left: 18px; transform: rotate(-8deg); }
.hb-image.is-plate figure::after { left: auto; right: 18px; top: auto; bottom: 10px; transform: rotate(6deg); }
.hb-image.is-round img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.hb figcaption { margin-top: 8px; font: .66rem/1.5 var(--f-mono); letter-spacing: .14em; color: var(--mid); text-transform: uppercase; }
.hb figcaption small { display: block; letter-spacing: .08em; opacity: .7; text-transform: none; }
.hb-video video, .hb-embed .hb-frame { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); }
.hb-video video { filter: grayscale(1) contrast(1.05); }
.hb-embed .hb-frame { position: relative; overflow: hidden; }
.hb-embed .hb-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1); }
.hb-embed .hb-cover { position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; background: var(--bg-2) url() center / cover; border: 0; color: var(--ink); font: 700 .7rem var(--f-mono); letter-spacing: .3em; }
.hb-embed .hb-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); opacity: .6; }
.hb-embed .hb-cover span { position: relative; padding: 12px 18px; border: 1px solid var(--ink); background: var(--bg); }
.hb-audio .hb-tape { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 12px 14px; border: 1px solid var(--line-dim); }
.hb-audio .hb-tape i { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: radial-gradient(circle, var(--ink) 0 3px, transparent 4px 10px, var(--line-dim) 11px 12px, transparent 13px), conic-gradient(var(--line-dim) 0 10%, transparent 10% 33%, var(--line-dim) 33% 43%, transparent 43% 66%, var(--line-dim) 66% 76%, transparent 76%); }
.hb-audio.is-playing .hb-tape i { animation: hb-reel 1.2s linear infinite; }
@keyframes hb-reel { to { transform: rotate(-360deg); } }
.hb-audio audio { width: 100%; filter: grayscale(1); }
:root[data-polarity="dark"] .hb-audio audio { filter: grayscale(1) invert(.88); }
.hb-gallery .hb-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: var(--gap, 8px); }
.hb-gallery .hb-grid img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; display: block; cursor: zoom-in; }
.hb-gallery.is-masonry .hb-grid img { aspect-ratio: auto; }
.hb-light { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(0,0,0,.92); padding: 20px; cursor: zoom-out; }
.hb-light img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hb-cols .hb-row { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: var(--gap, 24px); align-items: start; }
.hb-cols .hb-col { min-width: 0; }
.hb-spacer { height: calc(var(--mo, 1) * 0px + var(--h, 32px)); margin: 0; }
.hb-spacer[data-h="s"] { --h: 16px; } .hb-spacer[data-h="m"] { --h: 32px; } .hb-spacer[data-h="l"] { --h: 64px; } .hb-spacer[data-h="xl"] { --h: 128px; }
.hb-card .hb-cardbody { position: relative; max-width: 620px; padding: 22px 24px 60px; font-family: var(--f-mono); font-size: .9rem; line-height: 28px;
  border: 1px solid var(--line); border-radius: 3px 7px 4px 9px / 8px 3px 9px 4px; background: repeating-linear-gradient(var(--bg-2) 0 27px, var(--line-dim) 27px 28px); transform: rotate(-.4deg); }
.hb-card .hb-cardhead { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; font-size: .6rem; letter-spacing: .24em; color: var(--mid); border-bottom: 2px solid var(--line); padding-bottom: 8px; }
.hb-card p { margin: 0 0 .4em; }
.hb-stamp { position: absolute; right: 18px; bottom: 14px; font: 700 .8rem/1 var(--f-mono); letter-spacing: .3em; border: 2px solid var(--ink); padding: 6px 8px; transform: rotate(9deg); opacity: .6; pointer-events: none; }
.hb-memo .hb-memobody { position: relative; padding: 24px 26px 56px; font-family: var(--f-mono); font-size: .88rem; line-height: 1.7; background: var(--bg-2); border: 1px solid var(--line-dim); box-shadow: 4px 4px 0 var(--line-dim); }
.hb-memo .hb-memohead { font-size: .6rem; letter-spacing: .26em; color: var(--mid); margin-bottom: 14px; display: grid; gap: 3px; }
.hb-memo .hb-memohead b { color: var(--ink); }
.hb-memo p { margin: 0 0 .9em; }
.hb-ticker .hb-strip { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px 0; font: .66rem var(--f-mono); letter-spacing: .26em; text-transform: uppercase; white-space: nowrap; }
.hb-ticker .hb-strip span { display: inline-block; padding-right: 60px; animation: hb-tick 24s linear infinite; }
@keyframes hb-tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .hb-ticker .hb-strip span { animation: none; white-space: normal; } }
.hb-mono pre { margin: 0; padding: 14px 16px; overflow: auto; font: .8rem/1.6 var(--f-mono); letter-spacing: .04em; border: 1px solid var(--line-dim); background: var(--bg-2); white-space: pre-wrap; overflow-wrap: anywhere; counter-reset: ln; }
.hb-mono.is-numbered pre { padding-left: 3.4em; }
.hb-mono.is-numbered .ln { position: relative; display: block; }
.hb-mono.is-numbered .ln::before { counter-increment: ln; content: counter(ln, decimal-leading-zero); position: absolute; left: -2.8em; width: 2.2em; text-align: right; color: var(--mid); }
.hb-mono.is-cipher pre { letter-spacing: .18em; font-size: .86rem; }
.hb-table table { width: 100%; border-collapse: collapse; font-size: .82rem; font-family: var(--f-mono); }
.hb-table th { text-align: left; font-size: .58rem; letter-spacing: .24em; color: var(--mid); border-bottom: 2px solid var(--line); padding: 6px 8px; }
.hb-table td { padding: 6px 8px; border-bottom: 1px dashed var(--line-dim); vertical-align: top; overflow-wrap: anywhere; }
.hb-table caption { text-align: left; font-size: .62rem; letter-spacing: .26em; color: var(--mid); padding-bottom: 8px; }
.hb-table .hb-scroll { overflow: auto; }
.hb-notes ol { margin: 0; padding-left: 1.6em; font-size: .82rem; color: var(--ink-2); font-family: var(--f-serif); }
.hb-notes { border-top: 1px solid var(--line-dim); padding-top: 12px; }
.prose sup a { text-decoration: none; font-family: var(--f-mono); font-size: .7em; }
.hb-relay .hb-line { display: grid; grid-template-columns: 5.2em 7em 1fr; gap: 10px; padding: 5px 0; border-bottom: 1px dotted var(--line-dim); font-family: var(--f-mono); font-size: .84rem; line-height: 1.5; }
.hb-relay time { color: var(--mid); font-size: .7rem; letter-spacing: .1em; }
.hb-relay b { font-weight: 700; overflow-wrap: anywhere; }
.hb-relay .is-deleted .hb-body { text-decoration: line-through; color: var(--mid); }
.hb-relay .is-sys { color: var(--mid); font-style: italic; }
@media (max-width: 520px) { .hb-relay .hb-line { grid-template-columns: 4.2em 1fr; } .hb-relay .hb-body { grid-column: 1 / -1; } }
.hb-html { }
@media (max-width: 700px) {
  .hb-doc:not([data-layout="desktop"]) .hb { order: var(--mo, 0); width: calc(var(--mw, 100) * 1%); float: none; margin-left: 0; margin-right: 0; }
  .hb-doc:not([data-layout="desktop"]) .hb.w-bleed { width: calc(100% + 2 * clamp(14px, 4vw, 64px)); margin-left: calc(-1 * clamp(14px, 4vw, 64px)); }
  .hb-doc:not([data-layout="desktop"]) .hb.only-desktop, .hb-doc:not([data-layout="desktop"]) .hb.phone-hide { display: none; }
  .hb-doc:not([data-layout="desktop"]) .hb-cols .hb-row { grid-template-columns: 1fr; }
  .hb-doc:not([data-layout="desktop"]) .hb-cols.phone-row .hb-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; }
  .hb-doc:not([data-layout="desktop"]) .hb-cols.phone-row .hb-col { flex: 0 0 82%; scroll-snap-align: start; }
  .hb-doc:not([data-layout="desktop"]) .hb-gallery .hb-grid { grid-template-columns: repeat(min(var(--cols, 3), 2), 1fr); }
  .hb-doc:not([data-layout="desktop"]) .hb-alt-phone { display: block; }
  .hb-doc:not([data-layout="desktop"]) .hb.has-alt > .hb-main { display: none; }
}
@media (min-width: 701px) {
  .hb-doc:not([data-layout="phone"]) .hb.only-phone { display: none; }
  .hb-doc:not([data-layout="phone"]) .hb-alt-phone { display: none; }
}
.hb-doc[data-layout="phone"] .hb { order: var(--mo, 0); width: calc(var(--mw, 100) * 1%); float: none; margin-left: 0; margin-right: 0; }
.hb-doc[data-layout="phone"] .hb.only-desktop, .hb-doc[data-layout="phone"] .hb.phone-hide { display: none; }
.hb-doc[data-layout="phone"] .hb-cols .hb-row { grid-template-columns: 1fr; }
.hb-doc[data-layout="phone"] .hb-cols.phone-row .hb-row { display: flex; overflow-x: auto; gap: 12px; }
.hb-doc[data-layout="phone"] .hb-cols.phone-row .hb-col { flex: 0 0 82%; }
.hb-doc[data-layout="phone"] .hb-alt-phone { display: block; }
.hb-doc[data-layout="phone"] .hb.has-alt > .hb-main { display: none; }
.hb-doc[data-layout="desktop"] .hb-alt-phone { display: none; }
.hb-alt-phone { display: none; }
.layout-toggle { display: inline-flex; gap: 0; margin: 0 0 14px; font: .58rem var(--f-mono); letter-spacing: .2em; }
.layout-toggle button { padding: 5px 10px; border: 1px solid var(--line-dim); background: transparent; color: var(--mid); cursor: pointer; font: inherit; letter-spacing: inherit; }
.layout-toggle button[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }
@media (min-width: 701px) { .layout-toggle { display: none; } }
.hb-plane-wrap { position: relative; width: 100%; overflow: hidden; }
.hb-doc.is-plane { position: relative; display: block; width: calc(var(--plane, 1000) * 1px); height: calc(var(--ph, 0) * 1px); transform-origin: 0 0; }
.hb-doc.is-plane > .hb { position: absolute; margin: 0; left: calc(var(--x, 0) * 1px); top: calc(var(--y, 0) * 1px); width: calc(var(--w, 600) * 1px); z-index: var(--z, 1); max-width: none; float: none; }
.hb-doc.is-plane > .hb.is-fixed-h { height: calc(var(--h) * 1px); overflow: hidden; }
.hb-doc.is-plane.phone-planed[data-layout="phone"] { width: 390px; height: calc(var(--pph, var(--ph, 0)) * 1px); }
.hb-doc.is-plane.phone-planed[data-layout="phone"] > .hb { left: calc(var(--px, var(--x, 0)) * 1px); top: calc(var(--py, var(--y, 0)) * 1px); width: calc(var(--pw, 358) * 1px); z-index: var(--pz, var(--z, 1)); }
.hb-doc.is-plane.phone-planed[data-layout="phone"] > .hb.is-fixed-h { height: auto; overflow: visible; }
.hb-doc.is-plane.phone-planed[data-layout="phone"] > .hb.is-fixed-ph { height: calc(var(--phh) * 1px); overflow: hidden; }
.hb-doc.is-plane.is-autoflow { display: flex; flex-direction: column; width: 100% !important; height: auto !important; transform: none !important; }
.hb-doc.is-plane.is-autoflow > .hb { position: static; width: 100%; order: var(--y, 0); margin: 0 0 1.15em; height: auto !important; overflow: visible; }
.hb-doc.is-plane[data-layout="phone"] > .hb.phone-hide, .hb-doc.is-plane[data-layout="phone"] > .hb.only-desktop { display: none; }
.hb-doc.is-plane[data-layout="desktop"] > .hb.only-phone { display: none; }
.hb-doc.is-plane .hb-alt-phone { display: none; }
.hb-doc.is-plane[data-layout="phone"] > .hb.has-alt > .hb-main { display: none; }
.hb-doc.is-plane[data-layout="phone"] > .hb.has-alt > .hb-alt-phone { display: block; }
.prose:has(> .hb-plane-wrap), .prose:has(> .hb-doc.is-plane), .preview-body .prose:has(.is-plane) { max-width: none; }
