/* Skin (docs/design/instagram-rework.md section 11): true black on true white,
   Fira Mono body, Libre Franklin heads, both self-hosted (the CSP allows only
   'self'). One gray for secondary text, one hairline, the hazard for errors. */
@font-face { font-family: "Fira Mono"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/static/fonts/FiraMono-400.woff2") format("woff2"); }
@font-face { font-family: "Fira Mono"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/static/fonts/FiraMono-700.woff2") format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-weight: 100 900; font-style: normal; font-display: swap;
  src: url("/static/fonts/LibreFranklin-var.woff2") format("woff2"); }
:root {
  --paper: #fff;
  --ink: #000;
  --gray: #595959;
  --hairline: #e5e5e5;
  --hazard: #D8451F;
  --body: "Fira Mono", ui-monospace, Menlo, monospace;
  --head: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  /* The same two, under names a themed surface cannot shadow. A show page
     remaps --ink and --paper to the vibe's own colours so the shared form and
     button vocabulary comes out right on a dark flyer; anything that must stay
     site chrome inside that surface, like the host's strip, reads these. */
  --site-paper: #fff;
  --site-ink: #000;
}
html { background: var(--paper); color: var(--ink); }
/* `anywhere`, not `break-word`: it also shrinks the min-content width, so a
   long typed word cannot widen a grid or flex column either (Sam, 2026-10-20). */
body { margin: 0; font: 16px/1.5 var(--body); overflow-wrap: anywhere; }
/* A phrase that never breaks inside itself when its line wraps (`whole`). */
.nw { white-space: nowrap; }
main { max-width: 40rem; margin: 0 auto; padding: 1.5rem 1rem; }
/* Ink, never the browser's blue: nothing on paper should read as a default. */
a { color: var(--ink); text-underline-offset: 3px; }
/* Radios, checkboxes and ranges too (Sam, 2026-11-05). */
input, progress { accent-color: var(--ink); }

/* Keyboard focus, everywhere (docs/design/desktop.md 10.2): every link,
   button, field and summary gets the same 2px solid ring in the page's own
   ink, with `:focus-visible` doing the "never on a mouse click" half for
   free, the same way every existing focus rule in this app already relies on
   it (show.css: `.rsvp-btn`, `.btn-primary`, `.form-errors`, `.outcome`...).
   Element selectors only, so any of those more specific rules still wins on
   its own control ("controls that already set their own outline keep it"). */
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.2; }
h1 { font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; }
h2 { font-size: 16px; font-weight: 700; }
button, .btn-primary, .btn-secondary, .btn-quiet, .btn-hazard { font-family: var(--head); font-weight: 600; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 2px;
}

/* The site header rides on every chrome page (home, Your shows, login, the
   cancel question), so it lives here and not in home.css, which not every one
   of them loads. */
.site {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding-bottom: 1.1rem; margin-bottom: .4rem;
  position: relative; /* anchors .skip-link to the header's own left edge */
}
/* The wordmark is the show page's one name on screen (instagram-rework.md
   section 3, name-and-mark.md): Libre Franklin like every other head, bold,
   lowercase (a heavy capital O and a zero are the same shape), no underline,
   in the page's own ink. Size is its own, never the page's. `.site-nav`
   (Settings) stays the quiet mono link. */
