/* Reading pages written by tools/seo.mjs (how-it-works/, whats-new/, jobs/, jobs/post/, 404.html): the app's colours and type (css/app.css, which is
   built for the fullscreen canvas and isn't loaded here), one readable column, 16px gutter on phones. */
:root {
  --accent: #ffc86e;
  --line: rgba(255, 255, 255, 0.09);
  --text: #eceeff;
  --body: #cdd0ee;
  --muted: #9ba0cc;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: #05060f; -webkit-text-size-adjust: 100%; }
body {
  max-width: calc(68ch + 48px); margin: 0 auto; padding: 32px 24px 48px; color: var(--body);
  font: 17px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.wordmark { display: inline-block; padding: 8px 0; font: 600 12px/1 var(--mono); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
h1, h2 { color: var(--text); font-weight: 650; letter-spacing: -.01em; line-height: 1.2; }
h1 { margin: 32px 0 8px; font-size: clamp(28px, 6vw, 40px); }
h2 { margin: 40px 0 10px; font-size: 22px; }
p { margin: 0 0 16px; }
.meta { font: 13px var(--mono); color: var(--muted); }
/* the cities: name in its own accent (--c, from the scene) and tagline; the whole card is the link */
.cities { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 8px; }
.cities li { position: relative; padding: 10px 13px 11px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .03); line-height: 1.4; }
.cities a { color: var(--c, var(--accent)); font-weight: 600; text-decoration: none; }
.cities a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.cities li:hover { border-color: color-mix(in srgb, var(--c, var(--accent)) 45%, transparent); }
.cities a:hover { text-decoration: underline; }
.cities a:focus-visible { outline: none; }
.cities li:has(a:focus-visible) { outline: 2px solid var(--c, var(--accent)); outline-offset: 2px; }
.cities span { display: block; font: 12px var(--mono); color: var(--muted); }
/* whats-new/: the changes of each day under its date */
.changes { margin: 0; padding-left: 20px; }
.changes li { margin-bottom: 8px; }
.changes li::marker { color: var(--accent); }
/* jobs/ and jobs/post/ (js/jobs-page.js): a lit HELP WANTED sign over one of the cities, then the board. The jobs page
   is wider than the reading pages: its rows have room for their tags. */
body[data-content-page="jobs"] { max-width: calc(880px + 48px); }
.board-head {
  position: relative; isolation: isolate; overflow: hidden; margin: 12px 0 0; padding: 30px 28px 26px;
  border: 1px solid var(--line); border-radius: 18px; background: #070812;
}
.board-head::before {   /* the city, in its own pixels, dimmed where the words are */
  content: ""; position: absolute; inset: 0; z-index: -2; opacity: .9;
  background: var(--scene, none) center 65% / cover no-repeat; image-rendering: pixelated;
}
.board-head::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(5, 6, 15, .93) 0%, rgba(5, 6, 15, .72) 45%, rgba(5, 6, 15, .08) 100%),
    linear-gradient(0deg, rgba(5, 6, 15, .55), transparent 45%);
}
.board-head p { max-width: 58ch; text-shadow: 0 1px 10px rgba(5, 6, 15, .9); }   /* legible over a busy city */
.board-head > :last-child { margin-bottom: 0; }
.board-head .button { text-shadow: none; }
/* the sign: the player's mono letters, lit like a shop sign at night; it flickers now
   and then, never with reduced motion */
.neon {
  display: flex; align-items: center; gap: .4em; margin: 0 0 14px;
  font: 700 clamp(30px, 7vw, 52px)/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #ffe2a8;
  text-shadow: 0 0 2px rgba(255, 226, 168, .9), 0 0 14px rgba(255, 190, 90, .6), 0 0 38px rgba(255, 150, 50, .38);
  animation: neon 11s steps(1) infinite;
}
.neon::before {   /* the lit pixel */
  content: ""; flex: none; width: .26em; height: .26em; background: var(--accent); box-shadow: 0 0 10px var(--accent), 0 0 22px rgba(255, 200, 110, .6);
}
@keyframes neon { 0%, 90.9%, 92.1%, 93.6%, 100% { opacity: 1; } 91%, 93% { opacity: .5; } }
/* the city behind the sign, to go and listen there */
.board-city {
  position: absolute; right: 16px; bottom: 12px; padding: 4px 8px; border-radius: 6px; background: rgba(5, 6, 15, .55);
  font: 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text); text-decoration: none;
}
.board-city:hover { color: var(--accent); }
.back { margin: 0 0 18px; font-size: 15px; }
.back a { text-decoration: none; }

