/* ============================================================
   DESIGN TOKENS — The Ash and Ember
   Semantic tokens flip in dark mode.
   --color-nav stays dark always (nav/footer identity).
============================================================ */
:root {
    --color-fire:    #E65634;
    --color-nav:     #222222;
    --color-bg:      #FFFFFF;
    --color-text:    #222222;
    --color-muted:   #666666;
    --color-surface: #F5F5F5;
    --color-rule:    #E0E0E0;
    --font-display:  'Oswald', 'Arial Narrow', sans-serif;
    --font-body:     'Libre Baskerville', Georgia, serif;
    --space-2:  4px;
    --space-3:  8px;
    --space-sm: 16px;
    --space-md: 32px;
    --space-lg: 64px;
    --space-xl: 96px;
    --prose-max: 820px;
    --site-max:  1100px;
    --nav-h:     80px;
    --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
    --radius:    4px;
}
[data-theme="dark"] {
    --color-bg:      #191919;
    --color-text:    #E6E1DA;
    --color-muted:   #747474;
    --color-surface: #212121;
    --color-rule:    #2C2C2C;
    --color-nav:     #111111;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.wp-block-list { list-style: revert; padding-left: 1.75em; margin-bottom: 1.5em; max-width: 65ch; }
.wp-block-list li { margin-bottom: 0.4em; line-height: 1.85; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-y: scroll; }
body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
    transition: background 0.25s ease, color 0.25s ease;
    display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0;
    text-wrap: balance;
    line-height: 1.2;
    color: var(--color-text);
}
p { text-wrap: pretty; }

/* === WORDPRESS BLOCK OVERRIDES === */
.wp-block-post-title { margin: 0; }
.wp-block-post-content { max-width: none; }
.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.wp-site-blocks > main { flex: 1; }

/* === SKIP LINK === */
.skip-link {
    position: absolute; top: -100%; left: var(--space-sm);
    background: var(--color-fire); color: #FFFFFF;
    padding: 8px 16px; font-family: var(--font-body); font-weight: 400;
    font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.06em; z-index: 1000;
}
.skip-link:focus { top: var(--space-sm); }

/* === NAVIGATION === */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--color-bg);
    height: var(--nav-h);
    display: flex; align-items: center;
    transition: background 0.25s ease;
}
.admin-bar .site-header { top: 32px; }
.nav-inner {
    width: 100%;
    padding: 0 min(4vw, 52px);
    display: flex; align-items: center; justify-content: space-between;
}

/* Site title */
.site-title,
.wp-block-site-title a {
    font-family: var(--font-display); font-weight: 400; font-size: 1.125rem;
    letter-spacing: 0; color: var(--color-text);
    transition: color 0.2s; text-decoration: none !important;
}
.site-title:hover,
.wp-block-site-title a:hover { color: var(--color-fire); }
.site-title-fire { color: var(--color-fire); }

/* Nav right group */
.nav-right { display: flex; align-items: center; gap: 0; }

/* Desktop nav */
.site-nav { display: flex; align-items: center; gap: 0; }

/* Dropdown groups */
.nav-group { position: relative; }
.nav-parent {
    display: flex; align-items: center; gap: 3px;
    font-family: var(--font-display); font-weight: 400; font-size: 1rem;
    text-transform: none; letter-spacing: 0.10em;
    color: var(--color-muted); cursor: pointer; padding: 6px 10px;
    transition: color 0.2s; background: none; border: none; white-space: nowrap;
}
.nav-parent:hover, .nav-parent.is-active { color: var(--color-text); }
.nav-arrow { font-size: 0.55rem; transition: transform 0.2s; display: inline-block; opacity: 0.5; }
.nav-dropdown {
    position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%) translateY(-4px) scaleY(0.96);
    transform-origin: top center;
    background: #1A1A1A;
    min-width: 180px; padding: 14px 0 6px;
    border-top: 2px solid var(--color-fire);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}
