/* The app's chalkboard: the slate and chalk colours of ChessPanel.cs, and the wood of the panel's frame. */
@font-face {
  font-family: "Gochi Hand";
  src: url("/assets/gochi-hand.itwlwfvy4qrj.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/nunito.x3jtjx7owv63.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --slate: #24312c;
  --slate-deep: #1b2521;
  --chalk: #f2f0e6;
  --chalk-dim: rgb(242 240 230 / 0.66);
  --chalk-faint: rgb(242 240 230 / 0.28);
  --yellow: #f5e37a;
  --blue: #9ed4e6;
  --wood: #8c5e38;
  --wood-dark: #5c381f;
  --gutter: clamp(16px, 4.5vw, 48px);
  --hand: "Gochi Hand", "Bradley Hand", "Segoe Print", cursive;
  /* A chalk line drawn by hand is never a true rectangle. */
  --drawn: 255px 18px 225px 18px / 18px 225px 18px 255px;
  color-scheme: dark;
}

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

html {
  background: var(--slate-deep);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(120% 60% at 15% 0%, rgb(242 240 230 / 0.07), transparent 60%),
    radial-gradient(90% 50% at 95% 35%, rgb(242 240 230 / 0.04), transparent 65%),
    var(--slate);
  color: var(--chalk);
  font: 400 1.125rem/1.6 Nunito, system-ui, sans-serif;
  overflow-wrap: break-word;
}

h1,
h2,
.subtitle,
.status,
.aside,
.menu,
figcaption,
.brand {
  font-family: var(--hand);
  font-weight: 400;
}

h1,
h2,
p,
ul,
figure {
  margin: 0;
}

h1 {
  font-size: clamp(3.4rem, 13vw, 8.75rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(2rem, 4.6vw, 2.9rem);
  line-height: 1.1;
  margin-bottom: 0.45em;
}

p {
  max-width: 34em;
}

p + p {
  margin-top: 0.9em;
}

p + h2 {
  margin-top: 1.4em;
}

a {
  color: var(--blue);
  text-underline-offset: 0.18em;
}

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

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

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

.wrap {
  width: min(100% - 2 * var(--gutter), 1160px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  padding: 0.4rem 0.8rem;
  background: var(--chalk);
  color: var(--slate);
}

.skip:focus {
  top: 0.75rem;
}

/* Hero: the name across the board, then the pitch beside the framed trailer. */
.hero {
  padding-block: clamp(36px, 7vw, 88px) clamp(48px, 8vw, 104px);
}

.squiggle {
  display: block;
  width: min(62%, 30rem);
  height: auto;
  margin-top: 0.35rem;
  fill: none;
  stroke: var(--yellow);
  stroke-width: 3.5;
  stroke-linecap: round;
}

.subtitle {
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  line-height: 1.15;
  margin-top: 0.5rem;
}

.hero-row {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  margin-top: clamp(28px, 5vw, 56px);
  align-items: start;
}

.lead {
  font-size: clamp(1.2rem, 2.1vw, 1.45rem);
  line-height: 1.5;
  max-width: 24em;
}

.status {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.45rem 1.4rem 0.5rem;
  border: 2.5px solid var(--yellow);
  border-radius: var(--drawn);
  color: var(--yellow);
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
  line-height: 1.2;
  text-decoration: none;
}

.status:hover {
  border-color: var(--chalk);
}

.status-note {
  margin-top: 0.7rem;
  color: var(--chalk-dim);
  font-size: 1rem;
}

.frame {
  padding: clamp(8px, 1.5vw, 16px);
  border-radius: 6px;
  background:
    repeating-linear-gradient(91deg, rgb(0 0 0 / 0.09) 0 2px, transparent 2px 11px),
    linear-gradient(180deg, var(--wood), #73492a 55%, var(--wood-dark));
  box-shadow:
    0 22px 44px rgb(0 0 0 / 0.38),
    inset 0 0 0 1px rgb(0 0 0 / 0.4),
    inset 0 2px 0 rgb(255 255 255 / 0.14);
}

.frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.55);
}

/* Bands: text beside a view of the place. */
.band {
  padding-block: clamp(48px, 8vw, 104px);
}

.band + .band {
  border-top: 2px dashed var(--chalk-faint);
}

.split {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.view img {
  width: 100%;
  border-radius: 4px;
}

figcaption {
  margin-top: 0.55rem;
  color: var(--chalk-dim);
  font-size: 1.2rem;
  line-height: 1.25;
}

/* The places, written as a cafe writes its menu: the name, a row of dots, and where it is. */
.menu {
  list-style: none;
  padding: clamp(18px, 3.2vw, 34px) clamp(18px, 3.6vw, 44px);
  margin-block: clamp(24px, 4vw, 40px);
  border: 2.5px solid var(--chalk-dim);
  /* A large box takes gentler corners than the button: the button's corners would slant its sides. */
  border-radius: 30px 12px 34px 10px / 12px 32px 10px 28px;
  font-size: clamp(1.3rem, 2.3vw, 1.6rem);
  line-height: 1.25;
}

.menu li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding-block: 0.3rem;
  break-inside: avoid;
}

.menu .dots {
  flex: 1;
  min-width: 1.5rem;
  border-bottom: 3px dotted var(--chalk-faint);
  transform: translateY(-0.28em);
}

.menu .where {
  color: var(--chalk-dim);
  text-align: right;
}

.views {
  display: grid;
  gap: clamp(20px, 3vw, 36px);
}

.notes {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
}

.aside {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.25;
  max-width: 26em;
  margin-top: clamp(36px, 6vw, 72px);
}

/* Foot: the board's lower rail. */
.foot {
  margin-top: clamp(24px, 4vw, 48px);
  padding-block: clamp(28px, 4vw, 44px);
  border-top: 10px solid var(--wood-dark);
  background: var(--slate-deep);
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--chalk);
  font-size: 1.6rem;
  line-height: 1;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}

.small {
  margin-top: 1.25rem;
  max-width: 46em;
  color: var(--chalk-dim);
  font-size: 0.95rem;
}

/* The policy page and the 404 page. */
.top {
  padding-block: clamp(18px, 3vw, 28px);
}

.prose {
  padding-block: clamp(16px, 4vw, 40px) clamp(48px, 8vw, 96px);
  max-width: 44rem;
}

.prose h1 {
  font-size: clamp(2.5rem, 7vw, 3.6rem);
  line-height: 1.05;
  margin-bottom: 0.5em;
}

.prose h2 {
  font-size: clamp(1.65rem, 3.6vw, 2rem);
  margin-top: 1.6em;
}

.prose p,
.prose ul {
  margin-top: 0.9em;
}

.prose ul {
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 0.6em;
}

@media (min-width: 720px) {
  .menu {
    columns: 2;
    column-gap: clamp(40px, 6vw, 88px);
  }

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

  .notes {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .hero-row {
    grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  }

  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .split.flip {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .split.flip > :first-child {
    order: 2;
  }
}
