:root {
    --bg-paper: #FAF8F5;
    --bg-paper-alt: #F2EFE9;
    --ink-black: #141414;
    --ink-gray: #525252;
    --border-line: #DCD8D0;
    --card-bg: #FFFFFF;
    --accent-hover: #2E2E2E;
    --accent-red: #9B1C1C;
}

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

body {
    background-color: var(--bg-paper);
    color: var(--ink-black);
    font-family: 'Inter', sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    border-top: 5px solid var(--accent-red);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
img[tabindex]:focus-visible {
    outline: 2px solid var(--accent-red);
    outline-offset: 2px;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Sticky Navigation Bar */
header {
    background-color: #F2ECE1;
    padding: 24px 0 18px;
    text-align: center;
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.3rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 8px;
}

.site-title a {
    text-decoration: none;
    color: inherit;
}

.site-subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.12rem;
    color: var(--ink-gray);
    margin-bottom: 0;
}

.nav-bar {
    position: sticky;
    top: 0;
    z-index: 900;
    background-color: #F2ECE1;
    border-bottom: 4px double var(--ink-black);
    box-shadow: 0 2px 10px rgba(20, 20, 20, 0.05);
}

nav {
    border-top: 1px solid rgba(20, 20, 20, 0.14);
    padding: 15px 0 18px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
}

nav a {
    text-decoration: none;
    color: var(--ink-gray);
    font-size: 0.86rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

nav a:hover,
nav a.active {
    color: var(--ink-black);
    border-bottom-color: var(--accent-red);
}

/* Sections */
section {
    padding: 56px 0;
    border-bottom: 1px solid var(--border-line);
    scroll-margin-top: 72px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 12px;
}

h2.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.85rem;
    font-weight: 700;
}

.section-note {
    font-size: 0.9rem;
    color: var(--ink-gray);
}

/* Shared Editorial Buttons, Tones & Pagination */
.editorial-btn {
    display: inline-block;
    padding: 10px 22px;
    border: 1px solid #111;
    color: #fff;
    background: #111;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.editorial-btn:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
}

.tone-sand  { background-color: #F2ECE1; }
.tone-sage  { background-color: #EBF0EA; }
.tone-clay  { background-color: #F4EAE6; }
.tone-slate { background-color: #EAEFF2; }

.center-action {
    text-align: center;
    margin-top: 36px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
}

.page-btn {
    background: #fff;
    border: 1px solid #d4d4d4;
    color: #111;
    padding: 7px 13px;
    font-family: inherit;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.15s;
}

.page-btn:hover:not(:disabled) {
    border-color: #111;
    background: #f5f5f5;
}

.page-btn.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.page-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 28px;
}

/* Archive Layout with Sidebar */
.archive-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    padding: 48px 0;
}

.sidebar {
    border-right: 1px solid var(--border-line);
    padding-right: 24px;
}

.filter-group {
    margin-bottom: 28px;
}

.filter-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--ink-black);
}

/* Published Strip (About Page) */
.published-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 24px;
}

.pub-item {
    border-left: 2px solid var(--accent-red);
    padding-left: 16px;
}

.pub-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.pub-detail {
    font-size: 0.88rem;
    color: var(--ink-gray);
}

/* Footer */
footer {
    padding: 36px 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--ink-gray);
    background-color: var(--bg-paper-alt);
    border-top: 1px solid var(--border-line);
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    margin-bottom: 16px;
}

.social-links a {
    color: var(--ink-gray);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
    color: var(--accent-red);
    transform: translateY(-1px);
}

.social-links svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

/* Shared Cartoon Detail Page, Share Bar & Zoom Lightbox */
.cartoon-wrap {
    max-width: 860px;
    margin: 32px auto 60px;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.top-nav a {
    color: #111;
    text-decoration: none;
    font-weight: 500;
}

.top-nav a:hover {
    color: var(--accent-red);
    text-decoration: underline;
}

.pager-links {
    display: flex;
    gap: 18px;
}

.pager-links .disabled {
    opacity: 0.3;
    pointer-events: none;
}

.cartoon-stage {
    position: relative;
    text-align: center;
    margin-bottom: 12px;
}

.cartoon-stage img {
    width: 100%;
    height: auto;
    max-height: 82vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    cursor: zoom-in;
}

.zoom-hint {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--ink-gray);
}

.cartoon-engage-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px 16px;
    padding: 12px 0;
    margin: 0 0 22px;
    border-top: 1px solid var(--border-line);
    border-bottom: 1px solid var(--border-line);
}

.cartoon-date {
    font-size: 0.78rem;
    color: #777;
    margin-bottom: 6px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cartoon-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3.2vw, 2rem);
    font-weight: 700;
    color: #111;
    margin: 0 0 14px;
    line-height: 1.25;
}

.cartoon-desc {
    font-size: 1rem;
    line-height: 1.75;
    color: #222;
    white-space: pre-line;
    margin-bottom: 22px;
}

.tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
}

.tag-pill {
    display: inline-block;
    background: var(--bg-paper-alt);
    border: 1px solid var(--border-line);
    color: #333;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.18s ease;
}

.tag-pill:hover {
    background: var(--ink-black);
    border-color: var(--ink-black);
    color: #fff;
}

.cartoon-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding-top: 22px;
    border-top: 1px solid var(--border-line);
}

.purchase-btn {
    display: inline-block;
    padding: 10px 22px;
    border: 1px solid #111;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.purchase-btn:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
}

.share-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.share-label {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-gray);
    font-weight: 600;
    margin-right: 4px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid var(--border-line);
    background: #fff;
    color: #222;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.18s ease;
}

.share-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.share-btn:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.share-btn.copied {
    background: #1E6B3A;
    border-color: #1E6B3A;
    color: #fff;
}

.more-section {
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid var(--border-line);
}

.more-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
}

.more-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin: 0;
    color: #111;
}

.more-header a {
    font-size: 0.88rem;
    color: var(--accent-red);
    font-weight: 600;
    text-decoration: underline;
}