.nav-group:hover .nav-dropdown {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0) scaleY(1);
}
.nav-group:hover .nav-arrow { transform: rotate(180deg); }
.nav-dd-link {
    display: block; padding: 9px 20px;
    font-family: var(--font-display); font-weight: 400; font-size: 1rem;
    text-transform: none; letter-spacing: 0.10em;
    color: rgba(255,255,255,0.78);
    cursor: pointer; text-decoration: none;
    transition: color 0.15s, background 0.15s;
}
.nav-dd-link:hover { color: var(--color-fire); background: rgba(255,255,255,0.04); }
.nav-dd-link.is-active { color: var(--color-fire); }

/* WordPress navigation block — desktop styling */
.wp-block-navigation .wp-block-navigation-item__content {
    font-family: var(--font-display); font-weight: 400; font-size: 1rem;
    letter-spacing: 0.08em; color: var(--color-muted);
    padding: 6px 10px; transition: color 0.2s;
    text-decoration: none !important;
}
.wp-block-navigation .wp-block-navigation-item__content:hover,
.wp-block-navigation .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content {
    color: var(--color-text);
}
/* Period-dot before each top-level nav item */
.wp-block-navigation > ul > li > a::before,
.wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::before {
    content: '.';
    color: var(--color-fire);
}
/* Dropdown submenu */
.wp-block-navigation__submenu-container {
    background: #1A1A1A !important;
    border-top: 2px solid var(--color-fire) !important;
    border-radius: 0 !important;
    min-width: 180px;
    padding: 8px 0 !important;
}
.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    color: rgba(255,255,255,0.78) !important;
    letter-spacing: 0.10em;
}
.wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
    color: var(--color-fire) !important;
    background: rgba(255,255,255,0.04);
}
.wp-block-navigation__submenu-container .wp-block-navigation-item__content::before { display: none; }

/* Dark mode toggle */
.theme-toggle {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-muted); cursor: pointer; padding: 0;
    transition: color 0.2s, background 0.2s;
    background: transparent; flex-shrink: 0; margin-left: 8px;
}
.theme-toggle:hover { color: var(--color-text); }
.theme-toggle svg { width: 17px; height: 17px; }
.icon-sun  { display: block; }
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun  { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

/* Mobile hamburger */
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    padding: 11px; cursor: pointer; min-width: 44px; min-height: 44px;
    justify-content: center; align-items: center;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--color-muted); transition: all 0.2s; }

/* Mobile drawer */
.nav-drawer {
    display: none; position: fixed; top: var(--nav-h); right: 0; bottom: 0;
    width: 260px; background: var(--color-nav); z-index: 99;
    flex-direction: column; padding: var(--space-md); overflow-y: auto;
    transform: translateX(100%); transition: transform 0.25s var(--ease-out);
}
.nav-drawer.is-open { transform: translateX(0); }
.drawer-row {
    display: flex; align-items: center; cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    min-height: 44px;
}
.drawer-row:hover .drawer-link { color: rgba(255,255,255,0.95); }
.drawer-link {
    flex: 1; font-family: var(--font-display); font-weight: 400; font-size: 1rem;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.75); padding: 11px 0;
    transition: color 0.15s; user-select: none;
}
.drawer-arrow {
    color: rgba(255,255,255,0.4); padding: 11px 8px;
    flex-shrink: 0; font-size: 0.55rem;
    transition: transform 0.2s, color 0.15s;
}
.drawer-row.is-open .drawer-arrow { transform: rotate(180deg); color: rgba(255,255,255,0.75); }
.drawer-children { display: none; padding-left: var(--space-sm); }
.drawer-children.is-open { display: block; }
.drawer-child {
    display: block; font-family: var(--font-display); font-weight: 400; font-size: 0.9375rem;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.55); cursor: pointer; padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: color 0.15s; text-decoration: none;
}
.drawer-child:hover { color: rgba(255,255,255,0.9); }

/* === LAYOUT === */
.page-wrap { max-width: var(--site-max); margin: 0 auto; padding: 0 min(5vw, 48px); }

/* === SECTION HEADING (label-scale uppercase) === */
.section-heading {
    font-family: var(--font-body); font-weight: 400; text-transform: uppercase;
    font-size: 0.6875rem; letter-spacing: 0.15em;
    color: var(--color-muted); margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-rule);
}

