:root {
  color-scheme: light;
  --desktop: #008080;
  --desktop-dark: #006a6a;
  --paper: #c0c0c0;
  --paper-light: #dfdfdf;
  --paper-dark: #808080;
  --ink: #080808;
  --title: #000080;
  --title-hot: #1084d0;
  --link: #0000ee;
  --visited: #551a8b;
  --cream: #fff7d7;
  --rose: #f7b6c8;
  --gold: #ffd86f;
  --green: #74b56a;
  --shadow: #404040;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at 12px 12px, rgba(255, 255, 255, 0.12) 1px, transparent 2px) 0 0 / 24px 24px,
    linear-gradient(135deg, var(--desktop), var(--desktop-dark));
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "MS Sans Serif", Tahoma, Verdana, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

a {
  color: var(--link);
  font-weight: 700;
}

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

.desktop {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  padding: 24px 0 88px;
}

.top-shell {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.avatar-dock {
  position: sticky;
  top: 18px;
  z-index: 2;
}

.avatar-ring {
  width: 150px;
  aspect-ratio: 1;
  padding: 6px;
  border-radius: 50%;
  background: var(--paper);
  border-top: 3px solid #fff;
  border-left: 3px solid #fff;
  border-right: 3px solid var(--shadow);
  border-bottom: 3px solid var(--shadow);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.22);
}

.avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--ink);
}

.shortcut-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.shortcut {
  display: grid;
  justify-items: center;
  gap: 5px;
  color: white;
  text-align: center;
  text-decoration: none;
  text-shadow: 1px 1px #000;
  font-size: 13px;
}

.shortcut-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 38px;
  background: var(--paper);
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid var(--shadow);
  border-bottom: 2px solid var(--shadow);
  color: #111;
  text-shadow: none;
  font-size: 22px;
}

.window {
  background: var(--paper);
  border-top: 2px solid var(--paper-light);
  border-left: 2px solid var(--paper-light);
  border-right: 2px solid var(--shadow);
  border-bottom: 2px solid var(--shadow);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.24);
  margin-bottom: 18px;
}

.window.is-minimized {
  display: none;
}

.window.is-focused {
  box-shadow:
    0 0 0 2px rgba(255, 216, 111, 0.85),
    6px 6px 0 rgba(0, 0, 0, 0.24);
}

.title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
  padding: 4px 5px 4px 9px;
  color: white;
  background: linear-gradient(90deg, var(--title), var(--title-hot));
  font-weight: 700;
}

.window-actions {
  display: flex;
  gap: 3px;
  flex: 0 0 auto;
}

.window-button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 20px;
  padding: 0;
  background: var(--paper);
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid var(--shadow);
  border-bottom: 2px solid var(--shadow);
  color: #111;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  line-height: 1;
}

.window-button:active {
  border-top-color: var(--shadow);
  border-left-color: var(--shadow);
  border-right-color: #fff;
  border-bottom-color: #fff;
}

.window-button.is-disabled,
.window-button:disabled {
  color: #777;
  cursor: not-allowed;
  opacity: 0.55;
}

.window-button.is-disabled:active,
.window-button:disabled:active {
  border-top-color: #fff;
  border-left-color: #fff;
  border-right-color: var(--shadow);
  border-bottom-color: var(--shadow);
}

.menu-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 5px 8px;
  border-bottom: 2px solid var(--paper-dark);
}

.menu-bar a {
  padding: 3px 9px;
  color: #111;
  text-decoration: none;
}

.menu-bar a:hover {
  outline: 1px dotted #111;
}

.project-toolbar {
  align-items: end;
  gap: 10px;
}

.project-toolbar label {
  display: grid;
  gap: 3px;
  font-size: 13px;
  font-weight: 700;
}

.field-95 {
  min-height: 30px;
  width: min(210px, 100%);
  padding: 5px 7px;
  background: white;
  border-top: 2px solid var(--shadow);
  border-left: 2px solid var(--shadow);
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  color: #111;
  font: inherit;
}