.more-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.more-item {
    display: block;
    text-decoration: none;
    color: inherit;
}

.more-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    background: var(--bg-paper-alt);
    transition: opacity 0.2s ease;
}

.more-item:hover img {
    opacity: 0.85;
}

.more-item-title {
    margin-top: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
}

/* Fullscreen Zoom Lightbox */
.zoom-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(16, 16, 16, 0.94);
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: zoom-out;
}

.zoom-lightbox.open {
    display: flex;
}

.zoom-lightbox img {
    max-width: 96vw;
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.zoom-close {
    position: fixed;
    top: 18px;
    right: 22px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.zoom-close:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

/* Like & Share Engagement Controls */
.card-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 9px;
}

.card-meta-row .card-date {
    margin-top: 0;
}

.card-engage {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.engage-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 5px;
    background: none;
    border: none;
    color: var(--ink-gray);
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: color 0.18s ease, transform 0.15s ease;
}

.engage-btn svg {
    width: 15px;
    height: 15px;
    fill: transparent;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: fill 0.18s ease, stroke 0.18s ease, transform 0.18s ease;
}

.engage-btn:hover {
    color: var(--ink-black);
}

.like-btn:hover {
    color: var(--accent-red);
}

.like-btn.is-liked {
    color: var(--accent-red);
}

.like-btn.is-liked svg {
    fill: var(--accent-red);
    stroke: var(--accent-red);
}

@keyframes heart-pop {
    0% { transform: scale(1); }
    45% { transform: scale(1.28); }
    100% { transform: scale(1); }
}

.like-btn.pop svg {
    animation: heart-pop 0.32s ease;
}

.engage-count {
    font-variant-numeric: tabular-nums;
    display: none;
}

.engage-count.has-count {
    display: inline;
}

.share-quick-btn.copied-tip::after {
    content: "Copied ✓";
    position: absolute;
    bottom: calc(100% + 4px);
    right: 0;
    background: #1E6B3A;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 7px;
    white-space: nowrap;
    pointer-events: none;
}

/* Detail Page Like Button & Share Counter */
.actions-left {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--border-line);
    background: #fff;
    color: var(--ink-black);
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.25;
    cursor: pointer;
    transition: all 0.18s ease;
}

.detail-like-btn svg {
    width: 16px;
    height: 16px;
    fill: transparent;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: fill 0.18s ease, stroke 0.18s ease;
}

.detail-like-btn:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.detail-like-btn.is-liked {
    border-color: var(--accent-red);
    background: #FDF4F4;
    color: var(--accent-red);
    font-weight: 600;
}

.detail-like-btn.is-liked svg {
    fill: var(--accent-red);
    stroke: var(--accent-red);
}

.share-total-badge {
    font-variant-numeric: tabular-nums;
    color: var(--ink-black);
}

/* Press & Projects Index & Editorial Story Pages */
.projects-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 32px;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tab {
    background: #FFFFFF;
    border: 1px solid var(--border-line);
    color: var(--ink-black);
    padding: 8px 15px;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.18s ease;
}

.filter-tab:hover {
    border-color: var(--ink-black);
    background: var(--bg-paper-alt);
}

.filter-tab.active {
    background: var(--ink-black);
    border-color: var(--ink-black);
    color: #FFFFFF;
}

.filter-tab .tab-count {
    opacity: 0.72;
    font-weight: 500;
    margin-left: 4px;
}

.projects-search {
    min-width: 220px;
    max-width: 300px;
    flex: 1 1 220px;
    padding: 9px 12px;
    border: 1px solid var(--border-line);
    background: #FFFFFF;
    color: var(--ink-black);
    font-family: inherit;
    font-size: 0.88rem;
}

.projects-search:focus {
    outline: none;
    border-color: var(--ink-black);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 28px;
}

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: inherit;
    border-top: 2px solid var(--ink-black);
    background: #F2ECE1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.project-card.cat-books { background: #EBF0EA; }
.project-card.cat-projects { background: #EAEFF2; }

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(20, 20, 20, 0.08);
}

.project-card-media {
    aspect-ratio: 4 / 3;
    background: #F6F3ED;
    padding: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(20, 20, 20, 0.08);
}

.project-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.35s ease;
}

.project-card:hover .project-card-media img {
    transform: scale(1.03);
}

.project-card-body {
    padding: 20px 22px 16px;
}

.project-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.project-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-red);
}

.project-date {
    font-size: 0.78rem;
    color: var(--ink-gray);
}

.project-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink-black);
    margin-bottom: 6px;
}

.project-outlet {
    font-size: 0.84rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.project-summary {
    font-size: 0.9rem;
    line-height: 1.62;
    color: #3A3A3A;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card-foot {
    padding: 12px 22px 15px;
    border-top: 1px solid rgba(20, 20, 20, 0.09);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
}

.project-foot-left {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.project-meta-count {
    color: var(--ink-gray);
}

.project-read-more {
    font-weight: 600;
    color: var(--ink-black);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.project-read-more:hover,
.project-card:hover .project-read-more {
    color: var(--accent-red);
}

.projects-empty {
    background: #F2ECE1;
    border-top: 2px solid var(--ink-black);
    padding: 40px 28px;
    text-align: center;
    color: var(--ink-gray);
}

.projects-empty h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    color: var(--ink-black);
    margin-bottom: 8px;
}

/* Story Detail Page (p/*.html) */
.story-wrap {
    max-width: 820px;
    margin: 40px auto 72px;
}

.story-header {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-line);
    margin-bottom: 30px;
}

.story-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 10px;
}

.story-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.85rem, 4vw, 2.65rem);
    font-weight: 700;
    line-height: 1.18;
    color: var(--ink-black);
    margin-bottom: 12px;
}