/* === CHIP / FILTER === */
.chip {
    display: inline-block; background: var(--color-surface);
    color: var(--color-text); opacity: 0.8;
    font-family: var(--font-body); font-weight: 400; font-size: 0.6875rem;
    text-transform: uppercase; letter-spacing: 0.07em; padding: 3px 10px;
    border-radius: var(--radius); cursor: pointer;
    border: 1px solid var(--color-rule);
    transition: background 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s;
}
.chip:hover { color: var(--color-fire); border-color: rgba(230,86,52,0.3); opacity: 1; }
.chip.is-active { background: var(--color-text); color: var(--color-bg); border-color: var(--color-text); opacity: 1; }

/* === BUTTONS — E3: pill, fire underline sweeps left-to-right on hover === */
.btn {
    display: inline-block; font-family: var(--font-body); font-weight: 400;
    font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.07em;
    padding: 8px 22px; border-radius: 9999px; cursor: pointer;
    background: transparent; border: none; position: relative; overflow: hidden;
    transition: background 0.2s ease, color 0.2s ease;
}
.btn::after {
    content: '';
    position: absolute; bottom: 7px; left: 22px; right: 22px;
    height: 1px; background: var(--color-fire);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.28s ease;
    pointer-events: none;
}
.btn:hover::after { transform: scaleX(1); }
.btn-primary { color: var(--color-text); }
.btn-primary:hover { background: rgba(34,34,34,0.04); color: var(--color-text); }
.btn-ghost { color: var(--color-muted); }
.btn-ghost:hover { background: rgba(34,34,34,0.04); color: var(--color-text); }
.btn-ghost-light { color: rgba(255,255,255,0.55); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.9); }
.nl-band .btn-primary { color: rgba(255,255,255,0.7); }
.nl-band .btn-primary:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.95); }

.btn-serif-link {
    background: none; border: none; border-radius: 0;
    font-family: var(--font-display); font-style: italic;
    font-weight: 400; font-size: 1rem;
    text-transform: none; letter-spacing: 0;
    color: var(--color-text); padding: 2px 0; opacity: 0.82;
    position: relative; cursor: pointer;
    transition: opacity 0.2s;
}
.btn-serif-link::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 1px; background: var(--color-fire);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.28s ease;
}
.btn-serif-link:hover { opacity: 1; }
.btn-serif-link:hover::after { transform: scaleX(1); }

/* === RULE === */
.rule { border: none; border-top: 1px solid var(--color-rule); }

/* ============================================================
   HERO
============================================================ */
.hero {
    padding: clamp(100px, 14vw, 180px) 0;
    border-bottom: 1px solid var(--color-rule);
}
.hero-center {
    max-width: 860px; margin: 0 auto;
    padding: 0 min(5vw, 48px);
    text-align: center;
}
.hero-intro {
    font-family: var(--font-body);
    font-size: clamp(1.625rem, 2.8vw, 2.25rem);
    color: var(--color-text); line-height: 1.65;
    margin-bottom: var(--space-md);
}
.hero-link {
    color: var(--color-fire);
    text-decoration: none;
    cursor: pointer;
}

/* Pen-swish underline */
.swish { position: relative; display: inline; }
.swish::after {
    content: '';
    position: absolute; left: -2px; bottom: -7px;
    width: calc(100% + 4px); height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M2,7 C18,2 38,9 60,5 C82,1 100,8 118,5' stroke='%23E65634' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* ============================================================
   HOME SECTIONS
============================================================ */
.home-section-label {
    font-family: var(--font-display); font-weight: 400;
    font-size: 1.375rem;
    margin-bottom: var(--space-md);
}
.nav-dot { color: var(--color-fire) !important; }
.home-section-label .nav-dot { color: var(--color-text) !important; }
.home-section-label .label-text { color: var(--color-fire); }

.home-interests {
    border-bottom: 1px solid var(--color-rule);
}
.home-interests-inner {
    max-width: var(--site-max); margin: 0 auto;
    padding: var(--space-lg) min(5vw, 48px);
}
.interests-desc { font-size: 0.9375rem; color: var(--color-muted); margin-bottom: var(--space-md); }
.interests-placeholder {
    display: inline-block;
    font-size: 0.8125rem; color: var(--color-muted); font-style: italic;
    padding: var(--space-lg) var(--space-md);
    border: 1px dashed var(--color-rule);
    border-radius: 4px; width: 100%; text-align: center;
}

.home-links { border-bottom: 1px solid var(--color-rule); }
.home-links-inner { max-width: var(--site-max); margin: 0 auto; padding: var(--space-lg) min(5vw, 48px); }
.links-label { font-family: var(--font-display); font-weight: 400; font-size: 1.125rem; margin-bottom: var(--space-md); }
.links-grid { display: flex; flex-direction: column; gap: 6px; }
.link-item {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-body); font-size: 0.9375rem; color: var(--color-muted);
    text-decoration: none; cursor: pointer;
    transition: color 0.2s;
}
.link-item:hover { color: var(--color-fire); }
.link-item svg { flex-shrink: 0; opacity: 0.6; transition: opacity 0.2s; }
.link-item:hover svg { opacity: 1; }

