/* Ramp Town, "Road signs" (2026-11-12): the home page and the gallery for the "Coming soon to Steam" redesign.
   The town is read off its road signs: green guide signs for the town's places, blue for its services,
   brown for the trips out of town, yellow for the small drivers' rules and construction orange for what is
   still being built (the Steam release). The colour of a sign says what kind of thing it names, as on a road.
   beta/, family/, social/ and 404.html keep css/site.css; css/town.css stays on the server for a rollback.
   The server's CSP allows no scripts and no inline styles: plain CSS only, and no motion at all. */

@font-face {
  font-family: "Overpass"; /* drawn from the US highway sign alphabets */
  src: url("fonts/overpass-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --concrete: #ECEAE5;  /* the page: a pavement slab */
  --slab: #DEDBD4;      /* a darker slab */
  --ink: #1C1F24;       /* text: 14.6:1 on concrete */
  --soft: #4E545E;      /* captions: 6.6:1 on concrete */
  --asphalt: #2B2E34;   /* the road bands; white on it 13.4:1 */
  --steel: #8C939D;     /* the gantry and posts */
  --white: #FFFFFF;
  --green: #00694A;     /* guide signs; white on it 6.7:1 */
  --blue: #0A4FA3;      /* service signs; white on it 7.7:1 */
  --brown: #6A4322;     /* recreation signs; white on it 8.6:1 */
  --yellow: #FFCF1A;    /* warning signs; ink on it 11.3:1 */
  --orange: #F5821F;    /* road works; ink on it 6.5:1 */
  --font: "Overpass", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 1rem;
  --wide: 78rem;
  --section: 4.5rem;
}
@media (min-width: 48rem) { :root { --gutter: 2rem; --section: 6.5rem; } }
@media (min-width: 72rem) { :root { --section: 8rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  background: var(--concrete);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--font);
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.05; letter-spacing: -.01em; }
p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }
figure { margin: 0; }
figcaption { margin-top: .625rem; font-size: 1rem; line-height: 1.45; color: var(--soft); max-width: 62ch; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 4px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
ul[role="list"] { list-style: none; margin: 0; padding: 0; }
.wrap { width: min(var(--wide), 100%); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 1rem; top: -6rem; z-index: 50;
  background: var(--white); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 8px;
  padding: .625rem .875rem; font-weight: 800; font-size: 1rem; line-height: 1.2; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- a sign ----------
   A panel in its sign colour with the white border a real one has, set a little inside the edge. */
.sign {
  --sign: var(--green); --on: var(--white);
  background: var(--sign); color: var(--on);
  border: 4px solid var(--on); border-radius: 16px;
  box-shadow: 0 0 0 4px var(--sign);
  margin: 4px; /* the outer edge above */
}
.sign.blue { --sign: var(--blue); }
.sign.brown { --sign: var(--brown); }
.sign.yellow { --sign: var(--yellow); --on: var(--ink); }
.sign.orange { --sign: var(--orange); --on: var(--ink); }

/* a section's name: a street-name blade */
.blade {
  display: inline-block;
  padding: .3em .7em .16em;
  border-width: 3px; border-radius: 10px;
  box-shadow: 0 0 0 3px var(--sign);
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem); font-weight: 800; line-height: 1.1; letter-spacing: 0;
}

/* ---------- header ---------- */

.top { position: sticky; top: 0; z-index: 20; background: var(--asphalt); color: var(--white); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.5rem; padding-block: .375rem; }
.brand { display: block; border-radius: 8px; margin-right: auto; }
.brand img { height: 44px; width: auto; }
.top :focus-visible { outline-color: var(--yellow); }
.nav ul { display: flex; flex-wrap: wrap; gap: 0 .25rem; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .625rem;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; border-radius: 8px;
}
.nav a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: .35em; }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--yellow); border-radius: 0; }
.soon {
  display: inline-flex; align-items: center; min-height: 40px; padding: .1em .875rem 0;
  background: var(--yellow); color: var(--ink);
  border-radius: 6px;
  font-weight: 800; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
}
.soon:hover { background: var(--white); }
@media (max-width: 47.9375rem) {
  .top { position: static; }
  .nav { order: 3; width: 100%; margin-inline: -.625rem; }
  .nav a { min-height: 40px; }
}
@media (min-width: 48rem) { .brand img { height: 52px; } }

