/* Padel Toon — the website. One stylesheet for the landing page, the
   privacy policy and the 404. No scripts, and nothing loads from anywhere
   but here: the one font, Bricolage Grotesque (SIL Open Font License,
   fonts/OFL.txt), is served from /fonts/ beside the pages.

   The look is stickers: thick dark outlines and hard offset shadows, like
   the app's icon, on the sky of the game's courts. */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/bricolage-grotesque.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* The same in both themes: outlines, and the stickers' own colours. */
  --ink: #111111;
  --sky: #a8e0ff;
  --blue: #2a6fd8;
  --orange: #ff7a2f;
  --sun: #ffd23f;
  --ball: #e6ff3a;

  --bg: var(--sky);
  --paper: #ffffff;
  --text: #111111;
  --muted: #2b3550;
  --shadow: #111111;
  --line: #c8d6e8;
  --link: #1f4fa8;
  --well: var(--sky); /* a box inside a paper card */

  --font:
    'Bricolage Grotesque', ui-rounded, system-ui, -apple-system, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --gutter: 16px;
  --max: 1240px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0e1830;
    --paper: #18284a;
    --text: #eef3ff;
    --muted: #b5c2de;
    --shadow: #000000;
    --line: #2b3b60;
    --link: #8cc0ff;
    --well: #0e1830;
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --bg: #0e1830;
  --paper: #18284a;
  --text: #eef3ff;
  --muted: #b5c2de;
  --shadow: #000000;
  --line: #2b3b60;
  --link: #8cc0ff;
  --well: #0e1830;
  color-scheme: dark;
}

@media (min-width: 720px) {
  :root {
    --gutter: 24px;
  }
}

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.5;
  /* The tilted stickers and the court-name band reach past the sides. */
  overflow-x: hidden;
  overflow-x: clip;
}

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

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

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

h1,
h2,
h3 {
  font-weight: 800;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--text);
  border: 3px solid var(--ink);
  border-radius: 12px;
  font-weight: 700;
}

.skip:focus {
  top: 16px;
}

/* ---- Header ---------------------------------------------------------- */

.top {
  padding-top: 16px;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 20px;
  padding: 6px 8px 6px 14px;
  box-shadow: 5px 5px 0 var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 2px solid var(--ink);
}

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

.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  padding: 10px 12px;
  border-radius: 12px;
}

.nav a:hover {
  background: var(--well);
}

.nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.nav .cta {
  margin-left: 6px;
  padding: 7px 16px;
  background: var(--sun);
  color: var(--ink);
  border: 3px solid var(--ink);
  font-weight: 800;
}

.nav .cta:hover {
  background: var(--ball);
}

@media (max-width: 640px) {
  .nav .cta {
    display: none;
  }
}

