@font-face {
  font-family: "Egghead Display";
  src: url("assets/fonts/SuperMindset.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: #171717;
  --paper: #f2efe7;
  --surface: #fcfbf7;
  --yellow: #f3c944;
  --blue: #dde2e5;
  --lilac: #e7e3dc;
  --green: #dbe5d7;
  --peach: #ebe2d9;
  --pink: #e9e3dc;
  --muted: #65635d;
  --line: 1.5px solid var(--ink);
  --shadow: 4px 4px 0 var(--ink);
  --shadow-small: 2px 2px 0 var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 1px 1px, rgba(23, 23, 23, .045) 1px, transparent 1px),
    var(--paper);
  background-size: 22px 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #2d68ff;
  outline-offset: 3px;
}

.app-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  display: flex;
  width: 230px;
  flex-direction: column;
  padding: 23px 16px 17px;
  overflow-y: auto;
  background: #20202a;
  color: #fffdf8;
  border-right: 2px solid var(--ink);
}

.brand {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 7px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .17);
}

.brand img {
  display: block;
  width: 166px;
  height: auto;
  object-fit: contain;
}

.main-nav {
  padding-top: 14px;
}

.nav-label {
  margin: 18px 10px 6px;
  color: #9d9ba7;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.nav-link {
  position: relative;
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  margin: 3px 0;
  padding: 7px 10px;
  border: 2px solid transparent;
  border-radius: 11px;
  color: #dedce4;
  font-size: 13px;
  font-weight: 700;
}

.nav-link img {
  width: 22px;
  height: 22px;
  opacity: .82;
  filter: grayscale(1);
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, .07);
}

.nav-link.is-active {
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 #000;
}

.nav-link.is-active img {
  opacity: 1;
  filter: none;
}

.nav-count {
  min-width: 24px;
  margin-left: auto;
  padding: 2px 6px;
  color: var(--ink);
  color: var(--surface);
  background: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 22px;
}

.nav-link-muted {
  margin-bottom: 10px;
}

.profile-card {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 10px;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid #000;
  border-radius: 12px;
  box-shadow: 3px 3px 0 #000;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.profile-card:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 #000; }
.profile-card:active { transform: translate(3px, 3px); box-shadow: 0 0 0 #000; }

.avatar {
  display: grid;
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  place-items: center;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 9px;
  font-weight: 900;
}

.profile-copy {
  display: grid;
  min-width: 0;
}

.profile-copy strong {
  font-size: 13px;
}

.profile-copy span {
  color: var(--muted);
  font-size: 10px;
}

.more {
  margin-left: auto;
  letter-spacing: 1px;
}

.main-content {
  grid-column: 2;
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 4vw, 54px);
  background: rgba(247, 242, 232, .94);
  border-bottom: 1.5px solid var(--ink);
  backdrop-filter: blur(10px);
}

.topbar-date {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #494640;
  font-size: 13px;
  font-weight: 750;
}

.status-dot {
  width: 9px;
  height: 9px;
  background: #54b870;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-button {
  position: relative;
  display: grid;
  width: 39px;
  height: 37px;
  padding: 8px;
  place-items: center;
  color: var(--ink);
  background: var(--surface);
  border: var(--line);
  border-radius: 10px;
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
}

.icon-button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  background: #ff6868;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.streak-pill {
  display: flex;
  height: 37px;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  background: var(--surface);
  border: var(--line);
  border-radius: 10px;
  box-shadow: 2px 2px 0 var(--ink);
  color: var(--muted);
  font-size: 10px;
}

.streak-pill strong {
  color: var(--ink);
  font-size: 11px;
}

.mobile-menu {
  display: none;
}

.dashboard {
  width: min(1100px, calc(100% - 44px));
  margin: 0 auto;
  padding: 36px 0 60px;
}