.story-outlet {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.story-lead {
    font-size: 1.06rem;
    line-height: 1.75;
    color: #3A3A3A;
    margin-top: 10px;
}

.story-ext-wrap {
    margin-top: 18px;
}

.story-cover-fig,
.story-figure {
    margin: 0 0 32px;
}

.story-photo-stage {
    background: var(--bg-paper-alt);
    border: 1px solid var(--border-line);
    padding: 12px;
    text-align: center;
}

.story-photo-stage img {
    display: block;
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    margin: 0 auto;
    cursor: zoom-in;
}

.story-caption {
    margin-top: 10px;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--ink-gray);
    font-style: italic;
}

.story-body {
    margin-top: 8px;
}

.story-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.48rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink-black);
    margin: 34px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-line);
}

.story-paragraph {
    font-size: 1.02rem;
    line-height: 1.85;
    color: #242424;
    margin-bottom: 22px;
    white-space: pre-line;
}

.story-footer-bar {
    margin-top: 38px;
    padding-top: 22px;
    border-top: 1px solid var(--border-line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.zoom-nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    width: 44px;
    height: 44px;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 2;
}

.zoom-nav-btn:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

.zoom-prev { left: 18px; }
.zoom-next { right: 18px; }

.zoom-caption {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    max-width: min(90vw, 760px);
    background: rgba(20, 20, 20, 0.82);
    color: #FAF8F5;
    padding: 8px 16px;
    font-size: 0.86rem;
    line-height: 1.45;
    text-align: center;
}

.zoom-caption:empty {
    display: none;
}

/* Responsive Breakpoints */
@media (max-width: 820px) {
    .archive-layout {
        grid-template-columns: 1fr;
        padding: 32px 0;
        gap: 28px;
    }
    .sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-line);
        padding-right: 0;
        padding-bottom: 20px;
    }
}

@media (max-width: 700px) {
    .more-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cartoon-actions,
    .story-footer-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 18px;
    }
    header {
        padding: 16px 0 12px;
    }
    .site-subtitle {
        font-size: 0.98rem;
        margin-bottom: 0;
    }
    nav {
        padding: 10px 0 12px;
        gap: 8px 16px;
    }
    nav a {
        font-size: 0.76rem;
        letter-spacing: 0.05em;
        padding-bottom: 3px;
    }
    section {
        padding: 38px 0;
    }
    h2.section-title {
        font-size: 1.55rem;
    }
    .story-wrap {
        margin: 26px auto 52px;
    }
    .story-photo-stage {
        padding: 6px;
    }
    .zoom-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    .zoom-prev { left: 8px; }
    .zoom-next { right: 8px; }
}


/* ==========================================================
   Page: index.html  (scoped with :where(body.page-home)
   ========================================================== */
:where(body.page-home) .art-card {
    background: transparent;
    border: none;
    padding: 0;
}
:where(body.page-home) .art-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
:where(body.page-home) .art-frame {
    aspect-ratio: 1 / 1;
    border: none;
    background: #F3F0EA;
    overflow: hidden;
    margin-bottom: 0;
    transition: box-shadow 0.25s;
}
:where(body.page-home) .art-frame:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
:where(body.page-home) .art-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
:where(body.page-home) .card-date {
    margin-top: 10px;
    font-size: 0.72rem;
    color: #777;
    letter-spacing: 0.03em;
}
:where(body.page-home) .card-title {
    margin: 4px 0 5px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
}
:where(body.page-home) .card-excerpt {
    font-size: 0.86rem;
    color: #444;
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
:where(body.page-home) .read-more {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--accent-red);
    font-weight: 600;
    text-decoration: underline;
}
:where(body.page-home) .platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 28px;
}
:where(body.page-home) .platform-card {
    border: none;
    border-top: 2px solid var(--ink-black);
    padding: 32px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease;
}
:where(body.page-home) .platform-card:hover {
    transform: translateY(-2px);
}
:where(body.page-home) .platform-kicker {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-red);
    margin-bottom: 6px;
}
:where(body.page-home) .platform-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #111;
    margin: 4px 0 12px;
}
:where(body.page-home) .platform-desc {
    font-size: 0.95rem;
    color: #3A3A3A;
    line-height: 1.7;
    margin-bottom: 26px;
}
:where(body.page-home) .shop-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
@media (max-width: 820px) {
    :where(body.page-home) .shop-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 540px) {
    :where(body.page-home) .shop-preview-grid {
        grid-template-columns: 1fr;
    }
}
:where(body.page-home) .shop-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}
:where(body.page-home) .shop-card:hover {
    transform: translateY(-2px);
}
:where(body.page-home) .shop-frame {
    aspect-ratio: 1 / 1;
    background: var(--bg-paper-alt);
    overflow: hidden;
    margin-bottom: 10px;
    transition: box-shadow 0.25s ease;
}
:where(body.page-home) .shop-card:hover .shop-frame {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
:where(body.page-home) .shop-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
:where(body.page-home) .shop-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
    line-height: 1.35;
    margin-bottom: 4px;
}
:where(body.page-home) .shop-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}
:where(body.page-home) .shop-price {
    font-size: 0.88rem;
    color: var(--ink-gray);
    font-weight: 500;
}
:where(body.page-home) .shop-cta {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-red);
    text-decoration: underline;
}

/* ==========================================================
   Page: gallery.html  (scoped with :where(body.page-gallery)
   ========================================================== */
:where(body.page-gallery) .gallery-section {
    padding: 28px 0 48px;
    border-bottom: none;
}
:where(body.page-gallery) .gallery-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 20px;
    padding-bottom: 16px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--border-line);
}
:where(body.page-gallery) .gallery-heading-group {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 14px;
    min-width: 0;
}
:where(body.page-gallery) .gallery-heading-group .section-title {
    line-height: 1.15;
}
:where(body.page-gallery) .gallery-heading-group .section-note {
    font-size: 0.86rem;
    color: var(--ink-gray);
    white-space: nowrap;
}
:where(body.page-gallery) .gallery-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
:where(body.page-gallery) .gallery-bar {
    margin-bottom: 14px;
}
/* Year filter: one row of years under the title bar. When the years don't
   fit, the row scrolls sideways (finger or arrows) instead of wrapping, so
   it stays one line in both languages */
