/* tulsa.fm — the site frame and the shared look (decided 2026-10-29, "the dial").
   One file for every public page and the review page. The brand guide is the
   source: Bungee for display, Space Grotesk for text, Space Mono for the
   dial and data lines; Punk Black ground, Paper text, Signal Magenta,
   Sunbeam, Electric Blue, Metal Red, Red Dirt Tan.

   The frame (stripe, top row, dial) is written by tools/frame.mjs into every
   page between the frame:start / frame:end markers; this file styles it.
   Rule: the DIAL holds places to tune in (Shows, Bands, Listen). The TOP ROW
   holds the logo and the three things that are not content: Get listed,
   Submit a show, Sign in. Everything else is reached from inside pages. */

:root {
  --bg: #17140f;
  --card: #221e18;
  --line: #403835;
  --text: #f4eedd;
  --muted: #c7ad87;
  --pink: #e31c79;
  --pink-small: #e84792; /* the second pink, only where small text or a thin outline meets pink (issue #100, Carlos 2026-10-30) */
  --yellow: #f6d000;
  --blue: #2aa8e0;
  --red: #c81e2c;
  --dim: #6e6259;
  --ok: #9fdc8a;
  --display: "Bungee", sans-serif;
  --body: "Space Grotesk", "Space Grotesk Fallback", system-ui, sans-serif;
  --mono: "Space Mono", monospace;
  --measure: 62ch;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font: 300 16px/1.5 var(--body); overflow-x: clip; }
[hidden] { display: none !important; }
a { color: var(--blue); }
:where(a, button, input, textarea, select, summary):focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
img { max-width: 100%; }
strong, b { font-weight: 700; }
/* Heard, not seen: what a link is about, for a screen reader's list of links. */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* The first stop for a keyboard: past the frame, to the page. */
.skip { position: absolute; left: 16px; top: 16px; z-index: 20; padding: 10px 16px; border-radius: 4px; background: var(--yellow); color: var(--bg); font-weight: 700; transform: translateY(-300%); }
.skip:focus { transform: none; }

