/* The site's stylesheet, in the game's colours and type (apps/client/src/index.scss). The fonts are served from here
   too, so the pages load nothing from elsewhere, except Google's sign-in on the deletion page. */

@font-face {
  font-family: 'Big Shoulders Stencil';
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/big-shoulders-stencil-latin-800-normal.woff2) format('woff2');
}

@font-face {
  font-family: 'Barlow Semi Condensed';
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/barlow-semi-condensed-latin-500-normal.woff2) format('woff2');
}

@font-face {
  font-family: 'Barlow Semi Condensed';
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/barlow-semi-condensed-latin-600-normal.woff2) format('woff2');
}

@font-face {
  font-family: 'Barlow Semi Condensed';
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/barlow-semi-condensed-latin-700-normal.woff2) format('woff2');
}

/* Canopy shadow, sun-bleached bone, sandstone, and blaze orange, which means "you" or "go" in the game. */
:root {
  color-scheme: dark;
  --canopy-rgb: 15 29 23;
  --canopy: rgb(var(--canopy-rgb));
  --bone: #eee7d4;
  --sand: #d59a62;
  --blaze: #ff6a1f;
  --red: #f2463a;
  --muted: rgb(238 231 212 / 0.72);
  --line: rgb(213 154 98 / 0.4);
  --stencil: 'Big Shoulders Stencil', Impact, 'Arial Narrow', sans-serif;
  --ui: 'Barlow Semi Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --gutter: max(1rem, 5vw);
  --width: 70rem;
}

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

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background: var(--canopy);
  color: var(--bone);
  font: 500 1.0625rem/1.55 var(--ui);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--bone);
  text-decoration-color: var(--sand);
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

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

:focus-visible {
  outline: 2px solid var(--bone);
  outline-offset: 2px;
}

::selection {
  background: var(--blaze);
  color: var(--canopy);
}

strong {
  font-weight: 700;
}

/* One cut corner, like a stencilled crate (the kit's chamfer). */
.chamfer {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}

/* The privacy policy, the deletion page and the 404: the name back to the home page over one column of text. */
.bar {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font: 800 1.75rem/1 var(--stencil);
  color: var(--bone);
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
}

.doc {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.75rem 1rem 3.5rem;
  font-size: 1.125rem;
}

.doc h1 {
  margin: 0 0 0.4rem;
  font: 800 clamp(2.4rem, 8vw, 3.25rem)/1 var(--stencil);
  text-wrap: balance;
}

.doc h2 {
  margin: 2.2rem 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--sand);
}

.doc p,
.doc ul {
  margin: 0.6rem 0;
}

.doc ul {
  padding-left: 1.25rem;
}

.doc li + li {
  margin-top: 0.5rem;
}

.meta {
  margin-bottom: 1.8rem;
  color: var(--muted);
}

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

.panel {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
}

.panel p:first-child {
  margin-top: 0;
}

#google {
  min-height: 44px;
}

.doc button {
  min-height: 44px;
  padding: 0 1.1rem;
  border: 0;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.doc button:disabled {
  opacity: 0.6;
  cursor: default;
}

#status:empty {
  display: none;
}

/* The landing page. The hero: the canyon at sunset across the whole width, the name over its dark side. */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: min(100svh, 52rem);
  padding: 4rem var(--gutter);
  overflow: hidden;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(var(--canopy-rgb) / 0.92) 0%, rgb(var(--canopy-rgb) / 0.8) 32%, rgb(var(--canopy-rgb) / 0.2) 52%, transparent 62%),
    linear-gradient(0deg, var(--canopy) 0%, transparent 22%);
}

.hero-text {
  width: 100%;
  max-width: var(--width);
  margin: 0 auto;
}

.wordmark {
  margin: 0;
  font: 800 clamp(5rem, 13vw, 10.5rem)/0.82 var(--stencil);
}

.wordmark span {
  display: block;
}

.tagline {
  margin: 1.1rem 0 0;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--sand);
}

.pitch {
  max-width: 32ch;
  margin: 0.8rem 0 0;
  font-size: 1.2rem;
}

.soon {
  display: inline-block;
  margin: 1.75rem 0 0;
  padding: 0.75rem 1.2rem;
  font-weight: 700;
  background: rgb(var(--canopy-rgb) / 0.7);
  box-shadow: inset 0 0 0 1px var(--line);
}

.section {
  max-width: calc(var(--width) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 3.5rem var(--gutter) 0;
}

.section h2 {
  margin: 0 0 1.25rem;
  font: 800 clamp(2.1rem, 5vw, 3rem)/1 var(--stencil);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 1.25rem 1.35rem 1.4rem;
  background: rgb(238 231 212 / 0.05);
  box-shadow: inset 3px 0 0 var(--sand);
}

.card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1rem;
}

.shot {
  position: relative;
  margin: 0;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot.big {
  grid-row: span 2;
}

.shot figcaption {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  background: rgb(var(--canopy-rgb) / 0.78);
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.5rem;
  margin: 0;
}

.facts div {
  padding: 0.9rem 0;
  box-shadow: inset 0 -1px 0 var(--line);
}

.facts dt {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--sand);
}

.facts dd {
  margin: 0.1rem 0 0;
  font-size: 1.2rem;
  font-weight: 600;
}

/* Every page: the links Play and the app point to, who makes the game, and the credits for the models in it. */
.foot {
  width: min(var(--width), 100% - 2 * var(--gutter));
  margin: 4rem auto 0;
  padding: 1.75rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  box-shadow: inset 0 1px 0 var(--line);
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 0.9rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.foot p {
  max-width: 70ch;
  margin: 0.4rem 0 0;
}

.foot .credits {
  font-size: 0.85rem;
}

.doc + .foot {
  width: min(42rem, 100% - 2rem);
  margin-top: 0;
}

/* Phones held upright: the art on top, the name under it. */
@media (max-width: 46rem) {
  .hero {
    display: block;
    min-height: 0;
    padding: 0 0 0.5rem;
  }

  .hero-art {
    position: static;
    height: auto;
    aspect-ratio: 4 / 3;
    object-position: 82% 50%;
  }

  .hero::before {
    inset: 0 0 auto;
    height: 75vw;
    background: linear-gradient(0deg, var(--canopy) 0%, transparent 35%);
  }

  .hero-text {
    margin-top: -3.5rem;
    padding: 0 var(--gutter);
  }

  .wordmark {
    font-size: clamp(4.25rem, 24vw, 7rem);
  }

  .cards,
  .gallery,
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .shot.big {
    grid-row: auto;
  }

  .section {
    padding-top: 2.75rem;
  }
}