/* ============================================================
   ARCHIVE / POST LIST
============================================================ */
.archive-content {
    max-width: var(--prose-max);
    margin: 0 auto;
    position: relative;
}
.archive-header {
    padding: calc(var(--space-lg) * 1.5) 0 var(--space-sm);
    margin-bottom: var(--space-lg);
    display: flex; align-items: flex-end; justify-content: space-between;
    flex-wrap: wrap; gap: var(--space-sm);
}
.archive-title { font-size: clamp(1.75rem, 5vw, 2.75rem); }
.archive-title-dynamic { text-transform: lowercase; }
.archive-title-dynamic::before { content: '.'; color: var(--color-fire); }
.archive-desc { font-size: 0.9375rem; color: var(--color-muted); margin-top: 6px; }
.archive-inner { padding-left: 20px; padding-bottom: var(--space-xl); }

/* === ABOUT PAGE === */
.about { padding: 0 0 var(--space-xl); }
.about-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); }
.about-body { font-size: 1.0625rem; line-height: 1.85; }
.about-body p { margin-bottom: 1.5em; max-width: 65ch; }
.about-body p:last-child { margin-bottom: 0; }
.about-sig {
    display: block;
    font-family: 'Allura', cursive;
    font-size: 2.75rem;
    line-height: 1.2;
    color: var(--color-fire);
    margin-top: var(--space-sm);
    letter-spacing: 0.01em;
}
.about-img img { width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius); }
.about-contact { margin-top: var(--space-md); padding: var(--space-md); background: var(--color-surface); border-radius: var(--radius); }
.about-contact-heading { font-family: var(--font-display); font-weight: 400; font-size: 1rem; margin-bottom: var(--space-sm); }
.about-contact-desc { font-size: 0.9375rem; color: var(--color-muted); line-height: 1.6; margin-bottom: var(--space-md); }
.about-contact-btns { display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 900px) {
    .about-grid { grid-template-columns: 1fr 300px; }
    .about-sidebar { position: sticky; top: calc(var(--nav-h) + var(--space-md)); align-self: start; }
}
.archive-inner .post-item-body { border-left: none; padding-left: 0; }
.archive-inner .post-item-meta {
    border-right: 1px solid var(--color-rule);
    right: calc(100% + 21px);
}

.post-list { list-style: none; }
.post-item {
    position: relative;
    padding: var(--space-md) 0;
}
.post-item-meta {
    position: absolute;
    right: 100%;
    top: 0;
    width: 130px;
    text-align: right;
    padding-right: 16px;
    display: flex; flex-direction: column; gap: 0;
}
.post-item-body {
    border-left: 1px solid var(--color-rule);
    padding-left: 20px;
}
.post-item-title-row {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 16px; margin-bottom: 10px;
}
.post-item-tag {
    font-family: var(--font-body); font-size: 0.75rem;
    text-transform: lowercase; color: var(--color-muted);
    white-space: nowrap; flex-shrink: 0;
}
.post-item-tag { color: var(--color-fire); }
.post-item-meta-row { display: flex; gap: 12px; margin-top: 2px; }

.recent-list .post-item { padding: 10px 0; }
.recent-list .post-item-body { border-left: none; padding-left: 0; }

.post-title {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(1.2rem, 2.5vw, 1.625rem);
    line-height: 1.2; letter-spacing: -0.01em;
    color: var(--color-text); display: block;
    cursor: pointer;
    text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px;
    transition: text-decoration-color 0.25s ease;
}
.post-title::before { content: '.'; color: var(--color-fire); }
.post-title:hover { text-decoration-color: var(--color-fire); }

