* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #1a1a1a;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ─── Site header ─────────────────────────────────────── */
.site-header {
    background: #111;
    border-bottom: 1px solid #222;
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-wordmark {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #e0e0e0;
    text-decoration: none;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-kofi-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #888;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

.nav-kofi-link:hover {
    color: #e0e0e0;
}

/* ─── Hero ────────────────────────────────────────────── */
.site-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    border-bottom: 1px solid #222;
}

.site-hero-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #555;
    font-weight: 500;
}

/* ─── Shared container ────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ─── Zine section ────────────────────────────────────── */
.zine-section {
    padding: 3rem 0 4rem;
}

.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #555;
    font-weight: 500;
    margin-bottom: 2.5rem;
}

.zine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 3.5rem 2.5rem;
    perspective: 1000px;
}

.zine-card {
    cursor: pointer;
    text-align: center;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.zine-card:hover {
    transform: translateY(-4px);
}

.zine-book {
    position: relative;
    display: inline-block;
    transform: rotateY(-15deg);
    transform-style: preserve-3d;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow:
        8px 10px 28px rgba(0,0,0,0.5),
        3px 4px 8px rgba(0,0,0,0.3);
    border-radius: 0 0 4px 0;
}

/* Subtle gloss highlight on cover */
.zine-book::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.08) 0%,
        transparent 50%
    );
    z-index: 1;
    pointer-events: none;
}

/* Page edges sticking out on the right */
.zine-book::after {
    content: '';
    position: absolute;
    top: 0;
    right: -4px;
    bottom: 0;
    width: 4px;
    background: linear-gradient(
        to right,
        #6a6460 0px, #6a6460 1px,
        #5a5450 1px, #5a5450 3px,
        #4a4440 3px
    );
    border-radius: 0 0 4px 0;
    z-index: -1;
}

.zine-card:hover .zine-book {
    transform: rotateY(-6deg) translateY(-14px);
    box-shadow:
        16px 32px 48px rgba(0,0,0,0.55),
        6px 10px 16px rgba(0,0,0,0.35),
        0 2px 4px rgba(0,0,0,0.2);
}

.zine-spine {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 18px;
    background: linear-gradient(to right, #0e0e0e, #2e2e2e, #0e0e0e);
    transform: rotateY(90deg) translateX(-9px);
    transform-origin: left;
    border-radius: 2px 0 0 2px;
}

.zine-cover {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background-color: #222;
}

.zine-info {
    padding: 1rem 0 0;
}

.zine-info h3 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: #e0e0e0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.zine-info p {
    color: #666;
    font-size: 0.82rem;
    line-height: 1.5;
}

.zine-read-count {
    display: block;
    font-size: 0.72rem;
    color: #444;
    letter-spacing: 0.04em;
    margin-top: 0.35rem;
}

/* Full-page flipbook viewer overlay */
.viewer-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    flex-direction: column;
}

.viewer-overlay.active {
    display: flex;
}

.viewer-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: white;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.viewer-overlay:hover .viewer-close,
.viewer-overlay:hover .viewer-share,
.viewer-overlay:hover .viewer-footer {
    opacity: 1;
}

.viewer-close:hover {
    opacity: 1;
}

/* Share button — mirrors close button, sits to its left */
.viewer-share {
    position: absolute;
    top: 0.75rem;
    right: 3.25rem;
    z-index: 10;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    /* Match close button's rendered height: font-size 2rem + padding 0.25rem top/bottom */
    padding: 0.25rem 0.5rem;
    height: calc(2rem + 0.5rem); /* 2rem line-height + 0.5rem total vertical padding */
    opacity: 0;
    transition: opacity 0.3s;
    line-height: 0;
    display: flex;
    align-items: center;
}

.viewer-share:hover {
    opacity: 1;
}

/* "Copied!" / "Shared!" toast */
.share-toast {
    position: absolute;
    top: 3.25rem;
    right: 0.75rem;
    z-index: 10;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s, transform 0.2s;
}

