/* Blitzfire Games — site styles (replaces Squarespace theme) */
:root {
  --accent: #ff5e1a;
  --accent-hsl: 17.82, 100%, 55.1%;
  --bg: #000;
  --header-bg: #282828;
  --text: #fff;
  --muted: #d9d6d6;
  --sqs-site-gutter: 4vw;
  --sqs-mobile-site-gutter: 6vw;
  --sqs-site-max-width: 1500px;
  --heading-font: "Oswald", "Arial Narrow", sans-serif;
  --body-font: "Arimo", Arial, sans-serif;
  --header-h: 84px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 var(--body-font); }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: #000; padding: 8px 12px; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); }
.header-inner { max-width: 1800px; margin: 0 auto; padding: 14px var(--sqs-site-gutter); display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.logo img { display: block; height: 56px; width: auto; }
#site-nav { margin-left: auto; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 22px; }
.nav > li { position: relative; }
.nav a, .nav button { color: var(--accent); font: 400 15px/1.6 var(--body-font); text-decoration: none; background: none; border: 0; padding: 6px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav a:hover, .nav button:hover, .nav a[aria-current="page"], .nav .is-active > button { color: #fff; }
.caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.sub { list-style: none; margin: 0; padding: 10px 0; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 220px; background: var(--header-bg); border-top: 2px solid var(--accent); box-shadow: 0 12px 30px rgba(0,0,0,.5); display: none; }
.sub a { display: block; padding: 7px 18px; white-space: nowrap; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { display: block; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span:not(.sr) { display: block; width: 26px; height: 2px; background: var(--accent); margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 1100px) {
  .menu-toggle { display: block; }
  #site-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--header-bg); overflow-y: auto; padding: 16px 6vw 40px; display: none; }
  body.nav-open #site-nav { display: block; }
  body.nav-open { overflow: hidden; }
  body.nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav { flex-direction: column; gap: 0; }
  .nav > li { border-bottom: 1px solid #3a3a3a; }
  .nav a, .nav button { font-size: 20px; padding: 12px 0; width: 100%; justify-content: space-between; }
  .sub { position: static; transform: none; box-shadow: none; border: 0; padding: 0 0 10px 14px; min-width: 0; display: none; }
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: none; }
  .has-sub.open .sub { display: block; }
  .sub a { font-size: 17px; padding: 8px 0; }
}

/* ---------- typography (matches the old theme) ---------- */
h1, h2, h3, h4 { font-family: var(--heading-font); font-weight: 400; color: var(--accent); margin: 0 0 .5em; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(2.4rem, 4.6vw, 4.15rem); line-height: 1.056; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.89rem); line-height: 1.11; }
h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.15; }
h4 { font-size: clamp(1.2rem, 1.6vw, 1.5rem); line-height: 1.2; }
p { margin: 0 0 1em; }
.sqs-html-content > :first-child { margin-top: 0; }
.sqs-html-content > :last-child { margin-bottom: 0; }
.sqs-html-content a { text-decoration: underline; text-underline-offset: 2px; }
.sqs-html-content a:hover { color: var(--accent); }
.sqs-html-content ul, .sqs-html-content ol { padding-left: 1.4em; margin: 0 0 1em; }
.sqs-html-content .sqsrte-large { font-size: 1.3em; }
.sqs-html-content .sqsrte-small { font-size: .85em; }
.sqs-html-content [style*="text-align:center"], .sqs-html-content [style*="text-align: center"] { text-align: center; }
.sqs-html-content code, .sqs-html-content pre { font-family: ui-monospace, Consolas, monospace; }
.sqs-html-content blockquote { margin: 0 0 1em; padding-left: 1em; border-left: 3px solid var(--accent); }

/* ---------- sections ---------- */
main { display: block; }
.page-section { position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.page-section.vertical-alignment--top { justify-content: flex-start; }
.page-section[data-section-theme="white-bold"], .page-section[data-section-theme="light"] { background: #fff; color: #000; }
.page-section[data-section-theme="dark"] { background: #282828; }
.page-section[data-section-theme="black"] { background: #000; }
.section-background { position: absolute; inset: 0; z-index: 0; }
.section-background img { width: 100%; height: 100%; object-fit: cover; display: block; }
.section-background-overlay { position: absolute; inset: 0; background: #000; }
.content-wrapper { position: relative; z-index: 1; width: 100%; }
.section-height--small > .content-wrapper { padding-top: 3.3vmax; padding-bottom: 3.3vmax; }
.section-height--medium > .content-wrapper { padding-top: 6.6vmax; padding-bottom: 6.6vmax; }
.section-height--large > .content-wrapper { padding-top: 10vmax; padding-bottom: 10vmax; }
.section-height--medium { min-height: 33vh; }
.section-height--large { min-height: 66vh; }
.content { width: 100%; }

/* Fluid Engine grid: per-page inline styles set the grid and block positions. */
.fluid-engine { display: grid; }
.fe-block { position: relative; min-width: 0; }
.fe-block > .sqs-block { height: 100%; }
.sqs-block { position: relative; }
.sqs-block-content { height: 100%; }
.sqs-block-html .sqs-block-content, .sqs-block-code .sqs-block-content { height: auto; }
.sqs-text-block-container { height: 100%; }

/* images */
.fluid-image-component-root, .fluid-image-animation-wrapper, .fluid-image-container, .js-content-mode-element-wrapper, .sqs-block-image-link { height: 100%; width: 100%; display: block; }
.fluid-image-container img { width: 100%; height: 100%; object-fit: var(--image-component-object-fit, cover); object-position: var(--image-component-focal-point, 50% 50%); display: block; }
.fluidImageOverlay { display: none; }
.js-content-mode-element-wrapper { display: block; }
.js-content-mode-element-system_mobile { display: none; }
@media (max-width: 767px) {
  .js-content-mode-element-system_mobile { display: block; }
  .js-content-mode-element-system_mobile ~ .js-content-mode-element-system_desktop,
  .js-content-mode-element-system_desktop:has(~ .js-content-mode-element-system_mobile) { display: none; }
}

/* rules, spacers, video, embeds, map */
.sqs-block-horizontalrule hr, .sqs-block-horizontalrule .sqs-block-content > div { border: 0; border-top: 1px solid var(--accent); margin: 0; }
.sqs-block-horizontalrule .sqs-block-content { display: flex; align-items: center; }
.sqs-block-horizontalrule .sqs-block-content > * { width: 100%; }
.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed { display: flex; justify-content: center; }
.embed iframe { border: 0; max-width: 100%; }
.map-embed, .map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* social icons */
.social-icons { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; }
.social-icons a { display: block; width: 34px; height: 34px; color: #fff; }
.social-icons a:hover { color: var(--accent); }
.social-icons svg { width: 100%; height: 100%; fill: currentColor; }

/* buttons used by the converted blocks */
.bf-btn { display: inline-block; background: var(--accent); color: #000 !important; font: 700 15px/1 var(--body-font); text-transform: uppercase; letter-spacing: .06em; padding: 16px 28px; text-decoration: none !important; border-radius: 0; transition: filter .15s; }
.bf-btn:hover { filter: brightness(1.12); }
.bf-btn--big { font-size: 18px; padding: 20px 44px; }
.donate-box { text-align: center; padding: 24px; }

/* slideshow (home) */
.slideshow { position: relative; height: 100vh; max-height: 1000px; min-height: 360px; overflow: hidden; background: #000; }
.slideshow .slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s ease; }
.slideshow .slide.is-active { opacity: 1; }
.slideshow img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slideshow button { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(0,0,0,.35); color: #fff; border: 0; width: 48px; height: 64px; font-size: 40px; line-height: 1; cursor: pointer; }
.slideshow button:hover { background: rgba(0,0,0,.6); color: var(--accent); }
.slide-prev { left: 12px; } .slide-next { right: 12px; }
@media (max-width: 767px) { .slideshow { height: 56.25vw; min-height: 0; } }

/* galleries */
.gallery { padding: 0 var(--sqs-site-gutter); max-width: 1800px; margin: 0 auto; }
.gallery--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery--grid .gallery-item img { aspect-ratio: 1; object-fit: cover; width: 100%; height: 100%; display: block; }
.gallery--masonry { columns: 4 240px; column-gap: 12px; }
.gallery--masonry .gallery-item { display: block; margin-bottom: 12px; break-inside: avoid; }
.gallery--masonry img { width: 100%; display: block; }
.gallery-item { display: block; overflow: hidden; }
.gallery-item:hover img { filter: brightness(1.1); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; padding: 4vw; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* cards (team / support "why give") */
.list-content { max-width: 1400px; margin: 0 auto; padding: 0 var(--sqs-site-gutter); }
.list-title { text-align: center; margin-bottom: 2rem; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: #141414; border-top: 3px solid var(--accent); overflow: hidden; }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.card-body { padding: 22px; }
.card h3 { margin-bottom: .4em; }
.card-text p:last-child { margin-bottom: 0; }
.cards--plain .card { background: transparent; border-top: 0; text-align: center; }
.cards--plain h3 { font-size: 2rem; }

/* footer */
.site-footer { background: var(--header-bg); padding: 48px var(--sqs-site-gutter); text-align: center; }
.footer-inner { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.site-footer p { margin: 0; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent); }
.site-footer .small { font-size: 13px; color: #aaa; }

/* Squarespace "highlight" text style: hand-drawn orange underline */
.sqsrte-text-highlight { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C 50 3, 120 3, 198 6' stroke='%23ff5e1a' stroke-width='3.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 100% .22em no-repeat; padding-bottom: .12em; }
.sqsrte-scaled-text-container { overflow: visible; }
.list-title p { font-family: var(--heading-font); color: var(--accent); font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
.user-items-list-section > .content-wrapper { padding-top: 5vmax; padding-bottom: 5vmax; }
.gallery-section:has(> .slideshow) { min-height: 0; display: block; }
