/* BRINEWAKE download page. The game's palette and its 7x9 console face
   (brinewake-console.woff2: one font pixel is a tenth of the em, so the face
   is crisp at 20, 30, 40 and 60px). */

@font-face {
  font-family: "Brinewake Console";
  src: url("brinewake-console.woff2") format("woff2");
  font-display: block;
}

:root {
  --ink: #131f27;
  --panel: #1c2d36;
  --panel-edge: #2a414b;
  --edge: #476066;
  --white: #efe4c5;
  --muted: #97a9a7;
  --gold: #ecb160;
  --red: #e26c54;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font: 17px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  image-rendering: pixelated;
}

a {
  color: var(--gold);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.px {
  font-family: "Brinewake Console", ui-monospace, Menlo, monospace;
  font-size: 20px;
  line-height: 30px;
  font-weight: normal;
  letter-spacing: 0;
  text-transform: uppercase;
  -webkit-font-smoothing: none;
  font-smooth: never;
}

.rule {
  height: 4px;
  background: var(--gold);
}

.small {
  font-size: 14px;
  color: var(--muted);
}

/* The top bar. */

.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
}

.back {
  color: var(--muted);
  text-decoration: none;
}

.back:hover {
  color: var(--white);
}

.chip {
  color: var(--muted);
}

/* The trailer comes first: a game panel with a gold edge, the poster and
   a gold play button until it plays. */

.trailer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 24px 0;
}

.trailer-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 2px solid var(--panel-edge);
  border-top: 4px solid var(--gold);
}

.trailer-frame video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}

.trailer-play {
  position: absolute;
  left: 50%;
  top: 61%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  gap: 14px;
  align-items: center;
  height: 56px;
  padding: 0 22px;
  border: 0;
  background: var(--gold);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(19, 31, 39, 0.6);
  white-space: nowrap;
}

.trailer-play:hover,
.trailer-play:focus-visible {
  background: var(--white);
}

.trailer.playing .trailer-play {
  display: none;
}

/* The hero is the game's home screen: the menu over a view of the tide. */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
}

.hero-view {
  position: absolute;
  inset: 0;
  background: url("shot-wet.png") no-repeat;
  background-size: 1960px 672px;
  background-position: right -260px center;
  image-rendering: pixelated;
}

.hero-view::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 34%, rgba(19, 31, 39, 0.82) 48%, rgba(19, 31, 39, 0.1) 78%),
    linear-gradient(0deg, var(--ink) 0, rgba(19, 31, 39, 0) 22%),
    linear-gradient(180deg, var(--ink) 0, rgba(19, 31, 39, 0) 12%);
}

.hero-menu {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}

.hero-menu > * {
  max-width: 520px;
}

.wordmark {
  margin: 0;
  font-size: 60px;
  line-height: 80px;
  color: var(--white);
}

.wordmark-rule {
  width: 96px;
  height: 4px;
  margin: 6px 0 22px 6px;
  background: var(--gold);
}

.tagline {
  margin: 0 0 12px;
  color: var(--gold);
}

.lede {
  margin: 0 0 32px;
  color: var(--muted);
}

/* Menu rows, as in the game: dark bars, the chosen one in gold, and a red
   edge on the way out. */

.menu {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 7px 14px;
  background: var(--panel);
  color: var(--white);
  text-decoration: none;
  border-left: 4px solid transparent;
}

.row-meta {
  color: var(--muted);
}

.row:hover,
.row:focus-visible,
.row.primary {
  background: var(--gold);
  color: var(--ink);
  outline: none;
}

.row:hover .row-meta,
.row:focus-visible .row-meta,
.row.primary .row-meta {
  color: var(--ink);
}

.row.primary:hover,
.row.primary:focus-visible {
  background: var(--white);
}

.row-quit {
  color: var(--red);
  border-left-color: var(--red);
}

.row-off {
  color: var(--muted);
}

/* Sections. */

.band {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px 0;
}

.heading {
  margin: 0 0 28px;
  font-size: 30px;
  line-height: 40px;
  color: var(--white);
}

.heading::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  margin-top: 10px;
  background: var(--gold);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  background: var(--panel);
  border: 2px solid var(--panel-edge);
  padding-bottom: 20px;
}

.card h3 {
  margin: 16px 20px 6px;
  color: var(--gold);
}

.card p,
.card ol {
  margin: 0 20px;
  color: var(--muted);
}

.card ol {
  padding-left: 22px;
}

.card li {
  margin-bottom: 6px;
}

.card .small {
  margin-top: 14px;
}

.card-text {
  padding-top: 4px;
}

.card.here {
  border-color: var(--gold);
}

.shot {
  display: block;
  width: 100%;
  height: auto;
  background: var(--ink);
}

.card .shot {
  aspect-ratio: 410 / 168;
  object-fit: cover;
  border-bottom: 2px solid var(--panel-edge);
}

.band-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.band-split p {
  color: var(--muted);
}

.factions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.factions li {
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--muted);
}

.factions img {
  flex: none;
  width: 48px;
  height: 48px;
}

.factions b {
  display: block;
  color: var(--white);
}

/* The theme player. */

.player {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 28px 0 10px;
}

.play {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border: 0;
  background: var(--gold);
  color: var(--ink);
  cursor: pointer;
}

.play:hover {
  background: var(--white);
}

.play-icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent var(--ink);
}

.playing .play-icon {
  width: 12px;
  height: 14px;
  border: 0;
  border-left: 4px solid var(--ink);
  border-right: 4px solid var(--ink);
}

.track {
  flex: 1;
  height: 6px;
  background: var(--panel);
}

.track-fill {
  width: 0;
  height: 100%;
  background: var(--gold);
}

.shots-band .shot-wide {
  border: 2px solid var(--panel-edge);
}

.note {
  margin: 24px 0 0;
  padding: 16px 20px;
  background: var(--panel);
  border-left: 4px solid var(--gold);
  color: var(--muted);
}

.note b {
  display: block;
  color: var(--gold);
}

.release {
  margin: 0 0 12px;
  color: var(--white);
}

.notes {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.notes li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 6px;
}

.notes li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.75em;
  width: 8px;
  height: 4px;
  background: var(--gold);
}

.foot {
  margin-top: 96px;
  padding-bottom: 48px;
  text-align: center;
}

.foot .px {
  margin: 36px 0 6px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .hero {
    min-height: 0;
  }

  .hero-view {
    background-size: 1470px 504px;
    background-position: right -420px top;
    opacity: 0.55;
  }

  .hero-menu {
    padding-top: 28px;
  }

  .trailer {
    padding: 4px 12px 0;
  }

  .trailer-play {
    top: 64%;
    height: 44px;
    padding: 0 14px;
  }

  .wordmark {
    font-size: 40px;
    line-height: 60px;
  }

  .wordmark-rule {
    width: 64px;
    margin-left: 4px;
  }

  .band-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .band {
    padding-top: 56px;
  }
}

@media (max-width: 520px) {
  .long {
    display: none;
  }
}
