:root {
  --paper: #f8f7f1;
  --sheet: #fffef9;
  --ink: #292b26;
  --dim: #625f55;
  --rule: #d8d4c6;
  --strong: #a8a28f;
  --rust: #a63b27;
  --green: #295f42;
  --ease: cubic-bezier(0.2, 0.7, 0.22, 1);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: "Avenir Next", Avenir, system-ui, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 15px/1.48 var(--sans);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
a {
  color: var(--rust);
  text-underline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.6;
  cursor: progress;
}
[hidden] {
  display: none !important;
}
.sr,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: fixed;
  z-index: 10;
  background: var(--sheet);
  padding: 12px;
  left: 12px;
  top: 12px;
}
.masthead {
  max-width: 1600px;
  margin: auto;
  padding: 17px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--rule);
}
.identity,
.mast-actions {
  display: flex;
  align-items: center;
  gap: 11px;
}
.identity {
  font-weight: 750;
  white-space: nowrap;
  letter-spacing: -0.035em;
}
.station-mark {
  width: 27px;
  height: 27px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 5px;
  border: 1px solid var(--rust);
  border-radius: 4px;
  transform: rotate(-8deg);
}
.station-mark i {
  display: block;
  height: 1px;
  background: var(--rust);
}
.station-mark i:nth-child(2) {
  width: 68%;
}
.mast-actions {
  gap: 7px;
}
.text-button,
.square,
.light,
.close,
.plain {
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: transparent;
}
.text-button,
.square,
.light,
.dark,
.plain {
  min-height: 36px;
  padding: 5px 11px;
}
.text-button {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dim);
}
.square {
  min-width: 36px;
}
.square[aria-pressed="true"] {
  color: var(--rust);
  border-color: var(--rust);
  background: #f6e7df;
}
.search-mark {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  position: relative;
  margin-right: 3px;
}
.search-mark:after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 5px;
  border-bottom: 1.5px solid;
  transform: rotate(45deg);
}
.dark {
  background: #31332d;
  color: #fffdf5;
  border: 1px solid #31332d;
  border-radius: 4px;
  font-weight: 650;
}
.dark:hover {
  background: #4a4b42;
}
.dark:active,
.square:active,
.text-button:active,
.light:active {
  transform: translateY(1px);
}
.plain {
  border-color: transparent;
  color: var(--dim);
}
kbd {
  display: inline-block;
  line-height: 1.15;
  border: 1px solid var(--rule);
  background: var(--sheet);
  border-radius: 3px;
  padding: 2px 4px;
  font: 12px var(--mono);
  white-space: nowrap;
  color: var(--dim);
}
.shell {
  max-width: 1600px;
  padding: 35px 36px 22px;
  margin: auto;
}
.intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 29px;
}
.section-label,
.date,
.micro,
.scope,
.foot,
.keys {
  font: 12px/1.5 var(--mono);
  color: var(--dim);
}
.section-label {
  margin: 0 0 7px;
  letter-spacing: 0.13em;
}
.intro h1 {
  margin: 0;
  font: 400 clamp(2.35rem, 5.05vw, 4.65rem)/0.98 var(--serif);
  letter-spacing: -0.065em;
}
.intro h1 span {
  color: var(--rust);
}
.scope {
  margin: 12px 0 0;
}
.date {
  white-space: nowrap;
  letter-spacing: 0.04em;
  padding-bottom: 2px;
  text-transform: uppercase;
}
.board-controls {
  border-top: 2px solid var(--ink);
}
.spaces,
.statuses {
  display: flex;
  gap: 4px;
  overflow: auto;
  scrollbar-width: thin;
}
.spaces {
  align-items: stretch;
  flex: 1;
}
.space,
.status {
  white-space: nowrap;
  background: none;
  border: 0;
  padding: 9px 11px;
  min-height: 40px;
}
.space {
  color: var(--dim);
  border-bottom: 2px solid transparent;
  position: relative;
  font-weight: 660;
}
.space[aria-pressed="true"] {
  border-color: var(--rust);
  color: var(--rust);
  background: #f2ece1;
}
.space sup {
  font: 11px var(--mono);
  margin-left: 4px;
  vertical-align: baseline;
  opacity: 0.85;
}
.space:first-child {
  padding-left: 9px;
}
.filter-row {
  border-block: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
}
.status {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  font-size: 13px;
  padding: 5px 8px;
  border-radius: 4px;
}
.status[aria-pressed="true"] {
  background: #e9e6da;
  box-shadow: inset 0 0 0 1px #d6d0c0;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #777368;
  display: inline-block;
  flex: none;
}
.dot.active {
  background: #368251;
}
.dot.planned {
  background: #a16a14;
}
.dot.waiting {
  background: #a63b27;
}
.dot.complete {
  background: #577b91;
}
.dot.unknown {
  background: transparent;
  border: 1px solid #777368;
}
.area-select {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--dim);
  font-size: 13px;
}
.area-select select {
  max-width: 180px;
  border: 1px solid var(--rule);
  background: var(--sheet);
  border-radius: 4px;
  padding: 4px 8px;
  min-height: 32px;
}
.columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  border-bottom: 1px solid var(--rule);
  margin-top: 16px;
  gap: 14px;
}
.area-column {
  min-width: 0;
  border: 1px solid var(--rule);
  border-top: 2px solid var(--accent, var(--strong));
  border-radius: 3px;
  background: var(--sheet);
  margin-bottom: 3px;
}
.area-column[data-space="core"] {
  --accent: #9e3928;
  --tile: #f6ebe5;
}
.area-column[data-space="public"] {
  --accent: #88601f;
  --tile: #f7efdc;
}
.area-column[data-space="learning"] {
  --accent: #4d6851;
  --tile: #eaf0e6;
}
.area-column[data-space="collections"] {
  --accent: #526a87;
  --tile: #edf0f6;
}
.area-column[data-space="logs"] {
  --accent: #705777;
  --tile: #f1ebf3;
}
.area-header {
  padding: 9px 10px 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 1px 5px;
  border-bottom: 1px solid var(--rule);
  background: var(--tile);
}
.area-header h2 {
  font: 600 17px/1.15 var(--serif);
  letter-spacing: -0.02em;
  margin: 0;
}
.area-header .micro {
  grid-column: 1/-1;
  margin: 0;
  color: #554e43;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 11px;
}
.count {
  font: 12px var(--mono);
  color: var(--dim);
}
.project-list {
  padding: 0 6px;
  margin: 0;
  list-style: none;
}
.project-list li + li {
  border-top: 1px solid #e8e4d9;
}
.project {
  background: none;
  border: 0;
  border-radius: 3px;
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  text-align: left;
  padding: 9px 3px;
  column-gap: 7px;
  min-height: 42px;
  font-size: 14px;
  line-height: 1.24;
  font-weight: 620;
}
.project .dot {
  align-self: start;
  margin-top: 6px;
}
.project-name {
  overflow-wrap: anywhere;
}
.project-meta {
  font: 11px var(--mono);
  color: var(--dim);
}
.project:focus-visible {
  outline-offset: 0;
  background: var(--tile);
}
.project:active .project-name {
  transform: translateX(1px);
}
.project-name {
  transition: transform 135ms var(--ease);
}
.more {
  display: block;
  width: 100%;
  background: none;
  color: var(--dim);
  border: 0;
  border-top: 1px dashed var(--rule);
  text-align: left;
  padding: 9px 10px;
  font-size: 13px;
  min-height: 40px;
}
.more:hover,
.plain:hover,
.light:hover,
.text-button:hover,
.square:hover {
  background: #eeeade;
}
.empty-area {
  margin: 0;
  padding: 12px 10px;
  color: var(--dim);
  font-size: 13px;
}
.empty-board {
  grid-column: 1/-1;
  padding: 40px 12px;
  text-align: center;
}
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 7px;
}
.foot button {
  font: inherit;
}
dialog {
  width: min(540px, calc(100% - 26px));
  max-height: calc(100dvh - 30px);
  padding: 0;
  border: 1px solid var(--strong);
  border-top: 4px solid var(--rust);
  border-radius: 6px;
  background: var(--sheet);
  color: var(--ink);
  box-shadow: 0 18px 65px #25231735;
}
dialog[open] {
  animation: enter 170ms var(--ease);
}
dialog::backdrop {
  background: #24261e6b;
}
body:has(dialog[open]) {
  overflow: hidden;
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(7px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.dialog-body {
  padding: 24px;
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}
.dialog-top h2 {
  font: 400 clamp(1.6rem, 4vw, 2.35rem)/1.06 var(--serif);
  letter-spacing: -0.04em;
  margin: 0 0 13px;
}
.dialog-top .micro {
  margin: 0 0 6px;
}
.close {
  width: 36px;
  height: 36px;
  flex: none;
  font-size: 23px;
  line-height: 1;
}
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  font-size: 13px;
  color: var(--dim);
}
.detail-summary {
  line-height: 1.58;
  margin: 15px 0 20px;
  white-space: pre-line;
}
.detail-section {
  border-top: 1px solid var(--rule);
  padding-top: 10px;
  margin-top: 14px;
}
.detail-section h3 {
  font-size: 13px;
  margin: 0 0 7px;
}
.link-list,
.people {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.link-list a,
.people li {
  display: inline-block;
  border: 1px solid var(--rule);
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 13px;
}
.link-list a:hover {
  background: #f5ece1;
}
.detail-section p {
  margin: 5px 0;
  color: var(--dim);
}
.detail-section ol {
  padding-left: 23px;
  margin: 6px 0;
  font-size: 14px;
}
.shortcuts div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--rule);
  padding: 9px 0;
}
.shortcuts dd {
  margin: 0;
  text-align: right;
}
.keys {
  margin: 11px 0 0;
}
input,
textarea,
select {
  width: 100%;
  background: var(--sheet);
  border: 1px solid var(--strong);
  border-radius: 4px;
  padding: 8px;
  font-size: 16px;
}
textarea {
  resize: vertical;
}
form label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 650;
  margin: 10px 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}