/* WordPress post title block in archive context */
.wp-block-post-title a {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(1.2rem, 2.5vw, 1.625rem);
    line-height: 1.2; letter-spacing: -0.01em;
    color: var(--color-text);
    text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px;
    transition: text-decoration-color 0.25s ease;
}
.wp-block-post-title a:hover { text-decoration-color: var(--color-fire); }

.post-excerpt {
    font-size: 0.9375rem; line-height: 1.7; color: var(--color-muted);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.wp-block-post-excerpt__excerpt {
    font-size: 0.9375rem; line-height: 1.7; color: var(--color-muted);
}

/* ============================================================
   SINGLE POST LAYOUT — CSS grid sidebar
   grid-template-areas: ". title" / "meta content"
============================================================ */
.blog-entry { padding: 0 0 40px; }
.blog-entry + .blog-entry::before {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: var(--color-rule);
    margin: 0 0 40px 150px;
}

.single-wrap { padding: calc(var(--space-lg) * 2) 0 var(--space-xl); }
.single-inner { max-width: calc(var(--prose-max) + 150px); margin: 0 auto; padding: 0 min(5vw, 48px); }

.pl {
    display: grid;
    grid-template-columns: 130px 1fr;
    grid-template-areas: ". title" "meta content";
    column-gap: 20px;
    row-gap: 0;
}
.pl > * { margin-block-start: 0 !important; margin-block-end: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important; }
.pl-title {
    grid-area: title;
    border-left: 1px solid var(--color-rule);
    padding-left: 20px;
    padding-bottom: 40px;
}
.pl-meta {
    grid-area: meta;
    text-align: right;
    padding-right: 16px;
}
.pl-content {
    grid-area: content;
    border-left: 1px solid var(--color-rule);
    padding-left: 20px;
}
.pl-content > *:first-child,
.pl-prose > *:first-child,
.pl-content .wp-block-post-content,
.pl-content .entry-content { padding-top: 0 !important; margin-top: 0 !important; margin-block-start: 0 !important; }
.pl-meta-inner {
    position: sticky;
    top: 80px;
    display: flex; flex-direction: column; gap: 0;
}
.pl-meta-inner > * { margin-block-start: 0 !important; margin-block-end: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important; }

.pm-date { font-family: var(--font-body); font-size: 0.75rem; color: var(--color-muted); line-height: 1.85; white-space: nowrap; }
.pm-wc   { font-family: var(--font-body); font-size: 0.75rem; color: var(--color-muted); line-height: 1.85; }
.pm-wc-num { color: var(--color-fire); }
.pm-tag  { font-family: var(--font-body); font-size: 0.75rem; text-transform: lowercase; color: var(--color-muted); line-height: 1.85; }
.wp-block-post-terms a { color: var(--color-muted); text-decoration: none; }
.wp-block-post-terms a::before { content: '#'; color: var(--color-fire); }

/* Single post title */
.single-title,
.pl-title .wp-block-post-title {
    font-size: clamp(1.875rem, 5vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-family: var(--font-display);
    font-weight: 400;
}
.single-title::before,
.pl-title .wp-block-post-title::before { content: '.'; color: var(--color-fire); }

/* Post body prose */
.single-body,
.pl-content .wp-block-post-content {
    font-size: 1.0625rem;
    line-height: 1.85;
}
.single-body p,
.pl-content .wp-block-post-content p {
    margin-bottom: 1.5em;
    max-width: 65ch;
}
.single-body h2,
.pl-content .wp-block-post-content h2 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    margin: 2em 0 0.75em;
}
.single-body blockquote,
.pl-content .wp-block-post-content blockquote,
.wp-block-quote {
    margin: 2em 0;
    background: var(--color-surface);
    padding: var(--space-sm) var(--space-md);
    font-size: 1.125rem; line-height: 1.65; font-style: italic;
    border-top: 2px solid var(--color-fire);
    border-radius: 0 0 var(--radius) var(--radius);
    border-left: none;
}
.single-body ul,
.single-body ol,
.pl-content .wp-block-post-content ul,
.pl-content .wp-block-post-content ol {
    padding-left: 1.75em;
    margin-bottom: 1.5em;
    max-width: 65ch;
}
.single-body li,
.pl-content .wp-block-post-content li {
    margin-bottom: 0.4em;
    line-height: 1.85;
}

.single-body blockquote cite,
.wp-block-quote cite {
    display: block; font-style: normal;
    font-size: 0.875rem; margin-top: var(--space-3); color: var(--color-muted);
}

/* Single tags */
.single-tags {
    display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center;
    margin-top: var(--space-lg); padding-top: var(--space-md); border-top: 1px solid var(--color-rule);
}
.single-tags-label {
    font-family: var(--font-body); font-weight: 400; font-size: 0.8125rem;
    text-transform: uppercase; letter-spacing: 0.07em; color: var(--color-muted);
}

/* Comments */
.comments { margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid var(--color-rule); }
.comments-title { font-size: 1.25rem; margin-bottom: var(--space-md); }
.comments-empty { font-size: 0.9375rem; color: var(--color-muted); margin-bottom: var(--space-md); }
.comment-form { display: grid; gap: var(--space-sm); max-width: 520px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
.cf-field { display: flex; flex-direction: column; gap: 6px; }
.cf-label {
    font-family: var(--font-body); font-weight: 400; font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-muted);
}
.cf-input, .cf-textarea {
    background: var(--color-surface); color: var(--color-text);
    border: 1px solid var(--color-rule); border-radius: var(--radius);
    padding: 9px 13px; font-family: var(--font-body); font-weight: 400; font-size: 0.9375rem;
    outline: none; transition: border-color 0.15s; width: 100%;
}
.cf-input:focus, .cf-textarea:focus { border-color: var(--color-fire); }
.cf-textarea { min-height: 120px; resize: vertical; }

/* WP native comment form */
.wp-block-comments { margin-top: var(--space-xl); }
.wp-block-comments-title { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; margin-bottom: var(--space-md); }
.wp-block-post-comments-form form,
.wp-block-post-comments-form .comment-form { max-width: none !important; width: 100%; }
.wp-block-post-comments-form textarea,
.wp-block-post-comments-form input[type="text"],
.wp-block-post-comments-form input[type="email"],
.wp-block-post-comments-form input[type="url"] { width: 100% !important; max-width: 100% !important; box-sizing: border-box; }

/* ============================================================
   POETRY — poem body
============================================================ */
.poem-body {
    font-family: var(--font-body); font-size: 1rem; line-height: 1.9;
    white-space: pre-line; max-width: 52ch;
}
.poem-body p { margin-bottom: 1.5em; white-space: pre-line; }

/* ============================================================
   NEWSLETTER BAND
============================================================ */
.nl-band { background: var(--color-nav); padding: var(--space-lg) 0; }
.nl-inner {
    max-width: var(--site-max); margin: 0 auto; padding: 0 min(5vw, 48px);
    display: grid; grid-template-columns: 1fr; gap: var(--space-lg); align-items: center;
}
.nl-label {
    font-family: var(--font-body); font-weight: 400; font-size: 0.6875rem;
    text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.55); margin-bottom: var(--space-2);
}
.nl-heading {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(1.375rem, 3.5vw, 2rem); line-height: 1.15;
    color: rgba(255,255,255,0.92); margin-bottom: var(--space-sm);
}
.nl-desc { font-size: 0.9375rem; color: rgba(255,255,255,0.45); line-height: 1.65; max-width: 40ch; }
.nl-form { display: flex; flex-direction: column; gap: var(--space-3); max-width: 420px; }
.nl-input {
    background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius);
    padding: 10px 14px; font-family: var(--font-body); font-weight: 400; font-size: 0.9375rem;
    outline: none; transition: border-color 0.15s;
}
.nl-input:focus { border-color: var(--color-fire); }
.nl-input::placeholder { color: rgba(255,255,255,0.3); }