.site .wordmark {
  font-family: var(--head); font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em;
  color: var(--ink); text-decoration: none; padding: .3rem 0; line-height: 1;
}
.site .site-nav {
  font-family: var(--body); font-size: .78rem; color: var(--ink);
  text-decoration: underline; text-underline-offset: 3px;
  padding: .4rem 0; /* a real tap target */
}
/* "Skip to content" (docs/design/desktop.md 10.2), part of the header, not
   the page: see _header.html for why. Off the left edge until focused, so it
   never shifts anything below it into place, then a solid block over the
   header at the frame's left edge (`.site`'s own padding-box, via the
   `position: relative` above, which is the frame's left edge on every page
   that uses this header). `var(--paper)`/`var(--ink)` rather than
   `--site-paper`/`--site-ink`: those two are remapped to the vibe's own
   colours inside `.screen` (show.css), which is exactly the "the vibe's ink
   on a show page" this rule is supposed to pick up, for free. */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 20;
  padding: .55rem .9rem;
  background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: .8rem;
  text-decoration: underline; text-underline-offset: 3px;
}
.skip-link:focus { left: 0; }
/* Its own outline stays put; the generic rule above would also match it, at
   the same specificity, and an outline flush with the block's own edge would
   double as a second border. */
.skip-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Not printed, on any page (docs/design/desktop.md 10.1): paper is for what
   you read, and the header is all things you tap. show.css relies on this
   rule rather than repeating it. */
@media print { .site { display: none !important; } }

/* ============ Desktop width system (docs/design/desktop.md section 3) ============
   Three measures, and every page at 700px and up uses them and nothing else:
   the frame (68rem at most, a 2rem gutter at minimum, centred: `main.frame`
   on every page except a show page, which sets `main_bleed` so its vibe can
   fill the viewport and frames itself internally via `.pg`), the column
   (36rem, `.column` below, for anything read or filled in top to bottom),
   and the poster (a show's flyer, an artist's identity side: 40% of the
   frame, 15 to 26rem, defined where each page builds its own two-column
   grid).

   Below 700px none of this applies; `main`'s phone rule above is untouched,
   and it carries the `frame`/`bleed` class either way with no effect on it. */

@media (min-width: 700px) {
  main.frame {
    max-width: 68rem;
    width: calc(100% - 4rem);
    margin: 0 auto;
    padding: 1.75rem 0 3rem;
  }
  /* The show page: no frame here, so `.screen`'s vibe background can fill the
     whole viewport; `.pg` inside it is the frame instead. */
  main.bleed { max-width: none; margin: 0; padding: 0; }
  .column { max-width: 36rem; }
  /* `main.frame`'s own padding gives the header its top gap; this only needs
     to widen the gap below it a little against the phone value. */
  .site { padding-bottom: 1.25rem; margin-bottom: 0; }
}

/* The one list shape the app has, a row and what you can do to it. In base
   rather than home.css because two pages that use it (the invites list, the
   managers list) load show.css only, and for most of slice 7 the invites list
   rendered as a bare bulleted list because of it (2026-09-17). */
.page-list, .manager-list { list-style: none; padding: 0; margin: 0; }
.page-list li, .manager-list li { padding: .5rem 0; border-bottom: 1px solid var(--hairline);
  display: flex; gap: .8rem; align-items: baseline; justify-content: space-between; }

/* Who a row is about, as one thing: the handle, whether it is you, and the
   role. The row spreads its children to its edges, so leaving these loose put
   a label where every other row puts its button. */
.manager-list .who { display: flex; gap: .4rem; align-items: baseline;
  flex-wrap: wrap; min-width: 0; }
/* Who added a guest's row, in secondary type (show-audience.md section 5). */
.manager-list .invite-via { font-size: .85rem; opacity: .68; }
/* A row with `via` lays out as a handle row does: one line, Remove at the
   right edge. The label gives way first, ellipsized; `via` and Remove never
   wrap (show-audience walk 2026-11-03, item 3). */
