/*
Theme Name: AfricanBookMarket
Theme URI: https://africanbookmarket.com
Author: IOMartinC
Description: The African literary hub — the Market, the Magazine, the Channel. Curated African books by tradition and region, mythology & origins editorial, and the global community of African literature readers.
Version: 1.0.0
Text Domain: africanbookmarket
*/

/* ─────────────────────────────────────────────
   VARIABLES
───────────────────────────────────────────── */
:root {
    --abm-ink:          #201209;
    --abm-ink-mid:      #281709;
    --abm-surface:      #311D0C;
    --abm-surface-hi:   #3B2410;
    --abm-gold:         #E8B23D;
    --abm-gold-deep:    #C4922A;
    --abm-ochre:        #C1441E;
    --abm-ochre-bright: #E05A2E;
    --abm-gold-dim:     rgba(232, 178, 61, 0.12);
    --abm-ochre-dim:    rgba(193, 68, 30, 0.14);
    --abm-border:       rgba(232, 178, 61, 0.14);
    --abm-border-mid:   rgba(232, 178, 61, 0.28);
    --abm-text:         #EFE4D3;
    --abm-text-bright:  #FBF4E7;
    --abm-text-muted:   #A38F76;
    --abm-text-dim:     #5C4B38;
    --font-display:     'Fraunces', Georgia, serif;
    --font-body:        'Lora', Georgia, serif;
    --font-ui:          'DM Mono', 'Courier New', monospace;
    --max-prose:        760px;
    --max-wide:         1200px;
    --radius:           4px;
    --weave:            repeating-linear-gradient(
                            90deg,
                            var(--abm-gold) 0 18px,
                            var(--abm-ink) 18px 22px,
                            var(--abm-ochre) 22px 40px,
                            var(--abm-ink) 40px 44px,
                            var(--abm-gold-deep) 44px 58px,
                            var(--abm-ink) 58px 62px
                        );
}

/* ─────────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
    background-color: var(--abm-ink);
    color: var(--abm-text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--abm-gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--abm-text-bright); }
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--abm-gold);
    outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--abm-text-bright);
    font-weight: 500;
    line-height: 1.2;
}

::selection { background: var(--abm-gold); color: var(--abm-ink); }

.abm-container {
    max-width: var(--max-wide);
    margin: 0 auto;
    padding: 0 1.25rem;
}
.abm-prose { max-width: var(--max-prose); margin: 0 auto; }

/* ─────────────────────────────────────────────
   SIGNATURE — THE WOVEN BAND
───────────────────────────────────────────── */
.abm-weave {
    height: 6px;
    background: var(--weave);
    border: none;
    opacity: 0.85;
}
.abm-weave--thick { height: 10px; }

/* ─────────────────────────────────────────────
   UI LABELS / EYEBROWS
───────────────────────────────────────────── */
.abm-eyebrow {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--abm-gold);
    display: block;
    margin-bottom: 0.75rem;
}
.abm-eyebrow--ochre { color: var(--abm-ochre-bright); }

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
.abm-btn {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--abm-gold);
    color: var(--abm-gold);
    background: transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.abm-btn:hover { background: var(--abm-gold); color: var(--abm-ink); }

.abm-btn--solid {
    background: var(--abm-gold);
    color: var(--abm-ink);
    font-weight: 500;
}
.abm-btn--solid:hover { background: var(--abm-text-bright); border-color: var(--abm-text-bright); color: var(--abm-ink); }

.abm-btn--ochre {
    border-color: var(--abm-ochre-bright);
    color: var(--abm-ochre-bright);
}
.abm-btn--ochre:hover { background: var(--abm-ochre); border-color: var(--abm-ochre); color: var(--abm-text-bright); }