/* The frame ------------------------------------------------------------------- */
.stripe { height: 12px; background-image: repeating-linear-gradient(-45deg, #e31c79 0 20px, #f6d000 20px 40px, #2aa8e0 40px 60px, #c81e2c 60px 80px); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.site-top { display: flex; align-items: center; gap: 18px 28px; flex-wrap: wrap; padding: 18px 0 0; }
.site-top .site-logo { display: flex; align-items: center; margin-right: auto; }
.site-top .site-logo img { height: 28px; width: auto; display: block; }
.site-top .site-link, .site-top .site-who { color: var(--text); text-decoration: none; font-weight: 500; font-size: 16px; min-height: 40px; display: inline-flex; align-items: center; }
.site-top .site-link[aria-current="page"] { color: var(--yellow); }
.site-top .site-who { color: var(--yellow); font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.site-top .sticker { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 4px; background: var(--pink-small); color: var(--bg); font-weight: 700; font-size: 15px; text-decoration: none; }
.site-top .sticker[aria-current="page"] { background: var(--yellow); }
.site-top .sticker:hover { filter: brightness(1.1); }
.site-top .signin { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.site-top .signin:hover, .site-top .signin[aria-current="page"] { color: var(--yellow); }

.dial {
  margin: 16px 0 0; position: relative; height: 58px; display: flex; align-items: flex-start; overflow-x: auto; white-space: nowrap;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 24px), repeating-linear-gradient(90deg, var(--muted) 0 1px, transparent 1px 120px);
  background-size: 100% 10px, 100% 18px; background-repeat: repeat-x, repeat-x; background-position: 0 100%, 0 100%;
  scrollbar-width: none;
}
.dial::-webkit-scrollbar { display: none; }
.dial > a, .dial > .soon { position: relative; display: flex; gap: 8px; align-items: flex-start; padding: 8px 26px 0 18px; height: 58px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); text-decoration: none; }
.dial > a:first-child, .dial > .soon:first-child { padding-left: 0; }
.dial > a:hover { color: var(--yellow); }
.dial > a[aria-current="page"] { color: var(--yellow); font-weight: 700; }
.dial > a[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: -1px; width: 3px; height: 60px; background: var(--pink); }
.dial > a:first-child[aria-current="page"]::before { left: -1px; }
.dial > .soon { color: var(--dim); }
.dial > .soon small { font-size: 10px; letter-spacing: 0.1em; align-self: center; }
.dial .count { font-family: var(--mono); font-size: 11px; color: var(--bg); background: var(--pink-small); border-radius: 999px; padding: 0 6px; line-height: 18px; }
.dial > a[aria-current="page"] .count { background: var(--yellow); }
.dial .dial-end { margin-left: auto; padding: 8px 0 0 24px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--muted); }

/* The site dial (#tuner, written by the frame) and the review tabs (#tabs) share the needle below.
   Carlos, 2026-10-30: bigger names, more room, a line under each, Electric Blue for places,
   Sunbeam for where you are, Listen grey until the stream, and a needle that follows the mouse. */
#tuner { height: 84px; overflow-y: hidden; }
#tuner > a, #tuner > .soon { flex-direction: column; gap: 3px; height: 84px; padding: 13px 40px 0 28px; letter-spacing: 0; text-transform: none; }
#tuner b { font-family: var(--mono); font-weight: 700; font-size: 19px; line-height: 1.1; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); transition: color .2s, letter-spacing .25s; animation: tune-in .45s ease-out both; }
#tuner small { font-family: var(--mono); font-weight: 400; font-size: 11px; line-height: 1.2; letter-spacing: 0.04em; color: var(--muted); animation: tune-in .45s ease-out both; }
#tuner > :nth-child(3) > * { animation-delay: .08s; }
#tuner > :nth-child(4) > * { animation-delay: .16s; }
#tuner > a:hover b, #tuner > a:focus-visible b { color: var(--text); letter-spacing: 0.16em; }
#tuner > a[aria-current="page"] b { color: var(--yellow); }
#tuner > .soon { cursor: default; }
#tuner > .soon b, #tuner > .soon small { color: var(--dim); }
#tuner .dial-end { padding-top: 15px; }
#tuner > a[aria-current="page"]::before { left: 8px; height: 86px; }

/* The needle on any dial that carries one (site/assets/dial.js moves it; without the script the current item keeps the static needle). */
.dial > a[aria-current="page"]:not(:first-child)::before { left: 8px; }
.dial.live > a[aria-current="page"]::before { display: none; }
.dial .needle { display: none; }
.dial.live .needle { display: block; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--pink); box-shadow: 0 0 8px rgba(227, 28, 121, .55); pointer-events: none; z-index: 1; }
.dial .needle::before { content: ""; position: absolute; top: 0; left: -5px; border-style: solid; border-width: 8px 6.5px 0; border-color: var(--pink) transparent transparent; }
.dial.nocur .needle { opacity: .5; }
.dial.ready .needle { transition: transform .7s cubic-bezier(.34, 1.4, .5, 1); }
.dial.ready.follow .needle { transition: transform .12s ease-out; }
@keyframes tune-in { from { opacity: 0; transform: translateY(6px); } }

/* The review tabs on the dial (Carlos, 2026-10-30): the site dial's colours, needle and hover; dial.js sizes the labels (15px to 12px) so every tab fits one row. */
#tabs > a { align-items: center; height: 58px; padding: 0 6px 6px 18px; font-size: var(--tab-size, 14px); font-weight: 700; letter-spacing: 0.05em; color: var(--blue); transition: color .2s, letter-spacing .25s; animation: tune-in .45s ease-out both; }
#tabs > a:hover, #tabs > a:focus-visible { color: var(--text); letter-spacing: 0.09em; }
#tabs > a[aria-current="page"] { color: var(--yellow); }
#tabs > a[aria-current="page"]::before { height: 58px; }
#tabs .count { font-weight: 400; letter-spacing: 0.04em; }
#tabs .dial-end { align-self: center; padding: 0 0 6px 16px; }
#tabs.tight .dial-end { display: none; }
#tabs.fitting > a { transition: none; }
#tabs.tight > a { padding-left: 14px; padding-right: 4px; }

