:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #5f6c7b;
  --line: #d9e2e8;
  --panel: #ffffff;
  --teal: #0f7b7e;
  --coral: #ef6f58;
  --sky: #dff4ff;
  --gold: #f2c14e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f6f8fa;
}

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

.hero {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  display: grid;
  align-items: center;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 31, 43, 0.88), rgba(8, 31, 43, 0.48) 42%, rgba(8, 31, 43, 0.08));
  z-index: -1;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 clamp(18px, 5vw, 72px);
  color: #fff;
}

.brand {
  font-weight: 800;
  font-size: 20px;
  margin-right: auto;
}

.topbar a {
  font-size: 14px;
  font-weight: 700;
}

.hero-copy {
  width: min(680px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  color: #fff;
  padding-top: 52px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
}

h1 {
  margin: 0;
  font-size: clamp(54px, 8vw, 104px);
  line-height: 0.92;
  letter-spacing: 0;
}

.dek {
  margin: 22px 0 0;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.45;
}

main {
  margin-top: -44px;
  position: relative;
  z-index: 2;
}

.workspace-grid,
.health-grid,
.storybook-band {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

article,
.storybook-band,
.health-grid > div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(23, 32, 51, 0.08);
}

article {
  min-height: 230px;
  padding: 22px;
}

h2 {
  margin: 0 0 18px;
  font-size: 18px;
}

.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.activity-list li {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 32px;
}

.activity-list span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
}

.activity-list em,
.story-row span,
article p,
.health-grid span {
  color: var(--muted);
  font-style: normal;
}

.story-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  min-height: 44px;
}

.story-row strong {
  color: var(--coral);
  font-size: 22px;
}

.vault-meter {
  height: 12px;
  border-radius: 999px;
  background: var(--sky);
  overflow: hidden;
  margin-bottom: 18px;
}

.vault-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--coral));
}

.storybook-band {
  margin-top: 28px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

code {
  color: #0f6674;
  background: #eef7f8;
  padding: 2px 5px;
  border-radius: 4px;
}

.chapter-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  height: 118px;
}

.chapter-strip span {
  border-radius: 8px;
  background: linear-gradient(160deg, var(--sky), #fff 58%, var(--coral));
  border: 1px solid var(--line);
}

.health-grid {
  margin-top: 28px;
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.health-grid > div {
  padding: 18px;
  display: grid;
  gap: 8px;
}

.health-grid strong {
  color: var(--teal);
}

@media (max-width: 820px) {
  .topbar {
    gap: 12px;
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
  }

  .topbar a {
    font-size: 13px;
  }

  .hero {
    min-height: 72vh;
  }

  .hero-copy {
    padding-top: 88px;
  }

  .dek {
    font-size: 17px;
  }

  .workspace-grid,
  .storybook-band,
  .health-grid {
    grid-template-columns: 1fr;
  }

  .chapter-strip {
    height: 92px;
  }
}