/* ─────────────────────────────────────────────
   HEADER
───────────────────────────────────────────── */
.abm-site-header {
    background: var(--abm-ink);
    border-bottom: 1px solid var(--abm-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.abm-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 1rem;
}
.abm-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--abm-text-bright);
    white-space: nowrap;
    line-height: 1;
}
.abm-logo .african { color: var(--abm-gold); }
.abm-logo .book { color: var(--abm-text-bright); }
.abm-logo .market { color: var(--abm-ochre-bright); }
.abm-logo-tag {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.58rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--abm-text-muted);
    margin-top: 0.35rem;
}

.abm-primary-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.abm-primary-nav a {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--abm-text-muted);
    padding: 0.35rem 0;
}
.abm-primary-nav a:hover,
.abm-primary-nav a.current-menu-item { color: var(--abm-gold); }
.abm-nav-divider { width: 1px; height: 18px; background: var(--abm-border-mid); }
.abm-nav-cta { color: var(--abm-ochre-bright) !important; }
.abm-nav-cta:hover { color: var(--abm-text-bright) !important; }

.abm-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.abm-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--abm-gold);
}

@media (max-width: 900px) {
    .abm-nav-toggle { display: flex; }
    .abm-primary-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: var(--abm-ink-mid);
        border-bottom: 1px solid var(--abm-border-mid);
        padding: 0.5rem 1.25rem 1rem;
    }
    .abm-primary-nav.is-open { display: flex; }
    .abm-primary-nav a { padding: 0.75rem 0; width: 100%; border-bottom: 1px solid var(--abm-border); }
    .abm-primary-nav a:last-child { border-bottom: none; }
    .abm-nav-divider { display: none; }
}

/* ─────────────────────────────────────────────
   HERO — BOOK OF THE WEEK
───────────────────────────────────────────── */
.abm-hero {
    padding: 3rem 0 3.5rem;
    background: linear-gradient(180deg, var(--abm-ink-mid) 0%, var(--abm-ink) 100%);
}
.abm-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}
.abm-hero-cover {
    max-width: 260px;
    margin: 0 auto;
    box-shadow: -8px 8px 0 var(--abm-gold-dim), 0 18px 44px rgba(0,0,0,0.55);
    border-left: 5px solid var(--abm-gold);
    border-radius: 2px;
    overflow: hidden;
    background: var(--abm-surface);
}
.abm-hero-cover img { width: 100%; }
.abm-hero-cover-placeholder {
    aspect-ratio: 2 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--abm-text-muted);
}
.abm-hero-body h1 {
    font-size: clamp(1.9rem, 5vw, 3rem);
    margin-bottom: 0.5rem;
}
.abm-hero-author {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--abm-text-muted);
    margin-bottom: 1.25rem;
}
.abm-hero-note {
    font-size: 1.05rem;
    color: var(--abm-text);
    margin-bottom: 1.75rem;
    max-width: 56ch;
}
.abm-hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

@media (min-width: 800px) {
    .abm-hero { padding: 4.5rem 0 5rem; }
    .abm-hero-grid { grid-template-columns: 300px 1fr; gap: 3.5rem; }
    .abm-hero-cover { margin: 0; max-width: none; }
}

/* Hero fallback (no book yet) */
.abm-hero-fallback { text-align: center; padding: 1rem 0; }
.abm-hero-fallback h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); margin-bottom: 1rem; }
.abm-hero-fallback p { max-width: 60ch; margin: 0 auto 1.75rem; color: var(--abm-text-muted); font-size: 1.08rem; }

/* ─────────────────────────────────────────────
   SECTIONS
───────────────────────────────────────────── */
.abm-section { padding: 3.5rem 0; }
.abm-section--surface { background: var(--abm-ink-mid); }
.abm-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.abm-section-head h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
.abm-section-link {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ─────────────────────────────────────────────
   MAGAZINE CARDS
───────────────────────────────────────────── */
.abm-post-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 640px)  { .abm-post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .abm-post-grid { grid-template-columns: repeat(3, 1fr); } }

