@font-face {
  font-family: "Lisiere";
  src: url("../fonts/lisiere.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow_medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow_semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #0b0b0b;
  --line: #262626;
  --line-2: #3a3a3a;
  --text: #e6e6e6;
  --text-2: #b4b4b4;
  --text-3: #8f8f8f;
  --max: 1180px;
  --gutter: clamp(18px, 4vw, 48px);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 18px/1.6 "Barlow", system-ui, sans-serif;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

h2, h3 { font-family: "Lisiere", "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 400; line-height: 1.04; margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
  background: #000;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 46% 50%;
}

.veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, .45) 0, rgba(0, 0, 0, 0) 22%),
    linear-gradient(to top, var(--bg) 0, rgba(11, 11, 11, .55) 14%, rgba(0, 0, 0, 0) 38%);
}

.wordmark {
  position: absolute;
  z-index: 2;
  top: clamp(16px, 3vh, 32px);
  left: var(--gutter);
  font: 400 clamp(30px, 3.4vw, 46px)/1 "Lisiere", "Barlow Condensed", sans-serif;
  text-decoration: none;
  color: var(--text);
  text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}

.stage {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 4vh;
  height: min(84vh, 860px);
  aspect-ratio: 4 / 5;
  max-width: 100vw;
  transform: translateX(-50%);
}

#character {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .9s ease;
}
#character.ready { opacity: 1; }

.ground {
  position: absolute;
  left: 50%;
  bottom: 9.5%;
  width: 30%;
  height: 4.5%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
}

.devlog { padding: clamp(40px, 7vw, 88px) 0 0; }

.page-head h2 { font-size: clamp(52px, 7vw, 88px); line-height: .9; }
.page-head p { max-width: 60ch; color: var(--text-2); font-size: 19px; margin: 22px 0 0; }

.entries { margin-top: 56px; }
.entry { display: grid; grid-template-columns: 12em minmax(0, 1fr); gap: 12px 48px; padding: 40px 0; border-top: 1px solid var(--line); }
.entry:last-child { border-bottom: 1px solid var(--line); }
.entry time { color: var(--text-3); font-size: 16px; padding-top: 6px; }
.entry h3 { font-size: clamp(28px, 3vw, 36px); margin-bottom: 14px; }
.entry ul { margin: 0; padding-left: 1.1em; color: var(--text-2); }
.entry li { margin: 6px 0; }
.entry li::marker { color: var(--text-3); }

.site-foot { margin-top: 96px; border-top: 1px solid var(--line); padding: 48px 0 56px; font-size: 15px; color: var(--text-3); }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; }
.site-foot .wrap.foot-4 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
.foot-mark { font: 400 30px/1 "Lisiere", "Barlow Condensed", sans-serif; color: var(--text); text-decoration: none; }
.foot-brand p { margin: 12px 0 0; max-width: 34ch; }
.foot-col h3 { font-size: 20px; color: var(--text); margin-bottom: 12px; }
.foot-col a, .foot-col p { display: block; margin: 0 0 6px; color: var(--text-2); text-decoration: none; }
.foot-col a:hover { color: #fff; }
.foot-legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }
.foot-legal p { margin: 0 0 6px; max-width: 90ch; }

@media (max-width: 760px) {
  .site-foot .wrap, .site-foot .wrap.foot-4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .stage { height: min(72vh, 620px); bottom: 6vh; }
  .entry { grid-template-columns: minmax(0, 1fr); padding: 30px 0; }
  .hero-bg { object-position: 46% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #character { transition: none; }
}