.manager-list li.has-via { flex-wrap: nowrap; }
.manager-list li.has-via .who { flex-wrap: nowrap; flex: 1 1 auto; min-width: 0; }
.manager-list li.has-via .who > :first-child { min-width: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.manager-list li.has-via .invite-via, .manager-list li.has-via .btn-link {
  flex-shrink: 0; white-space: nowrap; }
/* The row wraps before the name does. A long handle plus its role used to be
   squeezed by the button holding the row at one line, which broke the label
   off onto an orphan line below the name it tags; now the button drops to its
   own line instead, still against the right edge (walk, 2026-09-21). */
.page-list li, .manager-list li { flex-wrap: wrap; }
.manager-list li > form, .manager-list li > .btn-link { margin-left: auto; }

/* An artist page row on a person page (Runs, Following): the same square mark
   /artists shows for the same page, so an act pictured everywhere else is not
   bare here (avatar-replies-push walk, item 10). `.row-flyer.row-avatar` is
   the /artists row's own sizing and border, unchanged; this only lays the
   link out to hold it. */
.page-list-link { display: flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; min-height: 44px; }
/* The list `+N` opens: each link as the one line draws it, underlined, the
   outbound arrow after it, the whole row its target. */
.page-list-link.is-out { gap: .4rem; }
.page-list-link.is-out span { text-decoration: underline; overflow-wrap: anywhere; }
.page-list-link.is-out::after { content: "\2197\FE0E"; font-size: .8em; opacity: .7; }

/* Someone carried over from the going list who asked not to be named (F22):
   on the list and removable, never named, and reading as quieter than a name. */
.manager-list .no-name { opacity: .7; font-style: italic; }

/* For text that only a screen reader needs, like what the inbox dot means. */
.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;
}

/* The header's one mark: a yes-or-no answer to "did anything change?".
   It lives here because _header.html is on almost every page while home.css is
   on four of them, so the unread dot was invisible nearly everywhere it could
   appear (the stylesheet-reachability test now asserts this). */
.site-nav .dot { display: inline-block; width: .42rem; height: .42rem; border-radius: 50%;
  background: var(--ink); margin-left: .3rem; vertical-align: .08rem; }
/* A word and its dot are one thing: at 320 and 390 with a long handle beside
   it, "Inbox" otherwise broke before its dot and the header went to two rows
   (desktop.md 10.3; 2026-09-22 leftovers walk, finding 1). */
.site-nav { white-space: nowrap; }

/* "Nothing here yet", wherever that is said. Used by the invites list, which
   loads show.css only. */
.empty-line { font-size: 1rem; opacity: .75; margin: 0 0 1rem; }
.empty-line a { color: var(--ink); text-underline-offset: 3px; }

/* An act asked to confirm a bill they were named on. Appears on the artist page
   and on the show page, which loads show.css only. */
.pending-tag { border-top: 1px solid rgba(0, 0, 0, .15); margin-top: .6rem; padding-top: .6rem; }
.pending-tag p { margin: 0 0 .5rem; font-size: .85rem; }
.pending-tag form { display: flex; gap: .8rem; align-items: center; }
/* Friends the host shares with someone asking (request-only-shows.md). */
.pending-tag .pending-line { font-family: var(--body); font-size: .8rem; opacity: .7; margin: .4rem 0 0; }
/* Small type, full-size target. The buttons stay quiet inside a strip, but a
   one-thumb "make this go away" tap (No thanks, Undo) is the one where missing
   costs most, so the hit area is the 44px floor (UX-PRINCIPLES item 12) while
   the visible chrome stays the size of the sentence beside it. */
.pending-tag .btn-secondary {
  padding: .4rem .9rem; font-size: .82rem; min-height: 2.75rem;
  display: inline-flex; align-items: center;
}
/* The no of a yes-or-no pair: the same button, quieter, so the two read as one
   choice rather than a button and an afterthought (2026-10-23 joiner walk). */
.pending-tag .btn-quiet { border-color: rgba(0, 0, 0, .3); }
.pending-tag .btn-link, .inline-form .btn-link {
  min-height: 2.75rem; display: inline-flex; align-items: center; padding: 0 .25rem;
}

/* The count beside a section heading (F6, revised 2026-09-17: counts allowed,
   "just don't make counts so prominent"). It is the heading's own type at the
   heading's own weight, set apart only by a little more opacity, so it reads as
   part of the label rather than as a number to grow. Never larger than the
   heading, never its own tile. */