.abm-card {
    background: var(--abm-surface);
    border: 1px solid var(--abm-border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, transform 0.2s;
}
.abm-card:hover { border-color: var(--abm-border-mid); transform: translateY(-3px); }
.abm-card-thumb { aspect-ratio: 3 / 2; overflow: hidden; background: var(--abm-ink-mid); }
.abm-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.abm-card-body { padding: 1.25rem 1.25rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.abm-card-cat {
    font-family: var(--font-ui);
    font-size: 0.66rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--abm-gold);
    margin-bottom: 0.6rem;
}
.abm-card-cat.is-mythology { color: var(--abm-ochre-bright); }
.abm-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.abm-card h3 a { color: var(--abm-text-bright); }
.abm-card h3 a:hover { color: var(--abm-gold); }
.abm-card-excerpt { font-size: 0.92rem; color: var(--abm-text-muted); flex: 1; }
.abm-card-meta {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--abm-text-dim);
    margin-top: 1rem;
}

/* ─────────────────────────────────────────────
   MYTHOLOGY & ORIGINS BAND
───────────────────────────────────────────── */
.abm-mythology-band {
    background:
        linear-gradient(180deg, rgba(193, 68, 30, 0.10) 0%, rgba(193, 68, 30, 0.04) 100%),
        var(--abm-ink-mid);
    border-top: 1px solid rgba(193, 68, 30, 0.25);
    border-bottom: 1px solid rgba(193, 68, 30, 0.25);
}
.abm-mythology-feature {
    display: grid;
    gap: 1.75rem;
}
.abm-mythology-lead h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 0.75rem; }
.abm-mythology-lead h3 a { color: var(--abm-text-bright); }
.abm-mythology-lead h3 a:hover { color: var(--abm-ochre-bright); }
.abm-mythology-lead p { color: var(--abm-text-muted); max-width: 62ch; }
.abm-mythology-side { display: grid; gap: 0.85rem; align-content: start; }
.abm-mythology-side a {
    display: block;
    padding: 0.85rem 1rem;
    background: var(--abm-surface);
    border: 1px solid var(--abm-border);
    border-left: 3px solid var(--abm-ochre);
    border-radius: var(--radius);
    color: var(--abm-text);
    font-size: 0.95rem;
    line-height: 1.4;
}
.abm-mythology-side a:hover { border-left-color: var(--abm-ochre-bright); color: var(--abm-text-bright); background: var(--abm-surface-hi); }
@media (min-width: 900px) {
    .abm-mythology-feature { grid-template-columns: 1.4fr 1fr; gap: 3rem; }
}

/* ─────────────────────────────────────────────
   BOOK CARDS (THE MARKET)
───────────────────────────────────────────── */
.abm-book-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
@media (min-width: 700px)  { .abm-book-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .abm-book-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }

.abm-book-card {
    background: var(--abm-surface);
    border: 1px solid var(--abm-border);
    border-left: 4px solid var(--abm-gold);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, transform 0.2s;
    position: relative;
}
.abm-book-card:hover { border-color: var(--abm-border-mid); border-left-color: var(--abm-gold); transform: translateY(-3px); }
.abm-book-cover { aspect-ratio: 2 / 3; background: var(--abm-ink-mid); overflow: hidden; }
.abm-book-cover img { width: 100%; height: 100%; object-fit: cover; }
.abm-book-cover-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem; text-align: center;
    font-family: var(--font-display);
    color: var(--abm-text-muted);
    font-size: 0.95rem;
}
.abm-book-flag {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    font-family: var(--font-ui);
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: var(--abm-gold);
    color: var(--abm-ink);
    padding: 0.25rem 0.5rem;
    border-radius: 2px;
}
.abm-book-flag--essential { background: var(--abm-ochre); color: var(--abm-text-bright); }
.abm-book-body { padding: 0.9rem 0.9rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.abm-book-body h3 { font-size: 1rem; line-height: 1.3; margin-bottom: 0.3rem; }
.abm-book-body h3 a { color: var(--abm-text-bright); }
.abm-book-body h3 a:hover { color: var(--abm-gold); }
.abm-book-author { font-family: var(--font-ui); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--abm-text-muted); margin-bottom: 0.6rem; }
.abm-book-tradition {
    font-family: var(--font-ui);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--abm-ochre-bright);
    margin-top: auto;
    padding-top: 0.6rem;
}