.welcome {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

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

h1,
h2,
strong {
  text-wrap: balance;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(31px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.marker {
  position: relative;
  z-index: 0;
  white-space: nowrap;
}

.marker::after {
  position: absolute;
  right: -3px;
  bottom: 1px;
  left: -3px;
  z-index: -1;
  height: 10px;
  background: var(--yellow);
  content: "";
  transform: rotate(-1deg);
}

.welcome-text {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.card {
  background: var(--surface);
  border: var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, .8fr);
  gap: 20px;
  margin-bottom: 22px;
}

.continue-card {
  padding: 23px 25px 22px;
  background: var(--surface);
  box-shadow: 5px 5px 0 var(--ink);
}

.card-topline,
.continue-footer,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tag,
.task-summary,
.positive-chip {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.tag-yellow {
  background: var(--yellow);
}

.tag-blue {
  background: var(--yellow);
}

.time-note {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.continue-content {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px 0 25px;
}

.subject-icon {
  display: grid;
  width: 66px;
  height: 66px;
  flex: 0 0 auto;
  place-items: center;
  background: var(--blue);
  border: var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-small);
  transform: rotate(-1deg);
}

.subject-icon svg {
  width: 43px;
  fill: var(--surface);
  stroke: var(--ink);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.continue-copy {
  min-width: 0;
  flex: 1;
}

.continue-copy p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.continue-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.1;
  letter-spacing: -.025em;
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-row strong {
  flex: 0 0 auto;
  font-size: 11px;
}

.progress-track,
.week-progress {
  height: 11px;
  overflow: hidden;
  background: #e2dac8;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
}

.progress-track {
  flex: 1;
}

.progress-track span,
.week-progress span {
  display: block;
  height: 100%;
  background: var(--accent, var(--yellow));
  border-right: 1.5px solid var(--ink);
}

.continue-footer {
  padding-top: 17px;
  border-top: 1.5px dashed var(--ink);
}

.continue-footer > span {
  color: var(--muted);
  font-size: 11px;
}

.continue-footer > span strong {
  color: var(--ink);
}

.primary-button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: #fff;
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 9px;
  font-weight: 850;
  box-shadow: 3px 3px 0 #68645e;
  cursor: pointer;
}

.primary-button {
  min-height: 43px;
  padding: 0 16px;
  font-size: 12px;
}

.primary-button:hover,
.small-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--muted);
}

.weekly-card {
  padding: 23px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading.compact {
  margin-bottom: 17px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.goal-value {
  font-size: 20px;
  font-weight: 900;
}

.goal-value small {
  color: var(--muted);
  font-size: 11px;
}

.week-progress {
  height: 13px;
  margin-bottom: 19px;
}

.week-progress span {
  background: var(--green);
}

.week-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
}

.week-days > div {
  display: grid;
  justify-items: center;
  gap: 5px;
}

.week-days small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
}

.day-box {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  background: #e9e3d8;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 900;
}

.day-box.is-done {
  background: var(--green);
}

.day-box.is-current {
  background: var(--yellow);
  box-shadow: 2px 2px 0 var(--ink);
}

.encouragement {
  margin: 18px 0 0;
  padding: 10px 11px;
  color: #3f5b40;
  background: #edf0e9;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  font-size: 11px;
}

.encouragement > span {
  display: inline-grid;
  width: 19px;
  height: 19px;
  margin-right: 4px;
  place-items: center;
  color: var(--surface);
  background: var(--ink);
  border-radius: 4px;
  font-weight: 900;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(350px, .78fr);
  gap: 20px;
}

.today-card,
.progress-card {
  padding: 23px;
}

.task-summary {
  color: #365d3c;
  background: #dcf2dc;
}

.task-list {
  display: grid;
  gap: 9px;
}

.task-item {
  display: grid;
  grid-template-columns: 24px 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 8px 11px;
  background: #f5f2eb;
  border: 1.5px solid var(--ink);
  border-radius: 9px;
}

.task-item.is-next {
  background: #f5efda;
  box-shadow: 3px 3px 0 var(--ink);
}

.task-item.is-complete {
  opacity: .68;
}

.task-check {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 900;
}

.is-complete .task-check {
  background: var(--green);
}

.task-time {
  font-size: 11px;
  font-weight: 850;
}

.task-copy {
  display: grid;
  min-width: 0;
}

.task-copy strong {
  font-size: 12px;
}

.task-copy span {
  color: var(--muted);
  font-size: 10px;
}

.task-status {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.task-arrow {
  font-size: 18px;
  font-weight: 900;
}

.text-link {
  display: inline-flex;
  gap: 8px;
  margin-top: 17px;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--ink);
  font-size: 11px;
  font-weight: 900;
}

.right-column {
  display: grid;
  gap: 20px;
}

.positive-chip {
  background: var(--green);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.metric {
  display: grid;
  min-width: 0;
  padding: 12px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 9px;
}

.metric-lilac,
.metric-green,
.metric-peach { background: #f1eee7; }

.metric strong {
  padding-top: 3px;
  font-size: 21px;
  line-height: 1;
}

.metric small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.2;
}

.review-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  background: #eeece5;
}

.review-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  background: var(--yellow);
  border: var(--line);
  border-radius: 9px;
}

.review-icon img {
  width: 29px;
  filter: grayscale(1);
}

.review-copy h2 {
  margin: 0 0 2px;
  font-size: 14px;
}

.review-copy span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.small-button {
  min-height: 36px;
  padding: 0 11px;
  font-size: 10px;
}

.quick-section {
  margin-top: 28px;
}

.quick-heading {
  margin-bottom: 13px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.quick-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 13px 15px;
  border: var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-small);
  transition: transform .15s ease, box-shadow .15s ease;
}

