/* What should we do today? — Toronto */

/* Inter, self-hosted, so the page reads the same on every platform. The
   design uses one weight, medium — headings included — so one weight is all
   that ships.
   SIL Open Font License — see fonts/LICENSE-Inter.txt.
   swap, not block: the text appears immediately in a fallback and reflows
   when Inter arrives, rather than leaving the page blank.
   Latin covers the page; latin-ext exists for one line — "Muharrem Şenyıl"
   in the credit — and unicode-range keeps it from being downloaded by
   anyone who never renders those glyphs. Both faces carry a range, because
   a face without one claims every codepoint and would win the match. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-ext-500.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

:root {
  color-scheme: light;

  --ink:        #191919;
  --ink-soft:   #6f6f6f;
  --paper:      #ffffff;
  --line:       #e7e6e3;

  --col-about:  640px;
  --col-window: 320px;
  --tabs-h:     48px;
  --topbar-h:   52px;
  --head-h:     56px;

  --c-museum:       #e7e2f6;  --s-museum:       #f5f1fd;
  --c-art:          #d9ece7;  --s-art:          #eef7f4;
  --c-market:       #e3eedc;  --s-market:       #eff7ec;
  --c-flea:         #fbeeda;  --s-flea:         #fdf6e8;
  --c-books:        #dfe8f5;  --s-books:        #edf4fc;
  --c-architecture: #f6e3ec;  --s-architecture: #fbeff5;
  --c-festival:     #fbe6de;  --s-festival:     #fdf1ec;
  --c-dropin:       #f4eec3;  --s-dropin:       #fbf8e6;
  --c-social:       #e8e4dc;  --s-social:       #f6f4f0;
  --c-comedy:       #f0dbf5;  --s-comedy:       #faf2fc;
  --c-stage:        #ecdcc9;  --s-stage:        #f7efe6;
  --c-music:        #f6dbe1;  --s-music:        #fcf1f4;
  --c-film:         #dcdef2;  --s-film:         #eff0fb;
  --c-outdoors:     #d2e8ea;  --s-outdoors:     #ecf6f7;
  --c-food:         #e6efd3;  --s-food:         #f4f8ea;

  --shadow: 0 8px 30px rgba(20, 20, 20, .10), 0 1px 3px rgba(20, 20, 20, .06);

  /* notch and home-indicator insets; 0 everywhere that has none */
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  /* Medium everywhere. Headings still need it spelled out: they are h1/h2/h3
     and the UA would otherwise make them bold, and there is no bold file. */
  font: 500 15px/22px Inter, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;      /* iOS must not resize text on rotate */
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}

a { color: inherit; }


.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 60;
  padding: 10px 16px; border-radius: 999px;
  background: var(--paper); box-shadow: var(--shadow); text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------------ board */

.board {
  display: flex;
  height: calc(100dvh - var(--topbar-h));
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
}

.col {
  flex: 0 0 var(--col-window);
  min-width: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  border-right: 1px solid var(--line);
  scroll-snap-align: start;
}
.col--about { flex-basis: var(--col-about); }
.col:last-child { border-right: 0; }

.col__head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-height: var(--head-h);
  padding: 16px calc(26px + var(--safe-r)) 16px calc(26px + var(--safe-l));
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.col__title {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: -0.01em;
}

.col__range {
  font-size: 15px;
  line-height: 22px;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
}

.col__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 9px calc(8px + var(--safe-r)) calc(124px + var(--safe-b)) calc(9px + var(--safe-l));
}

.col__empty {
  padding: 22px 12px;
  color: var(--ink-soft);
  font-size: 14px;
}

/* ------------------------------------------------------------------ about */

.about {
  max-width: 560px;
  padding: 36px calc(26px + var(--safe-r)) calc(124px + var(--safe-b)) calc(26px + var(--safe-l));
}

.about__art {
  display: block;
  width: 420px;
  max-width: 100%;          /* a phone's column is narrower than the image */
  height: auto;
  margin: 0 0 34px;
}
svg.about__art { width: 340px; height: auto; }

/* Sits directly under the hero, so it reads as a caption rather than copy.
   Selector has to out-specify `.about p`, which is (0,1,1) and would otherwise
   put this back to 15px — it silently did exactly that until 2026-09-09. */