.share-toast.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Side navigation arrows */
.viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.25);
    font-size: 3rem;
    cursor: pointer;
    padding: 2rem 1rem;
    transition: color 0.2s;
    user-select: none;
}

.viewer-nav:hover {
    color: rgba(255, 255, 255, 0.7);
}

.viewer-nav-prev {
    left: 0;
}

.viewer-nav-next {
    right: 0;
}

.viewer-nav--disabled {
    opacity: 0 !important;
    pointer-events: none;
}

/* First-open hint */
.flip-hint {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.6rem 1.4rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.flip-hint.visible {
    opacity: 1;
}

.flip-hint.fade-out {
    opacity: 0;
}

.flipbook-container {
    position: relative;
    flex: 1;
    /* overflow: visible so the page-curl corner can extend beyond the book bounds
       during the flip animation. The viewer-overlay (position:fixed, full viewport)
       provides the outer clip. Container is sized to the book in JS so no content
       bleeds outside the overlay. */
    overflow: visible;
}

.viewer-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 0.75rem 1.5rem;
    opacity: 0;
    transition: opacity 0.3s;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

#page-counter {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

.viewer-footer .kofi-btn {
    display: none;
    background: #13C3FF;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.viewer-footer .kofi-btn.visible {
    display: inline-block;
}

.viewer-footer .kofi-btn:hover {
    background: #0da8db;
}

/* StPageFlip page styling */
.flipbook-page {
    background-color: transparent;
    overflow: hidden;
}

/* Image pages have a solid dark background;
   blank filler page (no img, no cta class) stays transparent */
.flipbook-page:has(img) {
    background-color: #111;
}

.flipbook-page img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Keep the inner (spine) edge in view on each side so double-page spreads
       don't lose content at the centre. StPageFlip adds --left / --right. */
    object-position: center center;
}

.flipbook-page.--left img {
    object-position: right center;
}

.flipbook-page.--right img {
    object-position: left center;
}


/* Password Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
}

.password-modal {
    max-width: 400px;
    padding: 2rem;
}

.password-modal h2 {
    margin-bottom: 1rem;
    color: #3498db;
}

.password-modal p {
    margin-bottom: 1rem;
    color: #666;
}

.password-modal input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.password-modal button {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    margin-right: 0.5rem;
}

.password-modal button:last-of-type {
    background: #999;
}

.password-modal button:hover {
    opacity: 0.9;
}

.error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ─── Newsletter section (below grid) ────────────────── */
.newsletter {
    border-top: 1px solid #222;
    padding: 3.5rem 1.5rem;
    text-align: center;
}

.newsletter h2 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #555;
    font-weight: 500;
    margin-bottom: 0.6rem;
}

.newsletter p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
    padding: 0.65rem 1rem;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    background: #111;
    color: #e0e0e0;
    font-size: 0.9rem;
    width: 240px;
    font-family: inherit;
}

.newsletter-form input[type="email"]::placeholder {
    color: #444;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #444;
}

.newsletter-form button {
    padding: 0.65rem 1.25rem;
    background: #e0e0e0;
    color: #111;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.newsletter-form button:hover {
    background: #fff;
}

/* ─── Ko-fi shop strip ────────────────────────────────── */
.shop-strip {
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.shop-strip-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.shop-strip-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.shop-strip-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #555;
    font-weight: 500;
}

.shop-strip-text p {
    font-size: 0.9rem;
    color: #888;
    max-width: 480px;
}

.shop-strip-btn {
    flex-shrink: 0;
    display: inline-block;
    padding: 0.65rem 1.25rem;
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #e0e0e0;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.shop-strip-btn:hover {
    border-color: #666;
    color: #fff;
}

/* ─── Site footer ─────────────────────────────────────── */
.site-footer {
    border-top: 1px solid #222;
    padding: 1.5rem 0;
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #444;
}