fieldset {
  border: 1px solid var(--rule);
  margin: 12px 0;
  padding: 5px 10px 8px;
}
legend {
  font-size: 13px;
  font-weight: 650;
}
.targets {
  display: flex;
  flex-wrap: wrap;
  gap: 1px 12px;
}
.targets label {
  display: flex;
  align-items: center;
  margin: 0;
  min-height: 34px;
  gap: 4px;
}
.targets input {
  width: auto;
  accent-color: var(--rust);
}
.form-actions {
  display: flex;
  justify-content: end;
  gap: 6px;
  margin-top: 12px;
}
.form-error {
  color: var(--rust);
  font-size: 14px;
  margin: 8px 0;
}
#results {
  max-height: min(48vh, 350px);
  overflow: auto;
  border-top: 1px solid var(--rule);
}
.result {
  cursor: pointer;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 8px;
  border-bottom: 1px solid var(--rule);
  align-items: center;
  min-height: 39px;
}
.result[aria-selected="true"] {
  background: #f2e6db;
}
.result span:first-child {
  font-weight: 650;
}
.result .micro {
  flex: none;
}
.toast {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: #31332d;
  color: #fffdf5;
  border-radius: 5px;
  padding: 8px 12px;
  max-width: calc(100% - 32px);
  box-shadow: 0 3px 15px #27251930;
  z-index: 5;
}
.toast:empty {
  display: none;
}
@media (hover: hover) {
  .project:hover {
    background: var(--tile);
  }
  .project:hover .project-name {
    transform: translateX(2px);
  }
}
@media (max-width: 1150px) {
  .columns {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 890px) {
  .columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .masthead,
  .shell {
    padding-inline: 23px;
  }
}
@media (max-width: 650px) {
  .columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .masthead,
  .shell {
    padding-inline: 13px;
  }
  .shell {
    padding-top: 24px;
  }
  .masthead {
    padding-block: 10px;
  }
  .mast-actions {
    gap: 4px;
  }
  .mast-actions .text-button span:not(.search-mark),
  .mast-actions kbd {
    display: none;
  }
  .mast-actions .text-button {
    justify-content: center;
    min-width: 36px;
  }
  .date {
    display: none;
  }
  .intro {
    margin-bottom: 20px;
  }
  .filter-row {
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
  }
  .area-select select {
    max-width: 100%;
  }
  .project {
    min-height: 46px;
  }
  .dialog-body {
    padding: 17px;
  }
  .space:first-child {
    padding-left: 5px;
  }
  .foot {
    gap: 6px;
  }
}
@media (max-width: 355px) {
  .columns {
    grid-template-columns: 1fr;
  }
  .identity {
    font-size: 13px;
  }
  .mast-actions .dark {
    font-size: 12px;
    padding-inline: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.login {
  max-width: 500px;
  margin: 11vh auto;
  padding: 24px 24px 35px;
  border-top: 2px solid var(--ink);
}
.login h1 {
  font: 400 clamp(2.2rem, 7vw, 4rem)/1 var(--serif);
  letter-spacing: -0.06em;
  margin: 6px 0 20px;
}
.login h1 span {
  color: var(--rust);
}
.login-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.login input {
  max-width: 360px;
}
.link-button {
  display: inline-block;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 13px;
  color: var(--rust);
}
.link-button:hover {
  background: #f5ece1;
}
.setup-copy {
  margin-top: 6px;
  font-size: 13px;
}
#new-open {
  white-space: nowrap;
}
@media (max-width: 650px) {
  .new-long {
    display: none;
  }
  .mast-actions button {
    min-height: 40px;
  }
  .mast-actions .square,
  .mast-actions .text-button {
    min-width: 40px;
  }
  .status {
    min-height: 38px;
  }
}
