/*
Theme Name: Duelarium
Theme URI: https://duelarium.com
Author: Zargham Labs LLC
Description: Marketing site and blog for Duelarium (Cover Duel, Clashbound). Self-hosted fonts, no third-party requests.
Version: 1.0.0
Requires PHP: 8.1
License: Proprietary
Text Domain: duelarium
*/

@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/BarlowCondensed-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/BarlowCondensed-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/Manrope-VF.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --navy: #011132;      /* logo background */
  --navy-2: #06194a;
  --navy-3: #0b2560;
  --line: #1b3470;
  --cyan: #18c0ff;
  --cyan-soft: #8cd3f5;
  --amber: #f0a828;
  --text: #eaf2ff;
  --muted: #a9b9d6;
  --radius: 16px;
  --head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--navy); color: var(--text); font: 400 17px/1.65 var(--body); }
img, picture { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.05; letter-spacing: .01em; text-transform: uppercase; margin: 0 0 .5em; color: #fff; }
h2 { font-size: clamp(30px, 4vw, 42px); }
h3 { font-size: 24px; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(780px, 100% - 32px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--navy); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
main:focus { outline: none; }
.small { font-size: 14px; color: var(--muted); }
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--muted); max-width: 62ch; }
.kicker { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--amber); font-size: 16px; margin-bottom: .4em; }
.kicker.big { font-size: 22px; }
.status { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan-soft); margin-bottom: .6em; }

/* Buttons */
.btn { display: inline-block; background: var(--cyan); color: var(--navy); font-family: var(--head); font-weight: 700; font-size: 19px; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; padding: 12px 22px; border-radius: 10px; border: 2px solid var(--cyan); transition: background .15s, color .15s; }
.btn:hover { background: #fff; border-color: #fff; color: var(--navy); }
.btn.ghost { background: transparent; color: var(--cyan); }
.btn.ghost:hover { color: var(--navy); background: #fff; }
.ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(1, 17, 50, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand img { height: 40px; width: auto; }
.links { display: flex; align-items: center; gap: 28px; }
.links a { color: var(--text); text-decoration: none; font-family: var(--head); font-weight: 600; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; }
.links a:hover, .links a[aria-current="page"] { color: var(--cyan); }
.links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--amber); }
.menu-btn { display: none; background: none; border: 2px solid var(--line); color: var(--text); font: 700 16px var(--head); letter-spacing: .08em; text-transform: uppercase; padding: 8px 14px; border-radius: 8px; cursor: pointer; }
.sheet { display: none; }
@media (max-width: 760px) {
  .links a { display: none; }
  .menu-btn { display: inline-block; }
  .brand img { height: 34px; }
  .sheet[data-open="true"] { display: block; border-top: 1px solid var(--line); padding: 8px 16px 20px; }
  .sheet ul { list-style: none; margin: 0; padding: 0; }
  .sheet a { display: block; padding: 12px 0; color: var(--text); text-decoration: none; font: 600 24px var(--head); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line); }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 clamp(48px, 7vw, 80px); text-align: center;
  background: radial-gradient(600px 300px at 20% 30%, rgba(24, 192, 255, .14), transparent 70%), radial-gradient(600px 300px at 80% 70%, rgba(240, 168, 40, .12), transparent 70%); }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: min(620px, 100%); }
