:root {
    --ink: #101014;
    --paper: #FFFFFF;
    --amber: var(--ghost-accent-color, #E8A93B);
    --scrim: rgba(8, 8, 10, 0.86);
    --gh-font-heading: var(--display, Fraunces, serif);
    --gh-font-body: var(--utility, Archivo, sans-serif);

    /* ---- bottom nav size control: change this value only to resize everything ---- */
    --nav-item-size: 40px;
    --nav-clearance: calc(var(--nav-item-size) + 56px);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--gh-font-body);
    -webkit-tap-highlight-color: transparent;
}

/* Ghost Portal & Search inject margin-right on body to compensate scrollbar removal */
body {
    margin-right: 0 !important;
}

html {
    scroll-behavior: auto; /* our JS drives the animated transitions directly */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #c9c9c9 transparent; /* Firefox: thumb / track */
    scrollbar-gutter: stable;
}
html::-webkit-scrollbar { width: 8px; }
html::-webkit-scrollbar-track { background: #FFFFFF; }
html::-webkit-scrollbar-thumb { background: #c9c9c9; border-radius: 4px; }

/* ---------- frame: constrains layout to a phone-width column on desktop ---------- */
.frame {
    position: relative;
    width: 100%;
    margin: 0 auto;
}
@media (min-width: 661px) {
    body { background: var(--paper); }
    .frame { max-width: 580px; }
}

/* ---------- top bar ---------- */
.site-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 30;
    display: flex;
    align-items: baseline;
    justify-content: center;
    padding: 14px 18px;
    pointer-events: none;
}
.site-bar--align-left { justify-content: flex-start; }
.site-bar--align-right { justify-content: flex-end; }
@media (min-width: 661px) {
    .site-bar { left: 50%; right: auto; width: 100%; max-width: 580px; transform: translateX(-50%); }
}
.site-bar__mark {
    color: var(--paper);
    text-decoration: none;
    text-shadow: none;
    font-family: "Inter", var(--utility);
    font-weight: 600;
    font-size: 24px;
    pointer-events: auto;
    position: relative;
    top: 10px;
}

/* ---------- feed: custom transform-driven paging (JS owns the whole gesture) ---------- */
.feed {
    position: fixed;
    inset: 0;
    overflow: hidden;
    touch-action: none;
    overscroll-behavior: contain;
}
@media (min-width: 661px) {
    .feed { left: 0; right: 0; width: 580px; margin: 0 auto; }
}
.feed-track {
    position: relative;
    width: 100%;
    will-change: transform;
}

.feed-item {
    position: relative;
    width: 100%;
    /* height is set in px by feed.js (matches the real viewport, avoids
       dvh/svh recalculation issues entirely since JS measures it directly) */
}
.feed-item__link {
    display: block;
    position: relative;
    height: 100%;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.feed-item__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #1a1a1e;
}
.feed-item__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.feed-item__media--fallback {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--gh-font-heading);
    font-size: 32px;
    color: rgba(243,239,231,0.25);
}
.feed-item__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,8,10,0.05) 0%, rgba(8,8,10,0.15) 45%, var(--scrim) 100%);
}
.feed-item__lock {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(16,16,20,0.75);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
}
.feed-item__lock svg {
    width: 16px;
    height: 16px;
}
.list-page__lock {
    display: inline-flex;
    vertical-align: middle;
    margin-left: 6px;
    color: rgba(8,8,10,0.45);
}
.list-page__lock svg {
    width: 14px;
    height: 14px;
}