:where(body.page-gallery, body.page-projects) .year-strip {
    position: relative;
    margin-bottom: 26px;
}
:where(body.page-gallery, body.page-projects) .year-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 2px 0;
}
:where(body.page-gallery, body.page-projects) .year-row::-webkit-scrollbar {
    display: none;
}
:where(body.page-gallery, body.page-projects) .year-chip {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 14px;
    background: transparent;
    border: 1px solid var(--border-line);
    border-radius: 0;
    color: var(--ink-black);
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
:where(body.page-gallery, body.page-projects) .year-chip:hover {
    border-color: var(--ink-black);
}
:where(body.page-gallery, body.page-projects) .year-chip.active {
    background: var(--ink-black);
    border-color: var(--ink-black);
    color: #FFFFFF;
}
:where(body.page-gallery, body.page-projects) .year-chip:focus-visible {
    outline: 2px solid var(--accent-red);
    outline-offset: 2px;
}
:where(body.page-gallery, body.page-projects) .year-chip .count-badge {
    font-weight: 500;
}
:where(body.page-gallery, body.page-projects) .year-arrow {
    display: none;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 46px;
    padding: 0;
    border: 0;
    cursor: pointer;
    color: var(--ink-black);
    align-items: center;
    z-index: 2;
}
:where(body.page-gallery, body.page-projects) .year-arrow.show {
    display: flex;
}
:where(body.page-gallery, body.page-projects) .year-arrow svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
:where(body.page-gallery, body.page-projects) .year-arrow-left {
    left: 0;
    justify-content: flex-start;
    padding-left: 4px;
    background: linear-gradient(to right, var(--bg-paper) 55%, rgba(250, 248, 245, 0));
}
:where(body.page-gallery, body.page-projects) .year-arrow-right {
    right: 0;
    justify-content: flex-end;
    padding-right: 4px;
    background: linear-gradient(to left, var(--bg-paper) 55%, rgba(250, 248, 245, 0));
}
:where(body.page-gallery, body.page-projects) .year-arrow:focus-visible {
    outline: 2px solid var(--accent-red);
    outline-offset: -2px;
}
:where(body.page-gallery) .count-badge {
    font-size: 0.78rem;
    opacity: 0.65;
    font-variant-numeric: tabular-nums;
}
:where(body.page-gallery) .search-wrap {
    position: relative;
    width: 230px;
}
:where(body.page-gallery) .search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-gray);
    pointer-events: none;
    display: inline-flex;
}
:where(body.page-gallery) .archive-search {
    width: 100%;
    height: 38px;
    padding: 0 12px 0 34px;
    border: 1px solid var(--border-line);
    border-radius: 0;
    background: #FFFFFF;
    color: var(--ink-black);
    font-family: inherit;
    font-size: 0.86rem;
    box-sizing: border-box;
    text-overflow: ellipsis;
    transition: border-color 0.2s ease;
}
:where(body.page-gallery) .archive-search:focus {
    outline: none;
    border-color: var(--ink-black);
}
:where(body.page-gallery) .gallery-grid {
    display: flex !important;
    gap: 28px;
    align-items: flex-start;
}
:where(body.page-gallery) .masonry-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
:where(body.page-gallery) .gallery-grid .empty-state {
    width: 100%;
    padding: 48px 20px;
    text-align: center;
    border: 1px dashed #ccc;
    color: #666;
}
:where(body.page-gallery) .art-card {
    background: transparent;
    border: none;
    padding: 0;
}
:where(body.page-gallery) .art-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
:where(body.page-gallery) .art-frame {
    overflow: hidden;
    background: #F3F0EA;
    transition: box-shadow 0.25s;
}
:where(body.page-gallery) .art-frame:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
:where(body.page-gallery) .art-frame img {
    width: 100%;
    height: auto;
    display: block;
}
:where(body.page-gallery) .card-date {
    margin-top: 8px;
    font-size: 0.72rem;
    color: #777;
    letter-spacing: 0.03em;
}
:where(body.page-gallery) .card-title {
    margin: 4px 0 5px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
}
:where(body.page-gallery) .card-excerpt {
    font-size: 0.86rem;
    color: #444;
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
:where(body.page-gallery) .read-more {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--accent-red);
    font-weight: 600;
    text-decoration: underline;
}
:where(body.page-gallery) .clear-filter-btn {
    background: none;
    border: none;
    padding: 0;
    margin-left: 10px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-red);
    text-decoration: underline;
    cursor: pointer;
}
@media (max-width: 820px) {
    :where(body.page-gallery) .gallery-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    :where(body.page-gallery) .gallery-heading-group {
        justify-content: space-between;
        align-items: baseline;
    }
    :where(body.page-gallery) .gallery-controls {
        width: 100%;
    }
    :where(body.page-gallery) .search-wrap {
        flex: 1 1 0;
        width: auto;
    }
}
@media (max-width: 560px) {
    :where(body.page-gallery) .gallery-section {
        padding: 20px 0 40px;
    }
    :where(body.page-gallery) .gallery-bar {
        padding-bottom: 14px;
        margin-bottom: 12px;
    }
    :where(body.page-gallery, body.page-projects) .year-strip {
        margin-bottom: 20px;
    }
    :where(body.page-gallery, body.page-projects) .year-row {
        gap: 6px;
    }
    :where(body.page-gallery, body.page-projects) .year-chip {
        padding: 0 9px;
        font-size: 0.84rem;
        gap: 5px;
    }
    :where(body.page-gallery) .archive-search {
        font-size: 0.84rem;
    }
}

/* ==========================================================
   Page: projects.html  (scoped with :where(body.page-projects)
   ========================================================== */
