/*
Theme Name: BestTarahi
Author: BestTarahi
Description: An independent gaming guides theme for BestTarahi.
Version: 1.0.3
Requires PHP: 8.0
*/
:root {
    color-scheme: dark;
    --background: #101015;
    --surface: #191920;
    --border: #30303a;
    --text: #f7f6fb;
    --muted: #bab8c6;
    --accent: #c9f875;
    --tint: #d1b5ff;
    --art: #352253;
    --wrap: min(1160px, calc(100% - 64px));
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--background); }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.screen-reader-text, .skip-link:not(:focus) {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus { position: absolute; z-index: 5; top: 12px; left: 12px; padding: 12px; background: var(--background); }
.site-header { border-bottom: 1px solid var(--border); }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; font-size: 1.42rem; font-weight: 850; letter-spacing: -.06em; text-decoration: none; }
.brand-dot { color: var(--accent); }
.brand-mark {
    display: inline-grid; width: 29px; height: 29px; grid-template-columns: repeat(3, 3px);
    place-content: center; align-items: end; gap: 2px; margin-right: 10px;
    transform: rotate(-8deg); border-radius: 7px; background: var(--accent);
}
.brand-mark i { height: 7px; background: #161918; }
.brand-mark i:nth-child(2) { height: 11px; }
.brand-mark i:nth-child(3) { height: 15px; }
.site-nav { display: flex; gap: clamp(14px, 2.7vw, 35px); align-items: center; }
.site-nav a, .site-footer nav a { font-size: .92rem; font-weight: 650; text-decoration: none; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current], .site-footer nav a:hover { color: var(--accent); }
.menu-toggle { display: none; }
.hero {
    margin-top: 36px; min-height: 418px; display: grid; grid-template-columns: 1fr 1.2fr;
    overflow: hidden; align-items: stretch; border: 1px solid var(--border);
    border-radius: 24px; background: #17151f;
}
.hero-copy { z-index: 1; display: flex; align-items: flex-start; flex-direction: column; justify-content: center; padding: clamp(28px, 5vw, 66px); }
.hero h1, .article h1, .archive-head h1 {
    font-size: clamp(2.7rem, 6.1vw, 5.65rem); line-height: .98; margin: 0;
    letter-spacing: -.075em; font-weight: 850;
}
.hero h1 span { color: var(--accent); }
.hero-copy p { color: var(--muted); max-width: 32ch; font-size: 1.05rem; line-height: 1.55; margin: 22px 0; }
.button {
    display: inline-block; border-radius: 8px; padding: 12px 17px; background: var(--accent);
    color: #182009; font-size: .92rem; font-weight: 780; text-decoration: none;
}
.button:hover { background: #deffab; }
.hero-art { position: relative; min-width: 0; isolation: isolate; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #17151f, transparent 33%); }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.guide-section { padding: 41px 0; border-top: 1px solid var(--border); scroll-margin-top: 20px; }
.featured { margin-top: 44px; border-top: 0; padding-top: 0; }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 20px; }
.section-head h2 { margin: 0; font-size: clamp(1.65rem, 3.5vw, 2.6rem); line-height: 1.06; font-weight: 820; letter-spacing: -.055em; }
.section-head p { color: var(--muted); margin: 8px 0 0; line-height: 1.5; }
.section-link { font-size: .9rem; font-weight: 720; color: var(--tint); white-space: nowrap; text-underline-offset: 4px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-card { position: relative; min-width: 0; border: 1px solid var(--border); background: var(--surface); border-radius: 14px; overflow: hidden; }
.guide-card:hover, .guide-card:focus-within { border-color: var(--tint); }
.palette-all-gaming { --tint: #d1b5ff; --art: #352253; }
.palette-gaming-equipment { --tint: #a9f0e9; --art: #163b3d; }
.palette-console { --tint: #ffccab; --art: #4c2b25; }
.palette-pc-games { --tint: #d5f9a1; --art: #2d3b20; }
.card-image { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.card-art {
    display: flex; align-items: center; justify-content: end; min-height: 94px; overflow: hidden;
    background: repeating-linear-gradient(125deg, transparent 0 26px, #ffffff0c 26px 27px), linear-gradient(110deg, var(--surface), var(--art));
}
.card-art span { color: var(--tint); opacity: .61; transform: rotate(-10deg); margin-right: 14%; font-size: 3.8rem; font-weight: 900; letter-spacing: -.09em; }
.card-copy { padding: 18px 20px 21px; }
.meta { font-size: .82rem; font-weight: 670; color: var(--tint); line-height: 1.5; }
.meta span { margin: 0 3px; color: var(--muted); }
.card-copy h3 { font-size: 1.28rem; line-height: 1.19; letter-spacing: -.028em; margin: 7px 0 8px; }
.card-copy a { text-decoration: none; }
.card-copy a::after { content: ""; position: absolute; inset: 0; }
.card-copy p { margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.52; }
.archive-main, .article-main { min-height: 56vh; padding-block: 32px 55px; }
.archive-head, .article-head { padding: clamp(25px, 5vw, 55px); border-radius: 20px; background: linear-gradient(115deg, var(--surface), var(--art)); border: 1px solid var(--border); }
.archive-head { margin-bottom: 22px; }
.archive-head h1, .article h1 { font-size: clamp(2.45rem, 6.5vw, 4.8rem); max-width: 19ch; }
.archive-head > p:last-child, .dek { color: var(--muted); font-size: 1.12rem; line-height: 1.55; max-width: 55ch; }
.breadcrumb { color: var(--tint); font-size: .9rem; margin: 0 0 18px; }
.breadcrumb span { margin-inline: 6px; opacity: .7; }
.breadcrumb a { text-underline-offset: 3px; }
.article-head .meta { margin-bottom: 0; }
.article-copy { max-width: 72ch; margin: 28px auto 46px; font-size: 1.065rem; line-height: 1.72; }
.article-copy h2 { font-size: clamp(1.37rem, 3.8vw, 1.95rem); line-height: 1.17; letter-spacing: -.04em; margin: 1.45em 0 .45em; }
.article-copy p, .article-copy ul, .article-copy ol { margin: 0 0 1em; }
.article-copy a { color: var(--tint); text-underline-offset: 3px; overflow-wrap: anywhere; }
.article-copy li { margin-bottom: .35em; }
.article-copy table { width: 100%; border-collapse: collapse; margin-bottom: 1em; }
.article-copy th, .article-copy td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.article-image { margin: 30px auto 0; max-width: 72ch; }
.article-image img { border-radius: 14px; }
.related { padding-bottom: 0; }
.site-footer { background: #15151b; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 30px; }
.footer-inner p { color: var(--muted); margin: 9px 0 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.navigation.pagination { margin-top: 24px; }
.navigation.pagination .page-numbers { display: inline-block; padding: 7px 11px; background: var(--surface); border-radius: 5px; }
@media (max-width: 900px) {
    .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero { min-height: 360px; }
}
@media (max-width: 760px) {
    :root { --wrap: calc(100% - 32px); }
    .header-inner { flex-wrap: wrap; min-height: 62px; padding-block: 13px; }
    .site-nav { width: 100%; display: grid; gap: 0; }
    .site-nav a { padding: 12px 3px; }
    .has-menu-script .site-nav:not(.is-open) { display: none; }
    .menu-toggle {
        display: inline-flex; gap: 10px; align-items: center; border: 1px solid var(--border);
        background: var(--surface); color: var(--text); border-radius: 7px; padding: 8px 11px;
    }
    .menu-bars { display: inline-block; width: 13px; height: 9px; border-block: 1px solid currentColor; }
    .hero { margin-top: 20px; grid-template-columns: minmax(0, 1fr); border-radius: 16px; }
    .hero-copy { padding: 30px 23px 17px; }
    .hero-copy p { margin: 16px 0; }
    .hero-art { min-height: 205px; }
    .hero-art::after { background: linear-gradient(180deg, #17151f, transparent 40%); }
    .hero-art img { object-position: center 63%; }
    .guide-section { padding-block: 28px; }
    .featured { margin-top: 28px; padding-top: 0; }
    .footer-inner { flex-direction: column; align-items: start; }
}
@media (max-width: 490px) {
    .guide-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .card-art { min-height: 77px; }
    .card-art span { font-size: 3rem; }
    .section-head { align-items: start; }
    .section-link { padding-top: 5px; }
    .article-copy { font-size: 1rem; }
    .article-copy th, .article-copy td { padding: 6px; overflow-wrap: anywhere; }
}

.home-tags {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    padding-block: 17px 24px; border-top: 1px solid var(--border);
    color: var(--muted); font-size: .8125rem; line-height: 1.4;
}
.home-tags-label { color: var(--text); font-weight: 700; }
.home-tag { padding: 4px 6px; border: 1px solid var(--border); border-radius: 6px; }
