/*
 * Ojistoh — main.css
 * Tokens are injected as CSS custom properties via wp_add_inline_style() in enqueue.php.
 * This file references those vars throughout.
 */

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

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
    background-color: var(--oj-night);
    color: var(--oj-white);
    font-family: var(--oj-font-sans);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--oj-font-display);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--oj-white);
}

h1 { font-size: clamp(44px, 6vw, 80px); }
h2 { font-size: clamp(32px, 4vw, 54px); }
h3 { font-size: clamp(22px, 2.5vw, 36px); }
h4 { font-size: 22px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; font-weight: 400; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

em, i { font-style: italic; }
strong, b { font-weight: 500; }

a {
    color: var(--oj-star);
    text-decoration: none;
    transition: opacity 0.18s;
}
a:hover { opacity: 0.8; }
a:focus-visible {
    outline: 2px solid var(--oj-star);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ── LAYOUT ── */
.oj-wrap {
    max-width: var(--oj-max-width);
    margin-inline: auto;
    padding-inline: 40px;
}

.oj-section { padding-block: 96px; }
.oj-section-sm { padding-block: 64px; }

/* ── EYEBROW ── */
.oj-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--oj-star);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.oj-eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: currentColor;
    flex-shrink: 0;
}

/* ── RULE ── */
.oj-rule {
    border: none;
    border-top: 1px solid rgba(240, 230, 160, 0.1);
}

/* ── BUTTONS ── */
.oj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--oj-font-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 14px 28px;
    border: none;
    border-radius: var(--oj-radius-sm);
    cursor: pointer;
    transition: opacity 0.18s, background 0.18s;
    text-decoration: none;
    line-height: 1;
}
.oj-btn:hover { opacity: 0.88; }
.oj-btn:focus-visible { outline: 2px solid var(--oj-star); outline-offset: 3px; }

.oj-btn--primary {
    background: var(--oj-star);
    color: var(--oj-night);
}
.oj-btn--ghost {
    background: transparent;
    color: var(--oj-ash);
    border: 1px solid rgba(184, 180, 204, 0.25);
}
.oj-btn--ghost:hover {
    border-color: rgba(240, 230, 160, 0.35);
    color: var(--oj-white);
    opacity: 1;
}
.oj-btn--outline-star {
    background: transparent;
    color: var(--oj-star);
    border: 1px solid rgba(240, 230, 160, 0.3);
}
.oj-btn--outline-star:hover {
    background: var(--oj-star);
    color: var(--oj-night);
    opacity: 1;
}

/* ── PILLS & BADGES ── */
.oj-type-pill {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: var(--oj-radius-sm);
}
.oj-type--theatre  { background: rgba(240, 230, 160, 0.12); color: var(--oj-type-theatre); }
.oj-type--spoken-word { background: rgba(200, 112, 58, 0.15); color: var(--oj-type-spoken); }
.oj-type--concert  { background: rgba(90, 122, 92, 0.15); color: var(--oj-type-concert); }
.oj-type--reading  { background: rgba(184, 180, 204, 0.15); color: var(--oj-type-reading); }

/* ── NATION TAGS ── */
.oj-nation-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.oj-nation-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--oj-sage);
    border: 1px solid rgba(90, 122, 92, 0.35);
    padding: 3px 10px;
    border-radius: var(--oj-radius-sm);
}
.oj-nation-dot {
    width: 5px;
    height: 5px;
    background: var(--oj-sage);
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* ── STAR GLYPH ── */
.oj-star-glyph { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ── CARDS (shared) ── */
.oj-card {
    background: var(--oj-ink);
    border: 1px solid rgba(240, 230, 160, 0.08);
    border-radius: var(--oj-radius-lg);
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    color: inherit;
}
.oj-card:hover {
    border-color: rgba(240, 230, 160, 0.25);
    transform: translateY(-2px);
    opacity: 1;
}

/* ── CALLOUT BOXES ── */
.oj-callout {
    padding: 16px 20px;
    border-radius: 0 var(--oj-radius-md) var(--oj-radius-md) 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--oj-ash);
    margin-block: 24px;
    max-width: 64ch;
}
.oj-callout--star {
    background: rgba(240, 230, 160, 0.06);
    border-left: 3px solid var(--oj-star);
}
.oj-callout--star strong { color: var(--oj-star); font-weight: 500; }
.oj-callout--ember {
    background: rgba(200, 112, 58, 0.07);
    border-left: 3px solid var(--oj-ember);
}
.oj-callout--ember strong { color: var(--oj-ember); font-weight: 500; }

/* ── WC COMING SOON ── */
.oj-coming-soon {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--oj-slate);
    border: 1px solid rgba(107, 104, 130, 0.25);
    padding: 2px 8px;
    border-radius: var(--oj-radius-sm);
    margin-left: 8px;
    vertical-align: middle;
}
.oj-coming-soon-notice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 28px;
    background: var(--oj-dusk);
    border: 1px solid rgba(240, 230, 160, 0.12);
    border-radius: var(--oj-radius-lg);
    color: var(--oj-ash);
    margin-bottom: 32px;
}
.oj-coming-soon-notice svg { color: var(--oj-star); flex-shrink: 0; margin-top: 2px; }
.oj-coming-soon-notice strong { color: var(--oj-white); font-weight: 500; display: block; margin-bottom: 4px; }
.oj-coming-soon-notice p { font-size: 14px; margin: 0; }