.feed-item__body {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 0 20px var(--nav-clearance);
    z-index: 2;
}
.feed-item__eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--paper);
    background: var(--amber);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.feed-item__title {
    font-family: var(--gh-font-heading);
    font-weight: 700;
    font-size: clamp(26px, 7vw, 40px);
    line-height: 1.08;
    margin: 0 0 10px;
    text-wrap: balance;
    color: var(--paper);
}
.feed-item__title--clamp {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-wrap: initial;
}
.feed-item__title-inner {
    display: inline-block;
    will-change: transform;
}
.feed-item.is-active .feed-item__title-inner.is-overflowing {
    animation: feed-title-marquee 6s ease-in-out infinite;
}
@keyframes feed-title-marquee {
    0%, 15% { transform: translateX(0); }
    50% { transform: translateX(var(--marquee-shift, 0)); }
    85%, 100% { transform: translateX(0); }
}
.feed-item__excerpt {
    font-size: 14.5px;
    line-height: 1.5;
    color: rgba(243,239,231,0.82);
    margin: 0 0 14px;
    max-width: 46ch;
}
.feed-item__meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: rgba(243,239,231,0.75);
}
.feed-item__meta span:not(:last-child)::after {
    content: "·";
    margin-left: 14px;
    opacity: 0.6;
}
.feed-item__meta-lock {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.feed-item__meta-lock svg {
    width: 12px;
    height: 12px;
}

/* ---------- signature: reel rail ---------- */
.reel-rail {
    position: fixed;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 25;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}
@media (min-width: 661px) {
    .reel-rail { right: calc(50vw - 278px); }
}
.reel-rail__fill {
    width: 2px;
    height: 90px;
    background: rgba(243,239,231,0.2);
    position: relative;
    border-radius: 2px;
    overflow: hidden;
}
.reel-rail__fill::after {
    content: "";
    position: absolute;
    left: 0; top: 0; width: 100%;
    height: 0%;
    background: var(--amber);
    transition: height 0.25s ease;
}
.reel-rail__count {
    font-family: var(--gh-font-body);
    font-variant-numeric: tabular-nums;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: rgba(243,239,231,0.75);
    writing-mode: vertical-rl;
}

/* ---------- single post ---------- */
.post { background: var(--paper); min-height: 100dvh; }
.post__hero {
    position: relative;
    height: 72dvh;
    min-height: 420px;
    overflow: hidden;
    background: var(--ink);
}
.post__hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post__hero-scrim {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(8,8,10,0.1) 0%, rgba(8,8,10,0.2) 50%, var(--ink) 100%);
}
.post__hero-body {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 0 20px 32px;
}
.post__title {
    font-family: var(--gh-font-heading);
    font-weight: 700;
    font-size: clamp(28px, 6vw, 48px);
    line-height: 1.08;
    margin: 0 0 12px;
    color: var(--paper);
}
.post__content {
    max-width: 68ch;
    margin: 0 auto;
    padding: 40px 20px 60px;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(8,8,10,0.92);
}
.post__content img { max-width: 100%; height: auto; border-radius: 4px; }
.post__content .kg-gallery-image img { max-width: none; }
.post__content figure { margin: 1.5em 0; }
.post__content a { color: var(--amber); }
.post__content h1,
.post__content h2,
.post__content h3,
.post__content h4 {
    font-family: var(--gh-font-heading);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
    margin: 1.4em 0 0.6em;
}
.post__content h1 { font-size: clamp(24px, 4vw, 34px); }
.post__content h2 { font-size: clamp(20px, 3.2vw, 26px); }
.post__content h3 { font-size: clamp(18px, 2.6vw, 22px); }
.post__content h4 { font-size: 18px; }
.post__content .kg-width-wide {
    width: 100vw;
    max-width: 900px;
    margin-left: 50%;
    transform: translateX(-50%);
}
.post__content .kg-width-full {
    width: 100vw;
    max-width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}
.post__content .kg-width-full img { border-radius: 0; }
.post__content .kg-embed-card {
    margin: 1.5em 0;
}
.post__content .kg-embed-card iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: none;
    border-radius: 4px;
    display: block;
}
.post__content .kg-button-card {
    margin: 1.5em 0;
}
.post__content .kg-button-card + .kg-button-card {
    margin-top: 0.5em;
}

