@font-face {
  font-family: Bree;
  src: url("assets/fonts/BreeSerif-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Alegreya;
  src: url("assets/fonts/AlegreyaSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Alegreya;
  src: url("assets/fonts/AlegreyaSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --pine: #101e1a;
  --deep: #0d1714;
  --bone: #f6edda;
  --gold: #efbb69;
  --subtle: #b9c5b9;
  --line: #394638;
  --paper: #efe1bf;
  --display: Bree, Georgia, "Songti TC", "Hiragino Mincho ProN", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--pine); color: var(--bone); font: 400 1.125rem/1.5 Alegreya, system-ui, sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, summary { font: inherit; color: inherit; cursor: pointer; }
button { border: 0; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #ffcb6a; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.07; }
.shell { width: min(100% - clamp(2.25rem, 10vw, 10rem), 84rem); margin-inline: auto; }
.site-header { position: relative; z-index: 5; background: #101c18; box-shadow: inset 0 -1px #a5ae7639; }
.header-inner { display: flex; gap: clamp(1.2rem, 3vw, 3rem); align-items: center; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font: 400 1.85rem/1 var(--display); color: #faefd5; letter-spacing: -.055em; }
.brand-mark { border-radius: .5rem; border: 1px solid #8b876854; width: 2.55rem; height: 2.55rem; }
.main-nav { margin-inline-start: auto; display: flex; align-items: center; gap: clamp(.95rem, 2.6vw, 2.4rem); }
.main-nav a { font-size: 1.02rem; font-weight: 700; color: #dce0cd; padding-block: .5rem; }
.main-nav a:hover, .footer-links a:hover, .main-nav a[aria-current] { color: var(--gold); }
.lang { position: relative; font-size: 1rem; }
.lang summary { display: flex; align-items: center; gap: .48rem; min-height: 2.5rem; padding: .3rem .75rem; border: 1px solid #74847079; border-radius: 3px; font-weight: 700; color: #ece6d4; }
.lang summary::before { content: ''; width: .9em; height: .9em; border: 1.4px solid; border-radius: 50%; background: linear-gradient(transparent 43%, currentColor 44% 54%, transparent 55%), radial-gradient(ellipse 26% 57% at center, transparent 70%, currentColor 76% 88%, transparent 94%); }
.lang summary::after { content: ''; width: .38rem; height: .38rem; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-2px) rotate(45deg); margin-left: .16em; }
.lang[open] summary { color: var(--gold); border-color: var(--gold); }
.lang ul { position: absolute; z-index: 10; inset: calc(100% + .5rem) 0 auto auto; min-width: 11.5rem; width: max-content; max-width: calc(100vw - 2rem); max-height: 65vh; overflow-y: auto; margin: 0; padding: .5rem; list-style: none; background: #142a23; border: 1px solid #93845b; border-radius: .3rem; box-shadow: 0 12px 32px #0008; }
.lang.split ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lang a { display: block; padding: .4em .8em; border-radius: 2px; }
.lang a:hover, .lang a[aria-current] { color: var(--gold); background: #f8edc50d; }
.skip-link { position: absolute; z-index: 20; top: .5rem; left: .5rem; padding: .7rem 1rem; background: var(--bone); color: var(--deep); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.hero { position: relative; isolation: isolate; background: var(--deep); overflow: hidden; }
.hero-art, .hero-art img, .hero-night, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art img, .hero-night { object-fit: cover; object-position: 61% 58%; }
.hero-art { z-index: -4; }
.hero-night { z-index: -3; opacity: 0; transition: opacity .45s ease; }
.hero.is-night .hero-night { opacity: 1; }
.hero-shade { z-index: -2; background: linear-gradient(90deg, #08120fed 0%, #0a1511d9 17%, #0b1911a8 30%, #09201835 47%, transparent 63%), linear-gradient(0deg, #0a1714bd, transparent 19%); }
.hero-inner { position: relative; display: flex; align-items: center; min-height: clamp(31rem, 42.3vw, 43rem); padding-block: clamp(3rem, 5.8vw, 6rem); }
.hero-copy { width: min(43%, 34rem); }
.eyebrow { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.15rem; color: #f6cb86; text-transform: uppercase; font-size: .88rem; font-weight: 700; line-height: 1.35; letter-spacing: .18em; }
.pixel-spark { width: .85rem; aspect-ratio: 1; background: currentColor; clip-path: polygon(36% 0,64% 0,64% 24%,76% 24%,76% 36%,100% 36%,100% 64%,76% 64%,76% 76%,64% 76%,64% 100%,36% 100%,36% 76%,24% 76%,24% 64%,0 64%,0 36%,24% 36%,24% 24%,36% 24%); }
.hero h1 { font-size: clamp(3.5rem, 5.45vw, 6.35rem); color: #fff2d9; letter-spacing: -.055em; line-height: 1.01; text-wrap: balance; text-shadow: 0 3px 10px #16100842; }
.hero-intro { max-width: 27rem; margin: 1.2rem 0 1.6rem; font-size: clamp(1.18rem, 1.55vw, 1.48rem); line-height: 1.35; color: #f0ecdc; text-wrap: pretty; }
.button { display: inline-flex; gap: .63rem; align-items: center; justify-content: center; padding: .78rem 1.22rem; min-height: 3.15rem; border-radius: 3px; text-align: center; font-weight: 700; font-size: 1.12rem; line-height: 1.2; }
.brass { color: #302512; background: linear-gradient(#ffd692, #efb653); border: 1px solid #ffdc9c; box-shadow: inset 0 -3px #c89348, 0 3px 0 #593e1f, 0 5px 18px #0003; }
.brass:hover { background: #ffda94; transform: translateY(-1px); }
.button svg, .time-switch svg { width: 1.3em; height: 1.3em; stroke: currentColor; fill: none; stroke-width: 1.65; stroke-linejoin: round; stroke-linecap: round; flex: none; }
.platform { display: flex; align-items: baseline; gap: .55rem; margin-top: 1.15rem; font-size: .98rem; color: #dbdecc; }
.platform span { display: inline-block; align-self: baseline; width: .48rem; height: .48rem; flex: none; background: #b7c283; box-shadow: 0 0 9px #b3d48266; }
.time-switch { position: absolute; bottom: 1.65rem; right: 0; display: flex; gap: 2px; padding: 4px; border-radius: 4px; background: #15201bec; border: 1px solid #e1c99566; box-shadow: 0 2px 10px #10191255; }
.time-switch button { display: inline-flex; align-items: center; justify-content: center; gap: .44rem; padding: .45rem .72rem; min-height: 2.4rem; border-radius: 2px; color: #ece5d3; font-weight: 700; font-size: .95rem; background: transparent; }
.time-switch button[aria-pressed=true] { background: #ecd8a6; color: #322d20; }
.time-switch button[aria-pressed=false]:hover { background: #53574b; }
.time-switch svg { width: 1.05rem; height: 1.05rem; }
.site-footer { border-top: 1px solid #394439; background: var(--deep); color: #c5cebf; }
.footer-inner { display: flex; gap: 1.2rem 2rem; align-items: center; justify-content: space-between; padding-block: 1.8rem; flex-wrap: wrap; }
.footer-inner .brand { font-size: 1.4rem; }
.footer-inner .brand-mark { width: 2rem; height: 2rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; font-size: 1rem; }
.footer-inner small { font-size: .88rem; }
@media (max-width: 64rem) {
  .hero-copy { width: 46%; }
  .hero h1 { font-size: clamp(3.15rem, 6vw, 4.2rem); }
  .hero-shade { background: linear-gradient(90deg,#081310ed,#07150fbb 34%,transparent 75%),linear-gradient(0deg,#09181099,transparent 18%); }
}
@media (max-width: 48rem) {
  .shell { width: calc(100% - 2.4rem); }
  .header-inner { min-height: 3.9rem; gap: 0 .7rem; flex-wrap: wrap; padding-block: .7rem .45rem; }
  .brand { font-size: 1.6rem; }
  .brand-mark { width: 2.2rem; height: 2.2rem; }
  .main-nav { order: 1; width: 100%; flex-wrap: wrap; gap: 0 1.3rem; margin: .35rem 0 0; }
  .main-nav a { font-size: .96rem; padding-block: .28rem; }
  .lang { margin-inline-start: auto; }
  .hero { --art-height: clamp(14rem, 51vw, 21rem); }
  .hero-art, .hero-night { height: var(--art-height); }
  .hero-art img, .hero-night { object-position: 76% 58%; }
  .hero-shade { height: calc(var(--art-height) + 1px); background: linear-gradient(0deg,var(--deep),transparent 32%); }
  .hero-inner { display: block; min-height: 0; padding: calc(var(--art-height) - .65rem) 0 2.25rem; }
  .hero-copy { width: 100%; }
  .eyebrow { margin-bottom: .72rem; }
  .hero h1 { font-size: clamp(2.8rem, 9.5vw, 3.8rem); max-width: 16ch; text-wrap: initial; }
  .hero-intro { margin: .8rem 0 1.2rem; max-width: 32rem; }
  .time-switch { inset: .75rem 0 auto auto; }
  .time-switch button { padding: .35rem .55rem; min-height: 2.15rem; }
  .footer-inner { align-items: start; flex-direction: column; gap: 1rem; }
}
@media (max-width: 22rem) {
  .shell { width: calc(100% - 1.7rem); }
  .hero h1 { font-size: 2.55rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
}

.section-title {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 3rem);
  margin-bottom: clamp(1.3rem, 2.1vw, 2rem);
  font-size: clamp(2.45rem, 3.8vw, 4rem);
  letter-spacing: -.05em;
  line-height: 1.08;
}
.section-title::after { content: ""; height: 1px; flex: 1; background: currentColor; opacity: .27; }

/* The selected portrait and its seven smaller prints form one gallery. */
.residents {
  color-scheme: light;
  color: #402c28;
  background: linear-gradient(115deg, #f7efd9, #efe1bf);
  padding-block: clamp(2.5rem, 4.7vw, 5rem);
  border-block: 1px solid #cab684;
}
.resident-album {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 4.45fr) repeat(4, minmax(0, 1fr));
  gap: clamp(.65rem, 1.2vw, 1.15rem);
  border: 0;
  min-width: 0;
  padding: 0;
  margin: 0;
}
.resident-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  margin: 0;
}
.resident-token {
  min-width: 0;
  align-self: start;
  text-align: center;
  font-weight: 700;
  line-height: 1.12;
  cursor: pointer;
  color: #4c3d31;
}
.resident-token img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.22;
  object-fit: cover;
  object-position: 50% 14%;
  border: 3px solid #fdf5e2;
  border-radius: 2px;
  box-shadow: 0 0 0 1px #a99674, 0 2px 4px #4a351e29;
  transition: transform .16s ease;
}
.resident-token span {
  display: inline-block;
  margin-top: .4rem;
  padding: .14rem .3rem;
  font-size: clamp(.92rem, 1.3vw, 1.15rem);
}
.resident-radio:checked + .resident-token img { box-shadow: 0 0 0 3px #7c3543; }
.resident-radio:checked + .resident-token span { color: #772f3d; text-decoration: underline; text-underline-offset: .18em; }
.resident-radio:focus-visible + .resident-token { outline: 3px solid #4c1932; outline-offset: 4px; }
@media (hover: hover) {
  .resident-token:hover img { transform: translateY(-3px); }
  .resident-token:hover span { color: #772f3d; }
}
.resident-profile {
  position: relative;
  display: none;
  grid-column: 1;
  grid-row: 1 / span 2;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 2vw, 2.4rem);
  padding: clamp(1.25rem, 2.4vw, 2.5rem);
  margin-right: clamp(.25rem, 1.2vw, 1.5rem);
  color: #fff0d7;
  background: radial-gradient(ellipse at 9% 7%, #79454a, transparent 75%), #472831;
  border: 1px solid #63323c;
  box-shadow: 0 3px 0 #d1bb91;
}
.resident-radio:checked + .resident-token + .resident-profile { display: grid; }
.resident-profile::before { content: ""; position: absolute; inset: .5rem; border: 1px solid #dbb98266; pointer-events: none; }
.portrait-mount {
  position: relative;
  width: min(100%, 13rem);
  justify-self: center;
  background: #e9d6ae;
  padding: clamp(.2rem, .38vw, .38rem);
  box-shadow: 0 3px 0 #2c1721, 0 5px 9px #24111a66;
  transform: rotate(-3deg);
}
.portrait-mount img { width: 100%; height: auto; }
.resident-caption { position: relative; }
.resident-caption h3 {
  font-size: clamp(2rem, 3.4vw, 4rem);
  letter-spacing: -.05em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.resident-caption p {
  max-width: 30ch;
  margin-top: .85rem;
  color: #f1dec8;
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
  line-height: 1.35;
  text-wrap: pretty;
  overflow-wrap: break-word;
}

.world { padding-block: clamp(2.7rem, 4.7vw, 5rem); background: #142720; }
.locations { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(1.4rem, 3.5vw, 4rem); }
.location { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1fr); align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.location img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 1px solid #b2a1717a; border-radius: 2px; }
.location h3 { font-size: clamp(1.55rem, 2.65vw, 2.8rem); letter-spacing: -.04em; overflow-wrap: anywhere; }
.location p { color: #d7decb; line-height: 1.42; margin-top: .55rem; text-wrap: pretty; overflow-wrap: break-word; }
.game-gallery { padding-block: clamp(2.4rem, 4vw, 4.5rem) clamp(3rem, 5vw, 5.5rem); background: #101d19; border-top: 1px solid #415040; }
.game-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); }
.game-shot { margin: 0; min-width: 0; }
.game-shot img { width: 100%; height: auto; aspect-ratio: 2622 / 1206; object-fit: contain; background: #0d1714; border: 1px solid #8b875c82; border-radius: 2px; }
.game-shot figcaption { margin-top: .65rem; font: 400 clamp(1.12rem, 1.5vw, 1.4rem)/1.25 var(--display); }
.gallery-credit, .game-shot small { display: block; margin-top: .85rem; font: 400 1rem/1.3 Alegreya,system-ui,sans-serif; color: var(--subtle); }

@media (max-width: 58rem) {
  .resident-album { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .resident-profile { grid-column: 1 / -1; grid-row: 1; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(1rem, 4vw, 3rem); margin: 0 0 .4rem; }
  .portrait-mount { width: min(100%, 9rem); justify-self: end; }
  .resident-caption h3 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
  .locations { gap: 1.5rem; }
  .location { grid-template-columns: 1fr; align-content: start; gap: .8rem; }
  .location img { aspect-ratio: 1.9; object-position: 50% 44%; }
}
@media (max-width: 40rem) {
  .resident-album { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem .65rem; }
  .resident-profile { grid-template-columns: minmax(0, .65fr) minmax(0, 1.1fr); }
  .resident-token span { font-size: .96rem; }
  .locations, .game-shots { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .location { grid-template-columns: minmax(0, .68fr) minmax(0, 1fr); align-items: center; gap: 1rem; }
  .location img { aspect-ratio: 4/5; }
}
@media (max-width: 23rem) {
  .resident-profile { padding: 1rem; }
  .resident-token span { font-size: .89rem; }
  .location { grid-template-columns: 1fr; }
  .location img { aspect-ratio: 1.9; }
}