.about p.about__credit {
  margin: -26px 0 32px;
  font-size: 11px;
  line-height: 16px;
  color: var(--ink-soft);
  letter-spacing: 0;
}
.about p.about__credit a { color: inherit; }

/* One quiet way out of the column to the full index. The link list that used
   to sit above this was fourteen links in the middle of the prose and is not
   coming back; this is the one that earns its place. Out-specifies
   `.about p`-weight rules the same way the credit line does. */
.about .about__footer {
  margin: 26px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 18px;
  color: var(--ink-soft);
}
.about .about__footer a { color: inherit; }

/* Both handles sit on one line at the foot of the column, at the footer's
   size rather than the body's — they are a signature, not a paragraph. */
.about .about__footer p { margin: 0; font-size: inherit; line-height: inherit; color: inherit; }
.about .about__footer .about__social {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.about .about__footer .about__social a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  border-bottom: 0;
  padding-bottom: 0;
}
.about .about__footer .about__social a:hover { color: var(--ink); }
.about__social-icon { width: 14px; height: 14px; display: block; flex: none; }

.about__lede {
  margin: 0 0 24px;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: -0.01em;
}

/* Keeps a last line from ending on one word — "Email me." was breaking so
   that "me." sat alone on a 48px line under a 508px paragraph. */
.about p { text-wrap: pretty; }

/* The same thing everywhere it shows, which is mostly the cards: a title on a
   216px card wraps more often than not, and "… Convenience / Store" reads as
   a mistake. text-wrap: pretty is not in every browser yet, so noOrphan() in
   app.js ties the last two words with a non-breaking space as well; a browser
   that supports this picks better wrap points for the whole block, one that
   does not still keeps the last word company.

   break-word so a single word longer than the card — a hyphenless venue name,
   a hashtag — wraps inside itself rather than pushing the card wide. */
.card__title,
.card__when,
#modal-title,
#modal-desc { text-wrap: pretty; overflow-wrap: break-word; }

.about p {
  margin: 0 0 22px;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  color: #696969;
  letter-spacing: -0.005em;
}