/* ─────────────────────────────────────────────
   BROWSE TILES (traditions / regions / forms / languages)
───────────────────────────────────────────── */
.abm-tile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}
@media (min-width: 700px)  { .abm-tile-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .abm-tile-grid { grid-template-columns: repeat(5, 1fr); gap: 1rem; } }

.abm-tile {
    display: block;
    padding: 1.15rem 1rem 1rem;
    background: var(--abm-surface);
    border: 1px solid var(--abm-border);
    border-top: 3px solid var(--abm-gold-deep);
    border-radius: var(--radius);
    transition: background 0.2s, border-color 0.2s;
}
.abm-tile:hover { background: var(--abm-surface-hi); border-top-color: var(--abm-gold); }
.abm-tile--region { border-top-color: var(--abm-ochre); }
.abm-tile--region:hover { border-top-color: var(--abm-ochre-bright); }
.abm-tile-name {
    font-family: var(--font-display);
    font-size: 1.02rem;
    color: var(--abm-text-bright);
    line-height: 1.25;
    display: block;
}
.abm-tile-count {
    font-family: var(--font-ui);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    color: var(--abm-text-dim);
    display: block;
    margin-top: 0.45rem;
    text-transform: uppercase;
}

/* ─────────────────────────────────────────────
   NEWSLETTER
───────────────────────────────────────────── */
.abm-newsletter {
    background: var(--abm-surface);
    border: 1px solid var(--abm-border-mid);
    border-radius: var(--radius);
    padding: 2.25rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.abm-newsletter::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: var(--weave);
    opacity: 0.85;
}
.abm-newsletter h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 0.6rem; }
.abm-newsletter p { color: var(--abm-text-muted); max-width: 54ch; margin: 0 auto 1.5rem; }
.abm-newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    max-width: 480px;
    margin: 0 auto;
}
.abm-newsletter-form input[type="email"] {
    flex: 1;
    min-width: 220px;
    padding: 0.85rem 1rem;
    background: var(--abm-ink);
    border: 1px solid var(--abm-border-mid);
    border-radius: var(--radius);
    color: var(--abm-text-bright);
    font-family: var(--font-body);
    font-size: 0.95rem;
}
.abm-newsletter-form input[type="email"]::placeholder { color: var(--abm-text-dim); }

/* ─────────────────────────────────────────────
   PAGE HEADERS / ARCHIVES
───────────────────────────────────────────── */
.abm-page-head {
    padding: 3rem 0 2.25rem;
    background: var(--abm-ink-mid);
    border-bottom: 1px solid var(--abm-border);
}
.abm-page-head h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); margin-bottom: 0.6rem; }
.abm-page-head .abm-page-desc { color: var(--abm-text-muted); max-width: 64ch; font-size: 1.02rem; }

.abm-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}
.abm-filter-row a {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--abm-border);
    border-radius: 999px;
    color: var(--abm-text-muted);
}
.abm-filter-row a:hover, .abm-filter-row a.is-active {
    border-color: var(--abm-gold);
    color: var(--abm-gold);
}

/* ─────────────────────────────────────────────
   SINGLE — ARTICLE
───────────────────────────────────────────── */
.abm-article { padding: 3rem 0 4rem; }
.abm-article-head { margin-bottom: 2.25rem; }
.abm-article-head h1 { font-size: clamp(1.8rem, 4.5vw, 2.7rem); margin-bottom: 1rem; }
.abm-article-meta {
    font-family: var(--font-ui);
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--abm-text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}
.abm-article-featured { margin: 0 0 2.25rem; border-radius: var(--radius); overflow: hidden; }

