.shell {
  --paper: #121b24;
  --ink: #edf2f5;
  --muted: #aebbc7;
  --outline: #273747;
  --accent: #b9e8aa;
  --inset: clamp(14px, 2.4vw, 36px);
  --gap: clamp(18px, 2vw, 29px);
  --radius: 20px;
  display: block;
  width: min(100%, calc(var(--night-width) + 2 * var(--inset)));
  min-height: 0;
  padding-top: clamp(14px, 2vw, 25px);
  color: var(--ink);
}

.shell .main {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.shell :focus-visible { outline-color: var(--accent); }
.topbar { min-height: 44px; margin-bottom: 14px; }
.top-title { color: var(--muted); font-size: 14px; letter-spacing: .02em; }
.search-field { background: #111a23; color: var(--muted); }
.search-field input { font-size: 16px; }
.search-field input::placeholder { color: var(--muted); }
.search-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px #b9e8aa32;
}

.dashboard-content {
  grid-template-columns: minmax(0, 1fr) minmax(230px, .33fr);
  grid-template-areas:
    "hero hero"
    "featured overview"
    "guides plan"
    "archive updates"
    "archive reading";
  grid-template-rows: auto auto auto auto 1fr;
  row-gap: clamp(22px, 2.4vw, 36px);
}

.hero {
  isolation: isolate;
  min-height: clamp(360px, 36vw, 525px);
  padding: clamp(32px, 5.3vw, 82px);
  background: #090f16;
  border-color: #283943;
}

.hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, #090f16 14%, #090f16f7 31%, #090f1680 54%, #090f1600 80%),
    linear-gradient(0deg, #090f169e, transparent 36%);
}

.hero-copy { z-index: 2; max-width: 65%; }
.hero-topic { gap: 9px; color: var(--accent); font-weight: 640; letter-spacing: .085em; }
.hero-topic span { width: 6px; height: 6px; background: currentColor; }
.hero h1 {
  margin: 15px 0 17px;
  font-size: clamp(40px, 5vw, 76px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.055em;
}
.hero h1 span { color: var(--accent); }
.hero-deck { max-width: 28em; color: #c3ced5; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.75; }
.hero-image {
  position: absolute;
  z-index: 0;
  inset: 0 0 0 auto;
  width: 83%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: right 46%;
}
.hero .button {
  min-height: 46px;
  margin: 24px 0 0;
  padding: 10px 16px;
  border-radius: 9px;
  background: var(--accent);
  color: #0f2114;
}
.hero .button:hover { background: #d5f7c9; }

.section-head { min-height: 40px; margin-bottom: 12px; }
.section-head h2 { line-height: 1.25; letter-spacing: -.035em; }
.subtle-link { color: var(--accent); }

.overview {
  min-width: 0;
  min-height: 0;
  padding: 16px;
  background: #111a23;
}
.overview h2 { margin-left: 0; }
.overview-link {
  min-height: 54px;
  padding: 8px;
  border-color: transparent;
  border-radius: 9px;
  background: transparent;
}
.overview-link + .overview-link { margin-top: 0; border-top-color: var(--outline); }
.overview-link:hover { border-color: #587369; background: #19252d; }
.access-icon { color: var(--accent); background: #223430; }
.access-copy strong { font-size: 23px; }
.access-copy strong span,.trailing { color: var(--muted); }

.featured-grid { gap: 12px; }
.feature,
.feature.orbit,
.feature.desktop,
.feature.notes {
  min-height: 192px;
  padding: clamp(12px, 1.45vw, 21px);
  border-color: var(--outline);
  color: var(--ink);
  background: #14202a;
}
.feature.orbit {
  border-color: #3e5b56;
  background: radial-gradient(ellipse at 105% 100%, #203a37 0, #15242b 60%);
}
.feature:hover,.feature.orbit:hover,.feature.notes:hover { border-color: #8bb18f; }
.feature .feature-top > span:last-child,.orbit .feature-top > span:last-child,
.feature p,.feature.orbit p { color: var(--muted); }
.feature-top img { border: 1px solid #48645d; }
.feature .feature-icon,.feature.notes .feature-icon { color: #c7d9df; background: #21323f; }
.feature-end,.feature.orbit .feature-end { color: var(--accent); overflow-wrap: anywhere; }

.update-dot.orange { background: #e0b177; }
.update-dot.sage { background: #a1cfb3; }
.update-dot.lavender { background: #b6b2e2; }
.updates { align-self: start; min-width: 0; }
.update-link { grid-template-columns: 8px minmax(0, 1fr) minmax(min-content, 41%); }
.version {
  justify-self: end;
  background: #263847;
  color: #d2e1eb;
  white-space: normal;
  overflow-wrap: anywhere;
}

.guide-card,
.guide-card:nth-child(2),
.guide-card.guide-compare,
.work-card,
.reading-link,
.reading-link + .reading-link { background: #17222d; }
.guide-card:hover,.work-card:hover,.work-card:focus-within,.reading-link:hover { border-color: #628273; }
.guide-card-category,.guide-card-foot svg,.small-plan li b,.work-arrow,.read-type { color: var(--accent); }
.work-kicker,.work-card[data-kind="skills"] .work-kicker,
.work-card[data-kind="notes"] .work-kicker,
.work-card[data-kind="repositories"] .work-kicker,.work-meta { color: var(--muted); }
.filter-list button,.empty button { min-height: 44px; background: #17222d; }
.filter-list button:hover,.empty button:hover { border-color: #8bb18f; }
.filter-list button[aria-pressed="true"] { border-color: #638365; background: #bfdcaa; color: #132019; }
.reading { min-width: 0; }

@media (min-width: 920px) {
  .dashboard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  .dashboard-content {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "hero"
      "featured"
      "overview"
      "guides"
      "plan"
      "archive"
      "updates"
      "reading";
    grid-template-rows: none;
  }
  .overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .overview h2 { grid-column: 1 / -1; }
  .overview-link,.overview-link + .overview-link { align-items: center; border: 1px solid var(--outline); }
  .overview-link:hover { border-color: #587369; }
  .hero-copy { max-width: 74%; }
  .hero-image { width: 89%; }
}

@media (max-width: 560px) {
  .shell { --inset: 12px; --radius: 16px; }
  .topbar { margin-bottom: 12px; }
  .top-title { font-size: 13px; }
  .search-form { min-width: 0; width: min(68%, 340px); }
  .search-field input::placeholder { font-size: 12px; }
  .hero { min-height: 374px; align-content: end; padding: 20px 17px 23px; border-radius: 17px; }
  .hero::after {
    background:
      linear-gradient(0deg, #090f16 2%, #090f16ed 31%, #090f1682 64%, #090f161f 100%),
      linear-gradient(90deg, #090f16b0, transparent 93%);
  }
  .hero-copy { max-width: none; }
  .hero h1 { margin: 10px 0 12px; font-size: clamp(31px, 9.2vw, 46px); }
  .hero-deck { max-width: 25em; }
  .hero-image { width: 100%; object-position: 66% 37%; }
  .hero .button { margin-top: 16px; }
  .overview { padding: 9px; gap: 5px; }
  .overview-link { min-height: 82px; padding: 7px; }
  .access-copy strong { font-size: 20px; }
  .featured-grid { gap: 8px; }
  .feature,.feature.orbit,.feature.desktop,.feature.notes { min-height: 147px; padding: 12px; }
}

@media (max-width: 960px) and (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 288px; padding: 26px 24px; }
}