.quick-card:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.quick-card img {
  width: 38px;
  height: 38px;
}

.quick-card div {
  display: grid;
}

.quick-card strong {
  font-size: 12px;
}

.quick-card div span {
  color: #48443e;
  font-size: 9px;
}

.quick-arrow {
  font-size: 19px;
  font-weight: 900;
}

.quick-yellow,
.quick-blue,
.quick-pink { background: var(--surface); }

.quick-card img {
  filter: grayscale(1);
}

.quick-card:hover {
  background: #f5efda;
}

@media (max-width: 1080px) {
  .hero-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .right-column {
    grid-template-columns: 1.2fr .8fr;
  }

  .review-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .review-card .small-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .main-content {
    width: 100%;
  }

  .topbar {
    height: 62px;
    padding: 0 16px;
  }

  .mobile-menu {
    display: grid;
    width: 39px;
    height: 39px;
    padding: 8px;
    align-content: center;
    gap: 4px;
    background: var(--yellow);
    border: var(--line);
    border-radius: 9px;
    box-shadow: 2px 2px 0 var(--ink);
  }

  .mobile-menu span {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
  }

  .topbar-date {
    display: none;
  }

  .dashboard {
    width: min(100% - 28px, 620px);
    padding-top: 28px;
  }

  .welcome {
    align-items: center;
  }

  .welcome-text {
    font-size: 13px;
  }

  .week-chip {
    display: none;
  }

  .continue-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button {
    width: 100%;
  }

  .right-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .streak-pill {
    padding: 0 9px;
  }

  h1 {
    font-size: 30px;
  }

  .marker {
    white-space: normal;
  }

  .continue-card,
  .weekly-card,
  .today-card,
  .progress-card {
    padding: 18px;
  }

  .continue-content {
    align-items: flex-start;
    padding: 22px 0;
  }

  .subject-icon {
    width: 51px;
    height: 51px;
  }

  .subject-icon svg {
    width: 34px;
  }

  .continue-copy h2 {
    font-size: 20px;
  }

  .day-box {
    width: 26px;
    height: 26px;
  }

  .task-item {
    grid-template-columns: 23px minmax(0, 1fr) auto;
  }

  .task-time {
    display: none;
  }

  .task-status {
    display: none;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .metric {
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 10px;
  }

  .metric-icon {
    grid-row: 1 / 3;
    margin-bottom: 0;
  }

  .review-card {
    grid-template-columns: auto 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
