:root {
  --bg: #f5f5f7;
  --panel: rgba(255, 255, 255, 0.72);
  --card: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.09);
  --accent: #0a84ff;
  --accent-soft: rgba(10, 132, 255, 0.12);
  --green: #30b158;
  --orange: #ff9f0a;
  --gray: #8e8e93;
  --purple: #af52de;
  --teal: #30b0c7;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 4px 14px rgba(0, 0, 0, 0.04);
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

/* Header / toolbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 245, 247, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand::before {
  content: "";
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(160deg, #5ac8fa, var(--accent));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.brand span { color: var(--muted); font-weight: 500; }
.site-header nav a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-header nav a:hover { text-decoration: underline; }

/* App layout: sidebar + board */
.app {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 76px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 10px;
}
.sidebar h2 {
  margin: 4px 12px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}
.sidebar a:hover { background: rgba(0, 0, 0, 0.05); }
.sidebar a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.sidebar svg { width: 18px; height: 18px; flex-shrink: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin: 0 4px; }
.dot.green { background: var(--green); }
.dot.orange { background: var(--orange); }
.dot.gray { background: var(--gray); }
.dot.purple { background: var(--purple); }
.dot.blue { background: var(--accent); }
.dot.teal { background: var(--teal); }
.sidebar .divider { height: 1px; background: var(--line); margin: 8px 12px; }

/* Board header */
.board-head { margin: 4px 4px 18px; }
.board-head h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.board-head p { margin: 6px 0 0; color: var(--muted); max-width: 40em; }

/* Kanban */
.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.column {
  background: rgba(0, 0, 0, 0.035);
  border-radius: var(--radius);
  padding: 12px;
  scroll-margin-top: 80px;
}
.column-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 4px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.column-head h2 { margin: 0; font-size: inherit; font-weight: inherit; }

/* Extra sections under the board */
.extras {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.panel {
  background: rgba(0, 0, 0, 0.035);
  border-radius: var(--radius);
  padding: 12px;
  scroll-margin-top: 80px;
}
.panel .cards { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.panel .empty { grid-column: 1 / -1; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.card a {
  display: block;
  background: var(--card);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card a:hover,
.card a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 10px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--accent-soft);
  outline: none;
}
.card a:focus-visible { border-color: var(--accent); }
.card .name { display: block; font-weight: 600; letter-spacing: -0.01em; }
.card .desc { display: block; margin-top: 2px; color: var(--muted); font-size: 0.9rem; }
.card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--muted);
}
.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.card .path { font-variant-numeric: tabular-nums; }

.empty {
  border: 1.5px dashed rgba(0, 0, 0, 0.14);
  border-radius: 12px;
  padding: 22px 14px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Shared by the privacy page */
.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 0;
}
.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.hero p { margin: 0; color: var(--muted); }

main { max-width: 760px; margin: 0 auto; padding: 0 20px 48px; }
main.board-wrap { max-width: none; margin: 0; padding: 0; }

.site-footer {
  max-width: 1240px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 22px 20px 32px;
}
.site-footer p { margin: 2px 0; }
.site-footer a { color: var(--muted); }

/* Narrower laptops: two columns of the board */
@media (max-width: 1150px) {
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tablet: sidebar becomes a row of pills */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; gap: 14px; }
  .sidebar { position: static; padding: 8px; }
  .sidebar h2 { display: none; }
  .sidebar ul { display: flex; gap: 6px; overflow-x: auto; }
  .sidebar a { white-space: nowrap; padding: 7px 12px; }
  .board { grid-template-columns: 1fr; }
  .extras { grid-template-columns: 1fr; }
  .sidebar .divider { flex: 0 0 1px; height: auto; margin: 4px 2px; }
}
