/* parkingbento.com — one stylesheet, no framework. Tokens first.
   The layout follows wdpkstudios.com; the colours and type are the game's own (its chrome palette, Anton and Barlow). */

@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/anton-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/barlow-medium.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/barlow-semibold.woff2") format("woff2");
}

:root {
  --bg: #131519;            /* the game's background */
  --panel: #1d2026;
  --panel-border: #2b2f38;
  --line: #272b33;
  --text: #e9ecf2;
  --text-2: #c6cbd5;
  --muted: #8e94a0;
  --faint: #555b66;
  --accent: #2668d9;        /* the game's blue: the P sign, the main button */
  --stripe: #f2c94c;        /* the hazard stripe */
  --font-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  color-scheme: dark;
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
}

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

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

a:hover {
  color: #ffffff;
}

a:focus-visible,
.shots:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
  border-radius: 6px;
}

strong {
  font-weight: 600;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- header: the small name (inner pages) and the language switch ---------- */

.site-header {
  display: flex;
  flex-wrap: wrap;   /* on a narrow phone the language switch drops under the name as one row */
  justify-content: space-between;
  align-items: center;
  gap: 0 16px;
  padding-top: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.lang {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
}

.lang a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 9px;
  color: var(--muted);
  text-decoration: none;
}

.lang a:hover {
  color: var(--text);
}

.lang a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 1px;
}

.lang span {
  color: var(--faint);
}

/* ---------- hero ---------- */

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px 72px;
  padding-top: 32px;
  padding-bottom: 96px;
}

.hero__text {
  flex: 1 1 560px;
  min-width: 0;
}

.hero__icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
}

/* The game's lockup: the name in Anton with the hazard stripe under it, as wide as the name. */
.name {
  width: fit-content;
  margin: 28px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  /* The name stays on one line, so the stripe is exactly as wide as the name. In Anton it is 5.76 em wide, so its
     size is the room it has, divided by 5.9: here, the page beside the screenshot (300 px plus the 72 px gap). */
  font-size: clamp(40px, calc((min(100vw, 1200px) - 2 * var(--gutter) - 372px) / 5.9), 118px);
  line-height: 1.02;
  letter-spacing: 0.012em;
  text-transform: uppercase;
  white-space: nowrap;
}

.name::after {
  content: "";
  display: block;
  height: 14px;
  margin-top: 22px;
  /* 45 degrees, leaning down to the right, as the game draws it: an 18 px bar on a 36 px pitch. */
  background: repeating-linear-gradient(45deg, var(--stripe) 0 12.73px, transparent 12.73px 25.46px);
}

.tagline {
  max-width: 34ch;
  margin: 36px 0 0;
  font-size: 22px;
  line-height: 1.45;
  color: var(--text-2);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;   /* space alone separates them, so a wrapped line never starts with a dot */
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 172px;
  min-height: 60px;
  padding: 8px 22px;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: var(--panel);
  text-decoration: none;
  line-height: 1.25;
}

.store__name {
  font-weight: 600;
  font-size: 18px;
}

.store__state {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Not in the store yet: a dashed outline and quieter name, and nothing to press. */
.store--soon {
  border-style: dashed;
  border-color: var(--faint);
  background: transparent;
}

.store--soon .store__name {
  color: var(--text-2);
}

a.store:hover {
  border-color: var(--muted);
}

/* An official store badge, shown as the store supplies it. */
.store--badge {
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
}

.store--badge img {
  height: 60px;
  width: auto;
}

.small-print {
  margin: 26px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.hero__shot {
  flex: 0 0 auto;
}

.hero__shot img,
.shots img {
  border: 1px solid var(--panel-border);
  background: var(--panel);
}

.hero__shot img {
  width: 300px;
  border-radius: 30px;
}

/* ---------- sections ---------- */

.section {
  padding-bottom: 96px;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
}

.section-head::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
}

.section-head h2 {
  margin: 0;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.points h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.points p {
  margin: 12px 0 0;
  max-width: 40ch;
  color: var(--text-2);
}

/* "How it plays" sits in a panel, like a project card on the studio site. */
.panel {
  padding: clamp(28px, 4vw, 52px);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
}

/* Screenshots: a native scrolling row, no carousel. */
.shots {
  display: flex;
  gap: 20px;
  margin: 32px 0 0;
  padding: 0 0 8px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--panel-border) transparent;
}

.shots li {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.shots img {
  width: 220px;
  border-radius: 24px;
}

/* ---------- videos (only on the page once content/site.json lists some) ---------- */

.videos {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.video {
  display: block;
  width: 400px;
  max-width: 100%;
  text-decoration: none;
}

.video--short {
  width: 220px;
}

.video__frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  background: var(--panel);
}

.video--short .video__frame {
  aspect-ratio: 9 / 16;
}

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

/* The play mark: a blue disc with a white triangle, drawn in CSS. */
.video__frame::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.video__frame::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  margin: -11px 0 0 -7px;
  border-style: solid;
  border-width: 11px 0 11px 19px;
  border-color: transparent transparent transparent #fff;
}

.video__title {
  display: block;
  margin-top: 12px;
  font-weight: 600;
  color: var(--text);
}

.video:hover .video__frame {
  border-color: var(--muted);
}

.more {
  margin: 28px 0 0;
}

/* ---------- the note on real driving ---------- */

.note {
  max-width: 760px;
  padding-left: 24px;
  border-left: 3px solid var(--stripe);
}

.note h2 {
  margin: 0;
  font-weight: 600;
  font-size: 18px;
}

.note p {
  margin: 10px 0 0;
  color: var(--muted);
}

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

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 48px;
  padding-top: 40px;
  padding-bottom: 56px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 16px;
}