.window-body {
  padding: 18px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.sunken {
  background: white;
  border-top: 2px solid var(--shadow);
  border-left: 2px solid var(--shadow);
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  padding: 16px;
}

.hero-copy {
  background:
    linear-gradient(rgba(255, 247, 215, 0.92), rgba(255, 247, 215, 0.92)),
    repeating-linear-gradient(45deg, transparent 0 8px, rgba(0, 0, 0, 0.06) 8px 10px);
}

.kicker {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 7px;
  background: var(--gold);
  border: 1px solid #111;
  font-size: 13px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 7vw, 72px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 24px;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.lede {
  max-width: 62ch;
  font-size: 19px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.compact-row {
  margin-top: 12px;
}

.button-95 {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 13px;
  background: var(--paper);
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid var(--shadow);
  border-bottom: 2px solid var(--shadow);
  color: #111;
  text-decoration: none;
  font-weight: 700;
}

.button-95.is-disabled {
  color: #555;
  cursor: not-allowed;
  filter: grayscale(1);
}

.button-95:active {
  border-top-color: var(--shadow);
  border-left-color: var(--shadow);
  border-right-color: #fff;
  border-bottom-color: #fff;
}

.info-panel {
  display: grid;
  gap: 10px;
  background: #fefefe;
}

.meter {
  height: 22px;
  border: 2px inset var(--paper);
  background: white;
}

.meter span {
  display: block;
  width: 82%;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--green) 0 12px, #4b9648 12px 16px);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  padding: 4px 7px;
  background: #e9e9e9;
  border: 1px solid #777;
  box-shadow: 1px 1px #fff inset;
  font-size: 13px;
  font-weight: 700;
}

.about-paragraph {
  max-width: 78ch;
  margin-bottom: 0;
  font-size: 19px;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  min-height: 100%;
  background: white;
  border-top: 2px solid var(--shadow);
  border-left: 2px solid var(--shadow);
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  padding: 14px;
}

.card-accent {
  border-left: 8px solid var(--rose);
}

.project-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 14px;
  align-items: stretch;
}

.project-list {
  display: grid;
  align-content: start;
  max-height: 205px;
  overflow: auto;
  background: white;
  border-top: 2px solid var(--shadow);
  border-left: 2px solid var(--shadow);
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

.project-loading {
  padding: 12px;
  font-weight: 700;
}

.project-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 100px 86px;
  gap: 8px;
  width: 100%;
  padding: 9px 10px;
  background: white;
  border: 0;
  border-bottom: 1px solid #d2d2d2;
  color: #111;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.project-row:hover,
.project-row.is-active {
  background: var(--title);
  color: white;
}

.project-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-detail {
  min-height: 235px;
}

.project-detail h3 {
  font-size: 28px;
}

.tiny-label {
  color: #444;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.blog-list {
  display: grid;
  gap: 12px;
}

.empty-state {
  border-left: 8px solid var(--gold);
}

.empty-state p {
  margin-bottom: 0;
}

.blog-post {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.date-tile {
  background: var(--title);
  color: white;
  border: 2px solid #111;
  padding: 8px;
  text-align: center;
  font-weight: 700;
}

.status-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  padding: 5px;
  border-top: 2px solid var(--paper-dark);
}

.status-cell {
  padding: 3px 6px;
  border-top: 1px solid var(--paper-dark);
  border-left: 1px solid var(--paper-dark);
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  overflow-wrap: anywhere;
}

.taskbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 6px;
  background: var(--paper);
  border-top: 2px solid #fff;
  box-shadow: 0 -2px var(--paper-dark);
}

.start-button {
  padding: 7px 13px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid var(--shadow);
  border-bottom: 2px solid var(--shadow);
  color: #111;
  text-decoration: none;
  font-weight: 900;
}

.task-window-list {
  display: flex;
  flex: 1 1 auto;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.task-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 7px 12px;
  background: var(--paper);
  border-top: 2px solid var(--shadow);
  border-left: 2px solid var(--shadow);
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #111;
  font: inherit;
  text-decoration: none;
}

.task-window {
  flex: 0 0 min(190px, 42vw);
  cursor: pointer;
}

.task-window.is-active {
  background: #e8e8e8;
  border-top-color: #fff;
  border-left-color: #fff;
  border-right-color: var(--shadow);
  border-bottom-color: var(--shadow);
  font-weight: 700;
}

.task-status {
  flex: 0 0 auto;
}

@media (max-width: 820px) {
  .desktop {
    width: min(100% - 16px, 680px);
    padding-top: 12px;
  }

  .top-shell,
  .hero-grid,
  .project-shell,
  .section-grid,
  .blog-post {
    grid-template-columns: 1fr;
  }

  .avatar-dock {
    position: static;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
  }

  .avatar-ring {
    width: 96px;
  }

  .shortcut-list {
    display: flex;
    flex-wrap: wrap;
    margin-top: 0;
  }

  .shortcut {
    min-width: 78px;
  }

  .window-body {
    padding: 12px;
  }

  .project-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-toolbar label,
  .field-95 {
    width: 100%;
  }

  .status-bar {
    grid-template-columns: 1fr;
  }
}
