/* ==========================================================================
   DELTA — Layout
   1. Kit shell      (documentation pages: sidebar + main)
   2. Kit page head  (eyebrow, title, lead)
   3. Marketing      (container + section rhythm for the Roadnote demo)
   Depends on: tokens.css
   ========================================================================== */

/* 1. Kit shell ----------------------------------------------------------- */
.kit-shell {
  display: flex;
  flex-wrap: wrap;
  min-height: 100vh;
}

.kit-shell__sidebar {
  flex: 0 0 var(--kit-sidebar);
  min-width: 0;
}

.kit-shell__main {
  flex: 1 1 640px;
  min-width: 0;
  max-width: var(--kit-main-max);
  padding: clamp(32px, 5vw, 72px) clamp(20px, 4vw, 64px) 96px;
}

/* Below 900px the sidebar collapses into a floating "Kit index" button */
@media (max-width: 899px) {
  .kit-shell {
    display: block;
  }
}

/* 2. Kit page head ------------------------------------------------------- */
.page-title {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 88px);
  line-height: .95;
  letter-spacing: -.045em;
  font-weight: 700;
}

.page-lead {
  margin: 20px 0 0;
  max-width: 62ch;
  font-size: 18px;
  color: var(--ink-2);
}

.kit-section {
  margin-top: 56px;
}

.kit-section--lg {
  margin-top: 64px;
}

/* Section heading used throughout the kit pages */
.kit-h2 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -.02em;
}

/* 3. Marketing ----------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Standard content section: stage-driven top rhythm */
.section {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--sec-pad) var(--gutter) 0;
}

/* Last section before the footer also gets bottom padding */
.section--end {
  padding-bottom: var(--sec-pad);
}

/* Hero section at the top of a page */
.section--hero {
  padding-top: clamp(56px, 8vw, 112px);
}