@media (max-width: 480px) {
  .bar {
    padding-left: 10px;
  }
  .brand {
    font-size: 19px;
    gap: 8px;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .nav {
    gap: 0;
  }
  .nav a {
    padding: 10px 8px;
    font-size: 16px;
  }
}

@media (max-width: 420px) {
  .nav .wide {
    display: none;
  }
}

/* ---- Buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 8px 22px 8px 16px;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: var(--paper);
  color: var(--text);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.05;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--shadow);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}

.btn small {
  display: block;
  font-weight: 600;
  font-size: 12px;
}

.btn svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.btn svg.line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--shadow);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--shadow);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 5px 5px 0 #fff;
}

.btn-dark:hover {
  box-shadow: 7px 7px 0 #fff;
}

.btn-dark:active {
  box-shadow: 2px 2px 0 #fff;
}

.btn-sun {
  background: var(--sun);
  color: var(--ink);
}

/* ---- Hero ------------------------------------------------------------ */

.hero {
  padding: clamp(48px, 7vw, 80px) 0 clamp(64px, 8vw, 104px);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

@media (min-width: 920px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 10fr) minmax(0, 11fr);
    gap: 56px;
  }
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.kicker {
  display: inline-block;
  padding: 6px 14px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transform: rotate(-2deg);
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hl {
  display: inline-block;
  margin-top: 0.14em;
  padding: 0 0.2em 0.1em;
  background: var(--ball);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 0.2em;
  box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(-2deg);
  white-space: nowrap;
}

.lead {
  margin: 0;
  max-width: 32em;
  font-size: 20px;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

.hero-art {
  position: relative;
  padding: 36px 8px 28px;
}

.frame {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 24px;
  padding: 10px;
  box-shadow: 10px 10px 0 var(--shadow);
  transform: rotate(2deg);
}

.frame img {
  width: 100%;
  border-radius: 14px;
  border: 2px solid var(--ink);
}

.sticker-icon {
  position: absolute;
  left: -14px;
  top: 0;
  width: 112px;
  height: 112px;
  border-radius: 28px;
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--shadow);
  transform: rotate(-10deg);
}

.sticker-noads {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(12deg);
}

@media (max-width: 600px) {
  .hero-art {
    padding: 26px 4px 22px;
  }
  .sticker-icon {
    left: -4px;
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }
  .sticker-noads {
    right: 0;
    width: 88px;
    height: 88px;
    font-size: 18px;
  }
}

/* ---- The band of court names ------------------------------------------ */

/* The band is tilted and wider than the page; .marquee is the page's width
   and cuts it off at the sides, with room above and below for the tilt
   (sin 1.5° of half the band's width). */
.marquee {
  overflow: hidden;
  padding: calc(1.4vw + 6px) 0;
  margin: calc(-1.4vw - 6px) 0;
}

.band {
  margin: 0 -40px;
  background: var(--ink);
  color: var(--ball);
  border-block: 3px solid var(--ink);
  transform: rotate(-1.5deg);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  padding: 16px 0;
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Every name has its ball after it, so the second half of the track is
   the first again and sliding it by half starts it over unseen. */
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
}

.marquee-track span::after {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ball);
}

@media (prefers-reduced-motion: no-preference) {
  .marquee-track {
    animation: slide 45s linear infinite;
  }
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

/* ---- Sections ---------------------------------------------------------- */

section {
  padding: clamp(72px, 9vw, 120px) 0 0;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.sub {
  margin: 0 0 clamp(32px, 4vw, 48px);
  max-width: 32em;
  font-size: 20px;
}

/* ---- What the game is -------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 28px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: 7px 7px 0 var(--shadow);
  transform: rotate(-1deg);
}

.card:nth-child(even) {
  transform: rotate(1deg);
}

.card h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  font-size: 17px;
}

.c-orange {
  background: var(--orange);
}
.c-sun {
  background: var(--sun);
}
.c-paper {
  background: var(--paper);
  color: var(--text);
}
.c-blue {
  background: var(--blue);
  color: #fff;
}

.badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--ink);
  display: grid;
  place-items: center;
}

.badge svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.b-ball {
  background: var(--ball);
}

/* ---- Courts ------------------------------------------------------------ */

.label {
  display: inline-block;
  margin: 0 0 22px;
  padding: 4px 14px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 999px;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
}

.ladder,
.silly-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 16px;
}

.ladder figure,
.silly-grid figure {
  margin: 0;
}

.ladder li {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 8px 8px 10px;
  box-shadow: 5px 5px 0 var(--shadow);
  transform: rotate(-1deg);
}

.ladder li:nth-child(even) {
  transform: rotate(1deg);
}

.ladder .last {
  background: var(--sun);
  color: var(--ink);
}

.ladder img {
  width: 100%;
  aspect-ratio: 1120 / 496;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--ink);
}

.ladder figcaption {
  padding-top: 8px;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
}

@media (min-width: 760px) {
  .ladder {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 28px;
  }
  .ladder li {
    padding: 10px 10px 14px;
    box-shadow: 6px 6px 0 var(--shadow);
  }
  .ladder figcaption {
    padding-top: 10px;
    font-size: 20px;
  }
}

.silly {
  margin-top: clamp(48px, 6vw, 72px);
  padding: clamp(20px, 3.5vw, 44px);
  background: var(--ball);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 28px;
  box-shadow: 8px 8px 0 var(--shadow);
}

.silly-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px 16px;
  margin-bottom: 28px;
}