.site-footer-inner a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer-inner a:hover {
    color: #e0e0e0;
}

/* Mobile: always show viewer chrome (no hover on touch) */
@media (hover: none), (pointer: coarse) {
    .viewer-close,
    .viewer-share {
        opacity: 1;
    }

    /* Footer hidden on mobile — Ko-fi CTA lives inside the book instead */
    .viewer-footer {
        display: none;
    }
}

/* CTA end page (last spread of the flipbook) */
.cta-end-page {
    background: transparent;
    overflow: hidden;
}

.cta-end-inner {
    /* StPageFlip forces display:block on the page element, so flex lives here instead */
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    /* Inset from the left (spine side) to visually detach from the adjacent back-cover page.
       Kept as padding (not margin) so it stays within the StPageFlip page bounds. */
    padding: clamp(0.75rem, 3vh, 1.5rem) 1.5rem clamp(0.75rem, 3vh, 1.5rem) 1.75rem;
    background: #111;
    gap: clamp(0.4rem, 2vh, 1rem);
    /* Prevent any overflow from creating scrollbars inside the flipbook page */
    overflow: hidden;
}

.cta-end-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.cta-end-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    font-weight: 500;
}

.cta-end-title {
    font-size: clamp(1rem, 3.5vw, 1.6rem);
    font-weight: 700;
    color: #e0e0e0;
    line-height: 1.2;
}

.cta-end-actions {
    display: flex;
    flex-direction: column;
    gap: clamp(0.3rem, 1.5vh, 0.6rem);
    padding-bottom: 0.5rem;
}

.cta-btn {
    display: block;
    width: 100%;
    padding: clamp(0.45rem, 1.8vh, 0.75rem) 1rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: clamp(0.75rem, 2.5vw, 0.95rem);
    text-align: center;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: opacity 0.2s;
    font-family: inherit;
    line-height: 1.2;
}

.cta-btn:hover {
    opacity: 0.85;
}

.cta-btn--buy {
    background: #13C3FF;
    color: #000;
}

.cta-btn--newsletter {
    background: transparent;
    color: #e0e0e0;
    border: 1px solid #444;
}

/* ─── Reactions (CTA end page) ────────────────────────── */
.cta-end-reactions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
}

.reactions-row {
    display: flex;
    gap: 0.5rem;
}

@keyframes reaction-burst {
    0%   { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
    100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.4) rotate(var(--rot)); opacity: 0; }
}

.reaction-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: clamp(0.3rem, 1.5vh, 0.5rem) 0.75rem;
    background: transparent;
    border: 1px solid #333;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
    font-family: inherit;
    min-width: 3.5rem;
    -webkit-tap-highlight-color: transparent;
}

.reaction-btn:not(:disabled):hover {
    border-color: #666;
    background: rgba(255, 255, 255, 0.05);
}

.reaction-btn:not(:disabled):active {
    transform: scale(0.9);
}

.reaction-emoji {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    line-height: 1;
}

.reaction-count {
    font-size: 0.7rem;
    font-weight: 600;
    color: #666;
    line-height: 1;
}

.reaction-btn--given {
    border-color: #555;
    background: rgba(255, 255, 255, 0.06);
}

.reaction-btn--given .reaction-count {
    color: #aaa;
}

