/* Awe+ Games: loaded after /_cms/base.css. Colors and fonts go through the base theme's custom properties. */

@font-face {
  font-family: "Geo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/geo.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2212, U+2215;
}

:root {
  --bg: #faf7f5;
  --surface: #ffffff;
  --text: #1d1416;
  --muted: #5d5052;
  --accent: #a40000;
  --accent-text: #ffffff;
  --border: #e5dad8;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Geo", system-ui, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  --measure: 42rem;
  --radius: 10px;

  /* site-only */
  --wide: 72rem;
  --band: #4b0000;
  --band-2: #2b0000;
  --band-text: #fff3f3;
  --shadow: 0 1px 2px rgb(0 0 0 / .06), 0 4px 16px rgb(75 0 0 / .08);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #140b0c;
    --surface: #1f1314;
    --text: #f3eaea;
    --muted: #bfaeae;
    --accent: #ff6b62;
    --accent-text: #1a0505;
    --border: #3a2526;
    --band: #3a0000;
    --band-2: #1c0000;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 4px 16px rgb(0 0 0 / .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.65 var(--font-body);
}

main.wrap { max-width: var(--wide); padding-block: 2.5rem 4rem; }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; line-height: 1.15; letter-spacing: .02em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.4rem); margin: 0 0 1rem; color: var(--accent); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); margin: 2.5rem 0 .75rem; }
h3 { font-size: 1.45rem; margin: 0 0 .25rem; }

a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

img { max-width: 100%; height: auto; }
.pixel { image-rendering: pixelated; background: #000; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  padding: .5rem 1rem; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-text); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--band), var(--band-2));
  color: var(--band-text);
  border-bottom: 4px solid #a40000;
}
.site-header__inner {
  max-width: var(--wide); margin: 0 auto; padding: .75rem 1rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem;
}
.brand { display: flex; align-items: center; gap: .75rem; color: inherit; text-decoration: none; }
.brand__logo { width: 72px; height: auto; filter: drop-shadow(0 2px 3px rgb(0 0 0 / .45)); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-heading); font-size: 1.9rem; letter-spacing: .08em; color: #fff; }
.brand__tagline { font-size: .8rem; letter-spacing: .04em; opacity: .85; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.site-header .site-nav a {
  display: block; padding: .4rem .75rem; border-radius: 999px;
  color: var(--band-text); text-decoration: none;
  font-family: var(--font-heading); font-size: 1.2rem; letter-spacing: .06em;
}
.site-header .site-nav a:hover { background: rgb(255 255 255 / .12); color: #fff; text-decoration: none; }
.site-header .site-nav a[aria-current] { color: #fff; font-weight: 400; background: rgb(255 255 255 / .18); box-shadow: inset 0 -2px 0 #ff8a80; }
.site-header .site-nav a:focus-visible { outline-color: #fff; }
.site-nav .ext { font-size: .8em; margin-left: .2em; opacity: .8; }

@media (max-width: 40rem) {
  .brand__logo { width: 56px; }
  .brand__name { font-size: 1.6rem; }
  .site-nav { width: 100%; }
  .site-nav ul { gap: .15rem; }
  .site-header .site-nav a { padding: .3rem .5rem; font-size: 1.05rem; letter-spacing: .03em; }
  .hero__logo { width: min(100%, 16rem); }
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: .9rem; }
.site-footer__inner {
  max-width: var(--wide); margin: 0 auto; padding: 1.25rem 1rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
}
.site-footer p { margin: 0; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; }
.site-footer a { color: inherit; }
.site-footer a:hover { color: var(--accent); }

/* Page body */
.page { max-width: var(--measure); }
.page > :first-child { margin-top: 0; }
.page p, .page ul { margin: 0 0 1rem; }
.page li + li { margin-top: .4rem; }
.page code { font-family: var(--font-mono); font-size: .9em; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: .05em .3em; }
.eyebrow { margin: 0 0 .25rem; color: var(--muted); font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.eyebrow a { color: inherit; }

/* Buttons */
.actions { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.actions li + li { margin-top: 0; }
.button {
  display: inline-block; padding: .6rem 1.1rem; border-radius: var(--radius);
  border: 2px solid var(--accent); color: var(--accent); background: transparent;
  font-weight: 600; text-decoration: none; line-height: 1.3;
}
.button:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.button--primary { background: var(--accent); color: var(--accent-text); }
.button--primary:hover { background: color-mix(in srgb, var(--accent) 85%, var(--text)); }

/* Home */
.hero { display: grid; gap: 1.5rem 3rem; align-items: center; margin-bottom: 1rem; }
.hero__logo { width: min(100%, 22rem); justify-self: center; filter: drop-shadow(0 8px 18px rgb(75 0 0 / .25)); }
.hero h1 { margin-bottom: .25rem; }
.hero__tagline { margin: 0 0 1.25rem; font-family: var(--font-heading); font-size: 1.35rem; color: var(--muted); letter-spacing: .04em; }
.hero__text { max-width: var(--measure); }
@media (min-width: 52rem) {
  .hero { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .hero__logo { order: 2; width: 100%; }
}
.home-section { margin-top: 3rem; }
.home-section > h2 { margin-top: 0; }
.home-more { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; box-shadow: var(--shadow); }
.tile h2 { margin: 0 0 .4rem; font-size: 1.6rem; }
.tile h2 a { text-decoration: none; }
.tile h2 a:hover { text-decoration: underline; }
.tile p { margin: 0; color: var(--muted); }

/* Cards */
.cards { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow), 0 8px 24px rgb(75 0 0 / .12); }
.card__img { display: block; border-radius: 0; width: 100%; aspect-ratio: 256 / 240; object-fit: cover; }
.card__body { padding: 1rem 1.25rem 1.25rem; }
.card .card__title { font-size: 1.6rem; margin: 0 0 .25rem; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card is the link target */
.card__title a:focus-visible { outline: none; }
.card:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.card p { margin: 0 0 .5rem; }
.card p a { position: relative; z-index: 1; }
.card__meta { color: var(--muted); font-size: .9rem; }
@media (prefers-reduced-motion: reduce) { .card, .card:hover { transition: none; transform: none; } }

/* Game page */
.gallery { margin-top: 2.5rem; }
.gallery__grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.gallery figure { margin: 0; }
.gallery img { display: block; width: 100%; border-radius: calc(var(--radius) / 2); border: 1px solid var(--border); }

/* Team */
.team { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
.page .team li + li { margin-top: 0; }
.team li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; display: flex; flex-direction: column; }
.team__name { font-family: var(--font-heading); font-size: 1.4rem; }
.team__role { color: var(--muted); }