:where(body.page-projects) .archive-section {
    padding: 28px 0 48px;
    border-bottom: none;
}
:where(body.page-projects) .archive-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 20px;
    padding-bottom: 16px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--border-line);
}
:where(body.page-projects) .archive-heading-group {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 14px;
    min-width: 0;
}
:where(body.page-projects) .archive-heading-group .section-title {
    line-height: 1.15;
}
:where(body.page-projects) .archive-heading-group .section-note {
    font-size: 0.86rem;
    color: var(--ink-gray);
    white-space: nowrap;
}
:where(body.page-projects) .archive-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
:where(body.page-projects) .archive-bar {
    margin-bottom: 14px;
}
:where(body.page-projects) .filter-dropdown {
    position: relative;
    display: inline-block;
}
:where(body.page-projects) .filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    background: #F2ECE1;
    border: 1px solid var(--border-line);
    border-radius: 0;
    color: var(--ink-black);
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
:where(body.page-projects) .filter-btn:hover {
    border-color: var(--ink-black);
}
:where(body.page-projects) .filter-btn[aria-expanded="true"] {
    background: var(--ink-black);
    border-color: var(--ink-black);
    color: #FFFFFF;
}
:where(body.page-projects) .filter-btn-val {
    color: var(--accent-red);
    transition: color 0.2s ease;
}
:where(body.page-projects) .filter-btn[aria-expanded="true"] .filter-btn-val {
    color: #F2ECE1;
}
:where(body.page-projects) .filter-chev {
    display: inline-flex;
    transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}
:where(body.page-projects) .filter-btn[aria-expanded="true"] .filter-chev {
    transform: rotate(180deg);
}
:where(body.page-projects) .filter-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 205px;
    background: #FFFFFF;
    border: 1px solid var(--border-line);
    border-top: 2px solid var(--ink-black);
    border-radius: 0;
    padding: 4px;
    box-shadow: 0 12px 28px rgba(20, 20, 20, 0.12);
    opacity: 0;
    transform: translateY(-6px);
    transform-origin: top left;
    pointer-events: none;
    visibility: hidden;
    transition:
                opacity 0.22s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0.22s;
    z-index: 40;
}
:where(body.page-projects) .filter-menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
}
:where(body.page-projects) .filter-opt {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 8px 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink-black);
    text-align: left;
    transition: background 0.15s ease, padding-left 0.18s cubic-bezier(0.22, 1, 0.36, 1), color 0.15s ease;
}
:where(body.page-projects) .filter-opt:hover {
    background: #F2ECE1;
    padding-left: 16px;
}
:where(body.page-projects) .filter-opt.active {
    background: var(--ink-black);
    color: #FFFFFF;
    font-weight: 600;
}
:where(body.page-projects) .filter-opt.active:hover {
    background: var(--ink-black);
    padding-left: 12px;
}
:where(body.page-projects) .count-badge {
    font-size: 0.78rem;
    opacity: 0.65;
    font-variant-numeric: tabular-nums;
}
:where(body.page-projects) .search-wrap {
    position: relative;
    width: 230px;
}
:where(body.page-projects) .search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-gray);
    pointer-events: none;
    display: inline-flex;
}
:where(body.page-projects) .archive-search {
    width: 100%;
    height: 38px;
    padding: 0 12px 0 34px;
    border: 1px solid var(--border-line);
    border-radius: 0;
    background: #FFFFFF;
    color: var(--ink-black);
    font-family: inherit;
    font-size: 0.86rem;
    box-sizing: border-box;
    text-overflow: ellipsis;
    transition: border-color 0.2s ease;
}
:where(body.page-projects) .archive-search:focus {
    outline: none;
    border-color: var(--ink-black);
}
@media (max-width: 820px) {
    :where(body.page-projects) .archive-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    :where(body.page-projects) .archive-heading-group {
        justify-content: space-between;
        align-items: baseline;
    }
    :where(body.page-projects) .archive-controls {
        width: 100%;
    }
    :where(body.page-projects) .search-wrap {
        flex: 1 1 0;
        width: auto;
    }
}
@media (max-width: 560px) {
    :where(body.page-projects) .archive-section {
        padding: 20px 0 40px;
    }
    :where(body.page-projects) .archive-bar {
        padding-bottom: 14px;
        margin-bottom: 12px;
    }
    :where(body.page-projects) .filter-btn {
        padding: 0 11px;
        font-size: 0.84rem;
        gap: 6px;
    }
    :where(body.page-projects) .archive-search {
        font-size: 0.84rem;
    }
    :where(body.page-projects) .filter-menu {
        min-width: 195px;
    }
}

/* ==========================================================
   Page: store.html  (scoped with :where(body.page-store)
   ========================================================== */
:where(body.page-store) .store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 28px;
}
:where(body.page-store) .store-box {
    border: none;
    border-top: 2px solid var(--ink-black);
    padding: 32px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease;
}
:where(body.page-store) .store-box:hover {
    transform: translateY(-2px);
}
:where(body.page-store) .store-box .editorial-btn {
    align-self: flex-start;
}
:where(body.page-store) .store-kicker {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-red);
    margin-bottom: 6px;
}
:where(body.page-store) .store-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    margin: 4px 0 12px;
    color: #111;
}
:where(body.page-store) .store-box p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #3A3A3A;
    margin-bottom: 26px;
}
:where(body.page-store) .merch-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0 0 22px 0;
}
:where(body.page-store) .merch-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #222;
    font-weight: 500;
}
:where(body.page-store) .merch-tag svg {
    width: 16px;
    height: 16px;
    stroke: var(--accent-red);
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
:where(body.page-store) .products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
@media (max-width: 900px) {
    :where(body.page-store) .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 560px) {
    :where(body.page-store) .products-grid {
        grid-template-columns: 1fr;
    }
}
:where(body.page-store) .product-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}
:where(body.page-store) .product-card:hover {
    transform: translateY(-2px);
}
:where(body.page-store) .product-frame {
    aspect-ratio: 1 / 1;
    background: var(--bg-paper-alt);
    overflow: hidden;
    margin-bottom: 12px;
    transition: box-shadow 0.25s ease;
}
:where(body.page-store) .product-card:hover .product-frame {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
:where(body.page-store) .product-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
:where(body.page-store) .product-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.08rem;
    font-weight: 700;
    color: #111;
    line-height: 1.35;
    margin-bottom: 4px;
}
:where(body.page-store) .product-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-top: 2px;
}
:where(body.page-store) .product-price {
    font-size: 0.9rem;
    color: var(--ink-gray);
    font-weight: 500;
}
:where(body.page-store) .product-cta {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-red);
    text-decoration: underline;
}
:where(body.page-store) .products-status {
    grid-column: 1 / -1;
    color: var(--ink-gray);
    font-size: 0.92rem;
    padding: 12px 0;
}
:where(body.page-store) .store-top-header {
    align-items: center;
}
:where(body.page-store) .collection-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #F6F3ED;
    border-top: 2px solid var(--ink-black);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