/* ── BREADCRUMB ── */
.oj-breadcrumb {
    font-size: 11px;
    font-weight: 400;
    color: var(--oj-slate-text);
    letter-spacing: 0.04em;
    padding-block: 18px;
    background: var(--oj-ink);
    border-bottom: 1px solid rgba(240,230,160,0.06);
}
.oj-breadcrumb .oj-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
}
.oj-breadcrumb a {
    color: var(--oj-slate-text);
    text-decoration: none;
    transition: color 0.15s;
}
.oj-breadcrumb a:hover { color: var(--oj-ash); opacity: 1; }
.oj-bc-sep {
    color: var(--oj-slate);
    margin-inline: 6px;
    opacity: 0.6;
}
/* Current page — slightly brighter than the links */
.oj-breadcrumb [aria-current="page"] { color: var(--oj-ash); }

/* ── ACCESSIBILITY ── */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
}
.skip-link:focus {
    left: 0;
    padding: 8px 16px;
    background: var(--oj-star);
    color: var(--oj-night);
    font-weight: 500;
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── PRINT ── */
@media print {
    body { background: white; color: black; }
    nav, footer, .oj-btn { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   ANNOUNCE BAR
══════════════════════════════════════════════════════════════ */
.oj-announce-bar {
    background: var(--oj-star);
    color: var(--oj-night);
    font-size: 13px;
    font-weight: 500;
    position: relative;
    z-index: 200;
}
.oj-announce-bar .oj-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-block: 10px;
    min-height: 44px;
}
.oj-announce-bar__text {
    flex: 1;
    text-align: center;
    letter-spacing: 0.02em;
}
.oj-announce-bar__text a {
    color: var(--oj-night);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.oj-announce-dismiss {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--oj-night);
    font-size: 18px;
    line-height: 1;
    padding: 4px 8px;
    opacity: 0.6;
    transition: opacity 0.15s;
    flex-shrink: 0;
}
.oj-announce-dismiss:hover { opacity: 1; }
.oj-announce-bar[hidden] { display: none; }

/* ══════════════════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════════════════ */
.oj-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--oj-ink);
    border-bottom: 1px solid rgba(240,230,160,0.08);
    height: 64px;
    display: flex;
    align-items: center;
}
.oj-nav__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    height: 100%;
    gap: 0;
}

/* Logo — left slot */
.oj-nav__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--oj-font-display);
    font-size: 22px;
    font-weight: 400;
    color: var(--oj-white);
    letter-spacing: 0.02em;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity 0.15s;
    padding-right: 32px;
}
.oj-nav__logo:hover { opacity: 0.85; }
.oj-nav__logo svg { flex-shrink: 0; }

/* Primary nav links — centre slot, truly centred */
.oj-nav__links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}
.oj-nav__links li {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}
.oj-nav__links a {
    display: flex;
    align-items: center;
    height: 100%;
    padding-inline: 18px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--oj-ash);
    text-decoration: none;
    transition: color 0.15s;
    white-space: nowrap;
}
.oj-nav__links a:hover,
.oj-nav__links .current-menu-item > a,
.oj-nav__links .current-page-ancestor > a {
    color: var(--oj-white);
    opacity: 1;
}

