/*
Theme Name: TBX Premiere
Description: A dark editorial theme for TBX Premiere.
Version: 1.0.0
Text Domain: tbx-premiere
*/
:root {
    color-scheme: dark;
    --ink: #eef4fa;
    --muted: #abbfce;
    --accent: #a8d9fa;
    --base: #090e15;
    --panel: #111c28;
    --line: #354959;
    --display: 'Arial Narrow', 'Avenir Next Condensed', Impact, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--base); color: var(--ink); font: 1rem/1.6 system-ui, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2 { margin: 0; line-height: 1.05; }
.shell { width: min(1440px, calc(100% - 2 * clamp(16px, 5vw, 76px))); margin-inline: auto; }
.skip-link, .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip-link:focus { clip-path: none; width: auto; height: auto; top: 12px; left: 12px; padding: 8px 16px; z-index: 10; background: var(--base); }
.tbx-backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, #070c13d9, #0a131a35 75%), linear-gradient(180deg, #090e151c, #090e15 96%), url('assets/banner.jpg') 62% center / cover no-repeat;
}
body { isolation: isolate; }
.site-header { border-bottom: 1px solid #bad9ee32; background: #090e15c7; }
.header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 21px; }
.brand, .header-action { flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 850; letter-spacing: .045em; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 6px; border: 1px solid var(--line); }
.brand-accent { color: var(--accent); }
.primary-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.primary-nav li { position: relative; }
.primary-nav .sub-menu { padding-left: 12px; }
.primary-nav a, .site-footer a { color: var(--ink); text-decoration: none; }
.primary-nav a:hover, .site-footer a:hover { color: var(--accent); }
.header-action, .button {
    display: inline-flex; align-items: center; gap: 14px; padding: 10px 16px;
    text-decoration: none; color: var(--ink); border: 1px solid #9bc4e178; border-radius: 6px;
    background: #142333c7; transition: background-color .2s, border-color .2s;
}
.header-action:hover, .button:hover { background: #213e56; border-color: var(--accent); }
.hero { min-height: clamp(430px, 67svh, 770px); display: grid; align-items: end; padding-block: 44px clamp(48px, 8vw, 112px); }
.hero h1 { font: 900 clamp(55px, 12vw, 180px)/.8 var(--display); letter-spacing: -.045em; }
.hero h1 span { color: #bcdbef; font-size: .73em; }
.hero p { color: #c4d7e4; margin: 24px 0 16px; }
.releases { padding-block: clamp(28px, 5vw, 70px) 80px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.section-heading h1, .section-heading h2 { font: 850 clamp(30px, 6vw, 66px)/1 var(--display); }
.release-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.release-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(150deg, #1a2a39, #101923 82%); transition: transform .23s, border-color .23s; }
.release-card:is(:hover, :focus-within) { transform: translateY(-4px); border-color: var(--accent); }
.cover { display: block; aspect-ratio: 1; overflow: hidden; background: radial-gradient(at 75% 15%, #33516a, #14202c 70%); }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.release-card:hover .cover img { transform: scale(1.035); }
.card-body { padding: clamp(12px, 2vw, 22px); }
.card-body h2 { font-size: clamp(16px, 2vw, 24px); line-height: 1.25; overflow-wrap: anywhere; }
.card-body h2 a { color: var(--ink); text-decoration: none; }
.card-body h2 a::after { content: ''; position: absolute; inset: 0; }
.card-body h2 a:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 12px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 3px 12px; justify-content: space-between; color: var(--muted); font-size: .75rem; margin-bottom: 10px; }
input, textarea, button { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; max-width: 100%; }
.search-form { display: flex; gap: 6px; max-width: 100%; }
.search-form label { min-width: 0; }
.pagination, .post-navigation { margin-top: 34px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 10px; }
.page-numbers { padding: 6px 11px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); }
.detail { width: min(920px, calc(100% - 32px)); padding-block: clamp(36px, 8vw, 110px); min-height: 65vh; }
.detail-article, .comments { padding: clamp(16px, 4vw, 48px); border-radius: 14px; border: 1px solid var(--line); background: #111c28f5; }
.detail-header h1 { font-size: clamp(32px, 5vw, 64px); overflow-wrap: anywhere; }
.detail-meta { margin: 0 0 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 12px; }
.detail-cover { max-width: 480px; margin-block: 24px; }
.detail-cover img { border-radius: 8px; }
.entry-content { overflow-wrap: anywhere; }
.entry-content :is(iframe, video, audio) { max-width: 100%; }
.entry-content figure { max-width: 100%; margin-inline: auto; }
.entry-content :is(pre, table) { display: block; max-width: 100%; overflow-x: auto; }
.comments { margin-top: 28px; }
.site-footer { border-top: 1px solid var(--line); background: #090e15; }
.footer-inner, .footer-inner div { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-inner { padding-block: 30px; justify-content: space-between; }
@media (max-width: 900px) {
    .release-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .header-inner { flex-wrap: wrap; gap: 12px; padding-block: 12px; }
    .primary-nav { order: 3; flex-basis: 100%; }
}
@media (max-width: 540px) {
    .release-grid { grid-template-columns: minmax(0, 1fr); }
    .hero { min-height: clamp(330px, 58svh, 450px); }
    .brand { gap: 8px; font-size: .85rem; }
    .brand img { width: 42px; }
    .header-action { font-size: .8rem; padding: 7px 9px; gap: 5px; }
    .primary-nav a { font-size: .85rem; }
    .primary-nav ul { gap: 4px 14px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .release-card, .cover img, .button, .header-action { transition: none; }
    .release-card:is(:hover, :focus-within), .release-card:hover .cover img { transform: none; }
}