/* ─── Name prompt (slides in below reactions row) ─────── */
.name-prompt {
    width: 100%;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.name-prompt--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.name-prompt-label {
    font-size: 0.72rem;
    color: #555;
    margin-bottom: 0.4rem;
    text-align: center;
    letter-spacing: 0.02em;
}

.name-prompt-row {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.name-prompt-input {
    flex: 1;
    min-width: 0;
    padding: 0.4rem 0.6rem;
    background: #111;
    border: 1px solid #333;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 0.82rem;
    font-family: inherit;
    transition: border-color 0.15s;
}

.name-prompt-input::placeholder {
    color: #444;
}

.name-prompt-input:focus {
    outline: none;
    border-color: #555;
}

.name-prompt-send,
.name-prompt-skip {
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    border: 1px solid #333;
    transition: border-color 0.15s, background 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.name-prompt-send {
    background: #e0e0e0;
    color: #111;
    border-color: #e0e0e0;
}

.name-prompt-send:hover {
    background: #fff;
}

.name-prompt-skip {
    background: transparent;
    color: #666;
}

.name-prompt-skip:hover {
    border-color: #555;
    color: #aaa;
}

/* Name prompt modal (touch devices) */
.name-prompt-modal {
    position: relative;
    max-width: 360px;
    width: calc(100% - 2rem);
    padding: 2rem 1.5rem 1.5rem;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    color: #e0e0e0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.name-prompt-modal-label {
    font-size: 1rem;
    font-weight: 600;
    color: #e0e0e0;
    margin: 0;
}

.name-prompt-modal-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #333;
    border-radius: 6px;
    background: #111;
    color: #e0e0e0;
    font-size: 1rem;
    font-family: inherit;
    text-align: center;
}

.name-prompt-modal-input::placeholder {
    color: #555;
}

.name-prompt-modal-input:focus {
    outline: none;
    border-color: #555;
}

.name-prompt-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.name-prompt-modal-actions button {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    border: none;
    transition: background 0.2s;
}

.name-prompt-modal-actions button:first-child {
    background: #e0e0e0;
    color: #111;
}

.name-prompt-modal-actions button:first-child:hover {
    background: #fff;
}

.name-prompt-modal-skip {
    background: transparent !important;
    color: #666 !important;
    border: 1px solid #333 !important;
}

.name-prompt-modal-skip:hover {
    border-color: #555 !important;
    color: #aaa !important;
}

/* Newsletter modal */
.newsletter-modal {
    position: relative;
    max-width: 420px;
    width: calc(100% - 2rem);
    padding: 2.5rem 2rem 2rem;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #e0e0e0;
    text-align: center;
}

.newsletter-modal h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #e0e0e0;
}

.newsletter-modal p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

.newsletter-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem 0.4rem;
    transition: color 0.2s;
}

.newsletter-modal-close:hover {
    color: #e0e0e0;
}

.newsletter-modal-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-modal-form input[type="email"] {
    padding: 0.8rem 1rem;
    border: 1px solid #333;
    border-radius: 4px;
    background: #111;
    color: #e0e0e0;
    font-size: 1rem;
    font-family: inherit;
    width: 100%;
    text-align: center;
}

.newsletter-modal-form input[type="email"]::placeholder {
    color: #555;
}

.newsletter-modal-form input[type="email"]:focus {
    outline: none;
    border-color: #555;
}

.newsletter-modal-form button[type="submit"] {
    padding: 0.8rem 1rem;
    background: #e0e0e0;
    color: #111;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    width: 100%;
}

.newsletter-modal-form button[type="submit"]:hover {
    background: #fff;
}

/* Comment modal */
.comment-modal {
    position: relative;
    max-width: 460px;
    width: calc(100% - 2rem);
    padding: 2rem 1.5rem 1.5rem;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    color: #e0e0e0;
}

.comment-modal h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.comment-modal-sub {
    color: #888;
    font-size: 0.875rem;
    margin: 0 0 1.25rem;
}

.comment-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.comment-modal-close:hover {
    color: #e0e0e0;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"] {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #333;
    border-radius: 6px;
    background: #111;
    color: #e0e0e0;
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
}

.comment-form textarea {
    min-height: 110px;
    resize: vertical;
}

.comment-form textarea::placeholder,
.comment-form input::placeholder {
    color: #555;
}

.comment-form textarea:focus,
.comment-form input:focus {
    outline: none;
    border-color: #555;
}

