/* board.qrqto.com — Claude / Anthropic editorial (claude-ui skill)
   Atmosphere: book on a desk · paper not glass · warmth-as-trust */

:root {
  --bg: #f5f4ed;
  --card: #faf9f5;
  --border: #f0eee6;
  --divider: #e8e6dc;
  --ring: #d1cfc5;
  --fg: #141413;
  --muted: #5e5d59;
  --tertiary: #87867f;
  --primary: #c96442;
  --accent: #d97757;
  --ok: #788C5D;
  --ok-soft: rgba(120, 140, 93, 0.12);
  --warn: #C48A3A;
  --warn-soft: rgba(196, 138, 58, 0.14);
  --bad: #b53333;
  --bad-soft: rgba(181, 51, 51, 0.1);
  --focus: #3898ec;
  --dark: #141413;
  --dark-2: #30302e;
  --dark-text: #faf9f5;
  --dark-muted: #b0aea5;
  --radius: 12px;
  --radius-sm: 8px;
  --font-serif: "Source Serif 4", Georgia, "Noto Serif SC", "Songti SC", serif;
  --font-sans: "Source Sans 3", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --shadow: 0 1px 2px rgba(20, 20, 19, 0.04);
  --shadow-card: 0 0 0 1px var(--ring), 0 1px 2px rgba(20, 20, 19, 0.03);
  --max: 1080px;
  --measure: 68ch;
  --nav-h: 64px;
  --ease: 180ms ease;
  --section-gap: clamp(48px, 6vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  overflow-x: hidden;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .serif {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg);
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.mono { font-family: var(--font-mono); font-size: 0.82em; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.faint { color: var(--tertiary); }

/* —— top nav (Claude quiet) —— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 clamp(20px, 4vw, 40px);
  background: rgba(245, 244, 237, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--divider);
}
.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  text-decoration: none;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.05rem;
  white-space: nowrap;
}
.site-nav .brand:hover { text-decoration: none; color: var(--fg); }
.brand-mark {
  width: 18px; height: 18px; border-radius: 5px;
  background: var(--primary);
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  color: var(--muted);
  padding: 8px 12px;
  font-size: 0.92rem;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  border-radius: 0;
  transition: color var(--ease), border-color var(--ease);
}
.nav-links a:hover {
  color: var(--fg);
  text-decoration: none;
  border-bottom-color: var(--ring);
  background: transparent;
}
.nav-links a.active {
  color: var(--fg);
  background: transparent;
  border-bottom-color: var(--primary);
  box-shadow: none;
}
.nav-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--tertiary);
  font-size: 0.8rem;
  white-space: nowrap;
}
.nav-meta .tz { font-family: var(--font-mono); font-size: 0.75rem; }

/* —— layout —— */
.wrap {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 40px 0 88px;
}
@media (max-width: 640px) {
  .wrap { width: min(100% - 28px, var(--max)); padding-top: 28px; }
}

.page-head, .hero {
  margin-bottom: var(--section-gap);
  max-width: var(--measure);
}
.page-head {
  display: block;
}
.page-head h1, .hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 2.75rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.page-head .lede, .hero .lede {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
  max-width: var(--measure);
}
.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--primary);
  text-transform: none;
}
.page-meta {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--tertiary);
}

/* —— chapter / section —— */
.chapter {
  margin-bottom: var(--section-gap);
}
.chapter-title {
  margin: 0 0 20px;
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 500;
}
.chapter-sub {
  margin: -8px 0 24px;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: var(--measure);
}

/* dark chapter band */
.band-dark {
  background: var(--dark);
  color: var(--dark-text);
  margin: var(--section-gap) calc(50% - 50vw);
  padding: 48px max(20px, calc(50vw - var(--max) / 2)) 56px;
}
.band-dark h2, .band-dark .chapter-title {
  color: var(--dark-text);
  margin: 0 0 12px;
}
.band-dark .chapter-sub,
.band-dark .muted { color: var(--dark-muted); }
.band-dark .panel,
.band-dark .health-tile {
  background: var(--dark-2);
  box-shadow: 0 0 0 1px #3a3a37;
}
.band-dark table.data th {
  background: transparent;
  color: var(--dark-muted);
  border-bottom-color: #3a3a37;
}
.band-dark table.data td {
  border-bottom-color: #3a3a37;
  color: var(--dark-text);
}
.band-dark table.data .host-cell,
.band-dark table.data .muted { color: var(--dark-muted); }
.band-dark .chip-ok {
  color: #a8bf7a;
  background: rgba(120, 140, 93, 0.2);
  border-color: rgba(168, 191, 122, 0.3);
}
.band-dark .chip-warn {
  color: #e0b16a;
  background: rgba(196, 138, 58, 0.2);
  border-color: rgba(224, 177, 106, 0.3);
}

