/* Gloop Lab website. Colours from lib/ui/retro/retro_style.dart. No
   external requests: fonts and images are in assets/. */

@font-face {
  font-family: "Unbounded";
  src: url("/assets/fonts/unbounded.woff") format("woff");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rubik";
  src: url("/assets/fonts/rubik.woff") format("woff");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --enamel-top: #f4ebd4;
  --enamel-bottom: #dccfae;
  --chrome-light: #fbfcfd;
  --chrome-mid: #c3cbd0;
  --chrome-dark: #7d878e;
  --chrome-edge: #4e575d;
  --glass-top: #0b1b1e;
  --glass-bottom: #173338;
  --amber: #ffc23a;
  --teal-glow: #8fe6dc;
  --label: #1c5f5b;
  --ink: #173b38;
  --teal-top: #1a7f77;
  --teal-bottom: #0f5c56;
  --coral: #e8674a;
  --lamp-light: #ffe28a;
  --lamp-dark: #e39b12;
  --on-lamp: #3a2600;

  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --text: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --radius: 22px;

  color-scheme: light;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  /* The lab behind the top of the page, fading into teal further down. */
  background-color: var(--teal-bottom);
  background-image:
    linear-gradient(180deg, rgb(15 92 86 / 0.5) 0, rgb(15 92 86 / 0.75) 560px,
      var(--teal-bottom) 1000px),
    url("/assets/img/lab.webp");
  background-size: 100% 100%, max(100%, 620px) auto;
  background-position: center top;
  background-repeat: no-repeat;
}

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

a {
  color: var(--teal-bottom);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--amber);
  color: var(--on-lamp);
  font-weight: 600;
}

.skip:focus {
  left: 8px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ------------------------------------------------------------ top bar */

.top {
  padding: 14px 0;
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 0 0 2px var(--chrome-light), 0 0 0 3px var(--chrome-dark);
}

.brand:hover {
  color: var(--teal-glow);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav a {
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--label);
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(var(--enamel-top), var(--enamel-bottom));
  box-shadow: 0 0 0 2px var(--chrome-light), 0 0 0 3px var(--chrome-dark),
    0 3px 6px rgb(0 0 0 / 0.25);
}

.nav a:hover {
  color: var(--coral);
}

.nav a[aria-current="page"] {
  background: linear-gradient(var(--teal-top), var(--teal-bottom));
  color: #fff;
}

.nav .lang {
  background: linear-gradient(var(--lamp-light), var(--lamp-dark));
  color: var(--on-lamp);
}

/* ------------------------------------------------------------ panels */

/* Cream enamel with a chrome rim and four screws, like the game's cards. */
.panel {
  position: relative;
  background: linear-gradient(180deg, var(--enamel-top), var(--enamel-bottom));
  border-radius: var(--radius);
  padding: 30px 22px;
  margin: 0 0 22px;
  box-shadow:
    0 0 0 3px var(--chrome-light),
    0 0 0 5px var(--chrome-mid),
    0 0 0 6px var(--chrome-edge),
    0 10px 24px rgb(0 0 0 / 0.35);
}

.panel::before,
.panel::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, transparent 42%, var(--chrome-light) 42%,
      var(--chrome-light) 58%, transparent 58%),
    radial-gradient(circle at 35% 35%, var(--chrome-mid), var(--chrome-dark));
  box-shadow: inset 0 0 0 1px var(--chrome-edge);
}

.panel::before {
  left: 10px;
}

.panel::after {
  right: 10px;
}

/* The teal title plate (the GLOOP LAB bar on the home screen). */
.plate {
  display: block;
  margin: 0 auto 20px;
  padding: 12px 20px;
  max-width: 100%;
  width: fit-content;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--teal-top), var(--teal-bottom));
  box-shadow: inset 0 -5px 0 rgb(0 0 0 / 0.18), 0 0 0 3px var(--chrome-light),
    0 0 0 4px var(--chrome-dark);
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.15rem, 4.6vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.25;
  font-weight: 700;
}

h1 {
  margin: 0;
}

h2 {
  font-size: 1.2rem;
  margin: 2em 0 0.6em;
}

h3 {
  font-size: 1rem;
  margin: 1.6em 0 0.4em;
}

.panel > :first-child,
.panel > .plate + * {
  margin-top: 0;
}

p,
ul {
  margin: 0 0 1em;
}

ul {
  padding-left: 1.3em;
}

li {
  margin: 0.25em 0;
}

li::marker {
  color: var(--lamp-dark);
}

.meta {
  font-size: 0.95rem;
  color: var(--label);
}

