/* museboard. Palette sampled from the brand art: cream, lime, gold. */
:root {
  --bg: #fef5e7;
  --surface: #fffbf4;
  --surface-2: #f8eedd;
  --border: #eee2cc;
  --border-strong: #e0d0b2;
  --text: #26282b;
  --muted: #776f60;
  --faint: #a89f8d;
  --lime: #c3f53c;
  --lime-soft: rgba(195, 245, 60, 0.28);
  --lime-ink: #6f9c0e;
  --gold: #d9a520;
  --silver: #a3a9b3;
  --bronze: #c07a45;
  --shadow: 0 1px 2px rgba(38, 40, 43, 0.04), 0 10px 30px rgba(120, 96, 50, 0.08);
  --round: "Fredoka", "Nunito", system-ui, sans-serif;
  --sans: "Nunito", system-ui, sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1a17;
    --surface: #24231f;
    --surface-2: #2d2b26;
    --border: #36342e;
    --border-strong: #48453d;
    --text: #f4eee2;
    --muted: #b1a894;
    --faint: #7f7867;
    --lime-soft: rgba(195, 245, 60, 0.14);
    --lime-ink: #c3f53c;
    --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1b1a17;
  --surface: #24231f;
  --surface-2: #2d2b26;
  --border: #36342e;
  --border-strong: #48453d;
  --text: #f4eee2;
  --muted: #b1a894;
  --faint: #7f7867;
  --lime-soft: rgba(195, 245, 60, 0.14);
  --lime-ink: #c3f53c;
  --shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 15px/1.5 var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }
img { display: block; }
button { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.page { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 24px 20px 64px; outline: none; }

/* ---------------------------------------------------------------- header */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.top-inner { max-width: 1120px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 9px; }
.wordmark { font: 600 24px/1 var(--round); letter-spacing: -0.02em; }
.wordmark b { font-weight: 600; color: var(--lime-ink); }
.nav { display: flex; gap: 2px; }
.nav a {
  text-decoration: none;
  font-weight: 700;
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); background: var(--lime-soft); }

.search { position: relative; margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 38px; width: 220px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--faint); }
.search:focus-within { border-color: var(--border-strong); }
.search input { border: 0; outline: 0; background: none; font: inherit; color: var(--text); width: 100%; }
.search input::placeholder { color: var(--faint); }
.search-results { position: absolute; top: 44px; right: 0; width: 300px; max-height: 360px; overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 6px; color: var(--text); }
.search-results a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.search-results a:hover, .search-results a:focus { background: var(--surface-2); outline: 0; }
.search-results .empty { padding: 10px; color: var(--muted); }

.live { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13px; color: var(--muted); white-space: nowrap; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px transparent; } }

/* ---------------------------------------------------------------- hero */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; letter-spacing: 0.02em; color: var(--lime-ink); background: var(--lime-soft); padding: 5px 12px; border-radius: 999px; }
.hero h1 { font: 600 clamp(38px, 5.4vw, 60px)/1.02 var(--round); letter-spacing: -0.025em; margin: 16px 0 14px; text-wrap: balance; }
.hero p { font-size: 18px; color: var(--muted); margin: 0; max-width: 34em; text-wrap: pretty; }
.hero-art {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 75% 72% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 72% at 50% 50%, #000 62%, transparent 100%);
}
:root[data-theme="dark"] .hero-art { mix-blend-mode: normal; border-radius: 24px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-art { mix-blend-mode: normal; border-radius: 24px; } }
.stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 26px; }
.stat b { display: block; font: 600 28px/1.1 var(--round); letter-spacing: -0.01em; }
.stat span { font-size: 13px; font-weight: 700; color: var(--muted); }

/* ---------------------------------------------------------------- podium */

.podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; align-items: end; gap: 14px; margin: 30px 0 34px; }
.step {
  position: relative;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px 16px 18px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), border-color 0.2s;
}
.step:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.step .avatar { margin: 0 auto 12px; }
.step-1 { padding-top: 30px; background: linear-gradient(180deg, var(--lime-soft), var(--surface) 60%); }
.medal { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 15px/1 var(--round); color: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12); }
.medal-1 { background: var(--gold); }
.medal-2 { background: var(--silver); }
.medal-3 { background: var(--bronze); }
.step-name { font: 600 20px/1.2 var(--round); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step-1 .step-name { font-size: 24px; }
.step-score { margin-top: 4px; font-weight: 800; color: var(--muted); font-size: 14px; }
.step-score b { color: var(--text); font: 600 18px var(--round); }

/* ---------------------------------------------------------------- controls */

.controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tabs, .seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 999px; }
.tabs button, .seg button { border: 0; background: none; cursor: pointer; font-weight: 800; font-size: 14px; color: var(--muted); padding: 7px 14px; border-radius: 999px; transition: background 0.15s, color 0.15s; }
.tabs button:hover, .seg button:hover { color: var(--text); }
.tabs button[aria-pressed="true"], .seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(38, 40, 43, 0.08); }

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

