/* Moonset — Gold & Emerald, the game's default sky. One typeface, one column. */
@font-face {
  font-family: "Jersey 15";
  src: url("/assets/Jersey15-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #293e38;
  --recess: #1b2b27;
  --line: #68897d;
  --ink: #cfe0d6;
  --cream: #f2e8cf;
  --gold: #e6c56e;
  --tag: #c2452a;
  --night: #0b1512;
  --px: 3px;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Jersey 15", ui-monospace, Menlo, monospace;
  font-size: 22px;
  line-height: 1.32;
  letter-spacing: 0.02em;
  -webkit-text-size-adjust: 100%;
}

/* A few fixed stars, drawn as square pixels. */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: var(--px); height: var(--px);
  color: var(--cream);
  opacity: 0.5;
  pointer-events: none;
  box-shadow:
    8vw 12vh, 22vw 31vh, 37vw 8vh, 61vw 18vh, 78vw 9vh, 91vw 27vh,
    14vw 58vh, 5vw 82vh, 88vw 64vh, 95vw 88vh, 71vw 93vh, 30vw 95vh;
}

main {
  position: relative;
  max-width: 660px;
  margin: 0 auto;
  padding: 40px 16px 56px;
}

.mast {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  text-decoration: none;
}

.mast img {
  width: 72px; height: 72px;
  image-rendering: pixelated;
  flex: none;
}

/* The red tag from the key art: flat plate, hard shadow, slight slant. */
.tag {
  display: inline-block;
  background: var(--tag);
  color: var(--cream);
  font-size: 40px;
  line-height: 1;
  letter-spacing: 0.04em;
  padding: 8px 16px 10px;
  border: var(--px) solid var(--night);
  box-shadow: 6px 6px 0 var(--night);
  text-shadow: 3px 3px 0 var(--night);
  transform: rotate(-3deg);
}

.panel {
  background: var(--recess);
  border: var(--px) solid var(--line);
  padding: 22px 22px 10px;
  /* stepped pixel corners */
  clip-path: polygon(
    0 6px, 3px 6px, 3px 3px, 6px 3px, 6px 0,
    calc(100% - 6px) 0, calc(100% - 6px) 3px, calc(100% - 3px) 3px, calc(100% - 3px) 6px, 100% 6px,
    100% calc(100% - 6px), calc(100% - 3px) calc(100% - 6px), calc(100% - 3px) calc(100% - 3px), calc(100% - 6px) calc(100% - 3px), calc(100% - 6px) 100%,
    6px 100%, 6px calc(100% - 3px), 3px calc(100% - 3px), 3px calc(100% - 6px), 0 calc(100% - 6px)
  );
}

h1 {
  margin: 0 0 2px;
  font-size: 34px;
  font-weight: normal;
  line-height: 1.1;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.date { margin: 0 0 18px; color: var(--line); }

h2 {
  margin: 22px 0 2px;
  font-size: 24px;
  font-weight: normal;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

p { margin: 0 0 12px; }

.lead { color: var(--cream); }

a { color: var(--gold); text-underline-offset: 3px; }
a:hover, a:focus-visible { color: var(--cream); }

footer {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  row-gap: 4px;
  color: var(--line);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
footer a { color: var(--ink); text-decoration: none; }
footer a:hover, footer a:focus-visible { color: var(--gold); }
footer span { padding: 0 6px; }

/* home */
.home { text-align: center; padding-top: 12vh; }
.home footer { justify-content: center; }
.home img { width: 144px; height: 144px; image-rendering: pixelated; }
.home .tag { font-size: 56px; margin: 26px 0 22px; }
.home p { color: var(--cream); font-size: 26px; }
.home .soon { color: var(--line); font-size: 22px; }

@media (max-width: 420px) {
  body { font-size: 20px; }
  .tag { font-size: 32px; }
  .home .tag { font-size: 44px; }
  .panel { padding: 18px 16px 6px; }
}
