/* Tide Pixel: ASCII subset of Press Start 2P. License: assets/fonts/OFL.txt */
@font-face {
  font-family: "Tide Pixel";
  src: url("assets/fonts/TidePixel.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E;
}

:root {
  --ink: #1b140f;
  --cream: #f4efe4;
  --cream-text: #fff6ec;
  --sand: #f3ddb0;
  --day: #f8e3b8;
  --lobster: #922333;
  --night: #141c2e;
  --night-text: #fff6ec;
  --sans: "Segoe UI", "Liberation Sans", "Nimbus Sans", "Avenir Next", sans-serif;
  --mono: "Courier New", Courier, "Liberation Mono", "Cousine", ui-monospace, monospace;
  --pixel: "Tide Pixel", "Courier New", "Liberation Mono", ui-monospace, monospace;
}

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

html {
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

p {
  margin: 0;
}

h1,
h2,
h3 {
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

::selection {
  background: #f0c14a;
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-200%);
  z-index: 5;
  background: var(--cream-text);
  color: var(--ink);
  font-weight: 700;
  padding: 0.6rem 0.8rem;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(68rem, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  background: var(--lobster);
  color: var(--cream-text);
  border-top: 8px solid var(--ink);
  padding-top: 2.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
}

.mascot {
  width: 7.5rem;
  flex: 0 0 auto;
  background: var(--cream);
  padding: 0.45rem;
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

.brand-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 0.7rem;
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sand);
}

h1 {
  margin: 0 0 0.85rem;
  font-family: var(--pixel);
  font-size: clamp(1.15rem, 2.5vw, 1.8rem);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
}

.tagline {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--cream-text);
}

.tide {
  height: 16px;
  background-image: url("assets/tide.svg");
  background-repeat: repeat-x;
  background-size: 64px 16px;
  image-rendering: pixelated;
}

main {
  padding: 2.5rem 0 1rem;
}

.catalog {
  padding-top: 0.25rem;
}

.game-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.6rem;
}

.game-tab {
  font-family: var(--pixel);
  font-size: clamp(0.62rem, 1.7vw, 0.82rem);
  line-height: 1.55;
  padding: 0.75rem 0.9rem;
  background: var(--cream);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
}

.game-tab:hover {
  background: var(--sand);
}

html[data-tab="mobile"] #tab-mobile,
html[data-tab="desktop"] #tab-desktop,
.game-tab[aria-selected="true"] {
  background: var(--lobster);
  color: var(--cream-text);
}

html[data-tab="mobile"] #panel-desktop,
html[data-tab="desktop"] #panel-mobile {
  display: none;
}

.kicker {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.4rem 0.6rem;
  background: var(--ink);
  color: var(--cream-text);
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.teaser h2 {
  margin: 0;
  font-family: var(--pixel);
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  font-weight: 400;
  line-height: 1.6;
}

.lead {
  max-width: 42rem;
  margin-top: 1rem;
}

.beats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.75rem;
  padding-right: 6px;
  padding-bottom: 6px;
}

.play-actions {
  margin-top: 1.75rem;
}

.play-proto {
  font-size: 1.05rem;
}

.beat {
  margin: 0;
  padding: 1.25rem 1.3rem 1.4rem;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}

.beat h3 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.7rem;
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.beat-icon {
  flex: 0 0 auto;
}

.beat-day {
  background: var(--day);
  color: var(--ink);
}

.beat-night {
  background: var(--night);
  color: var(--night-text);
}

.about,
.land {
  margin-top: 3.25rem;
  padding-top: 0.25rem;
}

.about h2,
.land h2 {
  margin: 0 0 0.75rem;
  font-family: var(--sans);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.2;
}

.about p,
.land > p {
  max-width: 42rem;
}

.map-figure {
  margin: 1.25rem 0 0;
  padding-right: 6px;
  padding-bottom: 6px;
}

.map-figure img {
  width: min(100%, 34rem);
  height: auto;
  background: var(--cream);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}

.map-figure figcaption {
  max-width: 34rem;
  margin-top: 0.85rem;
  font-size: 1.05rem;
}

.about p + p {
  margin-top: 1rem;
}

a:link,
a:visited {
  color: var(--lobster);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--ink);
}

.site-footer {
  margin-top: 3.5rem;
  background: var(--ink);
  color: var(--cream-text);
  border-top: 8px solid var(--lobster);
  padding: 1.5rem 0;
  text-align: center;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}

.footer-mark {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 0.18rem;
  background: var(--cream);
  border: 0;
  opacity: 0.8;
  cursor: pointer;
}

.footer-mark img {
  width: 1.15rem;
  height: auto;
  display: block;
}

.footer-mark:hover,
.footer-mark:focus-visible {
  opacity: 1;
}

@media (max-width: 720px) {
  .brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
  }

  .beats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  body {
    font-size: 1.05rem;
  }

  .wrap {
    width: min(68rem, calc(100% - 1.5rem));
  }

  .beat h3,
  .about h2,
  .land h2 {
    font-size: 1.35rem;
  }
}

@media (forced-colors: active) {
  .mascot,
  .beat,
  .kicker,
  .footer-mark,
  .game-tab,
  .map-figure img {
    border: 1px solid CanvasText;
    box-shadow: none;
  }

  .beat-night,
  .site-header,
  .site-footer {
    forced-color-adjust: auto;
  }
}
