/* Crosstown Traffic site: the game's look (cream panels, ink outlines, the yellow ribbon) with system fonts only,
   so the pages load nothing from other servers. */
:root {
  --ink: #1b2433;
  --ink-2: #3a4458;
  --muted: #5c6577;
  --cream: #f6eeda;
  --paper: #fffaee;
  --yellow: #ffc42b;
  --yellow-hi: #ffda6b;
  --navy: #24324b;
  --link: #1d5fc2;
  --cond: "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", sans-serif-condensed, sans-serif;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --outline: -3px -3px 0 var(--ink), 0 -3px 0 var(--ink), 3px -3px 0 var(--ink), 3px 0 0 var(--ink),
             3px 3px 0 var(--ink), 0 3px 0 var(--ink), -3px 3px 0 var(--ink), -3px 0 0 var(--ink);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.55 var(--round); }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 2px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* The top band: the blurred city, as behind the App Store screenshots. */
.band {
  background: var(--navy) url(img/city.jpg) center / cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 40px 0 46px;
  border-bottom: 6px solid var(--ink);
}
.band.small { padding: 22px 0 30px; }

.icon { width: 128px; height: 128px; border-radius: 28px; box-shadow: 0 0 0 4px var(--ink), 0 10px 24px rgba(0, 0, 0, .5); }
.sign {
  font: 800 clamp(40px, 10vw, 66px)/1.05 var(--cond);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 18px 0 16px;
  color: #fff;
  text-shadow: var(--outline), 0 7px 0 var(--ink);
}

/* Small pages: the icon and the name lead home. */
.home { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; margin-bottom: 18px; }
.home img { width: 52px; height: 52px; border-radius: 12px; box-shadow: 0 0 0 3px var(--ink), 0 6px 14px rgba(0, 0, 0, .45); }
.home span { font: 800 28px/1 var(--cond); text-transform: uppercase; letter-spacing: .5px; text-shadow: var(--outline), 0 4px 0 var(--ink); }

/* The game's ribbon: ink edge, pointed ends, two dots. */
.ribbon {
  display: inline-block;
  max-width: 100%;
  padding: 4px;
  background: var(--ink);
  clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 20px 100%, 0 50%);
}
.ribbon > span {
  position: relative;
  display: block;
  padding: 12px 40px;
  background: linear-gradient(var(--yellow-hi), var(--yellow));
  color: var(--ink);
  font: italic 800 clamp(16px, 4.6vw, 24px)/1.1 var(--cond);
  text-transform: uppercase;
  letter-spacing: .5px;
  clip-path: polygon(17px 0, calc(100% - 17px) 0, 100% 50%, calc(100% - 17px) 100%, 17px 100%, 0 50%);
}
.ribbon > span::before, .ribbon > span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--ink);
}
.ribbon > span::before { left: 22px; }
.ribbon > span::after { right: 22px; }
h1.ribbon { margin: 0; }

.lead { max-width: 560px; margin: 22px auto 0; font-size: 18px; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.soon {
  display: inline-block;
  margin-top: 20px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(14, 20, 32, .7);
  border: 2px solid rgba(255, 255, 255, .3);
  font-weight: 700;
}

/* Screenshots: a row that scrolls sideways on a phone instead of shrinking. */
.shots {
  display: flex;
  gap: 14px;
  margin: 28px -16px 0;
  padding: 4px 16px 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.shots img {
  flex: 0 0 auto;
  width: calc((100% - 28px) / 3);
  min-width: 210px;
  border-radius: 20px;
  border: 4px solid var(--ink);
  scroll-snap-align: center;
}

/* A cream panel with an ink frame, like the game's cards. */
.card {
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: 22px;
  padding: 22px 22px 10px;
  margin: 26px 0;
  box-shadow: 0 7px 0 var(--ink);
}
.card h2 { font: italic 800 28px/1.1 var(--cond); text-transform: uppercase; letter-spacing: .3px; margin: 0 0 12px; }
.card h3 { font: 800 19px/1.3 var(--round); margin: 24px 0 6px; }
.card p, .card ul { margin: 0 0 14px; }
.card ul { padding-left: 1.25em; }
.card li { margin: 6px 0; }
.updated { color: var(--muted); font-size: 15px; }

.btn {
  display: inline-block;
  margin: 4px 0 16px;
  padding: 12px 22px;
  border: 4px solid var(--ink);
  border-radius: 16px;
  background: linear-gradient(var(--yellow-hi), var(--yellow));
  box-shadow: 0 5px 0 var(--ink);
  color: var(--ink);
  font: italic 800 21px/1 var(--cond);
  text-transform: uppercase;
  text-decoration: none;
}
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }

.foot { text-align: center; padding: 10px 0 44px; color: var(--muted); font-size: 15px; }
.foot a { color: var(--ink); font-weight: 700; }