/* ============================================================
   FOOTER
============================================================ */
.site-footer { background: var(--color-nav); padding: var(--space-sm) 0; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-inner {
    width: 100%; padding: 0 min(4vw, 52px);
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.footer-inner > :last-child { justify-self: end; }
.footer-copy { font-family: var(--font-body); font-weight: 400; font-size: 0.8125rem; color: rgba(255,255,255,0.3); }
.footer-vibes { font-family: var(--font-body); font-weight: 400; font-size: 0.8125rem; color: rgba(255,255,255,0.3); white-space: nowrap; }
.footer-ver { color: rgba(255,255,255,0.18); font-size: 0.75rem; }
.footer-links { display: flex; gap: var(--space-md); }
.footer-link {
    font-family: var(--font-display); font-weight: 400; font-size: 0.8125rem;
    color: rgba(255,255,255,0.35); cursor: pointer;
    transition: color 0.15s; text-decoration: none;
}
.footer-link:hover { color: var(--color-fire); }

/* ============================================================
   BACK TO TOP
============================================================ */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-nav);
    color: rgba(255,255,255,0.55);
    border: none;
    border-radius: 3px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s, transform 0.25s, color 0.2s;
    pointer-events: none;
    z-index: 90;
}
.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.back-to-top:hover { color: var(--color-fire); }