.board { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) repeat(4, 74px) 84px 86px;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  text-decoration: none;
}
.row:first-child { border-top: 0; }
a.row { transition: background 0.15s; }
a.row:hover { background: var(--surface-2); }
.row-head { font-size: 12px; font-weight: 800; color: var(--faint); letter-spacing: 0.04em; padding-top: 14px; padding-bottom: 10px; }
.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--muted); }
.rank { font: 600 18px var(--round); color: var(--faint); text-align: center; }
.rank-1 { color: var(--gold); }
.rank-2 { color: var(--silver); }
.rank-3 { color: var(--bronze); }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who-text { display: block; flex: 1; min-width: 0; }
.who-name { display: flex; align-items: center; gap: 6px; font: 600 16px/1.25 var(--round); }
.who-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-bio { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score { text-align: right; font: 600 20px var(--round); font-variant-numeric: tabular-nums; }
.mini { display: none; }
.badge { font-size: 12px; line-height: 1; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-weight: 800; font-size: 13px; padding: 7px 14px; border-radius: 999px; cursor: pointer; text-decoration: none; transition: transform 0.15s var(--ease), background 0.15s; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--lime); border-color: transparent; color: #1f2a07; }
.btn-primary:hover { background: #b6ea2b; }
.btn-lg { font-size: 15px; padding: 11px 22px; }

/* avatars: image with a colored initial behind it for broken or missing images */
.avatar { position: relative; flex: none; border-radius: 30%; overflow: hidden; display: grid; place-items: center; font: 600 1em var(--round); color: #fff; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- profile */

.back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 800; color: var(--muted); margin-bottom: 16px; }
.back:hover { color: var(--text); }
.profile { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); padding: 24px; }
.card + .card { margin-top: 20px; }
.card h2 { font: 600 20px var(--round); margin: 0 0 14px; }
.p-head { display: flex; gap: 20px; align-items: center; }
.p-head h1 { font: 600 34px/1.1 var(--round); letter-spacing: -0.02em; margin: 0 0 4px; overflow-wrap: anywhere; }
.p-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-weight: 700; font-size: 14px; color: var(--muted); }
.p-meta a { color: var(--muted); }
.p-meta a:hover { color: var(--text); }
.p-bio { margin: 16px 0 0; font-size: 16px; }
.p-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { background: var(--surface-2); border-radius: 16px; padding: 12px 14px; }
.tile b { display: block; font: 600 24px/1.15 var(--round); }
.tile span { font-size: 12px; font-weight: 800; color: var(--muted); }
.ranks { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); color: var(--muted); text-decoration: none; }
.chip b { color: var(--text); }
.chip-lime { background: var(--lime-soft); color: var(--lime-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.money { display: flex; gap: 12px; align-items: flex-start; background: var(--lime-soft); border-radius: 18px; padding: 14px 16px; margin-top: 18px; }
.money b { font-family: var(--round); font-weight: 600; }

/* posts */
.post { padding: 16px 0; border-top: 1px solid var(--border); }
.post:first-of-type { border-top: 0; padding-top: 4px; }
.post-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; font-weight: 700; color: var(--faint); margin-bottom: 6px; }
.post-head .who-name { font-size: 15px; color: var(--text); }
.post-head a { color: var(--faint); text-decoration: none; }
.post-head a:hover { color: var(--text); }
.post-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.post-text.open { display: block; }
.post-text a { color: var(--lime-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.more { border: 0; background: none; padding: 0; margin-top: 4px; font-weight: 800; font-size: 13px; color: var(--muted); cursor: pointer; }
.post-foot { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.tag-receipt { color: var(--lime-ink); }

/* ---------------------------------------------------------------- receipts + about */

.page-head { margin: 8px 0 24px; }
.page-head h1 { font: 600 clamp(32px, 4.4vw, 46px)/1.05 var(--round); letter-spacing: -0.02em; margin: 0 0 8px; }
.page-head p { margin: 0; color: var(--muted); font-size: 17px; max-width: 40em; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.mrow { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--border); }
.mrow:first-of-type { border-top: 0; padding-top: 0; }
.mrow .amt { font: 600 17px var(--round); white-space: nowrap; }
.mrow .note { font-size: 13px; color: var(--muted); margin-top: 2px; }
.mrow a { text-decoration: none; }
.mrow a:hover { text-decoration: underline; }
.prose { max-width: 720px; }
.prose p, .prose li { font-size: 16px; }
.prose h2 { font: 600 22px var(--round); margin: 28px 0 10px; }
.weights { width: 100%; border-collapse: collapse; font-size: 15px; }
.weights td { padding: 10px 0; border-top: 1px solid var(--border); }
.weights td:last-child { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
code { font: 600 13px ui-monospace, monospace; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }

/* ---------------------------------------------------------------- hire */

.p-headline { font-weight: 700; font-size: 15px; margin: 2px 0 6px; }
.claimed { color: var(--lime-ink); }
.svcs { display: grid; gap: 12px; }
.svc { border: 1px solid var(--border); border-radius: 18px; padding: 14px 16px; background: var(--bg); }
.svc-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.svc-top b { font: 600 17px var(--round); }
.svc-price { font: 600 17px var(--round); color: var(--lime-ink); white-space: nowrap; }
.svc p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.svc-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--faint); }

.prompt { display: flex; gap: 10px; align-items: flex-start; background: var(--surface-2); border-radius: 14px; padding: 12px; margin: 12px 0; text-align: left; }
.prompt code { flex: 1; background: none; padding: 0; font: 600 13px/1.5 ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
.copy { flex: none; }
.steps { margin: 12px 0 0; padding-left: 20px; text-align: left; font-size: 14px; }
.steps li { margin: 6px 0; }
.claim-card { background: linear-gradient(180deg, var(--lime-soft), var(--surface) 70%); }

.job, .hireable { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--border); text-decoration: none; }
.job:first-child, .hireable:first-child { border-top: 0; padding-top: 0; }
.job:hover b, .hireable:hover b { text-decoration: underline; text-underline-offset: 2px; }
.job-main { min-width: 0; display: block; }
.job-main b { display: block; font: 600 15px/1.3 var(--round); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-main span { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 13px; white-space: nowrap; }
.job-side b { font: 600 15px var(--round); }
.jobs-mini { margin-top: 16px; }
.status { display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.status-released, .status-resolved { background: var(--lime-soft); color: var(--lime-ink); }
.status-accepted, .status-delivered { background: rgba(224, 168, 46, 0.18); color: #a77a10; }
.status-refunded, .status-disputed { background: rgba(217, 122, 155, 0.18); color: #b04a70; }
.job-title { display: flex; gap: 10px; align-items: center; }
.job-h1 { font: 600 30px/1.15 var(--round); letter-spacing: -0.02em; margin: 12px 0 0; overflow-wrap: anywhere; }
#hire-body { text-align: left; }
#hire-body > p { text-align: center; }

/* ---------------------------------------------------------------- misc */

.skel { background: linear-gradient(90deg, var(--surface-2), var(--border), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty-state img { margin: 0 auto 14px; border-radius: 18px; }
.note-line { font-size: 13px; color: var(--faint); font-weight: 700; margin-top: 12px; }

.modal { border: 0; padding: 0; border-radius: 28px; background: var(--surface); color: var(--text); max-width: 420px; width: calc(100% - 32px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25); }
.modal::backdrop { background: rgba(38, 32, 20, 0.35); backdrop-filter: blur(3px); }
.modal form { padding: 28px; text-align: center; }
.modal h2 { font: 600 26px/1.15 var(--round); margin: 14px 0 10px; }
.modal p { margin: 0 0 10px; font-size: 15px; }
.modal .btn { margin-top: 10px; }
.modal-art img { margin: 0 auto; border-radius: 16px; }
.modal[open] { animation: pop 0.25s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } }

.foot { border-top: 1px solid var(--border); }
.foot-inner { max-width: 1120px; margin: 0 auto; padding: 18px 20px 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 700; color: var(--faint); }
.foot a { color: var(--muted); }
.foot-links { display: flex; gap: 14px; }
.linkish { border: 0; background: none; padding: 0; cursor: pointer; color: var(--muted); font-weight: 700; font-size: 13px; text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 960px) {
  .row { grid-template-columns: 40px minmax(0, 1fr) repeat(2, 64px) 70px 76px; }
  .col-posts, .col-channels { display: none; }
  .profile { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .page { padding: 16px 16px 48px; }
  .top { position: static; }
  .top-inner { padding: 10px 16px; gap: 10px; flex-wrap: wrap; }
  .wordmark { font-size: 21px; }
  .live { margin-left: auto; }
  .nav { order: 3; width: 100%; }
  .search { order: 4; width: 100%; margin-left: 0; }
  .search-results { left: 0; width: auto; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; margin: 0 auto; }
  .stats { gap: 20px; }
  .podium { gap: 8px; }
  .step { padding: 18px 8px 14px; border-radius: 18px; }
  .step-name, .step-1 .step-name { font-size: 16px; }
  .row { grid-template-columns: 30px minmax(0, 1fr) auto; padding: 12px 14px; }
  .row .num, .row-head { display: none; }
  .row .hire { display: none; }
  .mini { display: block; font-size: 12px; font-weight: 700; color: var(--faint); }
  .who-bio { display: none; }
  .tabs { overflow-x: auto; max-width: 100%; }
  .two { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .p-head { align-items: flex-start; }
  .p-head h1 { font-size: 28px; }
}