:where(body.page-store) .collection-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(20, 20, 20, 0.08);
}
:where(body.page-store) .collection-frame {
    aspect-ratio: 1 / 1;
    background: var(--bg-paper-alt);
    overflow: hidden;
    border-bottom: 1px solid rgba(20, 20, 20, 0.08);
}
:where(body.page-store) .collection-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
:where(body.page-store) .collection-card:hover .collection-frame img {
    transform: scale(1.03);
}
:where(body.page-store) .collection-info {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
:where(body.page-store) .collection-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.16rem;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
}
:where(body.page-store) .collection-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}
:where(body.page-store) .collection-count {
    font-size: 0.85rem;
    color: var(--ink-gray);
    font-weight: 500;
}
:where(body.page-store) .collection-cta {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-red);
    text-decoration: underline;
    text-underline-offset: 2px;
}
:where(body.page-store) .collection-toolbar {
    display: none;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-line);
}
:where(body.page-store) .collection-toolbar.show {
    display: flex;
}
:where(body.page-store) .back-collections-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--ink-black);
    background: #fff;
    color: var(--ink-black);
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
}
:where(body.page-store) .back-collections-btn:hover {
    background: var(--ink-black);
    color: #fff;
}
:where(body.page-store) .collection-pill-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
:where(body.page-store) .collection-pill {
    padding: 6px 12px;
    border: 1px solid var(--border-line);
    background: #fff;
    color: #333;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.16s ease;
}
:where(body.page-store) .collection-pill:hover {
    border-color: var(--ink-black);
    color: var(--ink-black);
}
:where(body.page-store) .collection-pill.active {
    background: var(--ink-black);
    border-color: var(--ink-black);
    color: #fff;
}

/* ==========================================================
   Page: about.html  (scoped with :where(body.page-about)
   ========================================================== */
:where(body.page-about) .about-grid {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: 56px;
    padding: 48px 0 64px;
    align-items: start;
}
:where(body.page-about) .artist-portrait {
    width: 170px;
    height: auto;
    border: none;
    background: transparent;
    margin-bottom: 24px;
    display: block;
}
:where(body.page-about) .about-text p {
    font-size: 1rem;
    line-height: 1.75;
    color: #222;
    margin-bottom: 16px;
}
:where(body.page-about) .about-subheading {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 36px 0 16px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--ink-black);
}
:where(body.page-about) .books-list {
    list-style: none;
    padding: 0;
    margin: 0 0 8px 0;
}
:where(body.page-about) .books-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-line);
    font-size: 0.95rem;
    color: #222;
}
:where(body.page-about) .books-list li:last-child {
    border-bottom: none;
}
:where(body.page-about) .books-list .book-meta {
    color: var(--ink-gray);
    font-size: 0.88rem;
}
:where(body.page-about) .contact-card {
    background: #F2ECE1;
    border: none;
    border-top: 2px solid var(--ink-black);
    padding: 32px 30px;
    height: fit-content;
}
:where(body.page-about) .contact-kicker {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-red);
    margin-bottom: 6px;
}
:where(body.page-about) .contact-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 4px 0 12px;
    color: #111;
}
:where(body.page-about) .contact-card p {
    font-size: 0.95rem;
    color: #3A3A3A;
    margin-bottom: 20px;
    line-height: 1.7;
}
:where(body.page-about) .contact-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 10px 22px;
    border: 1px solid #111;
    color: #fff;
    background: #111;
    text-decoration: none;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
:where(body.page-about) .contact-btn:not(:disabled):hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
}
:where(body.page-about) .contact-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
:where(body.page-about) .email-display {
    user-select: all;
    -webkit-user-select: all;
    border-bottom: 1px solid var(--border-line);
    color: #111;
}
:where(body.page-about) .contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
}
:where(body.page-about) .form-field label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-gray);
    margin-bottom: 5px;
}
:where(body.page-about) .form-field input,
:where(body.page-about) .form-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-line);
    background: var(--bg-paper);
    color: var(--ink-black);
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    line-height: 1.5;
    transition: border-color 0.2s ease;
}
:where(body.page-about) .form-field input:focus,
:where(body.page-about) .form-field textarea:focus {
    outline: none;
    border-color: var(--ink-black);
    background: #FFFFFF;
}
:where(body.page-about) .form-field textarea {
    resize: vertical;
    min-height: 110px;
}
:where(body.page-about) .form-status {
    display: none;
    padding: 11px 14px;
    font-size: 0.88rem;
    line-height: 1.5;
    border-left: 3px solid transparent;
}
:where(body.page-about) .form-status.success {
    display: block;
    background: #E8F3EC;
    border-left-color: #1E6B3A;
    color: #164E2A;
}
:where(body.page-about) .form-status.error {
    display: block;
    background: #FBECEB;
    border-left-color: var(--accent-red);
    color: #7A1414;
}
:where(body.page-about) .contact-direct {
    padding-top: 18px;
    border-top: 1px solid var(--border-line);
    font-size: 0.88rem;
    line-height: 1.8;
    color: #333;
}
:where(body.page-about) .copy-inline {
    background: none;
    border: none;
    padding: 0;
    margin-left: 8px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-red);
    text-decoration: underline;
    cursor: pointer;
}
:where(body.page-about) .copy-inline.copied {
    color: #1E6B3A;
    text-decoration: none;
}
@media (max-width: 820px) {
    :where(body.page-about) .about-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    :where(body.page-about) .contact-card {
        padding: 28px 24px;
    }
}

