/*
    Site     : playbritannia.co
    File     : assets/css/site.css
    Purpose  : Britannia Scripts theme: black & gold western
    Author   : Britannia
*/

:root {
    --bg: #0b0906;
    --bg-2: #120f0b;
    --panel: #1a1611;
    --panel-2: #221c15;
    --line: rgba(201, 164, 76, 0.28);
    --line-strong: rgba(201, 164, 76, 0.6);
    --gold: #c9a44c;
    --gold-light: #e6c878;
    --gold-deep: #9c7a2e;
    --text: #ece2c8;
    --text-dim: #a89a7c;
    --danger: #8b1e1e;

    --font-heading: 'Rye', Georgia, serif;
    --font-body: 'Crimson Pro', Georgia, 'Times New Roman', serif;

    --wrap: 1180px;
    --radius: 2px;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 19px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-light); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff1c9; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; line-height: 1.15; letter-spacing: 0.5px; margin: 0 0 0.5em; }
h1 { font-size: clamp(34px, 5.2vw, 60px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); color: var(--gold); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
code { font-family: Consolas, 'Courier New', monospace; font-size: 0.8em; color: var(--gold-light); background: rgba(0,0,0,.45); padding: 1px 6px; border: 1px solid var(--line); overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.gold { color: var(--gold); }
.subtle { color: var(--text-dim); font-size: 0.55em; }
.eyebrow { font-size: 14px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.lead { font-size: clamp(19px, 2vw, 22px); color: #d9ceb2; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--bg); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ── Buttons ── */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; min-height: 46px;
    font-family: var(--font-heading); font-size: 15px; letter-spacing: 1px; line-height: 1;
    color: var(--gold); background: transparent; border: 1px solid var(--gold);
    text-decoration: none; cursor: pointer; transition: background .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--gold-light); color: var(--bg); }
.btn:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: #1a1208; border-color: var(--gold-light); }
.btn-gold:hover { background: linear-gradient(180deg, #f3dc98, var(--gold-light)); color: #1a1208; }
.btn-small { padding: 8px 14px; min-height: 38px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }

/* ── Header ── */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(11, 9, 6, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand-name { font-family: var(--font-heading); font-size: 22px; letter-spacing: 1px; color: var(--text); white-space: nowrap; }
.brand-name em { font-style: normal; color: var(--gold); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--text); text-decoration: none; font-size: 18px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-light); }
.nav-discord { display: inline-flex; align-items: center; gap: 6px; }
.btn-cfx[data-signed-in] { border-style: dashed; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--gold); margin: 5px 0; }

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .site-nav {
        position: absolute; top: 72px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--bg-2); border-bottom: 1px solid var(--line);
        padding: 8px 20px 20px; display: none;
    }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
    .site-nav .btn { margin-top: 16px; }
    .brand-name { font-size: 19px; }
}

/* ── Hero ── */

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(900px 500px at 78% 40%, rgba(201,164,76,.16), transparent 60%),
        radial-gradient(700px 400px at 10% 90%, rgba(156,122,46,.12), transparent 60%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cpath d='M14 0l14 8v16L14 32 0 24V8zM14 32v17' fill='none' stroke='%23c9a44c' stroke-opacity='0.06'/%3E%3C/svg%3E");
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-art { position: relative; display: block; border: 2px solid var(--gold); padding: 6px; background: var(--bg); box-shadow: var(--shadow); transform: rotate(0.6deg); transition: transform .3s; }
.hero-art:hover { transform: rotate(0deg) translateY(-3px); }
.hero-art img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--line-strong); background: var(--panel); }
.hero-art-tag { position: absolute; left: -10px; bottom: 22px; background: var(--gold); color: #1a1208; font-family: var(--font-heading); font-size: 14px; padding: 6px 14px; letter-spacing: 1px; }

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 56px; gap: 36px; }
}

/* ── Trust strip ── */