/* ---------- nav panel trigger active state ---------- */
[data-nav-panel-trigger].is-open {
    background: var(--amber);
    color: var(--on-accent, var(--paper));
}

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ---------- bottom nav (floating) ---------- */
.bottom-nav-wrap {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 10px;
}
.bottom-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: calc(var(--nav-item-size) * 0.15);
    background: var(--paper);
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.bottom-nav__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--nav-item-size);
    height: var(--nav-item-size);
    border-radius: 50%;
    background: transparent;
    border: 0;
    padding: 0;
    color: var(--ink);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.bottom-nav__item .icon {
    width: calc(var(--nav-item-size) * 0.5);
    height: calc(var(--nav-item-size) * 0.5);
}
.bottom-nav-count {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(var(--nav-item-size) * 1.7);
    height: calc(var(--nav-item-size) + 12px);
    border-radius: 999px;
    background: var(--paper);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    overflow: hidden;
}
.bottom-nav-count__fill {
    display: none;
}
.bottom-nav-count__text {
    position: relative;
    font-family: var(--gh-font-body);
    font-variant-numeric: tabular-nums;
    font-size: calc(var(--nav-item-size) * 0.25);
    font-weight: 600;
    color: var(--ink);
    text-align: center;
    line-height: 1.2;
}
.bottom-nav-count .icon {
    position: relative;
    width: 20px;
    height: 20px;
    color: var(--ink);
}
/* ---------- nav panel (opens above bottom nav) ---------- */
.nav-panel {
    position: fixed;
    left: 50%;
    bottom: 84px;
    transform: translate(-50%, 12px);
    z-index: 34;
    width: 100%;
    max-width: 580px;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    color: var(--ink);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    overflow: hidden;
}
.nav-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}
.nav-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 8px;
    flex-shrink: 0;
}
.nav-panel__title {
    font-family: var(--gh-font-heading);
    font-weight: 700;
    font-size: 18px;
}
.nav-panel__close {
    background: transparent;
    border: 0;
    padding: 4px;
    color: var(--ink);
    cursor: pointer;
    display: flex;
}
.nav-panel__list {
    display: flex;
    flex-direction: column;
    padding: 4px 18px 12px;
    overflow-y: auto;
}
.nav-panel__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    color: var(--ink);
    text-decoration: none;
    font-family: var(--gh-font-body);
    font-size: 14px;
    font-weight: 600;
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
    width: 100%;
}
.nav-panel__row--toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    width: 100%;
}
.nav-panel__row-label {
    flex: 1;
    padding: 10px 0;
    color: var(--ink);
    text-decoration: none;
    font-family: var(--gh-font-body);
    font-size: 14px;
    font-weight: 600;
}
.nav-panel__chevron-btn {
    background: none;
    border: none;
    padding: 10px 0 10px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 0;
    flex-shrink: 0;
}
.nav-panel__chevron {
    transition: transform 0.2s ease;
    flex-shrink: 0;
    color: rgba(8,8,10,0.5);
}
.nav-panel__group.is-open .nav-panel__chevron {
    transform: rotate(180deg);
}
.nav-panel__children {
    display: flex;
    flex-direction: column;
    height: 0;
    overflow: hidden;
}
.nav-panel__row--sub {
    padding: 8px 0 8px 16px;
    font-weight: 400;
    font-size: 13px;
    color: rgba(8,8,10,0.6);
}
.nav-panel__footer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-top: 1px solid rgba(8,8,10,0.1);
    flex-shrink: 0;
}
.nav-panel__subscribe {
    background: var(--amber);
    color: var(--on-accent, var(--ink));
    border: 0;
    border-radius: 999px;
    padding: 10px 20px;
    font-family: var(--gh-font-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.nav-panel__signin {
    background: transparent;
    border: 0;
    color: var(--ink);
    font-family: var(--gh-font-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.post-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(8,8,10,0.75);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.post-modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}
.post-modal {
    position: fixed;
    left: 50%;
    bottom: 0;
    top: auto;
    transform: translate(-50%, 100%);
    z-index: 51;
    width: 100%;
    max-width: 580px;
    max-height: 88dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -12px 40px rgba(0,0,0,0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.post-modal__handle {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    padding: 12px 0 8px;
    background: var(--paper);
    touch-action: none;
}
.post-modal__handle::before {
    content: '';
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: rgba(16,16,20,0.15);
}

.post-modal.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}
.post-modal__close {
    position: sticky;
    top: 12px;
    left: 100%;
    transform: translateX(-100%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(8,8,10,0.6);
    color: var(--paper);
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    margin: 12px 12px 0 0;
}
.post-modal__loading {
    padding: 60px 20px;
    text-align: center;
    color: rgba(8,8,10,0.6);
    font-family: var(--gh-font-body);
    font-size: 14px;
}
.post-modal__body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 6px;
}
.post-modal__body .post {
    min-height: 0;
}
.post-modal__body .post__hero-img,
.post-modal__body .post__hero-scrim {
    display: none;
}
.post-modal__body .post__hero {
    position: static;
    height: auto;
    min-height: 0;
    border-radius: 0;
    overflow: visible;
    padding: 20px 24px 0;
    background: transparent;
}
.post-modal__body .post__hero-body {
    position: static;
    padding: 0;
}
.post-modal__body .post__title {
    color: var(--ink);
}
.post-modal__body .feed-item__meta {
    color: rgba(8,8,10,0.6);
}
.post-modal__body .post__content {
    padding: 24px 24px 40px;
}
html.post-modal-open {
    overflow: hidden;
}
/* ---------- desktop up/down feed navigation buttons ---------- */
.feed-nav-buttons {
    display: none;
}
@media (min-width: 661px) {
    .feed-nav-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
        position: fixed;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        z-index: 25;
    }
}
.feed-nav-buttons__btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ececec;
    color: var(--ink);
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.feed-nav-buttons__btn:hover {
    transform: scale(1.06);
}
.feed-nav-buttons__btn:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}
.feed-nav-buttons__btn.is-hidden {
    opacity: 0;
    pointer-events: none;
}
.feed-nav-buttons__btn--up.is-hidden {
    transform: translateY(12px);
}
.feed-nav-buttons__btn--down.is-hidden {
    transform: translateY(-12px);
}

/* ---------- share modal (adapted from Linkspot) ---------- */
.share-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    max-width: calc(100% - 32px);
    background: var(--paper);
    color: var(--ink);
    font-size: 13px;
    font-family: var(--gh-font-body);
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    word-break: break-all;
    text-align: center;
}
.share-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 60;
}
body.share-modal-open {
    overflow: hidden;
}
.share-modal {
    background: var(--paper);
    color: var(--ink);
    width: 100%;
    max-width: 380px;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
@media (min-width: 768px) {
    .share-modal { max-width: 480px; }
}
.share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.share-modal-image {
    margin: 0 -20px 16px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(243,239,231,0.06);
}
.share-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.share-modal-title {
    margin: 0;
    font-family: var(--gh-font-heading);
    font-size: 18px;
    font-weight: 700;
}
.share-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(8,8,10,0.7);
    cursor: pointer;
    border-radius: 6px;
}
.share-modal-close:hover {
    background: rgba(8,8,10,0.08);
}
.share-modal-body {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(8,8,10,0.12);
}
.share-modal-item-title {
    margin: 0 0 4px;
    font-family: var(--gh-font-body);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}
