/*
Theme Name: Darkwatch
Theme URI: https://darkwatchforever.com
Description: Guild site theme for the Darkwatch revival. Night-sky flare hero, gold-on-stone styling.
Version: 1.0.0
Requires PHP: 8.0
Text Domain: darkwatch
*/

/* Layout: full-bleed bands (hero, news, oath, page banners) with a 1180px inner column. */
:root {
	--gold: #e8b65a;
	--gold-hi: #ffd98a;
	--gold-lo: #8a6324;
	--ink: #07080d;
	--stone: #14161f;
	--stone-2: #1c1f2b;
	--panel: #0d0f16;
	--line: #2a2a33;
	--text: #d8d2c4;
	--muted: #8f8a7e;
	--flare: #ff4a2a;
	--display: 'Cinzel', 'Trajan Pro', Georgia, serif;
	--deco: 'Cinzel Decorative', 'Cinzel', Georgia, serif;
	--body: 'Lato', 'Segoe UI', Helvetica, Arial, sans-serif;
	color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--ink); color: var(--text); font: 17px/1.65 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--gold-hi); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* ---------- nav ---------- */
.site-nav {
	position: fixed; inset: 0 0 auto 0; z-index: 50;
	display: flex; align-items: center; gap: 32px;
	padding: calc(14px + env(safe-area-inset-top, 0px)) max(40px, env(safe-area-inset-right, 0px)) 14px max(40px, env(safe-area-inset-left, 0px));
	background: linear-gradient(to bottom, rgba(5,6,10,.95), rgba(5,6,10,0));
	transition: background .3s;
}
.site-nav.solid { background: rgba(7,8,13,.96); box-shadow: 0 1px 0 rgba(232,182,90,.25); }
body.admin-bar .site-nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-nav { top: 46px; } }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand span { font-family: var(--deco); color: var(--gold); font-size: 20px; letter-spacing: 1px; text-shadow: 0 0 12px rgba(232,182,90,.35); }
.site-nav .menu { list-style: none; display: flex; gap: 28px; margin: 0 0 0 auto; padding: 0; }
.site-nav .menu a { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: #cfc6b3; text-decoration: none; }
.site-nav .menu a:hover, .site-nav .menu .current-menu-item > a { color: var(--gold-hi); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--gold-lo); color: var(--gold); font-family: var(--display); letter-spacing: 2px; padding: 8px 12px; cursor: pointer; }