.about__note { font-size: 14px !important; }
.about a { text-decoration: none; border-bottom: 1px solid #c3c3c3; padding-bottom: 1px; }
.about a:hover { border-bottom-color: var(--ink); }

/* The handle is a signature, not a link in a sentence, so it carries no rule.
   Needs to out-specify `.about a`, which is (0,1,1) — the same weight as
   `.about__social a`, so source order was deciding and the border stayed. */
.about p.about__social a { border-bottom: 0; padding-bottom: 0; }

/* ------------------------------------------------------------------- card */

.card {
  display: block;
  width: 100%;
  padding: 16px;
  border: 0;
  border-radius: 16px;
  background: var(--card, #f0f0ee);
  font: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease;
}
@media (hover: hover) {
  .card:hover { transform: translateY(-1px); filter: brightness(.985); }
  .card:hover .card__title { text-decoration: underline; text-decoration-color: currentColor; }
}
.card:focus-visible .card__title { text-decoration: underline; text-decoration-color: currentColor; }
.card:active { transform: translateY(0); }
.card:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.card--museum       { --card: var(--c-museum); }
.card--art          { --card: var(--c-art); }
.card--market       { --card: var(--c-market); }
.card--flea         { --card: var(--c-flea); }
.card--books        { --card: var(--c-books); }
.card--architecture { --card: var(--c-architecture); }
.card--festival     { --card: var(--c-festival); }
.card--dropin       { --card: var(--c-dropin); }
.card--social       { --card: var(--c-social); }
.card--comedy       { --card: var(--c-comedy); }
.card--stage        { --card: var(--c-stage); }
.card--music        { --card: var(--c-music); }
.card--film         { --card: var(--c-film); }
.card--outdoors     { --card: var(--c-outdoors); }
.card--food         { --card: var(--c-food); }

.card__title {
  margin: 0;
  /* A flex row so the tag wraps to the left edge under the title rather than
     carrying an indent with it. It used to sit inline with margin-left: 8px,
     which is right while it fits on the line and wrong the moment it does
     not — the margin stays put and the tag lands eight pixels in from
     everything above it. The row gap is what gives it air when it wraps; the
     column gap is the old margin, applied only when it is actually beside
     something. */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 8px;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  color: #222;
  letter-spacing: -0.01em;
  text-decoration-color: transparent;
  text-underline-offset: 2px;
  transition: text-decoration-color .15s ease;
}

.card__when {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 22px;
  color: #696969;
  letter-spacing: -0.005em;
}

.card__art {
  display: block;
  width: 216px;
  height: 216px;          /* square, as in the reference; the drawing letterboxes */
  max-width: 100%;
  margin: 28px auto 18px;
}
img.card__art { border-radius: 8px; }

/* The illustrations are cut-out images on a transparent 13:10 frame, dropped
   into a square box. `contain` letterboxes them the way the old <symbol>'s
   viewBox did. No rounding: the corner radius above is for an organiser's
   poster, which is a photograph with edges. */
img[data-art] { object-fit: contain; border-radius: 0; background: none; }

/* The footer belongs to the phone layout; on a wide screen the when-line
   already carries the time and the price is one tap away in the modal. */
.card__foot { display: none; }

/* ----------------------------------------------------------------- topbar */

/* On every screen: the site needs to say its name somewhere, and on a wide
   one the board filled the whole viewport with no masthead at all. */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-h);
  padding: 0 calc(26px + var(--safe-r)) 0 calc(26px + var(--safe-l));
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.topbar__brand {
  display: flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}
/* Sized to stand where the 17px Inter name stood: the drawing's ascender to
   descender spans about what the type's did, so the bar keeps its weight. */
.topbar__logo {
  display: block;
  height: 18px;
  width: auto;
  aspect-ratio: 692.46 / 204.09;
}
.topbar__brand:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* The About column is on screen at this width, so a button to it is noise. */
.topbar__about { display: none; }
.topbar__about {
  border: 0;
  background: none;
  padding: 6px 0;
  color: var(--ink-soft);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.topbar__about[aria-pressed="true"] { color: var(--ink); }
.topbar__about:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }

/* ------------------------------------------------------------------- tabs */

/* Hidden on wide screens, where the columns speak for themselves. */
.tabs {
  display: none;
  position: sticky;
  top: 0;
  z-index: 20;
  align-items: stretch;
  gap: 2px;
  height: var(--tabs-h);
  padding: 0 calc(10px + var(--safe-r)) 0 calc(10px + var(--safe-l));
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: 0 0 auto;
  position: relative;
  border: 0;
  background: none;
  padding: 0 12px;
  color: var(--ink-soft);
  font: inherit;
  font-size: 15px;
  line-height: 22px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
}
/* The underline is drawn on a pseudo-element so switching tabs does not
   change any box's size and shuffle the strip. */
.tab::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: transparent;
}
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { background: var(--ink); }
.tab:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; border-radius: 8px; }

/* ------------------------------------------------------------------- dock */

.dock {
  position: fixed;
  left: 50%;
  bottom: calc(24px + var(--safe-b));
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dock__filter,
.dock__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--shadow);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  transition: transform .15s ease;
}
.dock__filter { height: 48px; padding: 0 16px; font-size: 15px; }
.dock__nav { width: 48px; height: 48px; }
/* The forward button carries the name of where it goes. A bare chevron is
   read as decoration; "This week ›" is read as a direction. */
.dock__nav--wide { width: auto; padding: 0 8px 0 16px; font-size: 15px; }
.dock__nav__label { white-space: nowrap; }
@media (hover: hover) {
  .dock__filter:hover, .dock__nav:hover { transform: translateY(-1px); }
}
.dock__filter svg, .dock__nav svg { width: 20px; height: 20px; display: block; }
.dock__filter[aria-expanded="true"] { background: #f1f0ed; }

/* ------------------------------------------------------------ the sheet */

.sheet {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: min(440px, calc(100vw - 32px));
  max-height: min(84dvh, 720px);
  padding: 26px 26px 22px;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(20, 20, 20, .22);
}

.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 20px;
}