.share-modal-item-url {
    margin: 0;
    font-family: var(--gh-font-body);
    font-size: 12px;
    color: rgba(8,8,10,0.55);
    word-break: break-all;
}
.share-modal-actions-wrap {
    position: relative;
}
.share-modal-actions {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 2px 6px;
    margin: 0 -2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.share-modal-actions::-webkit-scrollbar {
    display: none;
}
.share-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    width: 60px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.share-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex: 0 0 auto;
}
.share-icon-label {
    font-family: var(--gh-font-body);
    font-size: 11px;
    color: rgba(8,8,10,0.6);
    text-align: center;
    white-space: nowrap;
}
.share-icon-copy { background: rgba(8,8,10,0.08); color: var(--ink); }
.share-icon-twitter { background: #000; }
.share-icon-facebook { background: #1877f2; }
.share-icon-whatsapp { background: #25d366; }
.share-icon-linkedin { background: #0a66c2; }
.share-icon-messenger { background: linear-gradient(135deg, #00c6ff, #7847e8 50%, #ff5679); }
.share-icon-snapchat { background: #fffc00; }
.share-icon-email { background: #6b7280; }
.share-icon-more { background: rgba(8,8,10,0.08); color: var(--ink); }
.share-scroll-btn {
    position: absolute;
    top: 24px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(8,8,10,0.15);
    background: var(--ink);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease;
    z-index: 2;
}
.share-scroll-right { right: 0; }
.share-scroll-left { left: 0; }
.share-modal-actions-wrap:hover .share-scroll-btn {
    opacity: 1;
    visibility: visible;
}
.share-scroll-btn.is-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* ---------- floating QR widget (desktop only, adapted from Linkspot) ---------- */
.floating-qr {
    display: none;
    position: fixed;
    bottom: 5px;
    right: 5px;
    z-index: 900;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px;
}
@media (min-width: 900px) {
    .floating-qr {
        display: flex;
    }
}
.floating-qr__label {
    font-family: var(--gh-font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
}
.floating-qr__code {
    width: 120px;
    height: 120px;
    background: var(--paper);
    padding: 8px;
    border-radius: 12px;
    box-sizing: border-box;
}
.floating-qr__code svg {
    width: 100%;
    height: 100%;
    display: block;
}
/* ---------- tag & author list pages ---------- */
.list-page {
    background: var(--paper);
    min-height: 100dvh;
}
.list-page__list {
    max-width: 68ch;
    margin: 0 auto;
    padding: 0 20px 100px;
}
.list-page__row:first-child {
    border-top: 0;
}
.list-page__row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 0;
    border-top: 0.5px solid rgba(16,16,20,0.1);
    text-decoration: none;
    color: var(--ink);
    transition: opacity 0.15s;
}
.list-page__row:hover { opacity: 0.6; }
.list-page__row-name {
    font-family: var(--gh-font-body);
    font-weight: 600;
    font-size: 16px;
    color: var(--ink);
    flex: 1;
}
.list-page__row-count {
    font-family: var(--gh-font-body);
    font-size: 13px;
    color: rgba(16,16,20,0.45);
    flex-shrink: 0;
}
.list-page__avatar {
    width: 44px;
    height: 44px;
    border-radius: 8%;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(16,16,20,0.06);
}
.list-page__avatar--fallback {
    background: linear-gradient(135deg, var(--amber), rgba(232,169,59,0.4));
}

/* ---------- plain (non-photo) header for tag/author pages ---------- */
.post__header-plain {
    max-width: 68ch;
    margin: 0 auto;
    padding: 100px 20px 10px;
}
.post__header-plain-tag {
    display: inline-block;
    font-family: var(--gh-font-body);
    font-size: 22px;
    font-weight: 500;
    text-transform: capitalize;
    color: var(--amber);
    margin-bottom: 10px;
}
.post__header-plain-title {
    font-family: var(--gh-font-heading);
    font-weight: 700;
    font-size: clamp(22px, 4.5vw, 32px);
    line-height: 1.15;
    color: var(--ink);
    margin: 46px 0 8px;
}
.post__header-plain-meta {
    font-family: var(--gh-font-body);
    font-size: 15px;
    line-height: 1.5;
    color: rgba(16,16,20,0.6);
    margin: 0 0 20px;
}
.page__header-plain {
    max-width: 68ch;
    margin: 0 auto;
    padding: 56px 20px 10px;
}
.post.page .post__content {
    padding-top: 4px;
}
/* ---------- nav-panel backdrop ---------- */
.nav-panel-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 33;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.nav-panel-backdrop.is-open {
    display: block;
    opacity: 1;
}

/* ---------- post: comments ---------- */
.post__comments {
    max-width: 68ch;
    margin: 20px auto 60px;
    padding: 0 20px;
}
/* ---------- post: share pill above comments ---------- */
.post__share-row {
    display: flex;
    justify-content: center;
    max-width: 68ch;
    margin: 30px auto;
    padding: 0 20px;
}
.post__share-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid rgba(16,16,20,0.15);
    background: var(--paper);
    color: var(--ink);
    font-family: var(--gh-font-body);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.post__share-pill:hover {
    background: rgba(16,16,20,0.04);
}

/* ---------- light-header pages (tag, author, list pages) ---------- */
.light-header .site-bar__mark {
    color: var(--ink);
    text-shadow: none;
}

.site-footer {
    padding: 56px 20px var(--nav-clearance);
    text-align: center;
}
.site-footer__social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 32px;
}
.site-footer__social a {
    color: var(--ink);
    display: flex;
}
.site-footer__social svg {
    width: 18px;
    height: 18px;
}
.site-footer__nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    margin: 0 0 32px;
    padding: 0;
}
.site-footer__nav a {
    color: var(--ink);
    text-decoration: none;
    font-family: var(--gh-font-body);
    font-weight: 500;
    font-size: 14px;
}
.site-footer__bottom p {
    font-size: 12px;
    color: rgba(16,16,20,0.5);
    margin: 0;
}
.list-page__chevron {
    flex-shrink: 0;
    color: rgba(16,16,20,0.3);
    margin-left: 12px;
}
.site-footer__bottom a {
    color: inherit;
    text-decoration: none;
}
.site-footer--hidden {
    display: none;
}
.post-modal__body .site-footer {
    padding-top: 24px;
}