/* Design Public Art — shared styles
 *
 * Tokens are lifted verbatim from the 2026 pages (index.html, dashboard.html,
 * community.html, app.html) so anything copied between them renders
 * identically. Where style-guide.md and the live pages disagreed, the live
 * pages won — they are what the program actually looks like.
 *
 * Served consumer: pb_public/index.html only. The /2026 archive keeps its own
 * inline styles. The archived cohort pages in onboarding/archive/cohort-2026/
 * still reference this file but are not shipped, which is why the table,
 * .pricebox and tr.is-* rules are kept rather than pruned.
 */

:root {
  --bg: hsl(250, 40%, 8%);
  --card: hsl(250, 35%, 12%);
  --primary: hsl(270, 80%, 60%);
  --primary-glow: hsl(270, 100%, 70%);
  --fire: hsl(25, 95%, 55%);
  --fire-glow: hsl(30, 100%, 65%);
  --muted: hsl(250, 30%, 20%);
  --muted-fg: hsl(260, 15%, 65%);
  --text: hsl(280, 20%, 96%);
  --border: hsl(250, 30%, 25%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

/* ---- layout ---- */

.container { max-width: 720px; margin: 0 auto; padding: 1.5rem; }
.container-wide { max-width: 900px; margin: 0 auto; padding: 1.5rem; }

section { margin-bottom: 2.5rem; }

/* ---- nav ---- */

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
  padding: 1.25rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.site-nav .brand {
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
}
.site-nav a {
  color: var(--muted-fg);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--fire); }
.site-nav a.current { color: var(--text); }

/* ---- type ---- */

h1 {
  font-size: clamp(2rem, 7vw, 3.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
h2 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}
h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fire);
  margin-bottom: 0.5rem;
}
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--primary-glow); }

.lede { font-size: 1.1rem; color: var(--text); opacity: 0.9; }
.muted { color: var(--muted-fg); }
.small { font-size: 0.85rem; }
strong { color: var(--fire); font-weight: 700; }

.label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-fg);
  margin-bottom: 0.75rem;
}

/* ---- components ---- */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.chip {
  display: inline-block;
  background: var(--muted);
  color: var(--fire);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3em 0.8em;
  border-radius: 4px;
}
.chip-quiet { background: var(--card); color: var(--muted-fg); }

.btn {
  display: inline-block;
  padding: 0.9rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  color: white;
  text-decoration: none;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--fire));
  transition: filter 0.2s;
}
.btn:hover { filter: brightness(1.15); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; filter: none; }
.btn-block { display: block; width: 100%; }

.btn-quiet {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-quiet:hover { border-color: var(--fire); filter: none; }

/* The price box. $40 and $450 must sit in one visual unit — someone who
 * only ever sees one of the two numbers has been anchored wrong. */
.pricebox {
  border: 1px solid var(--border);
  border-left: 3px solid var(--fire);
  border-radius: 0.5rem;
  padding: 0.9rem 1rem;
  background: var(--card);
  font-size: 0.9rem;
}
.pricebox .now { color: var(--text); font-weight: 600; }
.pricebox .later { color: var(--muted-fg); }

/* ---- wide content ---- */

.scroller { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.85rem; min-width: 460px; }
th, td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted-fg); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
tr.is-seminar td { background: hsla(270, 80%, 60%, 0.07); }
tr.is-free td:first-child { border-left: 3px solid var(--fire); }

/* ---- forms ---- */