.footer-links .aside {
  font-weight: 500;
  font-size: 14px;
}

/* Trademark lines: small, but still readable (4.5:1 on the background). */
.site-footer .fine {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: #7f8591;
}

/* ---------- inner pages: support and the privacy policy ---------- */

.prose {
  max-width: 760px;
  padding-top: 48px;
  padding-bottom: 96px;
}

.prose h1 {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.prose h2 {
  margin: 48px 0 0;
  font-weight: 600;
  font-size: 23px;
  line-height: 1.3;
}

.prose p,
.prose ul {
  margin: 16px 0 0;
  color: var(--text-2);
  line-height: 1.65;
}

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

.prose li + li {
  margin-top: 8px;
}

.prose strong {
  color: var(--text);
}

.prose .lead {
  font-size: 20px;
  line-height: 1.5;
}

.prose .quiet {
  color: var(--muted);
}

.mail {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 24px;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: var(--panel);
  font-weight: 600;
  font-size: 20px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.mail:hover {
  border-color: var(--muted);
}

.faq {
  margin: 8px 0 0;
}

.faq dt {
  margin-top: 32px;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.35;
  color: var(--text);
}

.faq dd {
  margin: 8px 0 0;
  color: var(--text-2);
  line-height: 1.65;
}

.faq dd a {
  display: inline-block;
  margin: 8px 24px 0 0;
}

.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 56px;
  font-weight: 600;
}

/* ---------- the language chooser ("/") and the 404 page ---------- */

.chooser {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 72px;
  padding-bottom: 72px;
}

.chooser .hero__icon {
  width: 120px;
  height: 120px;
  border-radius: 27px;
}

.chooser .name {
  font-size: clamp(40px, 9vw, 72px);
}

.chooser .name::after {
  height: 10px;
  margin-top: 16px;
  background: repeating-linear-gradient(45deg, var(--stripe) 0 9.2px, transparent 9.2px 18.4px);
}

.chooser__note {
  margin: 32px 0 0;
  font-size: 20px;
  color: var(--text-2);
}

.chooser__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.chooser__links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: var(--panel);
  font-weight: 600;
  text-decoration: none;
}

.chooser__links a:hover {
  border-color: var(--muted);
}

/* ---------- narrower screens ---------- */

@media (max-width: 1000px) {
  .points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 48px;
    padding-top: 16px;
    padding-bottom: 72px;
  }

  .hero__text {
    flex: none;
    width: 100%;
  }

  .hero__icon,
  .name,
  .tagline {
    margin-inline: auto;
  }

  /* Stacked: the name has the whole width. */
  .name {
    font-size: min(96px, calc((100vw - 2 * var(--gutter)) / 5.9));
  }

  .chips,
  .stores {
    justify-content: center;
  }

  .hero__shot img {
    width: min(72vw, 300px);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .site-header {
    padding-top: 8px;
    padding-inline: 12px;
  }

  .lang {
    font-size: 12px;
    letter-spacing: 0.12em;
  }

  .lang a {
    padding: 0 7px;
  }

  .brand {
    font-size: 19px;
  }

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

  .hero__icon {
    width: 84px;
    height: 84px;
    border-radius: 19px;
  }

  .name {
    margin-top: 22px;
  }

  .name::after {
    height: 10px;
    margin-top: 16px;
    background: repeating-linear-gradient(45deg, var(--stripe) 0 9.2px, transparent 9.2px 18.4px);
  }

  .tagline {
    margin-top: 28px;
    font-size: 19px;
  }

  .chips {
    gap: 6px 20px;
    font-size: 11px;
    letter-spacing: 0.16em;
  }

  .stores {
    margin-top: 28px;
  }

  .store {
    min-width: 150px;
  }

  .section {
    padding-bottom: 72px;
  }

  .section-head {
    gap: 16px;
    margin-bottom: 28px;
  }

  .section-head h2 {
    font-size: 12px;
    letter-spacing: 0.26em;
  }

  .points {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .points h3 {
    font-size: 24px;
  }

  .panel {
    padding: 28px 24px;
    border-radius: 22px;
  }

  /* Let the row run to the screen's edge so the next screenshot peeks in. */
  .shots {
    gap: 12px;
    margin-right: calc(-1 * var(--gutter));
    padding-right: var(--gutter);
  }

  .shots img {
    width: 200px;
    border-radius: 20px;
  }

  .video {
    width: 100%;
  }

  .video--short {
    width: 200px;
  }

  .site-footer .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .prose {
    padding-top: 28px;
    padding-bottom: 72px;
  }
}

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