.silly-head h3 {
  margin: 0;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.silly-head p {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.silly-grid li {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 8px 8px 12px;
}

.silly-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
}

.silly-grid figcaption {
  padding-top: 8px;
  font-size: 15px;
  line-height: 1.3;
}

.silly-grid strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
}

@media (min-width: 640px) {
  .silly-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (min-width: 1000px) {
  .silly-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* ---- Make it yours -------------------------------------------------------- */

.yours {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px 40px;
  padding: clamp(24px, 4vw, 56px);
  background: var(--blue);
  color: #fff;
  border: 3px solid var(--ink);
  border-radius: 28px;
  box-shadow: 8px 8px 0 var(--shadow);
}

.yours > div {
  flex: 1 1 360px;
}

.yours h2 {
  margin-bottom: 14px;
}

.yours p {
  margin: 0;
  max-width: 28em;
  font-size: 19px;
}

.facts {
  flex: 1 1 400px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.facts li {
  padding: 10px 16px;
  background: #fff;
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 14px;
  font-weight: 700;
  font-size: 17px;
}

.facts .hot {
  background: var(--sun);
  font-weight: 800;
}

/* ---- Support ------------------------------------------------------------ */

.support {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 44px;
  padding: clamp(24px, 4vw, 56px);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 28px;
  box-shadow: 8px 8px 0 var(--shadow);
}

.support-main {
  flex: 1 1 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.support-main h2,
.support-main p {
  margin: 0;
}

.mail {
  max-width: 100%;
  min-height: 54px;
  font-size: 18px;
}

.mail span {
  overflow-wrap: anywhere;
}

.answers {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.answer {
  padding: 20px 22px;
  background: var(--well);
  border: 3px solid var(--ink);
  border-radius: 18px;
}

.answer h3 {
  margin: 0 0 6px;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.answer p {
  margin: 0;
  font-size: 16px;
}

/* ---- Footer ------------------------------------------------------------- */

.foot {
  padding: clamp(56px, 7vw, 80px) 0 40px;
  font-size: 16px;
  font-weight: 600;
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  align-items: center;
}

.foot nav {
  display: flex;
  gap: 12px;
}

.foot a {
  display: inline-block;
  padding: 12px 4px;
  color: var(--text);
}

/* ---- The privacy policy -------------------------------------------------- */

.doc {
  padding: clamp(32px, 5vw, 56px) 0 0;
}

.doc > .wrap {
  width: calc(100% - 2 * var(--gutter));
  max-width: 860px;
  padding: clamp(22px, 5vw, 56px);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 28px;
  box-shadow: 8px 8px 0 var(--shadow);
}

.doc h1 {
  margin: 0 0 8px;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.doc .dated {
  margin: 0 0 28px;
  color: var(--muted);
  font-weight: 600;
}

.doc h2 {
  margin: 44px 0 10px;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  scroll-margin-top: 16px;
}

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

.doc p,
.doc li {
  max-width: 42em;
  font-size: 17px;
}

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

.doc li {
  margin: 4px 0;
}

.summary {
  padding: 20px 24px;
  background: var(--well);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 5px 5px 0 var(--shadow);
}

.summary h2 {
  margin-top: 0;
  font-size: 22px;
}

.summary ul {
  margin: 0;
}

.doc .toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: inline-block;
  padding: 6px 14px;
  background: var(--paper);
  color: var(--text);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.toc a:hover {
  background: var(--ball);
  color: var(--ink);
}

.table-wrap {
  overflow-x: auto;
  margin: 12px 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 15px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

th {
  font-weight: 800;
  border-bottom: 3px solid currentColor;
}

/* ---- 404 ------------------------------------------------------------- */

.lost {
  padding: clamp(64px, 10vw, 120px) 0 0;
  text-align: center;
}

.lost h1 {
  margin: 0 0 28px;
  font-size: clamp(48px, 9vw, 96px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.lost p {
  margin: 0 0 28px;
  font-size: 20px;
}