.sheet__title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.sheet__rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;               /* lets the list, not the sheet, do the scrolling */
  overflow-y: auto;
  overscroll-behavior: contain;
  /* room for focus rings, and a hint that the list continues */
  margin: 0 -4px;
  padding: 2px 4px;
}

/* Group heading inside the filter list. Sticky, because the list scrolls and
   a heading that has slid away leaves its rows unlabelled — on a small screen
   only two or three are in view at once.
   The padding-bottom is doing real work: .sheet__rows is a flex column with a
   10px gap, and a gap is not painted by anything, so a row scrolling past
   would show through it and cross the heading. The padding paints that strip,
   and the negative margin takes back the space it added. */
.sheet__group {
  position: sticky;
  top: -2px;                   /* covers .sheet__rows' 2px top padding */
  z-index: 1;
  margin: 0 0 -10px;
  padding: 8px 4px 14px;
  background: var(--paper);
  font-size: 13px;
  letter-spacing: -0.005em;
  color: var(--ink-soft);
}
.sheet__group:not(:first-child) { margin-top: 14px; }

.filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  /* categories set --soft to their own tint; price has none, so it falls back
     to a neutral rather than to nothing, which would leave the row invisible */
  background: var(--soft, #f2f1ee);
  font-size: 15px;
  letter-spacing: -0.01em;
  cursor: pointer;
  user-select: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.filter-row input { position: absolute; opacity: 0; pointer-events: none; }
@media (hover: hover) { .filter-row:hover { filter: brightness(.98); } }

/* unselected reads as an empty outline */
.filter-row:not(:has(input:checked)) {
  background: var(--paper);
  border-color: var(--line);
  color: #9a9a9a;
}

.filter-row__tick { width: 18px; height: 18px; opacity: 0; flex: 0 0 auto; margin-left: auto; }
.filter-row:has(input:checked) .filter-row__tick { opacity: .55; }
.filter-row:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }

.sheet__foot { display: flex; flex: 0 0 auto; gap: 10px; margin-top: 18px; }
.sheet__head { flex: 0 0 auto; }

.btn {
  border: 0;
  border-radius: 999px;
  padding: 17px 26px;
  font: inherit;
  font-size: 15px;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: filter .15s ease;
}
@media (hover: hover) { .btn:hover { filter: brightness(.96); } }
.btn--quiet { background: #f1f0ed; color: var(--ink); }
.btn--solid { flex: 1; background: #1c1c1c; color: #fff; }

.round-close {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  border: 1px solid #d6d4cf;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.round-close:hover { background: #f6f5f2; }
.round-close svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------------ modal */

.scrim {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(30, 30, 30, .18);
  backdrop-filter: blur(1px);
}

.modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 50;
  width: min(560px, calc(100vw - 32px));
  max-height: min(84dvh, 760px);
  overflow-y: auto;
  padding: 34px 38px 38px;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(20, 20, 20, .22);
}

.modal__close { position: absolute; top: 22px; right: 24px; }

.modal__title {
  margin: 0 60px 26px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 8px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.modal__art { margin: 0 0 26px; }
.modal__art-item { display: block; width: min(300px, 72%); height: auto; margin: 0 auto; }

/* An organiser's poster, where a listing has one. Wider than the illustration
   because it is carrying information rather than standing in for it, and
   cornered to match the cards it sits among. */
.modal__poster {
  display: block;
  width: min(330px, 66%);
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
  background: var(--line);
}

.modal__desc {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.6;
  color: #3d3d3d;
}

.link {
  display: inline-block;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid #c3c3c3;
  padding-bottom: 1px;
}
.link:hover { border-bottom-color: var(--ink); }

/* How a listing got here, when it was not simply found.

   Two versions of this were wrong before this one. Soft ink inside a hairline
   vanished into the card, which is the wrong failure for a disclosure. Solid
   ink shouted louder than the event it was labelling, which is the other
   wrong failure — it made a note about provenance the loudest thing on a card
   about a night out.

   So: a pastel fill from the same family as everything else here, and the
   definition carried by a stroke rather than by contrast. The stroke is
   thick enough to hold its shape at this size and held at seven percent, so
   it reads as an edge rather than as a border. The label is set
   smaller than any other text on the card, because it is the least important
   thing on it and only has to be findable, not first. */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px 2px 6px;
  border: 2px solid rgba(25, 25, 25, 0.07);
  border-radius: 999px;
  background: var(--s-books);
  color: var(--ink-soft);
  /* Sentence case. The letter-spacing and the very small size were both
     propping up all-caps, which does not need the help here — set plainly it
     can sit a point larger and still read as the quietest thing on the
     card. */
  font-size: 10px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  /* The card underlines its title on hover and text-decoration reaches into
     every descendant, tag included. */
  text-decoration: none;
}
.tag svg { width: 11px; height: 11px; flex: none; opacity: 0.55; }

/* The organiser's own code, under what it costs, because that is the moment
   it is useful. Not part of `entry`: that line is what the door costs, and a
   code is a way to pay less than it. */
.modal__code {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}
/* A promo code is meant to be typed into someone else's checkout, and
   selecting nine characters of small grey text on a phone is the friction
   that means nobody uses it. Boxed, with the button sharing the box so the
   two read as one control rather than as a word and an afterthought. */
.code-box {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  overflow: hidden;
}
.code-box__code {
  padding: 3px 8px;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink);
  user-select: all;
}
.code-box__copy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line);
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
}
.code-box__copy svg { width: 15px; height: 15px; display: block; }
.code-box__copy:hover { background: var(--s-books); color: var(--ink); }
.code-box__copy:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
/* Green only while it is true — it reverts to the copy icon after a moment,
   so the tick is never left standing as a claim about a stale action. */
