* { box-sizing: border-box; }
html { background: var(--background); color-scheme: light; }
html.dark { color-scheme: dark; }
body { min-width: 320px; margin: 0; overflow-x: clip; background: var(--background); color: var(--foreground); font-family: var(--font-sans); font-size: var(--kit-body-size); line-height: var(--kit-leading); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.starter-topbar { min-height: 72px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: calc(var(--kit-space-base) * 2); padding-inline: clamp(16px, 4vw, 48px); border-bottom: 1px solid var(--border); background: var(--background); }
.starter-topbar > *, .starter-app-shell > *, .starter-work-grid > *, .starter-shop-layout > *, .starter-lead-story > * { min-width: 0; }
.starter-brand { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; color: var(--foreground); font-family: var(--font-heading); font-weight: 800; text-decoration: none; }
.starter-topbar > nav { display: flex; justify-content: center; gap: 4px; }
.starter-topbar > nav button, .starter-settings select { min-height: var(--kit-control-height); border: 1px solid transparent; border-radius: var(--radius-control); background: transparent; color: var(--muted-foreground); cursor: pointer; }
.starter-topbar > nav button { padding-inline: 14px; font-weight: 700; }
.starter-topbar > nav button[aria-pressed="true"] { background: var(--secondary); color: var(--secondary-foreground); }
.starter-settings { display: flex; align-items: center; gap: 8px; }
.starter-settings select { max-width: 9rem; padding-inline: 12px; border-color: var(--border); background: var(--card); color: var(--card-foreground); }
.starter-view { min-height: calc(100dvh - 72px); }
.starter-view[hidden] { display: none; }

.starter-app-shell { min-height: calc(100dvh - 72px); display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.starter-sidebar { display: flex; flex-direction: column; gap: 20px; padding: 24px 16px; border-right: 1px solid var(--border); background: var(--plane-2); color: var(--foreground); }
.starter-sidebar > strong { padding-inline: 12px; font-family: var(--font-heading); font-size: 18px; }
.starter-sidebar nav { display: grid; gap: 4px; }
.starter-sidebar nav button { min-height: var(--kit-control-height); display: flex; align-items: center; justify-content: space-between; padding-inline: 12px; border: 0; border-radius: var(--radius-control); background: transparent; color: inherit; text-align: left; cursor: pointer; }
.starter-sidebar nav button[aria-current="page"] { background: var(--accent); color: var(--accent-foreground); font-weight: 750; }
.starter-sidebar__status { margin-top: auto; padding: 12px; border-top: 1px solid var(--border); }
.starter-workspace, .starter-marketing, .starter-shop, .starter-publication { width: min(100%, 1180px); margin-inline: auto; padding: clamp(24px, 5vw, 64px); }
.starter-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: clamp(24px, 4vw, 44px); border-bottom: 1px solid var(--border); }
.starter-page-heading > div { max-width: 720px; }
.starter-page-heading span, .starter-panel header span, .starter-hero > span, .starter-commitment span, .starter-lead-story span { color: var(--muted-foreground); font-size: var(--kit-compact-size); font-weight: 750; text-transform: uppercase; }
.starter-page-heading h1, .starter-hero h1 { max-width: 14ch; margin: 8px 0 12px; font-family: var(--font-heading); font-size: clamp(36px, 7vw, 76px); line-height: .98; letter-spacing: -.055em; }
.starter-page-heading p, .starter-hero p { max-width: var(--kit-reading-measure); margin: 0; color: var(--muted-foreground); font-size: clamp(16px, 2vw, 19px); }
.starter-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-block: 28px; }
.starter-stat-grid .kit-card { max-width: none; min-height: 168px; }
.starter-stat-grid strong { margin-top: auto; font-family: var(--font-heading); font-size: clamp(32px, 5vw, 52px); line-height: 1; }
.starter-work-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 16px; }
.starter-panel { display: flex; flex-direction: column; gap: 16px; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--card); color: var(--card-foreground); box-shadow: var(--shadow-panel); }
.starter-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.starter-panel h2 { margin: 3px 0 0; font-family: var(--font-heading); font-size: 22px; }
.starter-task { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); }
.starter-task:last-child { border-bottom: 0; }

