:root {
  --ink: #182b2f;
  --muted: #6e7e7d;
  --paper: #f4f1e9;
  --card: #fffdf8;
  --line: #d9ddd4;
  --teal: #176b69;
  --orange: #e07b4d;
  --shadow: 0 12px 34px rgba(24, 43, 47, .08);
}

* { box-sizing: border-box; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.55 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
}
.topbar {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1440px;
  padding: 22px 40px;
}
.brand, .card-link, .back-row a, .month-nav a, .safe-links a {
  color: inherit;
  text-decoration: none;
}
.brand { align-items: center; display: flex; font-size: 17px; font-weight: 700; gap: 10px; letter-spacing: -.03em; }
.brand em { color: var(--teal); font-style: normal; }
.brand-mark { align-items: center; background: var(--teal); border-radius: 8px 8px 8px 2px; color: #fff; display: inline-flex; font-family: Georgia, serif; height: 30px; justify-content: center; width: 30px; }
.account { align-items: center; display: flex; gap: 20px; }
.account-name { color: var(--muted); font-size: 13px; }
.link-button { background: none; border: 0; color: var(--teal); cursor: pointer; font: inherit; padding: 0; }
main { margin: 0 auto; max-width: 1440px; padding: 62px 40px 80px; }
.page-intro { align-items: end; display: flex; justify-content: space-between; margin-bottom: 42px; }
.eyebrow { color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: .16em; margin: 0 0 10px; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 5vw, 64px); font-weight: 400; letter-spacing: -.055em; line-height: 1; margin-bottom: 12px; }
.lede, .project-key { color: var(--muted); margin-bottom: 0; }
.project-key { font-family: ui-monospace, monospace; font-size: 12px; letter-spacing: .04em; }
.period-pill { border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 12px; padding: 9px 14px; }
.pulse, .status-dot { background: var(--orange); border-radius: 50%; display: inline-block; height: 7px; margin-right: 8px; width: 7px; }
.project-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.project-card { background: var(--card); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); display: flex; flex-direction: column; min-height: 245px; padding: 24px; transition: border-color .2s, transform .2s; }
.project-card:hover { border-color: var(--teal); transform: translateY(-3px); }
.project-card-top { display: flex; justify-content: space-between; }
.project-index { color: #a4aeaa; font-family: ui-monospace, monospace; font-size: 11px; }
.project-card h2 { font-family: Georgia, serif; font-size: 25px; font-weight: 400; letter-spacing: -.035em; margin: 25px 0 4px; }
.project-stats { border-top: 1px solid var(--line); display: flex; gap: 38px; margin: auto 0 20px; padding-top: 17px; }
.project-stats div { display: flex; flex-direction: column; }
.project-stats strong { font-family: Georgia, serif; font-size: 24px; font-weight: 400; }
.project-stats span { color: var(--muted); font-size: 11px; }
.card-link { color: var(--teal); font-size: 13px; font-weight: 700; }
.card-link span { color: var(--orange); margin-left: 5px; }
.muted { color: var(--muted); margin: auto 0 20px; }
.back-row { margin-bottom: 30px; }
.back-row a { color: var(--teal); font-size: 13px; font-weight: 700; }
.project-intro { margin-bottom: 30px; }
.month-nav { display: flex; gap: 18px; }
.month-nav a { color: var(--teal); font-size: 12px; font-weight: 700; }
.month-nav .today-link { border-bottom: 1px solid var(--orange); color: var(--ink); }
.kanban-shell { overflow-x: auto; padding: 0 0 20px; }
.kanban { display: grid; gap: 12px; grid-template-columns: repeat(6, minmax(245px, 1fr)); min-width: 1510px; }
.month-column { background: rgba(255, 253, 248, .55); border: 1px solid var(--line); border-radius: 4px; min-height: 470px; padding: 14px; }
.month-header { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; margin-bottom: 12px; padding: 4px 2px 14px; }
.month-header div { align-items: baseline; display: flex; gap: 8px; }
.month-header h2 { font-size: 14px; font-weight: 700; margin: 0; }
.month-number { color: var(--orange); font-family: ui-monospace, monospace; font-size: 10px; }
.count { color: var(--muted); font-size: 12px; }
.work-stack { display: grid; gap: 10px; }
.work-card { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 3px; padding: 14px; }
.work-card:has(.source-manual) { border-left-color: var(--orange); }
.work-card-meta { align-items: center; display: flex; justify-content: space-between; margin-bottom: 11px; }
.work-card time { color: var(--muted); font-family: ui-monospace, monospace; font-size: 10px; }
.source-badge { border-radius: 99px; font-size: 9px; font-weight: 800; letter-spacing: .08em; padding: 3px 7px; }
.source-auto { background: #dcefeb; color: var(--teal); }
.source-manual { background: #fce3d6; color: #a54f2e; }
.work-card h3 { font-family: Georgia, serif; font-size: 17px; font-weight: 400; letter-spacing: -.02em; line-height: 1.25; margin-bottom: 8px; }
.topic, .note { color: var(--muted); font-size: 12px; margin-bottom: 7px; }
.note { color: var(--ink); }
.work-links { border-top: 1px solid var(--line); color: var(--muted); display: flex; font-size: 10px; gap: 12px; margin-top: 12px; padding-top: 9px; }
.safe-links { display: grid; gap: 3px; margin-top: 10px; }
.safe-links a { color: var(--teal); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty-column { color: var(--muted); font-size: 12px; padding: 20px 4px; }
.empty-state { background: var(--card); border: 1px solid var(--line); margin: 10vh auto; max-width: 500px; padding: 42px; }
.card { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); margin: 10vh auto; max-width: 500px; padding: 42px; }
label { display: block; margin: 1rem 0; }
input { display: block; margin-top: .35rem; padding: .6rem; width: 100%; }
button { padding: .6rem 1rem; }
.error { color: #a12828; }
@media (max-width: 900px) {
  .topbar, main { padding-left: 22px; padding-right: 22px; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .page-intro { align-items: start; flex-direction: column; gap: 20px; }
}
@media (max-width: 560px) {
  .topbar { padding-bottom: 16px; padding-top: 16px; }
  main { padding-top: 42px; }
  .account { gap: 10px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 220px; }
  .project-intro { gap: 18px; }
  .month-nav { flex-wrap: wrap; gap: 12px; }
  .kanban { min-width: 265px; }
  .month-column { min-height: 300px; }
}