/* Dropdown sub-menus */
.oj-nav__links .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--oj-ink);
    border: 1px solid rgba(240,230,160,0.12);
    border-top: 2px solid var(--oj-star);
    border-radius: 0 0 var(--oj-radius-md) var(--oj-radius-md);
    list-style: none;
    padding: 8px 0;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    z-index: 110;
}
.oj-nav__links li:hover > .sub-menu,
.oj-nav__links li:focus-within > .sub-menu {
    display: block;
}
.oj-nav__links .sub-menu li { height: auto; display: block; }
.oj-nav__links .sub-menu a {
    display: block;
    height: auto;
    padding: 10px 20px;
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--oj-ash);
    border-radius: 0;
}
.oj-nav__links .sub-menu a:hover { color: var(--oj-white); background: rgba(240,230,160,0.06); }

/* Shop CTA button — right slot */
.oj-nav__shop {
    flex-shrink: 0;
    font-size: 11px;
    padding: 10px 20px;
    padding-left: 32px;
}

/* Mobile toggle — hidden on desktop */
.oj-nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    width: 40px;
    height: 40px;
}
.oj-nav__toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--oj-white);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}
/* Open state */
.oj-nav__toggle[aria-expanded="true"] .oj-nav__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.oj-nav__toggle[aria-expanded="true"] .oj-nav__toggle-bar:nth-child(2) {
    opacity: 0;
}
.oj-nav__toggle[aria-expanded="true"] .oj-nav__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Nav responsive ── */
@media ( max-width: 768px ) {
    .oj-nav__inner {
        display: flex;
        justify-content: space-between;
    }
    .oj-nav__toggle { display: flex; }
    .oj-nav__shop { display: none; }
    .oj-nav__logo { padding-right: 0; }

    .oj-nav__links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--oj-ink);
        border-bottom: 1px solid rgba(240,230,160,0.12);
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        gap: 0;
        padding: 16px 0 24px;
        box-shadow: 0 12px 32px rgba(0,0,0,0.4);
    }
    .oj-nav__links.is-open { display: flex; }
    .oj-nav__links li { height: auto; width: 100%; }
    .oj-nav__links a {
        height: auto;
        padding: 12px 32px;
        font-size: 13px;
        width: 100%;
    }
    .oj-nav__links .sub-menu {
        position: static;
        display: block;
        border: none;
        border-top: none;
        border-left: 2px solid rgba(240,230,160,0.15);
        border-radius: 0;
        box-shadow: none;
        margin-left: 32px;
        padding: 4px 0;
        background: transparent;
    }
    .oj-nav__links .sub-menu a { padding: 8px 16px; font-size: 12px; }
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.oj-footer {
    background: var(--oj-ink);
    border-top: 1px solid rgba(240,230,160,0.08);
    padding-block: 64px 40px;
    margin-top: 80px;
}
.oj-footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(240,230,160,0.08);
    margin-bottom: 32px;
}

/* Brand column */
.oj-footer__name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--oj-font-display);
    font-size: 22px;
    font-weight: 400;
    color: var(--oj-white);
    margin-bottom: 16px;
}
.oj-footer__tagline {
    font-size: 14px;
    font-weight: 300;
    color: var(--oj-ash);
    line-height: 1.65;
    max-width: 34ch;
    margin-bottom: 12px;
}
.oj-footer__territory {
    font-size: 12px;
    font-weight: 300;
    color: var(--oj-slate);
    line-height: 1.6;
    max-width: 38ch;
}

/* Nav columns */
.oj-footer__col-title {
    font-family: var(--oj-font-sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--oj-slate);
    margin-bottom: 16px;
    line-height: 1;
}
.oj-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.oj-footer__links a {
    font-size: 14px;
    font-weight: 300;
    color: var(--oj-ash);
    text-decoration: none;
    transition: color 0.15s;
}
.oj-footer__links a:hover { color: var(--oj-white); opacity: 1; }

/* Bottom bar */
.oj-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.oj-footer__copy {
    font-size: 12px;
    font-weight: 300;
    color: var(--oj-slate);
    letter-spacing: 0.04em;
}
.oj-footer__legal {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.oj-footer__legal a {
    font-size: 11px;
    font-weight: 400;
    color: var(--oj-slate);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.15s;
}
.oj-footer__legal a:hover { color: var(--oj-ash); opacity: 1; }

/* Footer responsive */
@media ( max-width: 900px ) {
    .oj-footer__top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .oj-footer__brand { grid-column: 1 / -1; }
}
@media ( max-width: 600px ) {
    .oj-footer__top { grid-template-columns: 1fr; }
    .oj-footer__bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
}
