/* Dashkitty, dashkitty.com
   Palette lifted from the game itself: the sky it runs under, the grass either
   side of the fence, and the red of the car on the title screen. */

:root{
  color-scheme: light;
  --sky:#8CC5EC;
  --sky-deep:#5FA3D4;
  --cream:#FCF7EC;
  --card:#FFFFFF;
  --ink:#1C2A33;
  --muted:#5E6C77;
  --line:#E4DCCC;
  --grass:#4F9436;
  --red:#E24B3F;
  --road:#3D444B;
}

@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    color-scheme: dark;
    --cream:#14181B;
    --card:#1D2327;
    --ink:#ECF1F4;
    --muted:#96A3AD;
    --line:#2A3238;
    --grass:#7CC45F;
    --red:#F2695D;
  }
}

*{ box-sizing:border-box; }

html,body{ margin:0; padding:0; }

body{
  background:var(--cream);
  color:var(--ink);
  font-family:"Figtree", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

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

a{ color:var(--grass); text-decoration-thickness:1px; text-underline-offset:3px; }
a:hover{ text-decoration-thickness:2px; }
a:focus-visible{ outline:2px solid var(--grass); outline-offset:3px; border-radius:3px; }

.wrap{ max-width:760px; margin:0 auto; padding-inline:20px; }

/* ---- the hero, which is the game's own title screen ---------------------- */

/* NOTHING IS CROPPED. The frame is captured with the game's interface hidden
   (smoke-shot "bare"), so there is no START / GARAGE menu to crop away and the
   sky stays where the sky belongs. The box therefore matches the image's own
   16:9 and the picture is shown whole at every width. */
.hero{
  width:100%;
  background:var(--sky-deep);
  line-height:0;
}
.hero img{
  width:100%; height:auto;
  aspect-ratio:16 / 9;
  object-fit:cover;
}

/* ---- the whole message --------------------------------------------------- */

.billboard{
  text-align:center;
  padding-block:52px 8px;
}
.wordmark{
  font-family:"Outfit", ui-sans-serif, system-ui, sans-serif;
  font-weight:800;
  font-size:clamp(42px, 10vw, 86px);
  line-height:.95;
  letter-spacing:-0.025em;
  text-transform:uppercase;
  color:var(--ink);
  margin:0 0 20px;
}
.line{
  font-family:"Outfit", ui-sans-serif, system-ui, sans-serif;
  font-weight:600;
  font-size:clamp(18px, 3.2vw, 24px);
  line-height:1.35;
  margin:0;
  text-wrap:balance;
}
.line.second{
  color:var(--muted);
  margin-top:8px;
}

/* ---- the way to the store ------------------------------------------------
   THE WHOLE SITE EXISTS TO POINT AT TWO THINGS: the listing and the policies.
   It said "coming soon" for the five days after the app went live, which is a
   thing Google's publisher policies name directly, under Inventory Value: ads
   are not allowed against "empty screens, under-construction pages, and low
   value content". The App Store listing's own seller URL points here, so that
   was the first page an AdMob reviewer saw. */
.get{ margin:26px 0 0; }
.store{
  display:inline-block;
  font-family:"Outfit", ui-sans-serif, system-ui, sans-serif;
  font-weight:700;
  font-size:clamp(16px, 2.4vw, 19px);
  letter-spacing:-0.01em;
  text-decoration:none;
  color:var(--cream);
  background:var(--ink);
  border-radius:999px;
  padding:14px 28px;
  line-height:1.2;
}
.store:hover{ background:var(--road); }
.store:focus-visible{ outline:3px solid var(--red); outline-offset:3px; }
.pitch .get{ margin-top:22px; }

/* ---- the four tiles ------------------------------------------------------ */

/* Wider than the reading column. Text wants 65 characters; pictures want room,
   and four of them at the text column's width would be postage stamps. */
.wide{ max-width:1180px; margin:0 auto; padding-inline:20px; }

.tiles{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:18px;
  margin:44px 0 0;
}
@media (max-width: 860px){ .tiles{ grid-template-columns:repeat(2, 1fr); gap:16px; } }
@media (max-width: 460px){ .tiles{ grid-template-columns:1fr; } }

.tile{ margin:0; }

/* CROPPED TO THE MIDDLE BAND, which is where the game puts the action. The
   camera sits behind the cat and leaves a lot of empty ground in the lower
   third of every frame, so a full portrait tile at this size is mostly grass
   with something small happening near the top. 3:4 and a position above centre
   keeps the cat large enough to read at 260 pixels wide. */
.tile img{
  width:100%;
  /* 3:4 originally, then 20 percent taken off the height. Near enough square,
     which is also the shape that survives dropping to one column on a phone. */
  aspect-ratio:15 / 16;
  object-fit:cover;
  object-position:center 44%;
  border-radius:12px;
  background:var(--sky-deep);
  border:1px solid var(--line);
}
/* The garage is the exception: its subject is the shelf along the bottom, so
   cropping to the middle would cut off the thing the caption talks about. */
.tile:last-child img{ object-position:center 62%; }

.tile figcaption{ padding:12px 2px 0; }
.tile figcaption b{
  font-family:"Outfit", ui-sans-serif, system-ui, sans-serif;
  font-weight:700; font-size:16.5px; display:block; margin-bottom:3px;
}
.tile figcaption span{ color:var(--muted); font-size:15px; line-height:1.5; display:block; }

/* ---- the pitch ----------------------------------------------------------- */

.pitch{ padding-block:56px 0; }
.pitch h2{
  font-family:"Outfit", sans-serif; font-weight:700;
  font-size:clamp(24px, 4.2vw, 32px); line-height:1.2; letter-spacing:-0.015em;
  margin:0 0 16px; text-wrap:balance;
}
.pitch p{ font-size:17.5px; margin:0 0 16px; }
.pitch-foot{ color:var(--muted); font-size:16px !important; }

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

main{ padding-block:56px 20px; }

h1.page{
  font-family:"Outfit", sans-serif; font-weight:700;
  font-size:clamp(30px,5.5vw,44px); line-height:1.1; letter-spacing:-0.015em;
  margin:0 0 6px; text-wrap:balance;
}
.stamp{ color:var(--muted); font-size:15px; margin:0 0 34px; }

h2{
  font-family:"Outfit", sans-serif; font-weight:700;
  font-size:21px; line-height:1.25; letter-spacing:-0.005em;
  margin:36px 0 10px;
}
h3{
  font-family:"Outfit", sans-serif; font-weight:600;
  font-size:17px; margin:24px 0 6px;
}
p{ margin:0 0 14px; }
ul.plain{ margin:0 0 16px; padding-left:22px; }
ul.plain li{ margin-bottom:7px; }

.lead{ font-size:19px; color:var(--ink); }


.callout{
  background:var(--card); border:1px solid var(--line);
  border-left:3px solid var(--grass);
  border-radius:12px; padding:16px 18px; margin:22px 0;
}
.callout p:last-child{ margin-bottom:0; }

.mail{
  font-family:"Outfit", sans-serif; font-weight:700; font-size:18px;
  word-break:break-all;
}

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

footer{
  margin-top:64px; border-top:1px solid var(--line);
  padding-block:26px 44px;
  color:var(--muted); font-size:15px;
}
footer nav{ display:flex; gap:18px; flex-wrap:wrap; margin-bottom:12px; }
footer nav a{
  font-family:"Outfit", sans-serif; font-weight:600; font-size:15px;
  color:var(--ink); text-decoration:none;
}
footer nav a:hover{ color:var(--grass); text-decoration:underline; }
footer small{ display:block; font-size:14px; }

.back{
  display:inline-block; margin-bottom:26px;
  font-family:"Outfit", sans-serif; font-weight:600; font-size:15px;
  text-decoration:none; color:var(--muted);
}
.back:hover{ color:var(--grass); }

@media (prefers-reduced-motion: reduce){ *{ transition:none !important; animation:none !important; } }