/* the search box, the categories (one at a time, All by default) and the chips; they stay in reach while the list
   scrolls */
.jobs-tools {
  position: sticky; top: 0; z-index: 2; display: grid; gap: 10px; margin: 18px -12px 0; padding: 12px;
  background: rgba(5, 6, 15, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.jobs-tools[hidden] { display: none; }
#jobSearch {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #0d0f24; color: var(--text);
  font-family: inherit; font-size: 16px; line-height: 1.3;   /* 16px: iPhones don't zoom into it */
}
#jobSearch:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 12px; }
.cats:empty, .chips:empty { display: none; }
.cat, .chip { flex: none; font-family: inherit; cursor: pointer; white-space: nowrap; }
.cat {
  padding: 7px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
  color: var(--text); font-size: 14px; font-weight: 600;
}
.cat small, .chip small { color: var(--muted); font-size: 12px; font-weight: 400; margin-left: 2px; }
.cat:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.cat[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #140f05; }
.cat[aria-pressed="true"] small { color: rgba(20, 15, 5, .7); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--body); font-size: 13px; }
.chip:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.chip[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: var(--accent); color: var(--text); }
.jobs-count { margin: 0; font: 12px var(--mono); color: var(--muted); }
button.link { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.jobs-note { color: var(--muted); }

/* the board: its groups, each a lit label and a rule, then its rows */
.board-list[hidden], .job-group[hidden] { display: none; }
.job-group { margin-top: 26px; }
.group-title {
  display: flex; align-items: center; gap: 10px; margin: 0 0 10px;
  font: 600 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.group-title small { color: var(--text); letter-spacing: 0; font-size: 12px; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.job-group[data-group="posted"] .group-title, .job-group[data-group="today"] .group-title { color: var(--accent); }
.jobs { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
/* a row: the company's badge, the job, its tags, its age; the whole row is the link */
.job {
  position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto 3.4em; grid-template-areas: "badge main tags age";
  align-items: center; column-gap: 16px; padding: 12px 14px; border: 1px solid transparent; border-radius: 12px;
  background: rgba(255, 255, 255, .025); line-height: 1.35; transition: background .15s, border-color .15s;
}
.job[hidden] { display: none; }
.job::before {   /* the company's colour along the left edge, lit on hover */
  content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--c); opacity: 0; transition: opacity .15s;
}
.job:hover { background: color-mix(in srgb, var(--c) 8%, rgba(255, 255, 255, .03)); border-color: color-mix(in srgb, var(--c) 32%, transparent); }
.job:hover::before { opacity: 1; }
.job:has(.job-title:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
/* the badge: two letters on the company's colour, with the stepped corners and bevel of a pixel sprite */
.job-badge {
  grid-area: badge; width: 42px; height: 42px; display: grid; place-items: center;
  font: 700 14px/1 var(--mono); letter-spacing: .02em; color: #0b0c1a; background: var(--c);
  box-shadow: inset 0 3px rgba(255, 255, 255, .28), inset 0 -3px rgba(0, 0, 0, .22);
  clip-path: polygon(0 6px, 3px 6px, 3px 3px, 6px 3px, 6px 0, calc(100% - 6px) 0, calc(100% - 6px) 3px, calc(100% - 3px) 3px,
    calc(100% - 3px) 6px, 100% 6px, 100% calc(100% - 6px), calc(100% - 3px) calc(100% - 6px), calc(100% - 3px) calc(100% - 3px),
    calc(100% - 6px) calc(100% - 3px), calc(100% - 6px) 100%, 6px 100%, 6px calc(100% - 3px), 3px calc(100% - 3px), 3px calc(100% - 6px), 0 calc(100% - 6px));
}
.job-main { grid-area: main; min-width: 0; }
.job-title { color: var(--text); font-size: 16px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.job-title::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.job-title:focus-visible { outline: none; }
.job:hover .job-title { color: #fff; }
.job-by { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 4px 0 0; font-size: 14px; }
.job-company { color: color-mix(in srgb, var(--c) 62%, var(--text)); font-weight: 500; }
.job-src { font: 12px var(--mono); color: var(--muted); }
.job-own { font: 12px var(--mono); color: var(--accent); }
.job-own::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 6px; vertical-align: 1px; background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.job-tags { grid-area: tags; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 340px; margin: 0; padding: 0; list-style: none; }
.job-tags li { padding: 5px 8px; border-radius: 6px; background: rgba(255, 255, 255, .05); color: var(--body); font: 12px/1.1 var(--mono); white-space: nowrap; }
.job-tags .pay { color: #72e6a2; background: rgba(114, 230, 162, .1); }
.job-age { grid-area: age; justify-self: end; font: 12px var(--mono); color: var(--muted); }
.job-age.today { color: var(--accent); }
/* posted here: a warm glow, first on the board */
.job.posted { background: linear-gradient(90deg, rgba(255, 200, 110, .1), rgba(255, 200, 110, .025)); border-color: rgba(255, 200, 110, .28); }

/* "Post a job": the button in the sign and the line after the list (jobs/), the page itself (jobs/post/) */
.post-cta { margin: 18px 0 0; color: var(--muted); }
.post-cta.end { margin-top: 28px; }
/* jobs/post/: what happens, as three lit numbers */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step; padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255, 255, 255, .025); font-size: 15px; line-height: 1.5;
}
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block; margin-bottom: 8px;
  font: 700 22px/1 var(--mono); color: #ffe2a8; text-shadow: 0 0 12px rgba(255, 190, 90, .55);
}
.button { display: inline-block; padding: 8px 16px; border-radius: 10px; background: var(--accent); color: #140f05; font-weight: 600; text-decoration: none; }
.button:hover { color: #140f05; filter: brightness(1.08); }
.jobs-empty { padding-block: 28px 36px; border-bottom: 1px solid var(--line); }
.jobs-empty h2 { max-width: 28ch; margin: 0 0 12px; font-size: clamp(24px, 5vw, 30px); text-wrap: balance; }
.jobs-empty p { max-width: 52ch; color: var(--muted); }
.jobs-empty-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.jobs-empty-actions a { min-height: 44px; display: inline-flex; align-items: center; }
.post { margin-top: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .03); }
.post h2 { margin-top: 0; }
#postForm { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field legend { color: var(--text); font-weight: 600; font-size: 15px; padding: 0; }
.field small { color: var(--muted); font-weight: 400; }
.field input, .field select {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #0d0f24; color: var(--text);
  font-family: inherit; font-size: 16px; line-height: 1.3;   /* 16px: iPhones don't zoom into the field */
}
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: #ff7a7a; }
.choices { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.choices label { display: flex; align-items: center; gap: 6px; }
.choices input { accent-color: var(--accent); width: 18px; height: 18px; }
#postForm button { justify-self: start; padding: 10px 18px; border: 0; border-radius: 10px; background: var(--accent); color: #140f05; font-family: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
#postForm button:disabled { opacity: .6; cursor: wait; }
.post-note { margin: 0; min-height: 1.6em; color: var(--muted); }
.post-note.error { color: #ff9a9a; }
.post-note.done { color: #72e6a2; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }   /* the bots' field */
.credit { font-size: 14px; color: var(--muted); }
footer { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

@media (max-width: 600px) {
  .post { padding: 16px 14px; }
  .board-head { padding: 22px 18px 20px; border-radius: 14px; }
  .jobs-tools { margin-inline: -16px; padding-inline: 16px; }
  .cats { margin-inline: -16px; padding-inline: 16px; }
  /* a row: the badge beside the job and its age, the tags under the job */
  .job { grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "badge main age" "badge tags tags"; column-gap: 12px; padding: 12px; }
  .job-badge { width: 36px; height: 36px; font-size: 12px; align-self: start; }
  .job-tags { justify-content: flex-start; max-width: none; margin-top: 8px; }
  .job-age { align-self: start; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .board-city { position: static; display: inline-block; margin-top: 16px; }
  body { max-width: none; padding: 24px 16px 40px; font-size: 16px; }
  h1 { margin-top: 20px; }
  h2 { margin-top: 32px; font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .neon { animation: none; }
  .job, .job::before { transition: none; }
}