/* —— panels / cards —— */
.panel {
  background: var(--card);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.panel-pad { padding: 24px 28px; }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--divider);
}
.panel-head h2, .panel-head h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .site-nav { padding: 0 16px; gap: 12px; }
}

/* —— status chips / soft pills —— */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.55;
  border: 1px solid transparent;
  font-family: var(--font-sans);
}
.chip::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.chip-ok { color: var(--ok); background: var(--ok-soft); border-color: rgba(120, 140, 93, 0.28); }
.chip-warn { color: var(--warn); background: var(--warn-soft); border-color: rgba(196, 138, 58, 0.3); }
.chip-bad { color: var(--bad); background: var(--bad-soft); border-color: rgba(181, 51, 51, 0.25); }
.chip-info { color: var(--primary); background: rgba(201, 100, 66, 0.1); border-color: rgba(201, 100, 66, 0.22); }
.chip-muted { color: var(--muted); background: rgba(94, 93, 89, 0.08); border-color: var(--divider); }
.chip-muted::before { background: var(--tertiary); }

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: var(--font-sans);
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--divider);
}

/* —— domain / summary cards (home) —— */
.summary-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: var(--section-gap);
}
@media (max-width: 980px) {
  .summary-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .summary-strip { grid-template-columns: 1fr; }
}
.summary-card {
  display: block;
  padding: 22px 22px 20px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  color: inherit;
  text-decoration: none;
  transition: box-shadow var(--ease), transform var(--ease);
}
.summary-card:hover {
  text-decoration: none;
  box-shadow: 0 0 0 1px var(--primary), 0 4px 12px rgba(20, 20, 19, 0.05);
  transform: translateY(-1px);
}
.summary-card .label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.summary-card .value {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  color: var(--fg);
}
.summary-card .hint {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--tertiary);
  line-height: 1.45;
}
.summary-card .arrow {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--primary);
}

/* —— priority list —— */
.prio-list { list-style: none; margin: 0; padding: 8px 0; }
.prio-list li {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 18px 28px;
  border-bottom: 1px solid var(--divider);
}
.prio-list li:last-child { border-bottom: 0; }
.prio-num {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--primary);
  padding-top: 2px;
}
.prio-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.prio-desc { margin-top: 4px; color: var(--muted); font-size: 0.95rem; }
.prio-list a {
  font-size: 0.88rem;
  align-self: center;
  white-space: nowrap;
}

/* —— news waterfall —— */
.ticker {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  margin-bottom: 28px;
  background: var(--card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.ticker-label {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.04em;
}
.ticker-track {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-inner {
  display: inline-flex;
  gap: 32px;
  white-space: nowrap;
  animation: ticker 48s linear infinite;
}
.ticker:hover .ticker-inner,
.ticker:focus-within .ticker-inner,
.ticker.is-paused .ticker-inner { animation-play-state: paused; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-item { color: var(--muted); font-size: 0.92rem; }
.ticker-item strong { color: var(--fg); font-weight: 500; }

.waterfall {
  column-count: 3;
  column-gap: 22px;
}
@media (max-width: 980px) { .waterfall { column-count: 2; } }
@media (max-width: 640px) { .waterfall { column-count: 1; } }

.news-card {
  break-inside: avoid;
  margin-bottom: 22px;
  padding: 24px 24px 22px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--ease);
}
.news-card:hover {
  box-shadow: 0 0 0 1px var(--ring), 0 4px 16px rgba(20, 20, 19, 0.05);
}
.news-card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.35;
}
.news-card .summary {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: var(--measure);
}
.news-card .use {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--bg);
  border-left: 2px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  color: var(--fg);
  line-height: 1.55;
}
.news-card .use strong { color: var(--primary); font-weight: 500; }
.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--divider);
  font-size: 0.82rem;
  color: var(--tertiary);
}

/* —— overheard —— */
.oh-section { margin-bottom: 28px; }
.oh-item {
  padding: 22px 28px;
  border-bottom: 1px solid var(--divider);
}
.oh-item:last-child { border-bottom: 0; }
.oh-item-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 8px;
}
.oh-item h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
  flex: 1;
  min-width: 200px;
  line-height: 1.35;
}
.oh-claim { color: var(--muted); font-size: 0.98rem; line-height: 1.65; max-width: var(--measure); }
.oh-sources { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 12px; font-size: 0.88rem; }
.judge-box {
  padding: 28px 32px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--section-gap);
  border-left: 3px solid var(--primary);
}
.judge-box h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 500;
}
.judge-box p { max-width: var(--measure); }
.judge-box ul {
  margin: 14px 0 0;
  padding-left: 1.25em;
  color: var(--muted);
  font-size: 0.95rem;
}
.judge-box li { margin-bottom: 6px; }