.field { margin-bottom: 0.75rem; }
.field label { display: block; font-size: 0.8rem; color: var(--muted-fg); margin-bottom: 0.35rem; }
.input {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 0.5rem;
  border: 2px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 16px; /* 16px or iOS zooms the page on focus */
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.input:focus { border-color: var(--primary); }
.input::placeholder { color: var(--muted-fg); }

.choice { display: flex; gap: 0.5rem; }
.choice button {
  flex: 1;
  padding: 0.8rem 0.5rem;
  border-radius: 0.5rem;
  border: 2px solid var(--border);
  background: var(--card);
  color: var(--muted-fg);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.choice button.on { border-color: var(--fire); color: var(--text); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.error-msg { color: hsl(0, 80%, 65%); font-size: 0.85rem; margin-top: 0.5rem; }

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

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 3.5rem;
  padding: 1.5rem 0 3rem;
  font-size: 0.75rem;
  color: var(--muted-fg);
  line-height: 1.6;
}
.site-footer a { color: var(--muted-fg); }
.site-footer .territory { font-style: italic; margin-bottom: 0.75rem; }
.site-footer .licence { margin-bottom: 0.75rem; }

@media (max-width: 480px) {
  .container, .container-wide { padding: 1.25rem; }
  .choice { flex-direction: column; }
}

/* ---- series page ---- */

.masthead { padding: 2rem 0 1.5rem; }
.masthead h1 { margin-bottom: 1rem; }
.freeline { font-size: 1rem; margin-top: 0.75rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.thesis { border-left: 3px solid var(--primary); padding-left: 1.1rem; }
.thesis h2 { font-size: 1.15rem; }

/* Events are a stacked list, never a sideways-scrolling table. The venue and
 * address are the things a phone visitor most needs, and a horizontal scroll
 * would hide exactly those. */
.events { list-style: none; padding: 0; }
.event {
  display: flex; gap: 1.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.event:first-child { border-top: 1px solid var(--border); }
.event .when { flex: 0 0 8.5rem; display: flex; flex-direction: column; }
.event .when .d { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; }
.event .when .t { font-size: 0.8rem; color: var(--muted-fg); }
.event .what { flex: 1; min-width: 0; }
.event h3 { color: var(--text); font-size: 1rem; margin-bottom: 0.2rem; }
.event .venue { font-size: 0.85rem; color: var(--fire); margin-bottom: 0.3rem; }
.event .venue .addr { color: var(--muted-fg); }
.event .venue .addr-tbc { font-style: italic; opacity: 0.8; }
.event .speaker { font-size: 0.85rem; color: var(--muted-fg); margin-top: 0.3rem; }
.event.is-finale h3 { color: var(--fire); }

@media (max-width: 640px) {
  .event { flex-direction: column; gap: 0.35rem; }
  .event .when { flex-direction: row; gap: 0.6rem; align-items: baseline; }
}

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.75rem; margin-bottom: 0.75rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 0.5rem; display: block; }
.gallery figcaption { font-size: 0.72rem; color: var(--muted-fg); margin-top: 0.3rem; }

.signup { background: var(--card); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1.25rem; }
.signup-top { margin-bottom: 2.5rem; }
.signup-top label { display: block; font-size: 0.85rem; margin-bottom: 0.5rem; }
.inline-form { display: flex; gap: 0.5rem; }
.inline-form .input { flex: 1; min-width: 0; }
.inline-form .btn { white-space: nowrap; }
@media (max-width: 520px) { .inline-form { flex-direction: column; } }

.thanks p { margin-bottom: 0.4rem; }
.optional { border-top: 1px solid var(--border); margin-top: 1.25rem; padding-top: 0.9rem; }
.optional summary { font-size: 0.85rem; color: var(--muted-fg); cursor: pointer; }
.optional[open] summary { margin-bottom: 0.75rem; }
.privacy-line { font-size: 0.75rem; color: var(--muted-fg); margin-top: 0.9rem; line-height: 1.5; }

/* Visible focus everywhere — the default outline is invisible on this palette. */
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--fire-glow);
  outline-offset: 2px;
}

/* Venue thumbnails in the event list */
.event .thumb { flex: 0 0 132px; }
.event .thumb img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: 0.5rem; display: block;
}
.site-footer .credits { font-size: 0.7rem; opacity: 0.8; margin-bottom: 0.6rem; }

@media (max-width: 640px) {
  /* Stacked layout: the photo goes full width above the detail, so it reads as
   * a picture of the place rather than a decorative chip. */
  .event .thumb { flex: none; width: 100%; margin-bottom: 0.5rem; }
  .event .thumb img { aspect-ratio: 16/9; }
}