.abm-entry-content { font-size: 1.05rem; }
.abm-entry-content > * + * { margin-top: 1.35rem; }
.abm-entry-content h2 { font-size: 1.65rem; margin-top: 2.5rem; }
.abm-entry-content h3 { font-size: 1.3rem; margin-top: 2rem; }
.abm-entry-content ul, .abm-entry-content ol { padding-left: 1.5rem; }
.abm-entry-content li + li { margin-top: 0.5rem; }
.abm-entry-content blockquote {
    border-left: 3px solid var(--abm-ochre);
    padding: 0.25rem 0 0.25rem 1.25rem;
    color: var(--abm-text-muted);
    font-style: italic;
}
.abm-entry-content img { border-radius: var(--radius); }
.abm-entry-content a { border-bottom: 1px solid var(--abm-gold-dim); }

/* ─────────────────────────────────────────────
   SINGLE — BOOK
───────────────────────────────────────────── */
.abm-book-single { padding: 3rem 0 4rem; }
.abm-book-single-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) {
    .abm-book-single-grid { grid-template-columns: 300px 1fr; gap: 3.5rem; align-items: start; }
}
.abm-book-single-cover {
    max-width: 260px;
    border-left: 5px solid var(--abm-gold);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: -8px 8px 0 var(--abm-gold-dim), 0 18px 44px rgba(0,0,0,0.5);
    background: var(--abm-surface);
}
@media (min-width: 800px) { .abm-book-single-cover { max-width: none; position: sticky; top: 90px; } }
.abm-book-single-body h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 0.4rem; }
.abm-book-taxlist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.25rem 0 1.75rem;
}
.abm-book-taxlist a {
    font-family: var(--font-ui);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--abm-border-mid);
    color: var(--abm-text-muted);
}
.abm-book-taxlist a:hover { color: var(--abm-gold); border-color: var(--abm-gold); }
.abm-affiliate-note {
    font-family: var(--font-ui);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--abm-text-dim);
    margin-top: 0.9rem;
}

/* ─────────────────────────────────────────────
   ABOUT PAGE
───────────────────────────────────────────── */
.abm-about-hero {
    padding: 4rem 0 3rem;
    text-align: center;
    background: var(--abm-ink-mid);
}
.abm-about-hero h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); max-width: 20ch; margin: 0 auto 1rem; }
.abm-about-hero p { color: var(--abm-text-muted); max-width: 58ch; margin: 0 auto; font-size: 1.08rem; }

.abm-three-layers { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 800px) { .abm-three-layers { grid-template-columns: repeat(3, 1fr); } }
.abm-layer {
    background: var(--abm-surface);
    border: 1px solid var(--abm-border);
    border-top: 4px solid var(--abm-gold);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
}
.abm-layer:nth-child(2) { border-top-color: var(--abm-ochre); }
.abm-layer:nth-child(3) { border-top-color: var(--abm-gold-deep); }
.abm-layer h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.abm-layer p { color: var(--abm-text-muted); font-size: 0.95rem; }