/* —— health —— */
.health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.health-tile {
  padding: 18px 18px 16px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.health-tile::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--tertiary);
}
.health-tile.is-ok::after { background: var(--ok); }
.health-tile.is-warn::after { background: var(--warn); }
.health-tile.is-bad::after { background: var(--bad); }
.health-tile .name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 4px;
}
.health-tile .host {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--tertiary);
  word-break: break-all;
}
.spark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
  margin-top: 14px;
}
.spark span {
  flex: 1;
  background: var(--divider);
  border-radius: 2px 2px 0 0;
  min-height: 3px;
  opacity: 0.9;
}
.health-tile.is-ok .spark span { background: var(--ok); opacity: 0.45; }
.health-tile.is-ok .spark span:nth-child(odd) { opacity: 0.75; }
.health-tile.is-warn .spark span { background: var(--warn); opacity: 0.5; }
.health-tile.is-bad .spark span { background: var(--bad); opacity: 0.5; }

.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.status-dot.ok { background: var(--ok); }
.status-dot.warn { background: var(--warn); }
.status-dot.bad { background: var(--bad); }

.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
table.data th, table.data td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--divider);
  vertical-align: top;
}
table.data th {
  color: var(--tertiary);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  background: var(--bg);
  font-family: var(--font-sans);
  text-transform: none;
}
table.data tr:hover td { background: rgba(20, 20, 19, 0.015); }
table.data .host-cell {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

/* —— markets —— */
.market-card {
  padding: 18px 24px;
  border-bottom: 1px solid var(--divider);
}
.market-card:last-child { border-bottom: 0; }
.market-card .title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: 8px;
  line-height: 1.35;
}
.market-card .meta {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  font-size: 0.85rem; color: var(--tertiary);
}
.prob {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--primary);
  font-weight: 500;
}
.delta-up { color: var(--ok); }
.delta-down { color: var(--bad); }
.comment-box {
  margin-top: 8px;
  padding: 18px 22px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--divider);
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: var(--measure);
}

/* —— projects —— */
.proj-group {
  margin-bottom: var(--section-gap);
}
.proj-group > h2 {
  margin: 0 0 18px;
  font-size: clamp(1.35rem, 2.2vw, 1.6rem);
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.proj-card {
  padding: 22px 24px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
}
.proj-card-top {
  display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center;
  margin-bottom: 8px;
}
.proj-card h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 500;
  flex: 1;
  min-width: 140px;
}
.proj-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: var(--measure);
  line-height: 1.65;
}
.proj-tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.report-block {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 800px) { .report-block { grid-template-columns: 1fr; } }
.report-col {
  padding: 18px 18px;
  background: var(--bg);
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
}
.report-col h4 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.01em;
  text-transform: none;
}
.report-col ul {
  margin: 0;
  padding-left: 1.15em;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.report-col li { margin-bottom: 6px; }

/* —— filters / toolbar —— */
.toolbar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-bottom: 22px;
}
.toolbar input[type="search"],
.toolbar select {
  background: var(--card);
  border: 1px solid var(--ring);
  color: var(--fg);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font: inherit;
  font-size: 0.92rem;
  min-width: 180px;
  box-shadow: var(--shadow);
}
.toolbar button {
  background: var(--card);
  border: 1px solid var(--ring);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 14px;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}
.toolbar button:hover { color: var(--fg); border-color: var(--tertiary); }
.toolbar button.is-on {
  color: var(--primary);
  background: rgba(201, 100, 66, 0.1);
  border-color: rgba(201, 100, 66, 0.35);
}

/* —— footer —— */
.footnote {
  margin-top: var(--section-gap);
  padding-top: 24px;
  border-top: 1px solid var(--divider);
  font-size: 0.85rem;
  color: var(--tertiary);
  line-height: 1.6;
  max-width: var(--measure);
}
.stack-gap { display: flex; flex-direction: column; gap: 24px; }
.hidden { display: none !important; }

/* outline list (home routines etc.) */
.plain-list {
  margin: 0;
  padding: 8px 28px 24px 44px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}
.plain-list li { margin-bottom: 6px; }