/* ============================================================
   STAR TOOLTIP
============================================================ */
.star-tip { position: relative; cursor: default; display: inline-block; }
.star-tip::after {
    content: attr(data-tip);
    position: absolute; bottom: calc(100% + 10px); right: 0;
    width: 280px;
    white-space: normal !important;
    word-break: normal; overflow-wrap: break-word;
    background: var(--color-bg); color: var(--color-text);
    font-family: var(--font-body); font-style: italic;
    font-size: 0.75rem; line-height: 1.6;
    padding: 12px 14px;
    border: 1px solid var(--color-rule);
    border-left: 3px solid var(--color-fire);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    opacity: 0; visibility: hidden; pointer-events: none; z-index: 50;
    transform: translateY(6px);
    transition: opacity 0.2s ease, visibility 0.2s, transform 0.2s ease;
}
.star-tip:hover::after,
.star-tip.is-active::after { opacity: 1; visibility: visible; transform: translateY(0); }
[data-theme="dark"] .star-tip::after { box-shadow: 0 4px 20px rgba(0,0,0,0.35); }
@media (hover: none) {
    .star-tip::after { display: none; }
    .star-tip.is-active::after { display: block; opacity: 1; visibility: visible; transform: translateY(0); }
}

/* ============================================================
   FOCUS VISIBLE
============================================================ */
:focus-visible {
    outline: 2px solid var(--color-fire);
    outline-offset: 3px;
    border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }
.site-header :focus-visible,
.nav-drawer :focus-visible,
.site-footer :focus-visible { outline-color: rgba(255,255,255,0.85); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (min-width: 900px) {
    .nl-inner { grid-template-columns: 1fr 1fr; }
    .nl-form { flex-direction: row; gap: var(--space-3); align-items: center; }
    .nl-form .nl-input { flex: 1; border-radius: var(--radius); }
    .about-grid { grid-template-columns: 1fr 300px; }
}
@media (max-width: 899px) {
    .site-nav,
    .wp-block-navigation:not(.has-background) .wp-block-navigation__container { display: none; }
    /* Hide WP nav block's own mobile toggle — we use our custom drawer instead */
    .wp-block-navigation__responsive-container-open,
    .wp-block-navigation__responsive-container-close,
    .wp-block-navigation__responsive-container { display: none !important; }
    .nav-toggle { display: flex; }
    .nav-drawer { display: flex; }
    /* Single post: collapse grid to flex column */
    .pl { display: flex; flex-direction: column; }
    .pl-title { order: 1; border-left: none; padding-left: 0; }
    .pl-meta { text-align: left; padding-right: 0; padding-bottom: 12px; order: 2; }
    .pl-meta-inner { position: static; flex-direction: row; flex-wrap: wrap; gap: 16px; }
    .pl-content { order: 3; border-left: none; padding-left: 0; }
}
@media (max-width: 680px) {
    .post-item-meta { display: none; }
    .footer-inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); text-align: center; }
    .footer-inner > :last-child { justify-self: auto; }
    .footer-copy-site { display: none; }
    .footer-vibes { white-space: normal; }
}
@media (max-width: 599px) {
    .cf-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