/* ─────────────────────────────────────────────
   PAGINATION
───────────────────────────────────────────── */
.abm-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 2.5rem 0 0;
    font-family: var(--font-ui);
    font-size: 0.8rem;
}
.abm-pagination .page-numbers {
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--abm-border);
    border-radius: var(--radius);
    color: var(--abm-text-muted);
}
.abm-pagination .page-numbers.current { border-color: var(--abm-gold); color: var(--abm-gold); }
.abm-pagination a.page-numbers:hover { color: var(--abm-gold); border-color: var(--abm-gold); }

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
.abm-site-footer {
    background: var(--abm-ink-mid);
    border-top: 1px solid var(--abm-border);
    margin-top: 4rem;
}
.abm-footer-weave { height: 8px; background: var(--weave); opacity: 0.85; }
.abm-footer-grid {
    display: grid;
    gap: 2rem;
    padding: 3rem 0 2rem;
}
@media (min-width: 800px) { .abm-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem; } }
.abm-footer-brand p { color: var(--abm-text-muted); font-size: 0.9rem; max-width: 34ch; margin-top: 0.9rem; }
.abm-footer-col h4 {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--abm-gold);
    font-weight: 400;
    margin-bottom: 1rem;
}
.abm-footer-col a {
    display: block;
    color: var(--abm-text-muted);
    font-size: 0.9rem;
    padding: 0.3rem 0;
}
.abm-footer-col a:hover { color: var(--abm-text-bright); }
.abm-footer-bottom {
    border-top: 1px solid var(--abm-border);
    padding: 1.25rem 0 1.75rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    font-family: var(--font-ui);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    color: var(--abm-text-dim);
}
.abm-footer-bottom a { color: var(--abm-text-dim); }
.abm-footer-bottom a:hover { color: var(--abm-gold); }

/* ─────────────────────────────────────────────
   UTILITIES
───────────────────────────────────────────── */
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
.abm-empty {
    text-align: center;
    color: var(--abm-text-muted);
    padding: 3rem 1rem;
    font-size: 1.02rem;
}
.abm-empty a { border-bottom: 1px solid var(--abm-gold-dim); }

/* WordPress core alignment classes */
.alignleft { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    color: var(--abm-text-dim);
    padding-top: 0.5rem;
    text-align: center;
}

/* ═══ ABM REBUILD v2.0 — new components ═══ */

/* Hero editorial */
.abm-hero-editorial h1{font-size:2rem;margin:10px 0 12px;line-height:1.2;}
.abm-hero-editorial p{opacity:.75;line-height:1.7;margin-bottom:18px;max-width:480px;}

/* Storytelling Through Time */
.abm-through-time .abm-section-head{margin-bottom:24px;}
.abm-time-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px;}
.abm-time-grid--page{align-items:flex-start;}
@media(max-width:680px){.abm-time-grid{grid-template-columns:1fr;}}
.abm-time-col-head{margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid var(--abm-border);}
.abm-time-col-desc{font-size:.88rem;opacity:.65;margin-top:6px;line-height:1.6;}
.abm-time-item{padding:14px 0;border-bottom:1px solid var(--abm-border);}
.abm-time-item:last-child{border-bottom:none;}
.abm-time-item h3{font-size:.95rem;margin:0 0 5px;line-height:1.35;}
.abm-time-item h3 a{color:inherit;text-decoration:none;}
.abm-time-item h3 a:hover{color:var(--abm-gold);}
.abm-time-item p{font-size:.85rem;opacity:.65;line-height:1.6;margin:0;}

/* Browse by Tradition */
.abm-tradition-band{background:var(--abm-ink-mid);}
.abm-tradition-grid{display:flex;flex-wrap:wrap;gap:10px;margin-top:4px;}
.abm-tradition-chip{display:flex;flex-direction:column;padding:12px 16px;background:var(--abm-surface);border:1px solid var(--abm-border);border-radius:var(--radius);text-decoration:none;transition:border-color .15s,background .15s;}
.abm-tradition-chip:hover{border-color:var(--abm-gold);background:var(--abm-surface-hi);}
.abm-tradition-name{font-size:.9rem;font-weight:600;color:var(--abm-text-bright);}
.abm-tradition-count{font-size:.75rem;color:var(--abm-text-muted);margin-top:3px;font-family:var(--font-ui);}