.comment-form-note {
    color: #555;
    font-size: 0.78rem;
    margin: -0.25rem 0 0;
}

.comment-form button[type="submit"] {
    padding: 0.8rem 1rem;
    background: #e0e0e0;
    color: #111;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}

.comment-form button[type="submit"]:hover {
    background: #fff;
}

.comment-form button[type="submit"]:disabled {
    opacity: 0.5;
    cursor: default;
}

.comment-feedback {
    font-size: 0.875rem;
    min-height: 1.2em;
    margin: 0;
    text-align: center;
}

.comment-feedback--success {
    color: #6be06b;
}

.comment-feedback--error {
    color: #e06b6b;
}

/* CTA comment button */
.cta-btn--comment {
    background: transparent;
    border: 1px solid #333;
    color: #888;
}

.cta-btn--comment:hover {
    border-color: #555;
    color: #ccc;
}


/* ─── Log (full page + homepage strip) ───────────────── */
.log-section {
    padding: 3rem 0 4rem;
}

.log-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.log-item {
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #1e1e1e;
    font-size: 0.9rem;
    color: #aaa;
}

.log-item:first-child {
    border-top: 1px solid #1e1e1e;
}

.log-check {
    flex-shrink: 0;
    font-size: 0.72rem;
    width: 1rem;
    text-align: center;
    color: #444;
    font-family: monospace;
    letter-spacing: 0;
}

.log-item--done .log-check {
    color: #555;
}

.log-item--done .log-text {
    color: #555;
    text-decoration: line-through;
    text-decoration-color: #333;
}

.log-text a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: #444;
    text-underline-offset: 2px;
    transition: color 0.15s;
}

.log-ext-link {
    color: #444;
    font-size: 0.78em;
    text-decoration: none;
    transition: color 0.15s;
}
.log-ext-link:hover {
    color: #888;
}

.log-text a:hover {
    color: #e0e0e0;
    text-decoration-color: #888;
}

/* Homepage log strip */
.log-strip {
    border-top: 1px solid #222;
}

.log-strip-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.log-strip-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.log-strip-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #555;
    font-weight: 500;
}

.log-strip-all {
    font-size: 0.78rem;
    color: #444;
    text-decoration: none;
    transition: color 0.2s;
}

.log-strip-all:hover {
    color: #aaa;
}

.log-strip .log-list {
    max-width: 680px;
}

/* ─── Contact section (index page) ───────────────────── */
.contact-section {
    border-top: 1px solid #222;
    padding: 3.5rem 1.5rem;
    text-align: center;
}

.contact-section h2 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #555;
    font-weight: 500;
    margin-bottom: 0.6rem;
}

.contact-section p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: 480px;
    margin: 0 auto;
}

.contact-form input[type="email"],
.contact-form input[type="text"],
.contact-form textarea {
    padding: 0.65rem 1rem;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    background: #111;
    color: #e0e0e0;
    font-size: 0.9rem;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #444;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #444;
}

.contact-form button[type="submit"] {
    padding: 0.65rem 1.25rem;
    background: #e0e0e0;
    color: #111;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.contact-form button[type="submit"]:hover {
    background: #fff;
}

.contact-form button[type="submit"]:disabled {
    opacity: 0.5;
    cursor: default;
}

.contact-feedback {
    font-size: 0.875rem;
    min-height: 1.2em;
    margin: 0;
}

.contact-feedback--success {
    color: #6be06b;
}

.contact-feedback--error {
    color: #e06b6b;
}


@media (orientation: portrait) and (max-width: 768px) {
    .cta-end-text {
        display: none;
    }
}

@media (max-width: 768px) {
    .site-hero {
        padding: 1.5rem 1.25rem;
    }

    .zine-section {
        padding: 2rem 0 3rem;
    }

    .zine-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 2.5rem 1.5rem;
    }

    .shop-strip-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .site-footer-inner {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}