/* The dial scrolls sideways and clips anything outside it, so focus is drawn inside the item. */
.dial > a:focus-visible { outline-offset: -3px; }
/* More to the right on a narrow screen: the edge fades (dial.js sets .has-more while there is). */
.dial.has-more { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }

/* Page titles ------------------------------------------------------------------ */
.page { padding-top: 36px; padding-bottom: 120px; }
.eyebrow { margin: 0; font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--yellow); }
h1.title { margin: 2px 0 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 0.92; letter-spacing: 0.01em; font-size: clamp(40px, 7vw, 88px); color: var(--yellow); }
h1.title.big { font-size: clamp(64px, 14vw, 170px); }
.lede { margin: 10px 0 0; max-width: var(--measure); font-size: 18px; line-height: 1.5; color: var(--muted); }
h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 20px; color: var(--pink-small); margin: 32px 0 8px; }
h3 { font-size: 17px; font-weight: 700; margin: 18px 0 4px; }
p, li { max-width: var(--measure); }
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 0.92; letter-spacing: 0.01em; }
.muted { color: var(--muted); }

/* Buttons and cards ---------------------------------------------------------------- */
.btn, button.primary, button.secondary, button.approve, button.reject, button.answer {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px;
  border-radius: 6px; border: 1px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn, button.primary, button.approve, button.answer { background: var(--pink-small); color: var(--bg); }
.btn.yellow { background: var(--yellow); color: var(--bg); }
.btn.blue { background: var(--blue); color: var(--bg); }
.btn.ghost, button.secondary, button.reject { background: transparent; color: var(--text); border-color: var(--line); }
.btn:hover, button.primary:hover { filter: brightness(1.1); }
button[disabled] { opacity: .55; cursor: wait; }
button.link { background: none; border: 0; color: var(--blue); text-decoration: underline; padding: 4px; font: inherit; cursor: pointer; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.kind { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; align-items: center; }
.fine { color: var(--muted); font-size: 14px; margin-top: 28px; }

/* The footer (Carlos, 2026-10-30, concept A "Liner notes"): the one light block on a dark site,
   under every framed page. Written from partials/footer.html by tools/frame.mjs, like the frame.
   Paper ground, Punk Black type; links are Punk Black with a magenta underline (magenta and blue
   text fail contrast on Paper), Sunbeam behind them on hover. */
.site-foot { position: relative; overflow: hidden; margin-top: 64px; background: var(--text); color: var(--bg); border-top: 2px solid var(--pink); }
/* A buffer between the page and the footer (Carlos, 2026-10-30); main.page already ends in 120px of padding. */
main.page + .site-foot { margin-top: 0; }
.site-foot::before { content: ""; position: absolute; right: 0; bottom: 0; width: 640px; max-width: 100%; height: 420px; background-image: radial-gradient(var(--line) 1.6px, transparent 2px); background-size: 14px 14px; opacity: 0.16; -webkit-mask-image: linear-gradient(135deg, transparent 20%, #000 90%); mask-image: linear-gradient(135deg, transparent 20%, #000 90%); pointer-events: none; }
.foot-grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 56px; padding-top: 56px; padding-bottom: 48px; }
.foot-col { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; min-width: 0; }
.foot-col p, .foot-col ul { margin: 0; }
.foot-head { align-self: stretch; font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; padding-bottom: 10px; border-bottom: 2px solid var(--bg); }
.foot-updated { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--line); }
.foot-note { font-weight: 300; font-size: 17px; line-height: 1.5; max-width: 34ch; }
.foot-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 19px; font-weight: 300; line-height: 1.35; }
.foot-links a { font-weight: 700; }
.foot-links.foot-big { gap: 10px; margin-top: 8px; font-size: 22px; font-weight: 500; line-height: 1.3; }
.foot-links.foot-big a { font-weight: 500; }
.site-foot a { color: var(--bg); text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.site-foot a:hover { background: var(--yellow); text-decoration-color: var(--bg); }
.site-foot :focus-visible { outline-color: var(--bg); }
.foot-logo { display: block; align-self: stretch; text-decoration: none; margin-top: 6px; }
.site-foot a.foot-logo:hover, .site-foot a.foot-tricity:hover { background: none; }
.foot-logo img { display: block; width: 100%; max-width: 360px; height: auto; }
.foot-call { font-family: var(--mono); font-size: 14px; letter-spacing: 0.12em; }
.foot-credits > p:not(.foot-head):not(.foot-call) { font-size: 16px; font-weight: 300; }
.site-foot a.foot-tricity { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 8px; text-decoration: none; }
.foot-tricity img { display: block; width: 150px; height: auto; }
.foot-tricity span { font-size: 15px; font-weight: 300; line-height: 1.35; }
.foot-tricity b { white-space: nowrap; font-weight: 700; text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.site-foot a.foot-tricity:hover b { background: var(--yellow); }
/* The home page's short footer (partials/footer-home.html, Carlos 2026-10-31): the station line, then Tri City Collective. */
/* The splash above it was laid out on browser defaults: keep those so linking this file moves nothing. */
body[data-footer="home"] { font-weight: 400; line-height: normal; }
body[data-footer="home"] .site-foot { margin-top: 0; }
.foot-grid.foot-home { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.foot-home .foot-note { font-size: 22px; font-weight: 500; line-height: 1.35; max-width: 30ch; }
/* Tri City at the right edge, its line to the left of the logo (Carlos, 2026-10-31): the logo sits as far from the right as the station line does from the left. */
.foot-grid.foot-home { align-items: center; }
.foot-home .foot-credits { align-items: flex-end; }
.foot-home a.foot-tricity { flex-direction: row-reverse; align-items: center; gap: 18px; margin-top: 0; text-align: right; }
@media (max-width: 860px) {
  .foot-grid, .foot-grid.foot-home { grid-template-columns: minmax(0, 1fr); padding-top: 40px; }
  .foot-links.foot-big { font-size: 20px; }
}

/* Status lines (forms and the review page) ------------------------------------------- */
.status { position: fixed; left: 16px; right: 16px; bottom: 16px; margin: 0 auto; max-width: 40rem; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 8px; font-weight: 600; z-index: 5; }
.status:empty { display: none; }
.status.err { background: #ff8a8a; bottom: 64px; }

@media (pointer: coarse) { .btn, button, .site-top .site-link, .site-top .signin { min-height: 44px; } }
@media (max-width: 560px) {
  /* Two lines on a phone (issue #98): logo and Submit a show, then Get listed and Sign in. */
  .site-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; padding-top: 10px; }
  .site-top .site-logo { margin: 0; min-width: 0; }
  .site-top .site-logo img { height: auto; max-height: 26px; max-width: 100%; }
  .site-top .sticker { grid-column: 2; grid-row: 1; min-height: 44px; padding: 0 12px; white-space: nowrap; }
  .site-top > .site-link { grid-column: 1; grid-row: 2; justify-self: start; min-height: 36px; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; }
  .site-top > .signin { grid-column: 2; grid-row: 2; justify-self: end; min-height: 36px; }
  /* Signed in: the person's own links, in a row. */
  body.signed-in .site-top { display: flex; flex-wrap: wrap; gap: 0 14px; }
  body.signed-in .site-top .site-logo { flex: 1 0 100%; }
  body.signed-in .site-top .site-link, body.signed-in .site-top .signin, body.signed-in .site-top .site-who { min-height: 36px; font-size: 12px; }
  .dial { margin-top: 4px; }
  #tuner { height: 72px; }
  #tuner > a, #tuner > .soon { height: 72px; padding-top: 10px; }
  #tuner > a[aria-current="page"]::before { height: 74px; }
  .dial > a, .dial > .soon { padding: 8px 20px 0 14px; }
  #tuner > a, #tuner > .soon { padding: 13px 10px 0 18px; }
  #tuner b { font-size: 15px; letter-spacing: 0.06em; }
  #tuner small { font-size: 10px; letter-spacing: 0; }
  h1.title { font-size: clamp(40px, 13vw, 64px); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } #tuner b, #tuner small, #tabs > a { animation: none; } }
