/* Air Hockey: Table Tour's website, in the game's own look: the main menu's navy, its blue, and Nunito Bold for
   headings, as the game sets its title. The font is served from here, not a font service, so the site calls on no one
   else. */

@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy-top: #173a5e;
  --navy-bottom: #06172a;
  --blue: #4c8df0;
  --text: #ffffff;
  --secondary: rgba(255, 255, 255, 0.74);
  --panel: rgba(255, 255, 255, 0.06);
  --edge: rgba(255, 255, 255, 0.12);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--navy-bottom);
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(var(--navy-top), var(--navy-bottom) 70vh);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

a:hover {
  color: #7aabf5;
}

a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3,
.tag {
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
}

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px;
}

/* The home page's top: the icon, then the name as the game's menu sets it. */

.hero {
  padding: 64px 0 32px;
  text-align: center;
}

.hero .icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.title {
  margin: 24px 0 0;
  font-size: clamp(40px, 9vw, 64px);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.title .air {
  color: var(--blue);
}

.tag {
  display: inline-block;
  margin: 12px 0 0;
  padding: 4px 16px;
  border-radius: 999px;
  background: var(--blue);
  font-size: 15px;
  letter-spacing: 0.1em;
}

.lede {
  max-width: 560px;
  margin: 24px auto 0;
  font-size: 20px;
  color: var(--secondary);
  text-wrap: balance;
}

.soon {
  margin: 16px 0 0;
  font-weight: 600;
  text-wrap: balance;
}

/* Screenshots, side by side, scrolling sideways where there isn't room for them all. */

.shots {
  display: flex;
  gap: 16px;
  margin: 16px -16px 0;
  padding: 8px 16px 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.shots img {
  flex: 0 0 auto;
  width: min(200px, 46vw);
  height: auto;
  border-radius: 14px;
  scroll-snap-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

@media (min-width: 880px) {
  .shots {
    justify-content: center;
    overflow: visible;
  }
}

section {
  margin: 48px 0 0;
}

h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li,
.panel {
  padding: 20px;
  border: 1px solid var(--edge);
  border-radius: 20px;
  background: var(--panel);
}

.features h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

.features p {
  margin: 0;
  color: var(--secondary);
}

.panel p {
  margin: 0 0 12px;
}

.panel p:last-child {
  margin-bottom: 0;
}

footer {
  margin: 64px 0 0;
  padding: 24px 0 40px;
  border-top: 1px solid var(--edge);
  color: var(--secondary);
  font-size: 15px;
  text-align: center;
}

/* The privacy policy: a single column of plain text, easy to read at length. */

.policy {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 0 0;
}

.policy .back {
  font-weight: 600;
  text-decoration: none;
}

.policy h1 {
  margin: 24px 0 4px;
  font-size: clamp(32px, 7vw, 44px);
  line-height: 1.15;
}

.policy .updated {
  margin: 0;
  color: var(--secondary);
}

.policy h2 {
  margin: 40px 0 8px;
  font-size: 22px;
}

.policy p,
.policy li {
  color: rgba(255, 255, 255, 0.86);
}

.policy ul {
  padding-left: 22px;
}

.policy li {
  margin: 0 0 8px;
}

.summary {
  margin: 28px 0 0;
}

.missing {
  padding: 96px 0 32px;
  text-align: center;
}
