:root {
  --ink: #000;
  --paper: #f4f1ea;
  --accent: #ff4d00;
  --hi: #ffe600;
  --ok: #00c853;
  --bad: #ff1744;
  --border: 4px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --font: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
}

h1, h2, h3 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
h1 { font-size: 1.8rem; font-weight: 900; }
h2 { font-size: 1.2rem; font-weight: 900; margin-bottom: 0.75rem; }

.muted { color: #555; font-size: 0.85rem; }
code { background: #fff; border: 2px solid var(--ink); padding: 0.1rem 0.35rem; }

.btn {
  font-family: var(--font);
  font-weight: 900;
  text-transform: uppercase;
  background: var(--hi);
  color: var(--ink);
  border: var(--border);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 0.5rem 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn:hover { background: var(--accent); color: #fff; }
.btn:active { transform: translate(4px, 4px); box-shadow: none; }
.btn.small { padding: 0.25rem 0.6rem; font-size: 0.8rem; border-width: 3px; box-shadow: 3px 3px 0 var(--ink); }
.btn.big { font-size: 1.2rem; padding: 1rem 1.5rem; }
.btn.danger { background: #fff; }
.btn.danger:hover { background: var(--bad); color: #fff; }

.splash {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.login-box {
  border: var(--border);
  box-shadow: 12px 12px 0 var(--ink);
  background: #fff;
  padding: 3rem;
  text-align: center;
  max-width: 560px;
}
.login-box h1 { font-size: 4rem; margin: 0.5rem 0; }
.login-box p { font-size: 1rem; margin: 0.5rem 0 2rem; line-height: 1.5; }

.app { max-width: 960px; margin: 0 auto; padding: 1.5rem; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-bottom: var(--border);
  padding: 1rem 1.5rem;
  background: #fff;
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.who { display: flex; align-items: center; justify-content: flex-end; }
.who-name { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.who-title { font-size: 0.72rem; font-weight: 700; color: #555; text-transform: uppercase; }

.user-menu { position: relative; }
.user-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font);
  font-weight: 700;
  background: var(--hi);
  border: var(--border);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}
.avatar {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--hi);
  font-weight: 900;
  border: 2px solid var(--ink);
}
.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  background: #fff;
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 0.75rem;
  z-index: 20;
}

.grid {
  display: grid;
  gap: 1.25rem;
}
.card {
  background: #fff;
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}
.meta {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 0.5rem 1rem;
  margin: 0;
}
.meta dt { font-weight: 900; text-transform: uppercase; font-size: 0.75rem; color: #555; }
.meta dd { margin: 0; word-break: break-word; }

.progress-wrap {
  border: var(--border);
  background: #eee;
  height: 2rem;
  margin-bottom: 0.5rem;
}
.progress-bar {
  height: 100%;
  background: var(--ok);
  border-right: 3px solid var(--ink);
  transition: width 0.4s ease;
  min-width: 0;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }

.callout {
  border: var(--border);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  background: var(--hi);
  font-weight: 700;
}
.callout.ok { background: #d7ffe6; }
.callout.bad { background: #ffd6de; }

a { color: var(--ink); font-weight: 900; }