.starter-marketing { display: grid; gap: clamp(40px, 7vw, 84px); }
.starter-hero { min-height: 560px; display: grid; place-content: center; justify-items: center; text-align: center; }
.starter-hero h1 { max-width: 13ch; }
.starter-hero p { max-width: 58ch; }
.starter-hero > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.starter-proof { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--border); }
.starter-proof > div { min-height: 140px; display: grid; align-content: center; gap: 6px; padding: 20px; border-right: 1px solid var(--border); text-align: center; }
.starter-proof > div:last-child { border-right: 0; }
.starter-proof strong { font-family: var(--font-heading); font-size: clamp(30px, 5vw, 48px); }
.starter-proof span { color: var(--muted-foreground); }
.starter-feature-grid, .starter-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.starter-feature-grid .kit-card, .starter-products .kit-card { max-width: none; }
.starter-commitment { min-height: 260px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(24px, 5vw, 52px); border-radius: var(--radius-sheet); background: var(--primary); color: var(--primary-foreground); }
.starter-commitment span { color: inherit; opacity: .72; }
.starter-commitment h2 { max-width: 16ch; margin: 8px 0 0; font-family: var(--font-heading); font-size: clamp(28px, 5vw, 48px); line-height: 1; }
.starter-commitment .kit-button { background: var(--primary-foreground); color: var(--primary); }

.starter-shop-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding-top: 28px; }
.starter-filter { display: flex; flex-direction: column; gap: 20px; }
.starter-filter fieldset { display: grid; gap: 4px; margin: 0; padding: 16px 0 0; border: 0; border-top: 1px solid var(--border); }
.starter-filter legend { margin-bottom: 8px; font-weight: 750; }
.starter-product-art, .starter-story-art { display: grid; place-items: center; min-height: 220px; border-radius: calc(var(--radius-card) - 2px); background: var(--plane-2); color: var(--ink-faint); font-family: var(--font-heading); font-size: 40px; font-weight: 800; }
.starter-products .kit-card footer { align-items: center; justify-content: space-between; margin-top: auto; }

.starter-publication { display: grid; gap: 32px; }
.starter-lead-story { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: clamp(24px, 5vw, 60px); align-items: center; padding-block: 24px 48px; border-bottom: 1px solid var(--border); }
.starter-story-art { min-height: 420px; }
.starter-lead-story h2 { margin: 10px 0 14px; font-family: var(--font-heading); font-size: clamp(30px, 5vw, 54px); line-height: 1.03; letter-spacing: -.045em; }
.starter-lead-story p { margin: 0 0 22px; color: var(--muted-foreground); font-size: 17px; }
.starter-story-list { display: grid; }
.starter-story-list article { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.starter-story-list article > span { color: var(--ink-faint); font-family: var(--font-sans); font-variant-numeric: tabular-nums; }
.starter-story-list h3 { margin: 4px 0 6px; font-family: var(--font-heading); font-size: 22px; }
.starter-story-list p, .starter-story-list small { margin: 0; color: var(--muted-foreground); }

@media (max-width: 800px) {
  .starter-topbar { grid-template-columns: 1fr auto; padding-block: 12px; }
  .starter-topbar > nav { width: 100%; grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; }
  .starter-settings select { max-width: 7rem; }
  .starter-app-shell { grid-template-columns: 1fr; }
  .starter-sidebar { border-right: 0; border-bottom: 1px solid var(--border); }
  .starter-sidebar > strong, .starter-sidebar__status { display: none; }
  .starter-sidebar nav { width: 100%; display: flex; overflow-x: auto; }
  .starter-sidebar nav button { flex: 0 0 auto; }
  .starter-stat-grid, .starter-feature-grid, .starter-products { grid-template-columns: 1fr; }
  .starter-work-grid, .starter-shop-layout, .starter-lead-story { grid-template-columns: 1fr; }
  .starter-filter { padding-bottom: 24px; border-bottom: 1px solid var(--border); }
  .starter-story-art { min-height: 260px; }
}

@media (max-width: 560px) {
  .starter-topbar { grid-template-columns: 1fr; }
  .starter-settings { grid-row: 2; justify-content: space-between; }
  .starter-topbar > nav { grid-row: 3; }
  .starter-page-heading, .starter-commitment { align-items: stretch; flex-direction: column; }
  .starter-page-heading > button, .starter-commitment > button { width: 100%; }
  .starter-proof { grid-template-columns: 1fr; }
  .starter-proof > div { border-right: 0; border-bottom: 1px solid var(--border); }
  .starter-proof > div:last-child { border-bottom: 0; }
  .starter-hero { min-height: 460px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