/* ------------------------------------------------------------ home */

.hero {
  text-align: center;
  padding-top: 36px;
}

.hero .icon {
  width: 128px;
  height: 128px;
  margin: 0 auto 18px;
  border-radius: 28px;
  box-shadow: 0 0 0 4px var(--chrome-light), 0 0 0 6px var(--chrome-dark),
    0 10px 20px rgb(0 0 0 / 0.3);
}

.hero h1 {
  font-size: clamp(1.4rem, 5.4vw, 2.4rem);
  font-weight: 800;
}

.hero .tagline {
  max-width: 34em;
  margin: 14px auto 22px;
  font-size: 1.1rem;
}

/* The glass display (BEST / SCORE readouts). */
.display {
  display: inline-block;
  max-width: 100%;
  padding: 12px 22px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--glass-top), var(--glass-bottom));
  box-shadow: 0 0 0 3px var(--chrome-light), 0 0 0 4px var(--chrome-dark),
    inset 0 2px 8px rgb(0 0 0 / 0.6);
  color: var(--teal-glow);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(0.8rem, 3.2vw, 1rem);
  letter-spacing: 0.03em;
  text-shadow: 0 0 10px rgb(143 230 220 / 0.55);
}

.shots {
  list-style: none;
  margin: 8px 0 26px;
  padding: 10px 4px 18px;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.shots li {
  flex: 0 0 auto;
  width: min(62vw, 230px);
  margin: 0;
  scroll-snap-align: center;
}

.shots figure {
  margin: 0;
}

/* A plain phone frame: a dark bezel with a chrome rim. */
.phone {
  padding: 7px;
  border-radius: 30px;
  background: #11191b;
  box-shadow: 0 0 0 2px var(--chrome-mid), 0 0 0 3px var(--chrome-edge),
    0 10px 22px rgb(0 0 0 / 0.4);
}

.phone img {
  border-radius: 23px;
  width: 100%;
  aspect-ratio: 430 / 932;
  object-fit: cover;
}

.shots figcaption {
  margin-top: 12px;
  text-align: center;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
}

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  list-style: none;
  padding: 0;
}

.features li {
  margin: 0;
  padding: 12px 14px 12px 44px;
  position: relative;
  border-radius: 14px;
  background: rgb(255 255 255 / 0.45);
  box-shadow: inset 0 0 0 1px rgb(125 135 142 / 0.45);
}

/* An amber lamp in front of each feature. */
.features li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 17px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--lamp-light),
      var(--lamp-dark) 70%);
  box-shadow: 0 0 0 2px var(--chrome-light), 0 0 0 3px var(--chrome-dark),
    0 0 10px rgb(255 194 58 / 0.7);
}

.features strong {
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 700;
}

.soon {
  text-align: center;
}

.links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.button {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 14px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, var(--teal-top), var(--teal-bottom));
  box-shadow: inset 0 -4px 0 rgb(0 0 0 / 0.2), 0 0 0 2px var(--chrome-light),
    0 0 0 3px var(--chrome-dark), 0 4px 8px rgb(0 0 0 / 0.25);
}

.button:hover {
  color: var(--lamp-light);
}

.button.coral {
  background: linear-gradient(180deg, #c24a2e, #9e3820);
}

/* ------------------------------------------------------------ text pages */

.page {
  max-width: 820px;
  padding-top: 24px;
}

.page h1 {
  font-size: clamp(1.3rem, 4.8vw, 1.9rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
}

.page .meta {
  text-align: center;
  margin-bottom: 24px;
}

.mail {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(0.95rem, 4vw, 1.2rem);
  overflow-wrap: anywhere;
}

.qa h3 {
  font-size: 1.05rem;
  margin-top: 1.8em;
}

.qa .plate + h3 {
  margin-top: 0;
}

.big404 {
  font-family: var(--display);
  font-size: clamp(3rem, 16vw, 6rem);
  font-weight: 800;
  color: var(--teal-bottom);
  text-align: center;
  line-height: 1;
  margin: 0 0 10px;
}

/* ------------------------------------------------------------ footer */

.foot {
  padding: 10px 0 36px;
  color: #d9ece9;
  font-size: 0.9rem;
  text-align: center;
}

.foot a {
  color: #fff;
}

.foot a:hover {
  color: var(--amber);
}

.foot p {
  margin: 0.4em 0;
}

/* ------------------------------------------------------------ wider */

@media (min-width: 720px) {
  .panel {
    padding: 40px 44px;
  }

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

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

  .shots li {
    width: 196px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .shots {
    scroll-behavior: smooth;
  }
}