.hero-line { font-family: var(--head); font-weight: 700; text-transform: uppercase; font-size: clamp(26px, 4vw, 40px); letter-spacing: .03em; margin: 18px 0 10px; color: #fff; }
.hero-line span { color: var(--amber); }
.hero-line.small { font-size: clamp(22px, 3vw, 30px); text-align: left; margin-top: 0; }
.hero .lead { margin-inline: auto; }
.hero-entries { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 20px; margin-top: 28px; }
.entry { position: relative; display: block; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--line); text-decoration: none; transition: transform .2s, border-color .2s; }
.entry:hover { transform: translateY(-3px); border-color: var(--cyan); }
.entry:nth-child(2):hover { border-color: var(--amber); }
.entry-art img { aspect-ratio: 1; width: 100%; object-fit: cover; }
.entry-text { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; text-align: left; background: linear-gradient(transparent, rgba(1, 17, 50, .95)); }
.entry-text .kicker { display: block; font-size: 14px; margin: 0; }
.entry-text strong { display: block; font: 700 30px/1 var(--head); text-transform: uppercase; color: #fff; }
@media (max-width: 560px) { .hero-entries { grid-template-columns: 1fr 1fr; gap: 12px; } .entry-text strong { font-size: 22px; } .entry-text .kicker { font-size: 12px; } }

/* Sections */
.band { padding: clamp(48px, 7vw, 80px) 0; }
.band.tight { padding-top: 8px; }
.band.alt { background: var(--navy-2); border-block: 1px solid var(--line); }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.more { font-family: var(--head); font-weight: 600; font-size: 19px; text-transform: uppercase; letter-spacing: .05em; }
.page-head { padding: clamp(40px, 6vw, 72px) 0 24px; }
.page-head.center { text-align: center; padding-bottom: 80px; }
.page-head.center .lead { margin-inline: auto; }
.page-title { font-size: clamp(44px, 7vw, 76px); }
.post-title { font-size: clamp(36px, 5.5vw, 58px); text-transform: none; }
.err-mark { margin: 0 auto 24px; border-radius: 24px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }

/* Cards */
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { display: grid; grid-template-columns: 200px 1fr; gap: 0; background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-art, .card-art picture { display: block; height: 100%; }
.card-art img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; }
.card-body { padding: 22px 24px; }
.card-body h2, .card-body h3 { font-size: 34px; margin-bottom: .15em; }
.card-body h2 a, .card-body h3 a { color: #fff; text-decoration: none; }
.card-body h2 a:hover, .card-body h3 a:hover { color: var(--cyan); }
.card-body p:not(.status):not(.kicker) { color: var(--muted); font-size: 16px; }
@media (max-width: 980px) { .grid2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .card { grid-template-columns: 1fr; } .card-art img { aspect-ratio: 16 / 10; min-height: 0; } }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillars > div { border-top: 3px solid var(--cyan); padding-top: 16px; }
.pillars > div:nth-child(2) { border-color: var(--amber); }
.pillars p { color: var(--muted); }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

/* Game page */
.game-hero { padding: clamp(32px, 5vw, 64px) 0 clamp(40px, 6vw, 72px); background: radial-gradient(700px 360px at 85% 40%, rgba(24, 192, 255, .12), transparent 70%); }
.game-hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.game-art img { border-radius: 28px; border: 2px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
@media (max-width: 860px) { .game-hero-inner { grid-template-columns: 1fr; } .game-art { max-width: 420px; } }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-width: 180px; padding: 10px 18px; border-radius: 12px; font: 700 21px/1.1 var(--head); letter-spacing: .03em; text-transform: uppercase; }
.store small { font: 600 12px var(--body); letter-spacing: .08em; text-transform: uppercase; }
.store.placeholder { border: 2px dashed var(--line); color: var(--muted); }
.store.live { background: #000; border: 2px solid #fff; color: #fff; text-decoration: none; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 20px; margin-bottom: 16px; }
.shot { aspect-ratio: 9 / 16; border: 2px dashed var(--line); border-radius: var(--radius); display: grid; place-items: center; color: var(--muted); font: 600 18px var(--head); text-transform: uppercase; letter-spacing: .06em; text-align: center; padding: 12px;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .02) 0 12px, transparent 12px 24px); }
@media (max-width: 640px) { .shots { grid-template-columns: repeat(3, 1fr); gap: 8px; } .shot { font-size: 13px; } }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.facts p { color: var(--muted); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card { background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.email-big { font: 700 clamp(26px, 4vw, 36px) var(--head); word-break: break-all; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }

/* Prose (About, legal pages, blog posts) */
.prose { font-size: 17px; }
.prose h2 { font-size: clamp(28px, 3.4vw, 36px); margin-top: 1.6em; }
.prose h3 { font-size: 24px; margin-top: 1.4em; }
.prose h2[id], .prose h3[id] { scroll-margin-top: 90px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose strong { color: #fff; }
.prose img { border-radius: 12px; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--amber); color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose code { background: var(--navy-3); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.prose pre { background: var(--navy-3); padding: 16px; border-radius: 12px; overflow-x: auto; }
.prose .toc { background: var(--navy-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.notice { background: var(--navy-3); border-left: 4px solid var(--amber); padding: 14px 18px; border-radius: 8px; }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.post-card h2 { font-size: 28px; text-transform: none; }
.post-card h2 a { color: #fff; text-decoration: none; }
.post-card h2 a:hover { color: var(--cyan); }
.post-thumb img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-hero img { border-radius: var(--radius); margin-bottom: 8px; }
.pager { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.pager .page-numbers { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.pager .current { background: var(--cyan); color: var(--navy); }
@media (max-width: 980px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .posts { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #000d28; padding: 56px 0 28px; margin-top: 0; font-size: 15px; }
.fcols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.fbrand p { color: var(--muted); }
.flogo { height: 36px; width: auto; margin-bottom: 14px; }
.site-footer h2 { font-size: 18px; letter-spacing: .1em; color: var(--amber); margin-bottom: .8em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer nav a { color: var(--text); text-decoration: none; }
.site-footer nav a:hover { color: var(--cyan); text-decoration: underline; }
.legal-lines { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; color: var(--muted); font-size: 13px; }
.legal-lines p { margin-bottom: .5em; }
@media (max-width: 760px) { .fcols { grid-template-columns: 1fr 1fr; } .fbrand { grid-column: 1 / -1; } }

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