/* The plain list pages in the look of the map's HUD: dark panels, Barlow Condensed in capitals, the purple of a route,
   the sea blue of the map, the blips as icons, the place name in the script of the loading screen. */
@font-face { font-family: "Barlow Condensed"; src: url(/fonts/barlow-condensed-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/fonts/barlow-condensed-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Yellowtail"; src: url(/fonts/yellowtail.woff2) format("woff2"); font-display: swap; }
:root { color-scheme: dark; --ink: #0A121E; --panel: #111B2B; --panel-2: #172338; --line: #22314A; --fg: #EEF2F7; --dim: #9AA9BD;
  --route: #FF3D8F; --sea: #2E91B0; --land: #82A38D; --ui: "Barlow Condensed", system-ui, sans-serif; }
* { box-sizing: border-box; }
html { scroll-padding-top: 76px; }
body { margin: 0; color: var(--fg); font: 400 17px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  background: radial-gradient(120% 60% at 70% -10%, #1C3B52 0%, var(--ink) 55%) fixed, var(--ink); }
a { color: #FF9CC8; }

.top { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 10px 18px; background: rgb(10 18 30 / .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: baseline; gap: 10px; color: #fff; text-decoration: none; font: 400 32px/1 "Yellowtail", cursive;
  -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.brand span { font: 700 13px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); -webkit-text-stroke: 0; }
.grow { flex: 1; }
.open { padding: 9px 14px; background: var(--panel-2); color: var(--fg); text-decoration: none; font: 700 15px/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; }
.open.map { background: linear-gradient(100deg, #FF3D8F 0%, #FF6A5C 55%, #FFA23D 100%); color: #fff; }
.open:hover { background: #fff; color: var(--ink); }

.wrap { display: grid; grid-template-columns: 296px minmax(0, 1fr); gap: 28px; max-width: 1180px; margin: 0 auto; padding: 22px 18px 40px; }
main, .legend { min-width: 0; }
main { max-width: 820px; }

/* the legend: like the one on the map. One left edge (16px) for heading, letters and rows; counts in one right column */
.legend { --in: 16px; position: sticky; top: 74px; align-self: start; max-height: calc(100vh - 92px); display: flex; flex-direction: column; background: rgb(17 27 43 / .94); }
.legend-head { margin: 0; padding: 14px var(--in) 10px; display: flex; align-items: baseline; justify-content: space-between; font: 700 20px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; }
.legend-head span { color: var(--dim); font-size: 13px; letter-spacing: .12em; }
.rail { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin: 0; padding: 0 var(--in) 12px; border-bottom: 1px solid var(--line); }
.rail a { display: grid; place-items: center; height: 26px; background: rgb(23 35 56 / .7); color: var(--dim); text-decoration: none; font: 700 14px/1 var(--ui); }
.rail a:hover { color: #fff; background: var(--panel-2); }
.rail a.on { color: #fff; background: var(--route); }
.rail a[data-l=""] { grid-column: span 2; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.legend ul { list-style: none; margin: 0; padding: 6px 0 10px; overflow-y: auto; }
.legend .letter { padding: 12px var(--in) 4px; color: var(--sea); font: 700 13px/1 var(--ui); letter-spacing: .14em; }
.legend .rail:has(a.on:not([data-l=""])) + ul .letter { display: none; }
.legend li a { display: grid; grid-template-columns: 22px 1fr 3.2em; align-items: center; column-gap: 10px; min-height: 34px; padding: 4px var(--in); color: var(--fg); text-decoration: none;
  font: 700 16px/1.1 var(--ui); letter-spacing: .05em; text-transform: uppercase; }
.legend li a:hover { background: var(--panel-2); }
.legend li a.cur { background: var(--route); color: #fff; }
.legend em { justify-self: end; font-style: normal; font-weight: 600; font-size: 14px; color: var(--dim); font-variant-numeric: tabular-nums; }
.legend a.cur em { color: #fff; }
.blip { width: 22px; height: 22px; flex: none; }

h1 { margin: 4px 0 10px; font: 700 clamp(34px, 6vw, 56px)/1.02 var(--ui); letter-spacing: .02em; text-transform: uppercase; }
.lead { font-size: 19px; color: #C8D3E1; max-width: 62ch; margin: 0 0 18px; }
.jump { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 8px; }
.jump a { padding: 5px 9px; background: var(--panel); color: var(--fg); text-decoration: none; font: 700 14px/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; }
.jump a:hover { background: var(--panel-2); color: #fff; }
.jump a.on { background: var(--route); color: #fff; }
h2 { margin: 28px 0 0; padding: 10px 14px; background: var(--panel-2); font: 700 22px/1.1 var(--ui); letter-spacing: .06em; text-transform: uppercase; display: flex; justify-content: space-between; }
h2 span { color: var(--dim); font-weight: 600; font-size: 17px; }
.places, .kinds { list-style: none; margin: 0; padding: 0; }
.places { background: rgb(17 27 43 / .9); }
.places li { display: grid; gap: 2px; padding: 10px 14px; border-top: 1px solid var(--line); }
.places li:first-child { border-top: 0; }
.pname { font: 700 19px/1.2 var(--ui); letter-spacing: .03em; color: #fff; text-decoration: none; }
.pname:hover { color: #FF9CC8; }
.addr { color: #C8D3E1; font-size: 15px; }
.hours { color: var(--dim); font-size: 14px; }
.kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; margin-top: 16px; }
.kinds li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; background: rgb(17 27 43 / .94); }
.kinds li:hover { background: var(--panel-2); }
.kinds a { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 700 18px/1.1 var(--ui); letter-spacing: .05em; text-transform: uppercase; }
.kinds span { color: var(--dim); font: 600 16px/1 var(--ui); }
.more a { display: inline-block; margin: 0 4px 6px 0; padding: 5px 9px; background: var(--panel); color: var(--fg); text-decoration: none; font: 700 14px/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; }
.more a:hover { background: var(--route); color: #fff; }
footer { max-width: 1180px; margin: 0 auto; padding: 20px 18px 40px; color: var(--dim); font-size: 14px; }
footer a { color: var(--fg); }

/* phones: the legend becomes a strip to swipe through, under the header */
@media (max-width: 860px) {
  .wrap { grid-template-columns: 1fr; gap: 14px; padding-top: 0; }
  .legend { position: sticky; top: 56px; z-index: 2; max-height: none; margin: 0 -18px; background: rgb(10 18 30 / .96); border-bottom: 1px solid var(--line); }
  .legend-head, .rail, .legend .letter { display: none; }
  .legend ul { display: flex; gap: 4px; overflow-x: auto; padding: 8px 12px; scrollbar-width: none; }
  .legend li:has(a.cur) { order: -1; }
  .legend li a { grid-template-columns: 20px auto auto; column-gap: 7px; min-height: 0; white-space: nowrap; padding: 6px 10px; background: var(--panel); font-size: 15px; }
  .legend ul { border-bottom: 0; }
  .blip { width: 20px; height: 20px; }
  .top { padding: 8px 12px; }
  .brand { font-size: 26px; }
  .brand span { display: none; }
  .open { padding: 8px 10px; font-size: 13px; }
  html { scroll-padding-top: 120px; }
}