/* Browse by Region */
.abm-region-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px;}
.abm-region-card{display:flex;flex-direction:column;padding:14px 16px;background:var(--abm-surface);border:1px solid var(--abm-border);border-radius:var(--radius);text-decoration:none;transition:border-color .15s;}
.abm-region-card:hover{border-color:var(--abm-gold);}
.abm-region-name{font-size:.95rem;font-weight:600;color:var(--abm-text-bright);}
.abm-region-count{font-size:.75rem;color:var(--abm-text-muted);margin-top:3px;font-family:var(--font-ui);}

/* BookTok Channel */
.abm-channel-section{background:var(--abm-ink-mid);text-align:center;}
.abm-channel-section h2{font-size:1.6rem;margin:10px 0 12px;max-width:600px;margin-left:auto;margin-right:auto;}
.abm-channel-desc{font-size:.9rem;opacity:.7;max-width:540px;margin:0 auto 22px;line-height:1.8;}

/* Browse pages */
.abm-browse-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px;margin-top:28px;}
.abm-browse-card{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 18px;background:var(--abm-surface);border:1px solid var(--abm-border);border-radius:var(--radius);text-decoration:none;transition:border-color .15s,background .15s;}
.abm-browse-card:hover{border-color:var(--abm-gold);background:var(--abm-surface-hi);}
.abm-browse-name{font-size:.95rem;font-weight:600;color:var(--abm-text-bright);flex:1;}
.abm-browse-count{font-size:.75rem;color:var(--abm-text-muted);font-family:var(--font-ui);white-space:nowrap;}
.abm-browse-arrow{color:var(--abm-gold);opacity:.6;margin-left:6px;}

/* Buy button — small variant for archive cards */
.abm-btn--buy{font-size:.78rem;padding:5px 12px;margin-top:8px;display:inline-block;}
.abm-btn--small{font-size:.78rem;padding:5px 12px;}

/* Affiliate disclosure */
.abm-disclosure{border-top:1px solid var(--abm-border);padding:12px 0;text-align:center;}
.abm-disclosure p{font-size:.75rem;opacity:.45;font-family:var(--font-ui);margin:0;}

/* Page content wrapper */
.abm-page-content{padding:48px 0;}
.abm-page-header{margin-bottom:36px;}
.abm-page-header h1{font-size:2rem;margin:8px 0 12px;}
.abm-page-deck{opacity:.75;line-height:1.8;max-width:680px;}

/* Newsletter */
.abm-newsletter-section{border-top:1px solid var(--abm-border);padding:40px 0;}
.abm-newsletter-inner{display:flex;gap:32px;align-items:center;justify-content:space-between;}
.abm-newsletter-inner h2{font-size:1.4rem;margin:6px 0 6px;}
.abm-newsletter-form{display:flex;gap:8px;flex-shrink:0;}
.abm-newsletter-form input{padding:10px 14px;background:var(--abm-surface);border:1px solid var(--abm-border-mid);color:var(--abm-text);border-radius:var(--radius);font-family:inherit;width:200px;}
.abm-newsletter-form button{padding:10px 18px;background:var(--abm-gold);color:var(--abm-ink);border:none;border-radius:var(--radius);cursor:pointer;font-family:var(--font-ui);font-size:.85rem;font-weight:700;}
@media(max-width:640px){.abm-newsletter-inner{flex-direction:column;}.abm-newsletter-form{width:100%;flex-wrap:wrap;}.abm-newsletter-form input{flex:1;}}

/* Myth cards */
.abm-mythology-feature{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;}
.abm-myth-card{background:var(--abm-surface);border:1px solid var(--abm-border);border-radius:var(--radius);padding:16px;}
.abm-myth-title{font-size:1rem;margin:0 0 8px;line-height:1.35;}
.abm-myth-title a{color:inherit;text-decoration:none;}
.abm-myth-title a:hover{color:var(--abm-gold);}
.abm-myth-excerpt{font-size:.85rem;opacity:.65;line-height:1.6;margin:0;}
.abm-section-empty{font-size:.9rem;opacity:.55;font-style:italic;line-height:1.8;padding:12px 0;}