/* ---------- hero: the overhead signs ---------- */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(36rem, 88vh, 54rem);
  min-height: clamp(36rem, 88svh, 54rem);
  background: #7C9DBF; /* the sky, while the picture loads */
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
/* the gantry's beam across the road */
.hero::before {
  content: ""; display: block; height: 28px;
  background:
    repeating-linear-gradient(60deg, transparent 0 13px, rgba(28, 31, 36, .5) 13px 16px),
    repeating-linear-gradient(-60deg, transparent 0 13px, rgba(28, 31, 36, .5) 13px 16px),
    var(--steel);
  border-block: 4px solid #5C636D;
}
.signs { display: grid; gap: 1.75rem 2rem; align-items: start; padding-top: 22px; padding-bottom: 3rem; }
.signs > * { position: relative; }
/* two hangers from the beam to each sign */
.signs > *::before {
  content: ""; position: absolute; left: 14%; right: 14%; bottom: 100%; height: 34px; margin-bottom: 4px;
  background: linear-gradient(90deg, #5C636D 0 10px, transparent 10px calc(100% - 10px), #5C636D calc(100% - 10px));
}
.signs > * + *::before { height: 1.75rem; } /* phone: the second sign hangs from the first */
.town { padding: 1.25rem 1.25rem 1.125rem; }
.town h1 { font-size: clamp(3.25rem, 1.6rem + 8vw, 7.5rem); font-weight: 800; line-height: .92; letter-spacing: -.015em; }
.town p { margin-top: .75rem; font-size: clamp(1.25rem, 1rem + 1.1vw, 1.875rem); font-weight: 600; line-height: 1.2; max-width: 30ch; }
.exit { display: block; padding: 1rem 0 0; text-decoration: none; overflow: hidden; }
.exit .dest { display: block; padding: 0 1.25rem .75rem; font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem); font-weight: 800; line-height: 1; }
.exit .way { display: block; padding: 0 1.25rem; font-size: 1.125rem; font-weight: 600; line-height: 1.2; }
.plaque {
  display: block; padding: .5em 1.25rem .32em;
  background: var(--yellow); color: var(--ink);
  border-top: 4px solid var(--white); border-radius: 0 0 10px 10px;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 900; line-height: 1.1; letter-spacing: .04em; text-transform: uppercase; /* as on an EXIT ONLY panel */
}
.exit:hover .plaque { background: var(--white); }
@media (min-width: 52rem) {
  .signs { grid-template-columns: minmax(0, 1fr) auto; }
  .signs > * + *::before { height: 34px; }
  .town { padding: 1.75rem 2rem 1.5rem; max-width: 46rem; }
  .exit { min-width: 17rem; }
}

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

.stretch { padding-block: var(--section) 0; }
.stretch:last-of-type { padding-bottom: var(--section); }
.stretch > .wrap > .blade, .band .blade, .rules > .blade { margin-bottom: 1.75rem; }
.lede { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.625rem); line-height: 1.4; font-weight: 500; max-width: 46ch; }

/* what it is: a paragraph and the plain facts */
.about { display: grid; gap: 2rem 4rem; padding-top: calc(var(--section) * .6); }
.facts { margin: 0; display: grid; gap: .875rem; align-content: start; }
.facts div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding-top: .875rem; border-top: 2px solid var(--ink); }
.facts dt { font-weight: 800; }
.facts dd { margin: 0; }
@media (min-width: 60rem) { .about { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

.shot img { width: 100%; border-radius: 8px; background: var(--slab); }
.lead-shot { margin-top: 2.5rem; }

/* a picture beside its text */
.pairing { display: grid; gap: 1.25rem 3rem; align-items: center; margin-top: 3rem; }
.pairing h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); margin-bottom: .625rem; }
@media (min-width: 56rem) {
  .pairing { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); margin-top: 4.5rem; }
  .pairing.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .pairing.flip > .shot { order: 2; }
}