/* ==========================================================
   Page: 404.html  (scoped with :where(body.page-notfound)
   ========================================================== */
:where(body.page-notfound) .not-found {
    max-width: 580px;
    margin: 68px auto 84px;
    text-align: center;
    background: #F2ECE1;
    border-top: 2px solid var(--ink-black);
    padding: 44px 32px;
}
:where(body.page-notfound) .nf-kicker {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-red);
    margin-bottom: 10px;
}
:where(body.page-notfound) .not-found h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    margin-bottom: 14px;
    color: #111;
}
:where(body.page-notfound) .not-found p {
    color: #3A3A3A;
    margin-bottom: 28px;
    font-size: 0.96rem;
}
:where(body.page-notfound) .nf-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* ==========================================================
   Language switch and Arabic (right-to-left) version
   i18n.js adds html.lang-en or html.lang-ar and dir="rtl"
   ========================================================== */
html:not(.lang-ar) .only-ar,
html.lang-ar .only-en {
    display: none !important;
}

/* Language switch: top right corner of the header, same place and order
   on both versions ("عربي | English"); the current language is dark,
   the other is a link. Sizes in px so the Arabic setting can't move it. */
header {
    position: relative;
}
.lang-switch {
    position: absolute;
    top: 12px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 22px;
    direction: ltr;
}
html.lang-ar .lang-switch {
    right: 24px;
    left: auto;
}
.lang-opt {
    display: inline-flex;
    align-items: center;
    height: 22px;
    text-decoration: none;
    color: #8A847A;
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
html .lang-switch .lang-opt-ar {
    font-family: 'Markazi Text', serif !important;
    font-size: 17px !important;
    font-weight: 600;
}
html .lang-switch .lang-opt-en {
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600;
    letter-spacing: 0.02em !important;
}
a.lang-opt:hover,
a.lang-opt:focus-visible {
    color: var(--accent-red);
    border-bottom-color: var(--accent-red);
}
.lang-opt.is-current {
    color: var(--ink-black);
    cursor: default;
}
.lang-sep {
    width: 1px;
    height: 14px;
    background: rgba(20, 20, 20, 0.3);
}
@media (max-width: 600px) {
    .lang-switch {
        top: 8px;
        right: 14px;
    }
    html.lang-ar .lang-switch {
        right: 14px;
    }
    header {
        padding-top: 30px;
    }
}

/* Markazi's Arabic letters drawn 28% larger (size-adjust). Line heights are
   set as multiples of the font size, so lines and spacing stay exactly as
   on the English pages; the letters only use more of the space above and
   below them. Same file Google Fonts serves for Markazi Text, Arabic part. */
@font-face {
    font-family: 'Markazi AQ';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/markazitext/v28/syk0-ydym6AtQaiEtX7yhqbVpHWVF1E.woff2) format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
    size-adjust: 128%;
}

/* Arabic font: Markazi Text, a naskh designed for editorial reading.
   Arabic pages use exactly the same sizes and line heights as the English
   pages, so both versions have the same layout. */
/* Latin letters and digits use the same fonts as the English pages (Inter
   and Playfair have no Arabic letters), Arabic letters fall to Markazi */
html.lang-ar body,
html.lang-ar body *:not(svg):not(svg *) {
    font-family: 'Inter', 'Markazi AQ', 'Markazi Text', serif;
    letter-spacing: 0 !important;
}
html.lang-ar .site-subtitle,
html.lang-ar h2.section-title,
html.lang-ar .filter-title,
html.lang-ar .pub-name,
html.lang-ar .cartoon-title,
html.lang-ar .more-header h3,
html.lang-ar .project-card-title,
html.lang-ar .projects-empty h3,
html.lang-ar .story-title,
html.lang-ar .story-heading,
html.lang-ar .platform-name,
html.lang-ar .shop-title,
html.lang-ar .store-box h3,
html.lang-ar .product-title,
html.lang-ar .collection-title,
html.lang-ar .about-subheading,
html.lang-ar .contact-card h3,
html.lang-ar .not-found h2 {
    font-family: 'Playfair Display', 'Markazi AQ', 'Markazi Text', serif;
    font-weight: 700;
    font-style: normal;
}
/* The name in the header stays in English, in the site's Latin typeface */
html.lang-ar .site-title,
html.lang-ar .site-title * {
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.02em !important;
}
/* Cartoon and project text that is still in English gets its own direction,
   so punctuation stays in place inside the right-to-left layout */
html.lang-ar .card-title,
html.lang-ar .card-excerpt,
html.lang-ar .cartoon-title,
html.lang-ar .cartoon-desc,
html.lang-ar .more-item-title,
html.lang-ar .project-card-title,
html.lang-ar .story-title,
html.lang-ar .story-heading,
html.lang-ar .story-body p,
html.lang-ar .shop-title,
html.lang-ar .product-title,
html.lang-ar .collection-title,
html.lang-ar .tag-pill {
    unicode-bidi: plaintext;
}
/* Phones and small tablets: the menu is one row that scrolls sideways, in
   both languages, so the header has the same height whichever language is shown */
@media (max-width: 760px) {
    nav {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        gap: 22px;
        padding-inline: 4px;
    }
    nav::-webkit-scrollbar {
        display: none;
    }
    nav a {
        flex: none;
        white-space: nowrap;
    }
}

/* Arrows at the edges of the phone menu (added by i18n.js), shown only
   when sections are hidden on that side */
