/* Brand site styles. Colors and the heading font come from app/brand.php as CSS variables (see layout.php). */
@font-face { font-family: "Cinzel"; font-weight: 700; font-display: swap; src: url(/fonts/cinzel-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Cinzel"; font-weight: 900; font-display: swap; src: url(/fonts/cinzel-latin-900-normal.woff2) format("woff2"); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(1200px 600px at 80% -10%, color-mix(in srgb, var(--aura) 18%, transparent), transparent 70%),
                    radial-gradient(900px 500px at -10% 30%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%);
  background-attachment: fixed;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--text); }
h1, h2, h3, .h3 { font-family: var(--head); font-weight: 900; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); color: var(--accent); }
h3, .h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(820px, 100% - 32px); }
.center { text-align: center; }
.small { font-size: .88rem; color: var(--muted); }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--panel); padding: 8px 12px; border-radius: 8px; }

/* placeholder blocks while the art is missing */
.ph { display: grid; place-items: center; width: 100%; border-radius: 14px; border: 2px dashed color-mix(in srgb, var(--accent) 45%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 35%, var(--bg2)), color-mix(in srgb, var(--aura) 22%, var(--bg2))); }
.ph i { font: 600 .8rem/1.2 ui-monospace, Consolas, monospace; color: var(--muted); padding: 6px 10px; background: rgba(0,0,0,.35); border-radius: 6px; }
.logo-ph { width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle, var(--aura), var(--primary)); box-shadow: 0 0 16px var(--aura); }
.ico-ph { display: inline-block; width: 48px; height: 48px; border-radius: 50%; background: radial-gradient(circle, var(--accent), var(--primary)); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font: 800 1rem/1 var(--head); text-decoration: none; letter-spacing: .02em; border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 70%, #fff), var(--primary));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 60%, transparent), 0 8px 24px color-mix(in srgb, var(--aura) 40%, transparent); }
.btn-primary:hover { color: #fff; box-shadow: 0 0 0 2px var(--accent), 0 0 28px var(--aura); }
.btn-ghost { color: var(--text); border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: rgba(0,0,0,.25); }
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: .9rem; }
.is-disabled { opacity: .6; cursor: default; }
.is-disabled:hover { transform: none; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.bar { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 900 1.35rem/1 var(--head); }
.brand b { color: var(--accent); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; }
.nav a:hover, .nav a[aria-current] { background: rgba(255,255,255,.08); color: var(--accent); }
.nav .lang { border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); font-size: .85rem; }
.nav .btn { margin-left: 6px; color: #fff; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; border-radius: 10px; background: rgba(255,255,255,.08); padding: 12px 11px; }
.nav-toggle span { display: block; height: 3px; margin: 3px 0; border-radius: 3px; background: var(--text); }
.notice { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; padding: 6px 16px; font-size: .8rem; font-weight: 600;
  color: var(--muted); background: rgba(0,0,0,.3); }
.age { display: inline-block; padding: 0 8px; border-radius: 6px; background: var(--primary); color: #fff; font-weight: 800; }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px 16px 18px; gap: 2px;
    background: var(--bg2); border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); display: none; }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; }
}

/* hero */
.hero { position: relative; isolation: isolate; min-height: min(78vh, 760px); display: grid; align-items: end; }
.hero .hero-img, .hero picture, .hero .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; border-radius: 0; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--bg) 92%, transparent) 88%); }
.hero-copy { padding: 120px 0 48px; max-width: 760px; margin-left: max(16px, calc((100% - 1200px) / 2)); }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); text-shadow: 0 0 30px var(--aura), 0 4px 0 rgba(0,0,0,.45); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: .85rem; color: var(--aura); margin-bottom: .6em; }
.lead { font-size: 1.18rem; max-width: 640px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }

/* sections */
.section { padding: 56px 0; }
.section.alt { background: color-mix(in srgb, var(--bg2) 75%, transparent); border-block: 1px solid color-mix(in srgb, var(--accent) 14%, transparent); }
.title { text-align: center; margin-bottom: 28px; }
.trust-band { padding: 28px 0; background: var(--bg2); border-block: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.trust li { display: flex; gap: 12px; align-items: flex-start; }
.trust strong { display: block; color: var(--accent); }
.trust span { font-size: .9rem; color: var(--muted); }
.trust-sm { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 28px; }
.trust-sm li { align-items: center; font-weight: 600; }
.ico { width: 48px; height: 48px; flex: none; }
.ico-age { position: relative; display: inline-block; flex: none; }
.ico-age b { position: absolute; inset: 0; display: grid; place-items: center; font: 900 .9rem/1 var(--head); color: #fff; text-shadow: 0 1px 2px #000; }
.trust-link { text-align: center; margin: 18px 0 0; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature { background: var(--panel); border: 1px solid color-mix(in srgb, var(--aura) 35%, transparent); border-radius: 18px; padding: 18px;
  box-shadow: 0 0 24px color-mix(in srgb, var(--aura) 14%, transparent); }
.feature-img { border-radius: 12px; margin-bottom: 14px; width: 100%; }
.feature h3 { color: var(--aura); }

.slider { position: relative; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 18px; }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; }
.slide img, .slide .ph { width: 100%; border-radius: 18px; }
.slide-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 26px; border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.78)); }
.slide-copy h3 { font-size: clamp(1.2rem, 3vw, 1.8rem); color: #fff; }
.slide-copy p { margin: 0; max-width: 620px; }
.slider-btn { position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border-radius: 50%; border: 0; font-size: 1.8rem; line-height: 1;
  background: rgba(0,0,0,.5); color: #fff; cursor: pointer; }
.slider-btn.prev { left: 10px; } .slider-btn.next { right: 10px; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.dots button { width: 11px; height: 11px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.3); cursor: pointer; }
.dots button[aria-selected="true"] { background: var(--accent); }

.spotlight { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 36px; align-items: center; }
.spot-img img, .spot-img .ph { border-radius: 18px; box-shadow: 0 0 40px color-mix(in srgb, var(--aura) 30%, transparent); }
.facts { padding-left: 1.2em; } .facts li { margin-bottom: .35em; }
@media (max-width: 760px) { .spotlight { grid-template-columns: 1fr; } }

.mascots { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; }
.mascot { margin: 0; text-align: center; }
.mascot img, .mascot .ph { margin: 0 auto 10px; max-height: 320px; width: auto; }
.mascot .ph { width: 100%; }
.mascot strong { display: block; color: var(--accent); font-family: var(--head); }
.mascot span { font-size: .9rem; color: var(--muted); }

.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.post-card { display: block; padding: 14px; border-radius: 18px; background: var(--panel); color: var(--text); text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); }
.post-card img, .post-card .ph { border-radius: 12px; margin-bottom: 12px; }
.post-card:hover { border-color: var(--aura); }
.cta-band { text-align: center; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 45%, var(--bg)), color-mix(in srgb, var(--aura) 25%, var(--bg))); }

/* page header + prose */
.page-hero { position: relative; isolation: isolate; min-height: 260px; display: grid; align-items: end; padding: 40px 0 26px; }
.page-hero .page-hero-img, .page-hero picture, .page-hero .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; border-radius: 0; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.15), color-mix(in srgb, var(--bg) 90%, transparent)); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--muted); margin-bottom: 8px; }
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; color: var(--aura); }
.prose ul, .prose ol { padding-left: 1.3em; } .prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 4px solid var(--aura); background: rgba(255,255,255,.05); border-radius: 0 12px 12px 0; }
.prose img, .post-cover { border-radius: 14px; margin: 1em 0; }
.prose code { background: rgba(255,255,255,.08); padding: 1px 6px; border-radius: 6px; }
.trust-note { margin: 1.5em 0; padding: 14px 18px; border-radius: 14px; background: rgba(0,0,0,.3); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); font-size: .95rem; }
.trust-note strong { display: block; color: var(--accent); margin-bottom: 4px; }

/* footer */
.site-footer { padding: 46px 0 28px; background: var(--bg2); border-top: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.foot-grid nav { display: flex; flex-direction: column; gap: 6px; }
.foot-grid h2 { font-size: 1rem; color: var(--text); }
.foot-grid a { color: var(--muted); text-decoration: none; } .foot-grid a:hover { color: var(--accent); }
.copy { margin-top: 28px; text-align: center; font-size: .88rem; color: var(--muted); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }
