/* Wardens of the Wall — skangogames.com
   Iron, bone and brass; blood for the one thing to press. The lettering is the game's own (IM Fell, SIL OFL). */

@font-face { font-family: "Fell SC"; src: url("../fonts/imfell-sc.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Fell"; src: url("../fonts/imfell.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Fell"; font-style: italic; src: url("../fonts/imfell-italic.woff") format("woff"); font-display: swap; }

:root {
  --iron: #0a0b0d;
  --iron-2: #111317;
  --iron-3: #1a1d22;
  --bone: #ece5d0;
  --bone-dim: #b8b09b;
  --ash: #7f7a6d;
  --brass: #a88446;
  --brass-hi: #d2ad69;
  --blood: #8e1611;
  --blood-hi: #b0201a;
  --line: rgba(168, 132, 70, 0.35);
  --wrap: 1200px;
  --gutter: 24px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--iron);
  color: var(--bone);
  font: 400 19px/1.62 "Fell", Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* a little grain over everything, so the black reads as stone rather than screen */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video { display: block; max-width: 100%; }
a { color: var(--brass-hi); }
em { font-style: italic; }
::selection { background: var(--blood); color: var(--bone); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--bone); color: var(--iron); padding: 8px 14px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; }
.center { text-align: center; }

.overline {
  margin: 0 0 14px; font: 400 15px/1.2 "Fell SC", serif; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--brass);
}
.display {
  margin: 0; font: 400 clamp(36px, 5.4vw, 64px)/1.08 "Fell SC", serif; letter-spacing: 0.01em; color: var(--bone);
}
.rule {
  position: relative; height: 1px; width: 240px; margin: 30px 0; background: linear-gradient(90deg, var(--brass), transparent);
}
.center .rule, .rule.center { margin-left: auto; margin-right: auto; background: linear-gradient(90deg, transparent, var(--brass), transparent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font: 400 17px/1 "Fell SC", serif; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  color: var(--bone); border: 1px solid transparent; border-radius: 2px; padding: 15px 26px;
  transition: background-color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; }
.btn-blood {
  background: linear-gradient(180deg, var(--blood-hi), var(--blood)); border-color: #5c0d0a;
  box-shadow: inset 0 1px 0 rgba(255, 200, 180, 0.18), 0 6px 22px rgba(120, 10, 6, 0.35);
}
.btn-blood:hover { background: linear-gradient(180deg, #c42820, #9c1913); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,200,180,.22), 0 10px 28px rgba(150,16,10,.45); }
.btn-ghost { border-color: rgba(236, 229, 208, 0.45); background: rgba(10, 11, 13, 0.35); backdrop-filter: blur(3px); }
.btn-ghost:hover { border-color: var(--bone); background: rgba(10, 11, 13, 0.55); }
.btn-lg { padding: 18px 30px; font-size: 19px; }
.btn-sm { padding: 10px 16px; font-size: 14px; gap: 0; }
.btn-steam { height: 22px; width: 22px; }
.play-dot {
  width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent currentColor;
}

/* Header */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 28px;
  padding: 14px var(--gutter); transition: background-color .3s, border-color .3s, padding .3s;
  border-bottom: 1px solid transparent;
}
.bar.solid { background: rgba(10, 11, 13, 0.92); border-bottom-color: rgba(168, 132, 70, 0.22); padding-top: 10px; padding-bottom: 10px; backdrop-filter: blur(6px); }
.bar-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--bone); font: 400 19px/1 "Fell SC", serif; letter-spacing: 0.06em; }
.bar-brand img { border-radius: 7px; }
.bar-nav { display: flex; gap: 26px; margin-left: auto; }
.bar-nav a { color: var(--bone-dim); text-decoration: none; font: 400 16px/1 "Fell SC", serif; letter-spacing: 0.16em; text-transform: uppercase; }
.bar-nav a:hover { color: var(--bone); }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; background: #000 url("../img/hero-poster.jpg") center/cover; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 46%, rgba(6, 7, 9, 0.15), rgba(6, 7, 9, 0.7) 100%),
    linear-gradient(180deg, rgba(6, 7, 9, 0.55) 0%, rgba(6, 7, 9, 0) 22%, rgba(6, 7, 9, 0) 62%, var(--iron) 100%);
}
.hero-body { position: relative; z-index: 1; text-align: center; padding: 120px var(--gutter) 110px; width: 100%; }
.hero-title { margin: 0 auto; width: min(780px, 92vw); }
.hero-title img { width: 100%; height: auto; filter: drop-shadow(0 10px 30px rgba(0,0,0,.6)); }
.hero-tag { margin: 18px 0 38px; font: italic 400 clamp(20px, 2.2vw, 26px)/1.4 "Fell", serif; color: var(--bone); opacity: 0.88; text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.hero-note { margin: 26px 0 0; font: 400 14px/1 "Fell SC", serif; letter-spacing: 0.4em; text-transform: uppercase; color: var(--bone-dim); }
.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; width: 22px; height: 36px; margin-left: -11px; z-index: 1;
  border: 1px solid rgba(236, 229, 208, 0.5); border-radius: 12px;
}
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; background: var(--bone); border-radius: 1px; animation: cue 2s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* Premise */
.premise { padding: 110px 0 70px; text-align: center; }
.premise .rule { margin-left: auto; margin-right: auto; background: linear-gradient(90deg, transparent, var(--brass), transparent); }
.lede { margin: 0 auto; max-width: 720px; font-size: clamp(20px, 2vw, 24px); line-height: 1.6; color: var(--bone-dim); }
.lede em { color: var(--bone); }

/* Teaser */
.teaser { padding: 40px 0 120px; }
.player { position: relative; margin: 10px auto 0; max-width: 1100px; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.player video { width: 100%; height: 100%; object-fit: cover; }
.player-start {
  position: absolute; inset: 0; display: grid; place-items: center; border: 0; padding: 0; cursor: pointer;
  background: radial-gradient(circle at 50% 70%, rgba(0,0,0,0) 30%, rgba(0,0,0,.35) 100%);
}
.player.playing .player-start { display: none; }
.player-caption { position: absolute; left: 0; right: 0; bottom: 18%; text-align: center; pointer-events: none; font: 400 15px/1 "Fell SC", serif; letter-spacing: 0.34em; text-transform: uppercase; color: var(--bone); text-shadow: 0 2px 8px #000; }
.player.playing .player-caption { display: none; }
/* a wax seal with a play mark pressed in it */
.seal {
  position: relative; width: 104px; height: 104px; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #c3291f, #8e1611 55%, #5a0c08 100%);
  box-shadow: 0 0 0 6px rgba(142, 22, 17, 0.35), 0 12px 30px rgba(0, 0, 0, 0.7), inset 0 2px 3px rgba(255,190,170,.25), inset 0 -4px 8px rgba(0,0,0,.4);
  transition: transform .25s, box-shadow .25s;
}
.seal::after {
  content: ""; position: absolute; left: 50%; top: 50%; margin: -17px 0 0 -10px;
  border-style: solid; border-width: 17px 0 17px 28px; border-color: transparent transparent transparent rgba(236, 229, 208, 0.92);
}
.player-start:hover .seal, .player-start:focus-visible .seal { transform: scale(1.06); box-shadow: 0 0 0 10px rgba(142,22,17,.3), 0 16px 36px rgba(0,0,0,.75), inset 0 2px 3px rgba(255,190,170,.25), inset 0 -4px 8px rgba(0,0,0,.4); }
.player-start:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: -6px; }

/* Pillars */
.pillars { padding: 20px 0 60px; }
.pillar {
  display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 64px;
  max-width: var(--wrap); margin: 0 auto 110px; padding: 0 var(--gutter);
}
.pillar.flip .pillar-art { order: 2; }
.pillar-art { position: relative; margin: 0; }
.pillar-art img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }
.pillar-art::before {
  content: ""; position: absolute; inset: -12px 12px 12px -12px; border: 1px solid rgba(168, 132, 70, 0.2); z-index: -1;
}
.pillar.flip .pillar-art::before { inset: -12px -12px 12px 12px; }
.numeral { margin: 0; font: 400 20px/1 "Fell SC", serif; letter-spacing: 0.3em; color: var(--brass); }
.pillar h2 { margin: 10px 0 22px; font: 400 clamp(32px, 3.6vw, 46px)/1.1 "Fell SC", serif; }
.pillar ul { list-style: none; margin: 0; padding: 0; }
.pillar li { position: relative; padding-left: 26px; margin: 0 0 14px; color: var(--bone-dim); font-size: 18px; line-height: 1.55; }
.pillar li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 7px; height: 7px; background: var(--blood-hi); transform: rotate(45deg); }

/* Interlude */
.interlude { position: relative; padding: 170px 0; text-align: center; overflow: hidden; }
.interlude-bg { position: absolute; inset: 0; background-size: cover; background-position: center 40%; opacity: 0.55; }
.interlude::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, var(--iron), rgba(10,11,13,.2) 30%, rgba(10,11,13,.2) 70%, var(--iron)); }
.interlude .wrap { position: relative; z-index: 2; }
.verse { margin: 0; font: italic 400 clamp(26px, 3.4vw, 42px)/1.4 "Fell", serif; color: var(--bone); text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9); }
.verse span { color: var(--bone-dim); }

/* Gallery */
.gallery { padding: 110px 0 120px; }
.gallery .display { margin-bottom: 48px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.grid a { position: relative; display: block; overflow: hidden; border: 1px solid rgba(168, 132, 70, 0.18); background: var(--iron-2); }
.grid a.wide { grid-column: span 2; grid-row: span 2; }
.grid img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s ease, filter .3s; filter: saturate(0.92); }
.grid a:hover img, .grid a:focus-visible img { transform: scale(1.045); filter: saturate(1.05); }
.grid a:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 2px; }

/* Wishlist call */
.call { position: relative; padding: 140px 0 150px; text-align: center; overflow: hidden; border-top: 1px solid rgba(168,132,70,.15); }
.call-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.32; filter: saturate(0.7); }
.call::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at center, rgba(10,11,13,.35), var(--iron) 78%); }
.call .wrap { position: relative; z-index: 2; }
.call-title { width: min(560px, 86vw); height: auto; margin: 0 auto 34px; }
.call-text { max-width: 520px; margin: 0 auto 34px; color: var(--bone-dim); }

/* Business contact */
.contact { padding: 120px 0 130px; background: linear-gradient(180deg, var(--iron), var(--iron-2)); border-top: 1px solid rgba(168,132,70,.15); }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
.contact-text p { color: var(--bone-dim); margin: 0 0 16px; max-width: 520px; }
.contact-text .overline { color: var(--brass); }
.contact-mail { margin-top: 18px; }
.contact-address { margin-top: 18px !important; font-size: 16px; color: var(--ash) !important; }
.contact-addr { color: var(--bone-dim); user-select: all; }
.contact-addr .at { padding: 0 2px; }
.facts { margin: 0; border: 1px solid var(--line); background: rgba(10, 11, 13, 0.5); padding: 10px 30px; }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(168, 132, 70, 0.16); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font: 400 14px/1.7 "Fell SC", serif; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass); }
.facts dd { margin: 0; color: var(--bone); font-size: 18px; line-height: 1.5; }
.facts a { color: var(--bone); text-decoration-color: var(--brass); text-underline-offset: 3px; }

/* Footer */
.foot { padding: 50px 0 40px; border-top: 1px solid rgba(168, 132, 70, 0.18); background: #070809; }
.foot-row { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.foot-studio img { height: 30px; width: auto; }
.foot-sep { width: 1px; height: 36px; background: var(--line); }
.foot-ue { display: inline-flex; align-items: center; gap: 12px; font: 400 14px/1 "Fell SC", serif; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone-dim); }
.foot-ue img { height: 34px; width: auto; opacity: 0.9; }
.foot-legal { max-width: 760px; margin: 28px auto 0; padding: 0 var(--gutter); text-align: center; font-size: 13px; line-height: 1.6; color: var(--ash); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(4, 5, 6, 0.94); padding: 56px 72px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; border: 1px solid var(--line); box-shadow: 0 30px 90px rgba(0,0,0,.8); }
.lightbox button { position: absolute; border: 0; background: none; color: var(--bone); cursor: pointer; font: 400 54px/1 "Fell", serif; padding: 10px 18px; opacity: 0.75; }
.lightbox button:hover, .lightbox button:focus-visible { opacity: 1; }
.lb-close { top: 8px; right: 12px; font-size: 44px !important; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s ease, transform 1s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .pillar { grid-template-columns: 1fr; gap: 34px; margin-bottom: 80px; }
  .pillar.flip .pillar-art { order: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 18px; }
  .bar { gap: 12px; }
  .bar-nav { display: none; }
  .bar-brand span { display: none; }
  .bar .btn-sm { margin-left: auto; }
  .hide-sm { display: none; }
  .hero-body { padding-top: 100px; }
  .hero-cta .btn { width: 100%; max-width: 360px; }
  .premise { padding: 80px 0 50px; }
  .teaser { padding-bottom: 80px; }
  .seal { width: 76px; height: 76px; }
  .player-caption { display: none; }
  .seal::after { margin: -13px 0 0 -8px; border-width: 13px 0 13px 21px; }
  .pillar-art::before { display: none; }
  .interlude { padding: 110px 0; }
  .gallery { padding: 80px 0; }
  .grid { gap: 6px; }
  .call { padding: 100px 0 110px; }
  .contact { padding: 80px 0 90px; }
  .contact-mail { width: 100%; max-width: 360px; }
  .facts { padding: 4px 18px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
  .foot-sep { display: none; }
  .lightbox { padding: 56px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 0; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue::after { animation: none; }
}