.nav-bar .container {
    position: relative;
}
.nav-arrow {
    display: none;
}
@media (max-width: 760px) {
    .nav-arrow {
        position: absolute;
        top: 1px;
        bottom: 0;
        width: 40px;
        padding: 0;
        border: 0;
        cursor: pointer;
        color: var(--ink-black);
        align-items: center;
        z-index: 2;
    }
    .nav-arrow.show {
        display: flex;
    }
    .nav-arrow svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.4;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    .nav-arrow-left {
        left: 0;
        justify-content: flex-start;
        padding-left: 10px;
        background: linear-gradient(to right, #F2ECE1 55%, rgba(242, 236, 225, 0));
    }
    .nav-arrow-right {
        right: 0;
        justify-content: flex-end;
        padding-right: 10px;
        background: linear-gradient(to left, #F2ECE1 55%, rgba(242, 236, 225, 0));
    }
    .nav-arrow:focus-visible {
        outline: 2px solid var(--accent-red);
        outline-offset: -2px;
    }
}
/* Phones: section headers always stack (title above its note), in both
   languages, instead of depending on how long the words are */
@media (max-width: 600px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* Card excerpts always take two lines of space, so cards line up the same
   way in both languages even when a description is short */
.art-card .card-excerpt {
    min-height: calc(2em * 1.45);
}
/* Phones: the back link and the newer/older links stack, in both languages */
@media (max-width: 600px) {
    .top-nav {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* ==========================================================
   Right-to-left mirroring for the Arabic pages: every rule above that
   uses a physical left/right side gets its mirrored version here
   ========================================================== */
html.lang-ar .year-menu,
html.lang-ar .filter-menu {
    left: auto;
    right: 0;
    transform-origin: top right;
}
html.lang-ar .year-opt,
html.lang-ar .filter-opt {
    text-align: right;
    transition: background 0.15s ease, padding-right 0.18s cubic-bezier(0.22, 1, 0.36, 1), color 0.15s ease;
}
html.lang-ar .year-opt:hover,
html.lang-ar .filter-opt:hover {
    padding-left: 12px;
    padding-right: 16px;
}
html.lang-ar .year-opt.active:hover,
html.lang-ar .filter-opt.active:hover {
    padding-left: 12px;
    padding-right: 12px;
}
html.lang-ar .sidebar {
    border-right: none;
    padding-right: 0;
    border-left: 1px solid var(--border-line);
    padding-left: 24px;
}
@media (max-width: 820px) {
    html.lang-ar .sidebar {
        border-left: none;
        padding-left: 0;
    }
}
html.lang-ar .pub-item {
    border-left: none;
    padding-left: 0;
    border-right: 2px solid var(--accent-red);
    padding-right: 16px;
}
html.lang-ar .share-label {
    margin-right: 0;
    margin-left: 4px;
}
html.lang-ar .share-quick-btn.copied-tip::after {
    right: auto;
    left: 0;
}
html.lang-ar .filter-tab .tab-count,
html.lang-ar .clear-filter-btn,
html.lang-ar .copy-inline {
    margin-left: 0;
}
html.lang-ar .filter-tab .tab-count {
    margin-right: 4px;
}
html.lang-ar .clear-filter-btn {
    margin-right: 10px;
}
html.lang-ar .copy-inline {
    margin-right: 8px;
}
html.lang-ar .form-status {
    border-left: none;
    border-right: 3px solid transparent;
}
html.lang-ar .form-status.success {
    border-right-color: #1E6B3A;
}
html.lang-ar .form-status.error {
    border-right-color: var(--accent-red);
}

/* Store: collection picker uses the same menu design as the gallery year filter */
:where(body.page-store) .year-dropdown {
    position: relative;
    display: inline-block;
}
:where(body.page-store) .year-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    background: #F2ECE1;
    border: 1px solid var(--border-line);
    border-radius: 0;
    color: var(--ink-black);
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
:where(body.page-store) .year-btn:hover {
    border-color: var(--ink-black);
}
:where(body.page-store) .year-btn[aria-expanded="true"] {
    background: var(--ink-black);
    border-color: var(--ink-black);
    color: #FFFFFF;
}
:where(body.page-store) .year-btn-val {
    color: var(--accent-red);
    transition: color 0.2s ease;
}
:where(body.page-store) .year-btn[aria-expanded="true"] .year-btn-val {
    color: #F2ECE1;
}
:where(body.page-store) .year-chev {
    display: inline-flex;
    transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}
:where(body.page-store) .year-btn[aria-expanded="true"] .year-chev {
    transform: rotate(180deg);
}
:where(body.page-store) .year-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 205px;
    background: #FFFFFF;
    border: 1px solid var(--border-line);
    border-top: 2px solid var(--ink-black);
    border-radius: 0;
    padding: 4px;
    box-shadow: 0 12px 28px rgba(20, 20, 20, 0.12);
    opacity: 0;
    transform: translateY(-6px);
    transform-origin: top left;
    pointer-events: none;
    visibility: hidden;
    transition:
                opacity 0.22s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0.22s;
    z-index: 40;
}
:where(body.page-store) .year-menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
}
:where(body.page-store) .year-opt {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 8px 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink-black);
    text-align: left;
    transition: background 0.15s ease, padding-left 0.18s cubic-bezier(0.22, 1, 0.36, 1), color 0.15s ease;
}
:where(body.page-store) .year-opt:hover {
    background: #F2ECE1;
    padding-left: 16px;
}
:where(body.page-store) .year-opt.active {
    background: var(--ink-black);
    color: #FFFFFF;
    font-weight: 600;
}
:where(body.page-store) .year-opt.active:hover {
    background: var(--ink-black);
    padding-left: 12px;
}
:where(body.page-store) .count-badge {
    font-size: 0.78rem;
    opacity: 0.65;
    font-variant-numeric: tabular-nums;
}
:where(body.page-store) .collection-toolbar .year-dropdown {
    margin-bottom: 4px;
}
:where(body.page-store) .collection-toolbar .year-dropdown {
    max-width: 100%;
}
:where(body.page-store) #col-toggle-btn {
    max-width: 100%;
}
:where(body.page-store) #col-toggle-btn > span:nth-of-type(1) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