.head-count { opacity: .75; letter-spacing: .08em; }

/* Undo and Unblock sit inside a sentence, so the form must not introduce a
   line of its own. */
.inline-form { display: inline; }

/* ============ Header kinds (docs/design/instagram-rework.md section 3) ============
   Normal flow. `bare` is the skip link and nothing else, so the page's own
   content is its top; `title` is a title left and the close mark (or Settings)
   right; `wordmark` is the show page's. */
.site.is-bare { padding: 0; margin: 0; height: 0; }
.site.is-title { align-items: center; padding-bottom: .25rem; margin-bottom: .5rem; }
.site-title { font-size: 20px; font-weight: 700; margin: 0; min-width: 0; }
.site-back { display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin: -10px 0 -10px -10px; color: var(--ink); }
.site-close { display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -10px; color: var(--ink); }
.date-range { font-family: var(--body); font-size: .8rem; color: var(--ink); white-space: nowrap;
  text-underline-offset: 3px; padding: .6rem 0; }

/* ============ The tab bar (docs/design/instagram-rework.md sections 3 and 11) ============
   Fixed to the bottom on phone, a left rail from 700px. Always black on white,
   never the show's vibe. `--tab-h` and `--rail-w` are what everything else
   that pins to the bottom or the left edge reads, so nothing hides under it. */
:root { --tab-h: calc(56px + env(safe-area-inset-bottom, 0px)); --rail-w: 0px; }
body { padding-bottom: var(--tab-h); }
html { scroll-padding-bottom: var(--tab-h); }
.tabbar {
  position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
  height: var(--tab-h); box-sizing: border-box; padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex; background: #fff; color: #000; border-top: 1px solid var(--hairline);
}
.tab {
  position: relative; flex: 1 1 0; min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  color: #000; text-decoration: none;
}
.tab svg { flex: none; display: block; }
.tab .f { fill: none; }
.tab .d { stroke: currentColor; }
.tab.is-on .f { fill: #000; }
.tab.is-on .d { stroke: #fff; }
.tab.is-on svg path:not(.d):not(.f) { stroke-width: 3; }
.tab .dot { position: absolute; top: 12px; left: calc(50% + 6px); width: .55rem; height: .55rem;
  border-radius: 50%; background: #000; border: 2px solid #fff; box-sizing: content-box; }
.tab-label {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.tab:focus-visible { outline: 2px solid #000; outline-offset: -4px; }
@media print { .tabbar { display: none !important; } body { padding: 0 !important; } }

@media (min-width: 700px) {
  :root { --tab-h: 0px; --rail-w: 4.5rem; }
  body { padding-left: var(--rail-w); padding-bottom: 0; }
  .tabbar {
    top: 0; right: auto; bottom: 0; width: var(--rail-w); height: auto; padding: 1rem 0;
    flex-direction: column; justify-content: flex-start; gap: .25rem;
    border-top: 0; border-right: 1px solid var(--hairline);
  }
  .tab { flex: none; height: 48px; width: 100%; }
}
@media (min-width: 1100px) {
  :root { --rail-w: 14rem; }
  .tabbar { padding: 1rem .75rem; }
  .tab { justify-content: flex-start; padding: 0 .75rem; width: 100%; box-sizing: border-box; }
  .tab .dot { left: calc(.75rem + 16px); }
  .tab-label {
    position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto;
    font-family: var(--head); font-size: 16px; font-weight: 400;
  }
  .tab.is-on .tab-label { font-weight: 700; }
}

/* An empty grid or list says the fact, in body type (instagram-rework.md 8). */
.grid-empty { font-family: var(--body); margin: 1rem 0 1.5rem; }

/* While a typeahead field is focused on a phone, room below the page's end so
   the field can rise to the top and its list sit above the keyboard
   (keyboard-list.js). */
@media (max-width: 640px) {
  html.kb-list body { padding-bottom: 100vh; }
}