/* a set of places: the picture, the place's name, a line about it */
ul.places { display: grid; gap: 2.5rem 2rem; margin-top: 3rem; }
.places h3 { margin: .875rem 0 .375rem; font-size: 1.375rem; line-height: 1.15; }
.places p { font-size: 1.0625rem; line-height: 1.5; }
@media (min-width: 40rem) { ul.places { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) {
  ul.places { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3.5rem 2.5rem; margin-top: 4.5rem; }
  ul.places.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- the vehicles: a road band ---------- */

.band { margin-top: var(--section); padding-block: calc(var(--section) * .75); background: var(--asphalt); color: var(--white); }
.band :focus-visible { outline-color: var(--yellow); }
.band .lede { margin-bottom: 0; }
ul.rides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; margin-top: 2.5rem; }
.rides img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; background: #6B7078; }
.rides figcaption { margin-top: .5rem; color: var(--white); font-weight: 700; font-size: 1.0625rem; }
@media (min-width: 40rem) { ul.rides { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.5rem; } }
@media (min-width: 72rem) { ul.rides { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2rem 1rem; } .rides figcaption { font-size: 1rem; } }

/* ---------- small drivers: one big yellow sign ---------- */

.rules { margin-top: 0; padding: 1.5rem 1.25rem; border-radius: 20px; }
.rules ul { display: grid; gap: 1.75rem 3rem; }
.rules h3 { font-size: 1.5rem; margin-bottom: .375rem; }
.rules p { font-size: 1.0625rem; line-height: 1.5; max-width: 44ch; }
@media (min-width: 48rem) { .rules { padding: 2.5rem; } .rules ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- coming soon to Steam: road works ---------- */

.works { margin-top: var(--section); padding-block: calc(var(--section) * .75); background: var(--asphalt); color: var(--white); }
.works .wrap { display: grid; gap: 2.5rem 4rem; align-items: center; }
.works :focus-visible { outline-color: var(--yellow); }
.works-sign { padding: 1.5rem 1.5rem 1.25rem; justify-self: start; }
.works-sign h2 { font-size: clamp(2.5rem, 1.4rem + 5vw, 5rem); font-weight: 900; line-height: .95; letter-spacing: -.01em; max-width: 8ch; }
.works-text .lede { margin-bottom: 1.5rem; }
.works .facts div { border-top-color: var(--steel); }
@media (min-width: 60rem) { .works .wrap { grid-template-columns: auto minmax(0, 1fr); } .works-sign { padding: 2.25rem 2.25rem 1.875rem; } }

/* ---------- how it's made ---------- */

.made { padding-block: var(--section); }
.made .wrap { display: grid; gap: 1.25rem 4rem; }
@media (min-width: 60rem) { .made .wrap { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; } }
.made h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }

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

.foot { background: var(--asphalt); color: var(--white); border-top: 6px dashed var(--yellow); }
.works + .foot, .band + .foot { border-top-style: dashed; }
.foot .wrap { display: grid; gap: 1.25rem 3rem; align-items: center; padding-block: 2.5rem; }
.foot :focus-visible { outline-color: var(--yellow); }
.foot img { height: 60px; width: auto; }
.foot nav ul { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 1.0625rem; text-decoration: none; }
.foot nav a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: .35em; }
.small p { margin: 0; max-width: none; font-size: .9375rem; line-height: 1.55; color: #D5D8DD; }
@media (min-width: 64rem) { .foot .wrap { grid-template-columns: auto minmax(0, 1fr); } .small { grid-column: 1 / -1; } }

/* ---------- gallery ---------- */

.page-head { padding-top: calc(var(--section) * .6); }
.page-head h1 { font-size: clamp(2.5rem, 1.4rem + 5vw, 5rem); font-weight: 800; margin-bottom: 1rem; }
ul.grid { display: grid; gap: 1.5rem; margin-top: 1.75rem; }
.grid a { display: block; border-radius: 8px; }
.grid img { width: 100%; border-radius: 8px; background: var(--slab); }
.grid a:hover img { outline: 4px solid var(--ink); }
.grid figcaption { font-size: .9375rem; }
@media (min-width: 40rem) { ul.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { ul.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }

/* ---------- the Steam logo (2026-11-13) ----------
   Valve's own artwork (img/brand/steam-logo-white.svg: the inverse logo, for dark backgrounds), never altered or recoloured,
   never under 50px tall on screen, and with clear space all round: at least the height of the logo's crank circle (about a
   third of the logo's height), kept by the padding and margins here. */
.steam-logo { display: block; height: 56px; width: auto; }
.steam-mark { margin: 0 0 1.75rem; padding: 1.25rem 0 0; }
.exit .dest-logo { padding: 1.25rem 1.5rem 1.5rem; }
.exit .dest-logo .steam-logo { height: clamp(56px, 44px + 2.4vw, 80px); }
.works .steam-mark .steam-logo { height: 64px; }
.foot .steam-mark { margin: 1.25rem 0 1.25rem; }
.foot .steam-mark .steam-logo { height: 50px; }