.trust { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.trust-list { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-list li { padding: 22px 18px; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.trust-list li:first-child { border-left: none; }
.trust-list strong { font-family: var(--font-heading); font-weight: 400; color: var(--gold); font-size: 17px; }
.trust-list span { color: var(--text-dim); font-size: 16px; }
@media (max-width: 860px) {
    .trust-list { grid-template-columns: 1fr 1fr; }
    .trust-list li:nth-child(3) { border-left: none; }
    .trust-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ── Sections ── */

.section { padding: 84px 0; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p:last-child { color: var(--text-dim); }

/* ── Product cards ── */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); transition: border-color .2s, transform .2s, box-shadow .2s; }
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.card-cat { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { color: var(--gold-light); }
.card-text { color: var(--text-dim); font-size: 17px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-actions { display: flex; gap: 8px; }
.card-soon { border-style: dashed; background: transparent; justify-content: center; }
.card-soon .btn { align-self: flex-start; margin-top: auto; }

.price { margin: 0; font-family: var(--font-heading); font-size: 24px; color: var(--gold-light); }
.price s { font-family: var(--font-body); font-size: 17px; color: var(--text-dim); margin-right: 6px; }
.price-lg { font-size: 38px; margin: 6px 0 16px; }

/* ── Spotlight ── */

.spotlight { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spotlight-inner { display: grid; grid-template-columns: 0.8fr 1fr; gap: 56px; align-items: center; }
.spotlight-media img { margin: 0 auto; max-height: 640px; width: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.6)); }
@media (max-width: 900px) { .spotlight-inner { grid-template-columns: 1fr; } .spotlight-media { order: 2; } }

.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ''; position: absolute; left: 3px; top: 0.6em; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); }
.ticks-2col { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .ticks-2col { grid-template-columns: 1fr; } }

/* ── Steps ── */

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { counter-increment: step; background: var(--panel); border: 1px solid var(--line); padding: 26px 22px; }
.steps li::before {
    content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px;
    font-family: var(--font-heading); color: #1a1208; background: var(--gold);
}
.steps p { color: var(--text-dim); margin: 0; font-size: 17px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ── Discord band ── */

.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: radial-gradient(600px 200px at 20% 50%, rgba(201,164,76,.14), transparent 70%), var(--bg-2); }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 56px; padding-bottom: 56px; flex-wrap: wrap; }
.band h2 { margin-bottom: 6px; }
.band p { margin: 0; color: var(--text-dim); }

/* ── Product page ── */

.product { padding-top: 28px; padding-bottom: 84px; }
.crumbs { font-size: 16px; color: var(--text-dim); margin-bottom: 24px; }
.crumbs a { color: var(--text-dim); }
.product-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; align-items: start; }
.product-head { margin-bottom: 26px; }
.gallery-main { margin: 0 0 12px; border: 1px solid var(--line-strong); padding: 5px; background: var(--bg); }
.gallery-main img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: var(--panel); }
.gallery-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb { padding: 3px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; width: 120px; }
.thumb img { aspect-ratio: 16 / 10; object-fit: cover; }
.thumb.is-active { border-color: var(--gold); }
.panel { background: var(--panel); border: 1px solid var(--line); padding: 24px; margin: 28px 0; }
.panel h2 { font-size: 22px; }
.buy-box { position: sticky; top: 96px; }
.buy-inner { background: var(--panel); border: 2px solid var(--gold); outline: 1px solid var(--line); outline-offset: -8px; padding: 26px; }
.buy-name { font-family: var(--font-heading); font-size: 20px; margin: 0; }
.buy-note { font-size: 15px; color: var(--text-dim); margin: 14px 0; }
.buy-facts { list-style: none; padding: 0; margin: 0 0 16px; font-size: 16px; }
.buy-facts li { padding: 7px 0 7px 22px; border-top: 1px dotted var(--line); position: relative; }
.buy-facts li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); }
.reqs { border-top: 1px solid var(--line); padding-top: 12px; }
.reqs-title { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; }
.reqs code { display: inline-block; margin: 0 4px 6px 0; }
.buy-help { display: block; margin-top: 10px; font-size: 16px; }
@media (max-width: 960px) {
    .product-grid { grid-template-columns: 1fr; }
    .buy-box { position: static; order: -1; }
}

/* ── Prose (descriptions, legal) ── */

.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin-top: 1.6em; }
.prose h3 { font-size: 21px; color: var(--gold); margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--gold); }
.prose img { border: 1px solid var(--line); margin: 1em 0; }
.prose blockquote { border-left: 3px solid var(--gold); margin: 1em 0; padding: 4px 18px; color: var(--text-dim); }

/* ── Pages ── */

.page { padding-top: 56px; padding-bottom: 84px; }
.page-cta { margin-top: 32px; color: var(--text-dim); }
.faq { max-width: 820px; display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 50px 18px 22px; font-family: var(--font-heading); font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 24px; font-family: var(--font-body); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 22px 20px; margin: 0; color: #d9ceb2; }

/* ── Footer ── */

.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font-size: 15px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); font-family: var(--font-body); font-weight: 600; margin-bottom: 12px; }
.footer-grid nav a { display: block; color: var(--text-dim); text-decoration: none; padding: 3px 0; }
.footer-grid nav a:hover { color: var(--gold-light); }
.footer-blurb { color: var(--text-dim); font-size: 16px; margin-top: 12px; max-width: 320px; }
.footer-base { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; padding-bottom: 28px; font-size: 14px; color: var(--text-dim); }
.footer-base p { margin: 0 0 4px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* ── Toast ── */

.toast {
    position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100;
    max-width: min(92vw, 520px); padding: 14px 20px;
    background: var(--panel-2); border: 1px solid var(--gold); color: var(--text); box-shadow: var(--shadow);
    font-size: 17px; text-align: center;
}

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