.btn { display: inline-block; font-family: var(--display); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; cursor: pointer; border: 0; }
.btn-gold {
	color: #1a1006 !important; padding: 14px 34px; font-size: 15px;
	background: linear-gradient(to bottom, var(--gold-hi), var(--gold) 45%, var(--gold-lo));
	box-shadow: 0 8px 30px rgba(255,120,40,.25);
	clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%);
}
.btn-gold:hover { filter: brightness(1.12); }
.btn-ghost { color: var(--gold) !important; padding: 13px 30px; font-size: 14px; border: 1px solid rgba(232,182,90,.55); background: rgba(0,0,0,.35); }
.btn-ghost:hover { background: rgba(232,182,90,.1); }
.site-nav .btn-gold { padding: 9px 22px; font-size: 12px; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; min-height: 640px; max-height: 1000px; overflow: hidden; background: #05060a center bottom / cover no-repeat; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgba(5,6,12,.55), rgba(5,6,12,.2) 45%, rgba(5,6,12,.35) 75%); }
#sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 2; }
/* the photo's own mountains are the ground; this just darkens the foreground the cast stands in */
.ground { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; z-index: 3; background: linear-gradient(to bottom, rgba(7,8,13,0), rgba(7,8,13,.75) 45%, var(--ink)); }
/* ---------- the cast: one scene, one scale. --h is a human's height; each figure is --h
   times its race/kit factor so they read as standing together. Only real art is shown. ---------- */
.cast { position: absolute; left: 0; right: 0; bottom: 7%; height: 0; z-index: 4; --h: clamp(130px, 24vh, 230px); }
.char { position: absolute; bottom: 0; margin: 0; transform: translateX(-50%); }
.char > img { display: block; height: 100%; width: auto; filter: drop-shadow(0 0 18px rgba(0,0,0,.6)) brightness(.92); }
.char::before { content: ''; position: absolute; left: 50%; bottom: -8px; width: 80%; height: 18px; transform: translateX(-50%);
	background: radial-gradient(ellipse, rgba(0,0,0,.8), transparent 70%); }
.char.hunter  { left: 14%; height: calc(var(--h) * 1.1); }
.char.paladin { left: 30%; height: calc(var(--h) * 1.05); }
.char.priest  { left: 70%; height: calc(var(--h) * 1.3); }
.char.warrior { left: 86%; height: calc(var(--h) * 1.35); }
#flare-origin { position: absolute; width: 4px; height: 4px; margin: -2px 0 0 -2px; }
#flare-origin.offstage { left: 6%; top: calc(var(--h) * -.6); }
/* Divine Shield: a soft golden dome of light, no hard edge */
.char.paladin::after { content: ''; position: absolute; left: 50%; top: 50%; width: calc(var(--h) * 1.35); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
	background: radial-gradient(circle, rgba(255,240,190,.06) 0 40%, rgba(255,214,120,.2) 60%, rgba(255,214,120,.08) 68%, rgba(255,214,120,0) 72%);
	mix-blend-mode: screen; animation: dw-bubble 2.4s ease-in-out infinite; pointer-events: none; }
@keyframes dw-bubble { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
/* the priest in the outhouse doorway; a dwarf comes up to about three quarters of a human */
.char.priest .outhouse { height: 100%; }
.char.priest .priest-art { position: absolute; bottom: 0; left: 50%; height: calc(var(--h) * .72); width: auto; transform: translateX(-50%); }
/* the warrior's line, in WoW's own red /yell text */
.yell { position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, 6px); white-space: nowrap;
	font: 700 clamp(15px, 1.5vw, 21px) var(--body); color: #ff4b3a; letter-spacing: .3px;
	text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 0 0 8px rgba(0,0,0,.8);
	opacity: 0; transition: opacity .4s ease 1.4s, transform .4s ease 1.4s; }
.hero.lit .yell, .no-js .yell { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .char.paladin::after { animation: none; } .yell { opacity: 1; transform: translate(-50%, 0); transition: none; } }
@media (max-width: 700px) {
	.cast { --h: clamp(80px, 13vh, 110px); bottom: 6%; }
	.char.hunter { left: 12%; } .char.paladin { left: 34%; } .char.priest { left: 64%; } .char.warrior { left: 86%; }
	.replay { bottom: 10px; right: 10px; padding: 6px 10px; font-size: 11px; }
	.yell { left: auto; right: 0; transform: translateY(6px); }
	.hero.lit .yell { transform: none; }
}
.glow { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; mix-blend-mode: screen;
	background: radial-gradient(ellipse at 50% 22%, rgba(255,90,40,.45), rgba(120,20,10,.15) 40%, transparent 70%);
	transition: opacity 1.2s ease; }
.glow.on { opacity: 1; }
.hero .copy {
	position: absolute; z-index: 5; left: 50%; top: 37%; transform: translate(-50%, -50%);
	width: min(900px, 92vw); text-align: center;
	opacity: 0; transition: opacity 1.4s ease, transform 1.4s ease;
}
.hero .copy.on, .no-js .hero .copy { opacity: 1; transform: translate(-50%, -54%); }
.eyebrow { font-family: var(--display); font-weight: 700; letter-spacing: 6px; font-size: 13px; color: var(--gold); text-transform: uppercase; }
.eyebrow::before, .eyebrow::after { content: ''; display: inline-block; width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); vertical-align: middle; margin: 0 14px; }
.eyebrow::after { transform: scaleX(-1); }
.hero h1, .banner h1 {
	font-family: var(--display); font-weight: 900; line-height: .95; margin: 18px 0 20px;
	letter-spacing: 3px; text-transform: uppercase; text-wrap: balance;
	background: linear-gradient(to bottom, #fff3d6 0%, var(--gold-hi) 35%, var(--gold) 60%, var(--gold-lo) 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
	filter: drop-shadow(0 4px 0 #1a0f04) drop-shadow(0 0 30px rgba(255,110,40,.35));
}
.hero h1 { font-size: clamp(40px, 7.5vw, 92px); }
.lede { font-size: clamp(16px, 1.6vw, 20px); line-height: 1.6; color: #e6dfcf; max-width: 640px; margin: 0 auto 32px; text-shadow: 0 2px 8px #000; }
.lede b, .lede strong { color: var(--gold-hi); }
.ctas { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.replay { position: absolute; z-index: 6; right: max(24px, env(safe-area-inset-right, 0px)); bottom: 24px; font-family: var(--display); font-size: 12px; letter-spacing: 2px;
	color: var(--muted); background: rgba(0,0,0,.45); border: 1px solid #333; padding: 8px 14px; cursor: pointer; }
.replay:hover { color: var(--gold); border-color: var(--gold-lo); }
@media (prefers-reduced-motion: reduce) { .hero .copy { opacity: 1; transform: translate(-50%, -54%); transition: none; } }

/* ---------- bands ---------- */
.trim { height: 6px; background: linear-gradient(90deg, transparent, var(--gold-lo), var(--gold), var(--gold-lo), transparent); }
.band { padding-block: 72px 90px; background: radial-gradient(ellipse at top, var(--stone-2), var(--stone) 60%); }
.sec-title { text-align: center; font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3vw, 32px); color: var(--gold); letter-spacing: 3px; text-transform: uppercase; margin: 0 0 8px; }
.sec-sub { text-align: center; color: var(--muted); margin: 0 0 44px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 26px; }
.card { background: var(--panel); border: 1px solid var(--line); box-shadow: inset 0 0 0 1px rgba(232,182,90,.08); transition: transform .2s, border-color .2s; text-decoration: none; color: inherit; display: block; min-width: 0; }
.card:hover { transform: translateY(-4px); border-color: var(--gold-lo); color: inherit; }
.card .shot { aspect-ratio: 16/9; overflow: hidden; border-bottom: 1px solid var(--line); background: #15171f; }
.card .shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.card:hover .shot img { transform: scale(1.05); }
.card .body { padding: 18px 20px 22px; }
.tag { font-family: var(--display); font-size: 11px; letter-spacing: 2px; color: var(--flare); text-transform: uppercase; }
.card h3 { font-family: var(--display); color: #f0e6cf; font-size: 19px; margin: 6px 0 8px; line-height: 1.3; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0; }

.leader { padding-block: 80px; background: linear-gradient(180deg, var(--stone), #0a0b11); border-top: 1px solid #1f2029; }
.leader .wrap { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 56px; align-items: center; }
.leader-portrait { margin: 0; position: relative; padding: 10px; background: linear-gradient(135deg, var(--gold-hi), var(--gold-lo) 40%, var(--gold) 70%, var(--gold-lo));
	box-shadow: 0 0 60px rgba(255,200,120,.18), 0 20px 50px rgba(0,0,0,.6); }
.leader-portrait img { display: block; width: 100%; aspect-ratio: 383 / 332; object-fit: cover; object-position: top; border: 2px solid #1a1006; }
.leader-copy { min-width: 0; }
.leader-copy .eyebrow { text-align: left; }
.leader-copy .eyebrow::before { display: none; }
.leader-copy h2 { font-family: var(--display); font-weight: 900; font-size: clamp(40px, 5vw, 64px); line-height: 1; margin: 12px 0 6px; letter-spacing: 2px; color: var(--gold-hi); text-shadow: 0 3px 0 #1a0f04, 0 0 30px rgba(255,110,40,.3); }
.leader-title { font-family: var(--display); color: var(--muted); letter-spacing: 2px; text-transform: uppercase; font-size: 14px; margin: 0 0 18px; }
.leader-copy p { max-width: 56ch; }
@media (max-width: 860px) { .leader .wrap { grid-template-columns: 1fr; gap: 30px; } .leader-portrait { max-width: 420px; } }
.oath { position: relative; padding-block: 110px; text-align: center; background: #05060a center / cover no-repeat; }
.oath::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(5,6,12,.78), rgba(5,6,12,.88)); }
.oath .wrap { position: relative; }
.oath blockquote { font-family: var(--display); font-size: clamp(20px, 2.6vw, 30px); line-height: 1.5; color: #f0e6cf; max-width: 780px; margin: 0 auto 14px; text-wrap: balance; }
.oath cite { display: block; color: var(--gold); font-style: normal; letter-spacing: 3px; text-transform: uppercase; font-size: 13px; margin-bottom: 34px; font-family: var(--display); }

/* ---------- inner pages ---------- */
.banner { position: relative; padding: calc(150px + env(safe-area-inset-top, 0px)) 0 70px; text-align: center; background: #05060a center / cover no-repeat; }
.banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(5,6,12,.6), rgba(7,8,13,.95)); }
.banner .wrap { position: relative; }
.banner h1 { font-size: clamp(36px, 6vw, 72px); margin-bottom: 0; }
.content { padding-block: 60px 90px; background: radial-gradient(ellipse at top, var(--stone-2), var(--stone) 50%); }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-family: var(--display); color: var(--gold); font-size: 26px; letter-spacing: 1px; margin: 2em 0 .5em; text-wrap: balance; }
.prose h3 { font-family: var(--display); color: #f0e6cf; font-size: 20px; margin: 1.6em 0 .4em; }
.prose p, .prose li { color: var(--text); }
.prose > :first-child { margin-top: 0; }
.prose blockquote { border-left: 3px solid var(--gold); margin: 1.6em 0; padding: 4px 0 4px 22px; font-family: var(--display); font-size: 20px; color: #f0e6cf; }
.prose hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-lo), transparent); margin: 3em 0; }
.prose .wp-block-image img, .prose figure img { border: 1px solid var(--line); }
.prose figcaption { color: var(--muted); font-size: 13px; text-align: center; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; }
.prose th { font-family: var(--display); color: var(--gold); text-align: left; letter-spacing: 1px; font-size: 13px; text-transform: uppercase; border-bottom: 1px solid var(--gold-lo); padding: 10px 12px; }
.prose td { border-bottom: 1px solid var(--line); padding: 12px; }
.prose .wp-block-table { overflow-x: auto; }
.prose .wp-block-gallery { gap: 12px; }
.prose .wp-block-buttons { margin: 2em 0; }
.prose .wp-block-button__link { font-family: var(--display); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; border-radius: 0;
	color: #1a1006; background: linear-gradient(to bottom, var(--gold-hi), var(--gold) 45%, var(--gold-lo)); padding: 14px 30px; }
.meta { color: var(--muted); font-size: 14px; letter-spacing: 1px; text-transform: uppercase; margin-top: 14px; font-family: var(--display); }
.post-list { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.pagination { margin-top: 40px; text-align: center; font-family: var(--display); }

/* ---------- join form ---------- */
.dw-form { background: var(--panel); border: 1px solid var(--line); padding: 30px; display: grid; gap: 18px; margin: 2em 0; }
.dw-form .row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.dw-form label { display: grid; gap: 6px; font-family: var(--display); font-size: 13px; letter-spacing: 1px; color: var(--gold); text-transform: uppercase; }
.dw-form input, .dw-form select, .dw-form textarea { font: 16px var(--body); color: var(--text); background: #07080d; border: 1px solid #3a3a44; padding: 12px; width: 100%; }
.dw-form input:focus, .dw-form select:focus, .dw-form textarea:focus { border-color: var(--gold); outline: none; }
.dw-form fieldset { border: 0; padding: 0; margin: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.dw-form legend { font-family: var(--display); font-size: 13px; letter-spacing: 1px; color: var(--gold); text-transform: uppercase; margin-bottom: 8px; }
.dw-form fieldset label { display: flex; align-items: center; gap: 8px; color: var(--text); text-transform: none; font-family: var(--body); font-size: 16px; letter-spacing: 0; }
.dw-form fieldset input { width: auto; }
.dw-form .hp { position: absolute; left: -9999px; }
.dw-form button { justify-self: start; }
.notice { padding: 16px 20px; border: 1px solid var(--gold-lo); background: rgba(232,182,90,.08); color: #f0e6cf; margin: 1.5em 0; }
.notice.err { border-color: #a33; background: rgba(255,60,60,.08); }

/* ---------- footer ---------- */
.site-footer { background: #05060a; color: #6b675e; font-size: 13px; text-align: center; padding-block: 34px; line-height: 1.7; border-top: 1px solid #1c1c22; }
.site-footer .foot-brand { font-family: var(--deco); color: var(--gold); font-size: 18px; margin-bottom: 8px; }
.site-footer a { color: #9a927f; }

@media (max-width: 860px) {
	.site-nav { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); gap: 14px; flex-wrap: wrap; }
	.nav-toggle { display: block; }
	.site-nav .menu { display: none; width: 100%; flex-direction: column; gap: 16px; padding: 14px 0 6px; }
	.site-nav.open { background: rgba(7,8,13,.98); }
	.site-nav.open .menu { display: flex; }
	.site-nav > .btn-gold { display: none; }
	.band { padding-block: 50px 70px; }
	.eyebrow::before, .eyebrow::after { width: 24px; margin: 0 8px; }
	.dw-form { padding: 20px; }
}