.code-box__copy.is-done { color: #3f7d55; }

.modal__caveat {
  margin: 24px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fbf2e4;
  font-size: 14px;
  line-height: 1.5;
  color: #6b5a3c;
}

.modal__meta { margin: 26px 0 22px; }
.modal__meta dt { font-size: 13px; color: var(--ink-soft); }
.modal__meta dd { margin: 4px 0 20px; font-size: 15px; }
.modal__meta dd:last-child { margin-bottom: 0; }
.modal__meta-link { margin-top: -12px !important; }

/* ----------------------------------------------------------------- mobile */

@media (max-width: 720px) {
  :root { --col-about: 100vw; --col-window: 100vw; --head-h: 52px; }

  /* One panel at a time, chosen from the tab strip, scrolling straight down.
     No sideways scrolling on a phone at all: the board stops being a run of
     columns and becomes a container for whichever one is showing. */
  .topbar { padding: 0 calc(20px + var(--safe-r)) 0 calc(20px + var(--safe-l)); border-bottom: 0; }
  .topbar__about { display: block; }
  .tabs { display: flex; }
  .board { height: calc(100dvh - var(--tabs-h) - var(--topbar-h)); }
  .col { display: none; flex: 1 1 auto; width: 100%; border-right: 0; }
  .col--active { display: block; }
  /* The tab already names the window, so the header keeps only the dates. */
  .col:not(.col--about) .col__title { display: none; }
  .col:not(.col--about) .col__range { color: var(--ink); }
  .col--about .col__head { display: none; }
  /* The tabs do this job now, and better. */
  .dock__nav { display: none; }

  .board { scroll-snap-type: x mandatory; }

  .col { border-right: 0; }
  .col__head {
    min-height: var(--head-h);
    padding: 14px calc(20px + var(--safe-r)) 14px calc(20px + var(--safe-l));
  }
  .col__body {
    gap: 12px;
    padding: 16px calc(20px + var(--safe-r)) calc(124px + var(--safe-b)) calc(20px + var(--safe-l));
  }
  .about {
    padding: 22px calc(20px + var(--safe-r)) calc(124px + var(--safe-b)) calc(20px + var(--safe-l));
  }

  /* Shorter cards. At the desktop size two filled the screen and you could
     not see what a window held without scrolling; the drawing is still the
     first thing you notice, just not the only thing. */
  .card { padding: 14px 16px; border-radius: 16px; }
  .card__art { width: 132px; height: 132px; margin: 10px auto 4px; }

  /* Price on the left, time on the right, along the bottom of every card. */
  .card__foot {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    font-size: 14px;
    line-height: 20px;
    color: var(--ink-soft);
  }
  .card__price { font-weight: 500; color: var(--ink); }
  .card__time { text-align: right; }
  /* The time reads in the footer now, so it is dropped from the date line —
     and a line left holding only a time has nothing to show at all. */
  .card__when-time { display: none; }
  .card__when--time-only { display: none; }

  /* dialogs rise from the bottom edge, thumb-first */
  .modal, .sheet {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    transform: none;
    border-radius: 26px 26px 0 0;
    max-height: 88dvh;
  }

  .modal {
    padding: 30px calc(24px + var(--safe-r)) calc(32px + var(--safe-b)) calc(24px + var(--safe-l));
  }
  .modal__close { top: 22px; right: 20px; }
  .modal__title { margin-right: 56px; }

  .sheet {
    padding: 24px calc(20px + var(--safe-r)) calc(24px + var(--safe-b)) calc(20px + var(--safe-l));
  }
  .filter-row { padding: 15px 20px; }
}

/* Short viewports — phone landscape, split view. The illustration is the first
   thing to give up its space; the words matter more. */
@media (max-height: 560px) {
  .modal { padding-top: 24px; padding-bottom: 24px; }
  .modal, .sheet { max-height: 92dvh; }
  .modal__title { margin-bottom: 18px; }
  .modal__art { margin-bottom: 18px; }
  .modal__art-item { width: auto; height: 96px; }
  .modal__meta { margin: 18px 0 16px; }
  .modal__meta dd { margin-bottom: 14px; }

  .sheet { padding-top: 18px; }
  .sheet__head { margin-bottom: 12px; }
  .filter-row { padding-top: 13px; padding-bottom: 13px; }
  .sheet__foot { margin-top: 12px; }
  .btn { padding-top: 14px; padding-bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .board { scroll-behavior: auto; }
  .card, .dock__filter, .dock__nav { transition: none; }
}

/* -------------------------------------------------------------- halloween */

/* Halloween week, October 25 to 31, every year; November 1 is back to normal. The class goes on
   <html> from an inline script in the head — before the stylesheet, so a
   dark page never flashes white — and ?halloween=1 or ?halloween=0 on the
   URL overrides the date for a look at it before the week and after.

   It is the same system at night rather than a different site: ink and
   paper trade places with a warmer dark, every category keeps its hue at a
   tenth of the light, and one pumpkin orange does the work the ink
   underline did. The decorations are pseudo-elements carrying inline SVG,
   so the markup, the copy and the artwork are untouched, and the whole
   thing leaves with the class. */
html.is-halloween {
  color-scheme: dark;

  --ink:        #f4ead9;
  --ink-soft:   #a99c8c;
  --paper:      #130f16;
  --line:       #2b2331;
  --pumpkin:    #ff8c3a;

  --c-museum:       #2a2340;  --s-museum:       #1f1a2e;
  --c-art:          #1e3330;  --s-art:          #182622;
  --c-market:       #253320;  --s-market:       #1b2618;
  --c-flea:         #3d2a14;  --s-flea:         #2a1e12;
  --c-books:        #1f2c3f;  --s-books:        #182130;
  --c-architecture: #3b1f30;  --s-architecture: #2a1823;
  --c-festival:     #3f2419;  --s-festival:     #2b1a14;
  --c-dropin:       #3a3414;  --s-dropin:       #282412;
  --c-social:       #2f2a26;  --s-social:       #221f1c;
  --c-comedy:       #35203a;  --s-comedy:       #251828;
  --c-stage:        #3a2b1d;  --s-stage:        #281f17;
  --c-music:        #3d1f2a;  --s-music:        #2a1820;
  --c-film:         #24254a;  --s-film:         #1b1c34;
  --c-outdoors:     #1c3236;  --s-outdoors:     #162527;
  --c-food:         #2c3620;  --s-food:         #1f2718;
  --c-nightlife:    #2d1a3a;

  --shadow: 0 8px 30px rgba(0, 0, 0, .45), 0 1px 3px rgba(0, 0, 0, .4);
}

html.is-halloween ::selection { background: var(--pumpkin); color: #1a1008; }

/* Cards: the light theme hardcodes the title and date greys. */
html.is-halloween .card { --card: #241e2a; }
html.is-halloween .card--nightlife { --card: var(--c-nightlife); }
html.is-halloween .card__title { color: var(--ink); }
html.is-halloween .card__when { color: var(--ink-soft); }
@media (hover: hover) {
  html.is-halloween .card:hover { filter: brightness(1.15); }
}

/* The one accent. */
html.is-halloween .tab[aria-selected="true"]::after { background: var(--pumpkin); }
html.is-halloween .card:focus-visible,
html.is-halloween .tab:focus-visible,
html.is-halloween .topbar__brand:focus-visible,
html.is-halloween .topbar__about:focus-visible { outline-color: var(--pumpkin); }
html.is-halloween .link { border-bottom-color: #4a4050; }
html.is-halloween .link:hover { border-bottom-color: var(--pumpkin); }
html.is-halloween .btn--quiet { background: #2a2330; }
html.is-halloween .btn--solid { background: var(--pumpkin); color: #1a1008; }

/* Chrome that carried its own greys. */
html.is-halloween .round-close { border-color: #3a3140; }
html.is-halloween .round-close:hover { background: #241e2a; }
html.is-halloween .dock__filter[aria-expanded="true"] { background: #2a2330; }
html.is-halloween .scrim { background: rgba(4, 2, 8, .62); }
html.is-halloween .modal,
html.is-halloween .sheet { box-shadow: 0 24px 70px rgba(0, 0, 0, .65); }
html.is-halloween .modal__desc { color: var(--ink); }
html.is-halloween .tag { border-color: rgba(255, 255, 255, .08); }
/* A category row carries its category's soft colour inline (app.js sets
   --soft on it); the price rows carry none and fell back to the light
   theme's cream, cream text on cream. The same fallback, in the dark. */
html.is-halloween .filter-row { background: var(--soft, #241e2a); }
html.is-halloween .filter-row:not(:has(input:checked)) { background: var(--paper); color: var(--ink-soft); }
html.is-halloween .modal__caveat { background: #2e2416; color: #dcc49c; }
html.is-halloween .code-box__copy.is-done { color: #8fd19e; }
html.is-halloween .skip-link { background: #241e2a; }

/* A jack-o'-lantern beside the wordmark: the 3dicons render (see
   art/RENDERS.md, "The Halloween set"), cropped tight and scaled to the
   wordmark's height. */
html.is-halloween .topbar__brand::after {
  content: '';
  width: 24px;
  height: 22px;
  margin-left: 10px;
  background: no-repeat center / contain url("illustrations/hw-pumpkin-badge.webp");
}

/* A web in the top-right corner with two spiders hanging off it, past the
   bar into the board. From an EPS the owner supplied (STUDIO KAT 076-40),
   rasterised, mirrored for a right-hand corner and its black turned to the
   ink; see art/RENDERS.md. */
html.is-halloween .topbar { position: relative; }
html.is-halloween .topbar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 160px;
  z-index: 25;
  pointer-events: none;
  /* Translucent: it hangs over the third column's heading and the top of
     its cards, which must still read through it. */
  opacity: .5;
  background: no-repeat top right / contain url("illustrations/hw-web.webp");
}

/* Two bats over the About heading, the same render at two sizes. */
html.is-halloween .col--about .col__head::after {
  content: '';
  width: 110px;
  height: 40px;
  margin-left: auto;
  background:
    no-repeat right 0 top 2px / 48px url("illustrations/hw-bat-badge.webp"),
    no-repeat right 60px top 14px / 32px url("illustrations/hw-bat-badge.webp");
}

@media (max-width: 720px) {
  /* The About button lives in that corner on a phone; the web goes thin and
     small enough to be read through. */
  html.is-halloween .topbar::after { width: 56px; height: 90px; opacity: .32; }
}

/* The hero swaps for its Halloween-night render (index.html carries both;
   this chooses). That one is a cut-out on alpha, so it sits straight on the
   paper: no frame, no shadow, nothing. */
.about__hero-hw { display: none; }
html.is-halloween .about__hero-hw { display: block; }
html.is-halloween .about__hero { display: none; }
