@font-face {
  font-family: "Caveat";
  src: url("fonts/Caveat.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Patrick Hand";
  src: url("fonts/PatrickHand-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --board: #141d18;
  --board-deep: #0e1511;
  --chalk: #f4f1e4;
  --chalk-dim: rgba(244, 241, 228, 0.78);
  --chalk-faint: rgba(244, 241, 228, 0.55);
  --gold: #f5cb66;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

body {
  background-color: var(--board-deep);
  background-image:
    linear-gradient(rgba(10, 14, 12, 0.10), rgba(10, 14, 12, 0.10)),
    url("board.jpg");
  /* The plate at 125% of its whole-fit size (Anthony, Dec 3, 2026):
     on screens the plate's height governs, scale by height;
     on tall screens its width governs, scale by width. A slight
     crop at the far edges is the price of the wider board. */
  background-size: auto 125%;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  color: var(--chalk);
  font-family: "Patrick Hand", cursive;
  font-size: 20px;
  line-height: 1.55;
  min-height: 100vh;
}

main {
  /* The text column always stays inside the chalkboard plate:
     the plate is shown whole (contain), so its width on screen is
     the smaller of the viewport width and ~56% of its height. */
  max-width: min(680px, 92vw, 47vh);
  margin: 0 auto;
  padding: 56px 24px 40px;
}

.icon {
  display: block;
  width: 96px;
  height: 96px;
  /* Squarer corners with a slight bevel (Anthony, Dec 3, 2026):
     a small chamfer instead of the round iOS-style radius. */
  clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px);
  margin: 16px auto 51px;
}

h1 {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 64px;
  line-height: 1.05;
  text-align: center;
  margin: 8px 0 4px;
}

/* The name, the way the game's landing page draws it:
   the designer's own chalk letter glyphs, spread edge to edge. */
h1.title-block {
  margin: 14px 0 6px;
  line-height: 0;
}
.title-row {
  display: flex;
  /* The game's own kerning: a fixed small gap between every letter
     (0.13 of the letter height), not a spread — space-between
     distributed the slack unevenly across letters of different
     widths. The row then lands at ~97% of the column, as in the
     game. */
  justify-content: center;
  gap: min(6px, 0.85vw, 0.43vh);
  align-items: center;
  width: 100%;
  filter: drop-shadow(4px 5px 6px rgba(0, 0, 0, 0.35));
}
.title-row img {
  display: block;
  /* Sized by HEIGHT, as the game sizes them (frame height fixed,
     width follows each letter's own proportions) — sizing by width
     made narrow letters render taller than wide ones. */
  height: min(48px, 6.5vw, 3.33vh);
  width: auto;
}
.title-row .word-gap {
  flex: none;
  width: min(26px, 3.6vw, 1.83vh);
}
@media (max-aspect-ratio: 9/16) {
  body { background-size: 125% auto; }
}

.title-rule {
  display: block;
  /* Break out of the text column to the full width of the
     chalkboard plate itself: the plate renders at 125% of its
     whole-fit size, so its on-screen width is the smaller of
     125% of the viewport width and 70.31% of its height.
     The stroke is drawn thinner than the art's natural
     proportion (Anthony, Dec 3, 2026). */
  width: min(125vw, 70.31vh);
  height: calc(min(125vw, 70.31vh) * 0.0125);
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 10px;
}

h2 {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1;
  margin: 36px 0 10px;
}

.tagline {
  font-family: "Caveat", cursive;
  font-size: 30px;
  text-align: center;
  color: var(--gold);
  margin: 15px 0 28px;
}

p { margin: 0 0 16px; }

ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

li { margin-bottom: 10px; }

strong { color: #fff; }

a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 203, 102, 0.45);
}
a:hover { border-bottom-color: var(--gold); }

.rule {
  border: none;
  border-top: 2px solid rgba(244, 241, 228, 0.35);
  border-radius: 2px;
  margin: 34px 0;
}

.coming {
  text-align: center;
  font-family: "Caveat", cursive;
  font-size: 28px;
  color: var(--chalk);
  margin-top: 30px;
}

nav.links {
  text-align: center;
  margin-top: 26px;
  font-size: 21px;
}
nav.links a { margin: 0 14px; }

footer {
  text-align: center;
  color: var(--chalk-faint);
  font-size: 15px;
  line-height: 1.5;
  padding: 10px 24px 44px;
  max-width: min(680px, 92vw, 47vh);
  margin: 0 auto;
}

.meta {
  text-align: center;
  color: var(--chalk-dim);
  margin-bottom: 26px;
}

.qa p { margin-bottom: 6px; }
.qa { margin-bottom: 18px; }

@media (max-width: 520px) {
  h1 { font-size: 50px; }
  body { font-size: 19px; }
  main { padding-top: 40px; }
}
