:root {
  color-scheme: light;
  --page: #eef3f8;
  --page-soft: #f7f9fc;
  --surface: #ffffff;
  --surface-strong: #f0f5fa;
  --ink: #09213a;
  --muted: #587087;
  --border: #d6e1ec;
  --border-strong: #bfd0df;
  --hero: #0b2f49;
  --hero-deep: #08263b;
  --primary: #176ea5;
  --primary-dark: #0e5a8e;
  --bright: #42a5e8;
  --cyan: #22c7df;
  --success: #2d9d68;
  --warning: #d99114;
  --danger: #d84d5f;
  --shadow-sm: 0 5px 18px rgba(9, 33, 58, 0.07);
  --shadow-md: 0 18px 45px rgba(9, 33, 58, 0.12);
  --radius-control: 9px;
  --radius-card: 15px;
  --gutter: clamp(16px, 4vw, 32px);
  --content: 1480px;
  font-family: "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

button,
input,
select {
  font: inherit;
}

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

a {
  color: var(--primary);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(34, 199, 223, 0.55);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  transform: translateY(-150%);
  padding: 9px 13px;
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px var(--gutter);
  background: rgba(11, 16, 32, 0.96);
  border-bottom: 1px solid #283654;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #f2f6ff;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--hero), var(--primary));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 20px rgba(23, 110, 165, 0.22);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  line-height: 1.25;
}

.brand small {
  margin-top: 2px;
  color: #9babc7;
  font-size: 11px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topnav a {
  padding: 8px 11px;
  border-radius: 8px;
  color: #b8c7dd;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.topnav a:hover {
  background: #19233a;
  color: #fff;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.55fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  max-width: var(--content);
  min-height: 440px;
  margin: 24px auto 0;
  padding: clamp(44px, 7vw, 82px) clamp(28px, 6vw, 86px);
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(circle at 86% 12%, rgba(66, 165, 232, 0.28), transparent 28%),
    radial-gradient(circle at 70% 100%, rgba(34, 199, 223, 0.12), transparent 34%),
    linear-gradient(135deg, var(--hero-deep), var(--hero));
  box-shadow: var(--shadow-md);
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--cyan), var(--bright), transparent 90%);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 380px;
  height: 380px;
  right: -150px;
  top: -170px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255, 255, 255, 0.025), 0 0 0 110px rgba(255, 255, 255, 0.02);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow-dark {
  color: var(--primary);
}

.hero h1 {
  max-width: 810px;
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 5.5vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.hero-lead {
  max-width: 750px;
  margin: 22px 0 0;
  color: #c9d9e7;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--bright), #2589c8);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.button-primary:hover {
  background: linear-gradient(135deg, #5ab4ed, var(--primary));
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
}

.button-subtle {
  border-color: var(--border);
  background: var(--surface-strong);
  color: var(--ink);
}

.button-outline {
  border-color: var(--primary);
  background: transparent;
  color: var(--primary-dark);
}

.button-ghost-light {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.hero-panel {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: var(--radius-card);
  background: rgba(3, 20, 33, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d8e7f3;
  font-size: 12px;
  font-weight: 700;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #43d58f;
  box-shadow: 0 0 0 5px rgba(67, 213, 143, 0.12);
}

.hero-panel dl {
  display: grid;
  gap: 1px;
  margin: 20px 0;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-panel dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 13px;
  background: rgba(5, 29, 46, 0.92);
}

.hero-panel dt {
  color: #a9c0d3;
  font-size: 12px;
}

.hero-panel dd {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-align: right;
}

.bundle-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.bundle-link span {
  width: 31px;
  height: 31px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(34, 199, 223, 0.18);
  color: var(--cyan);
}

.summary-wrap {
  max-width: var(--content);
  margin: 0 auto;
  padding: 18px var(--gutter) 0;
}

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

.summary-tile {
  min-width: 0;
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.summary-tile:hover,
.summary-tile.is-active {
  transform: translateY(-2px);
  border-color: #9bc9e5;
  box-shadow: 0 14px 28px rgba(23, 110, 165, 0.12);
}

.summary-icon {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  font-weight: 850;
}

.summary-icon-skill { background: #e7f3fb; color: var(--primary); }
.summary-icon-document { background: #e8f7f2; color: var(--success); }
.summary-icon-video { background: #fff2e1; color: #b96c00; }
.summary-icon-tool { background: #e8eefc; color: #4b66b1; }
.summary-icon-category { background: #eeeafa; color: #7158b8; }

.summary-tile strong,
.summary-tile small {
  display: block;
}

.summary-tile strong {
  font-size: 26px;
  line-height: 1.05;
}

.summary-tile small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.resource-section {
  max-width: var(--content);
  margin: 0 auto;
  padding: 74px var(--gutter) 88px;
}

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

.section-heading h2,
.install-section h2,
.contribute-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.section-heading p:not(.eyebrow),
.contribute-section p:not(.eyebrow) {
  max-width: 700px;
  margin: 9px 0 0;
  color: var(--muted);
}

.text-link {
  flex: 0 0 auto;
  font-weight: 750;
  text-underline-offset: 4px;
}

.filter-panel {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.type-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5edf4;
}

.filter-chip {
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.filter-chip:hover {
  background: var(--surface-strong);
  color: var(--ink);
}

.filter-chip.is-active {
  border-color: #c6e3f4;
  background: #eaf5fb;
  color: var(--primary-dark);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(4, minmax(145px, 0.46fr)) auto;
  gap: 10px;
  padding-top: 14px;
}

.search-field {
  position: relative;
  min-width: 0;
}

.search-field svg {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  fill: none;
  stroke: #6a8297;
  stroke-linecap: round;
  stroke-width: 1.8;
  pointer-events: none;
}

.toolbar input,
.toolbar select {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  background: #fff;
  color: var(--ink);
}

.toolbar input {
  padding-left: 40px;
}

.toolbar input::placeholder {
  color: #7c92a5;
}

.toolbar select:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.results-bar {
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 2px;
  color: var(--muted);
  font-size: 13px;
}

.results-bar p {
  margin: 0;
  font-weight: 700;
}

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

.resource-card {
  min-width: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.resource-card:hover {
  transform: translateY(-2px);
  border-color: #b9d2e4;
  box-shadow: 0 16px 34px rgba(9, 33, 58, 0.11);
}

.card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.type-badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.type-badge-skill { background: #e7f3fb; color: var(--primary-dark); }
.type-badge-document { background: #e8f7f2; color: #237d54; }
.type-badge-video { background: #fff2e1; color: #a56000; }
.type-badge-tool { background: #eeeafa; color: #634aa8; }
.status-available { background: #e7f6ee; color: #237d54; }
.status-planned { background: #f1f4f7; color: #60778b; }

.resource-card h3 {
  margin: 16px 0 8px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.24;
  letter-spacing: -0.018em;
}

.resource-card .description {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.skill-key {
  display: block;
  margin-top: 10px;
  overflow: hidden;
  color: var(--primary-dark);
  font: 650 11px/1.5 Consolas, "Courier New", monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 15px;
}

.meta-pill {
  max-width: 100%;
  padding: 4px 8px;
  overflow: hidden;
  border: 1px solid #e0e9f1;
  border-radius: 7px;
  background: #f8fafc;
  color: #4c667c;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-pill,
.effort-pill,
.version-pill,
.date-pill {
  border-color: transparent;
}

.model-terra { background: #e7f3fb; color: #0e5a8e; }
.model-sol { background: #eeeafa; color: #634aa8; }
.model-luna { background: #e8f7f2; color: #237d54; }
.model-spark { background: #fff2e1; color: #a56000; }
.effort-low { background: #eef5f8; color: #416178; }
.effort-medium { background: #eaf5fb; color: #0e5a8e; }
.effort-high,
.effort-max { background: #f5eafa; color: #784d94; }
.version-pill { background: #f0f3f8; color: #43546b; }
.date-pill { background: #f7f4eb; color: #6c5a2f; }

.examples {
  margin-top: 16px;
  border-top: 1px solid #e7eef4;
  border-bottom: 1px solid #e7eef4;
}

.examples summary {
  padding: 10px 2px;
  cursor: pointer;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
}

.example-list {
  display: grid;
  gap: 9px;
  padding: 0 0 12px;
}

.example-prompt {
  position: relative;
  margin: 0;
  padding: 10px 38px 10px 10px;
  overflow-wrap: anywhere;
  border-radius: 9px;
  background: #f1f6fa;
  color: #23445e;
  font: 11px/1.55 Consolas, "Courier New", monospace;
}

.copy-example {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 27px;
  height: 27px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #cfdeea;
  border-radius: 7px;
  background: #fff;
  color: var(--primary);
  cursor: pointer;
  font-size: 12px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.card-action {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.card-action:hover {
  border-color: #85bddf;
  background: #f0f8fc;
  color: var(--primary-dark);
}

.card-action-primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.card-action-primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

.empty-state {
  padding: 60px 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.empty-state h3 {
  margin: 13px 0 5px;
}

.empty-state p {
  margin: 0 0 18px;
  color: var(--muted);
}

.empty-icon {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: #e9f2f8;
  color: var(--primary);
  font-size: 21px;
  font-weight: 850;
}

.model-section {
  display: grid;
  grid-template-columns: minmax(290px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  padding: clamp(54px, 8vw, 92px) max(var(--gutter), calc((100vw - var(--content)) / 2 + var(--gutter)));
  background:
    radial-gradient(circle at 90% 0, rgba(110, 168, 254, 0.2), transparent 32%),
    radial-gradient(circle at 10% 100%, rgba(77, 212, 230, 0.12), transparent 28%),
    #0b1020;
  color: #f2f6ff;
}

.model-intro h2 {
  margin: 0;
  max-width: 620px;
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.model-intro > p:not(.eyebrow) {
  max-width: 660px;
  margin: 18px 0 26px;
  color: #aebed4;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.model-card {
  min-width: 0;
  padding: 19px;
  border: 1px solid #283654;
  border-radius: 14px;
  background: linear-gradient(145deg, #19233a, #121a2d);
  box-shadow: 0 18px 38px rgba(3, 6, 17, 0.24);
}

.model-card h3 {
  margin: 7px 0 8px;
  color: #fff;
  font-size: 18px;
}

.model-card p {
  min-height: 60px;
  margin: 0 0 13px;
  color: #9babc7;
  font-size: 12px;
}

.model-card strong,
.model-card small {
  display: block;
}

.model-card strong { color: #f2f6ff; font-size: 12px; }
.model-card small { margin-top: 3px; color: #8ea0bc; font-size: 10px; }
.model-kicker { color: #4dd4e6; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.model-card.model-sol { border-top-color: #bc8cff; }
.model-card.model-terra { border-top-color: #6ea8fe; }
.model-card.model-luna { border-top-color: #54d69a; }
.model-card.model-spark { border-top-color: #ffc866; }

.install-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
  padding: clamp(50px, 8vw, 90px) max(var(--gutter), calc((100vw - var(--content)) / 2 + var(--gutter)));
  background:
    radial-gradient(circle at 15% 100%, rgba(34, 199, 223, 0.12), transparent 28%),
    var(--hero);
  color: #fff;
}

.install-section h2 {
  color: #fff;
}

.install-steps {
  display: grid;
  gap: 12px;
  margin: 25px 0 28px;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.install-steps li {
  position: relative;
  min-height: 51px;
  padding-left: 58px;
  counter-increment: steps;
}

.install-steps li::before {
  content: counter(steps);
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--cyan);
  font-weight: 850;
}

.install-steps strong,
.install-steps span {
  display: block;
}

.install-steps strong {
  color: #fff;
}

.install-steps span {
  margin-top: 2px;
  color: #b8cede;
  font-size: 13px;
}

.install-steps code {
  color: #d7f9fd;
}

.code-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: var(--radius-card);
  background: #071d2d;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.25);
}

.code-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.04);
  color: #bcd0df;
  font-size: 11px;
  font-weight: 750;
}

.code-card-head button {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: transparent;
  color: #d8e7f2;
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
}

.code-card pre {
  margin: 0;
  padding: 22px;
  overflow: auto;
  color: #bfe9f3;
  font: 12px/1.75 Consolas, "Courier New", monospace;
}

.contribute-section {
  max-width: var(--content);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 0 auto;
  padding: 70px var(--gutter);
}

.contribute-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 9px;
}

footer {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px max(var(--gutter), calc((100vw - var(--content)) / 2 + var(--gutter)));
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}

footer strong,
footer span {
  display: block;
}

footer strong {
  color: var(--ink);
  font-size: 13px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  max-width: min(360px, calc(100vw - 40px));
  padding: 11px 14px;
  transform: translateY(25px);
  border-radius: 10px;
  background: #08263b;
  box-shadow: var(--shadow-md);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: transform 180ms ease, opacity 180ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1120px) {
  .hero {
    margin-right: var(--gutter);
    margin-left: var(--gutter);
  }

  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .toolbar .button-subtle {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .search-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .topnav {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 50px 32px;
  }

  .hero-panel {
    max-width: 540px;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading,
  .contribute-section {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .search-field {
    grid-column: 1 / -1;
  }

  .install-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .model-section {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .topbar {
    min-height: 64px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero {
    min-height: 0;
    margin-top: 14px;
    padding: 42px 22px;
    border-radius: 16px;
  }

  .hero h1 {
    font-size: clamp(34px, 12vw, 47px);
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .summary-wrap {
    padding-right: var(--gutter);
    padding-left: var(--gutter);
  }

  .summary-grid,
  .resource-grid,
  .toolbar,
  .model-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .search-field,
  .toolbar .button-subtle {
    grid-column: auto;
  }

  .summary-tile {
    min-height: 82px;
  }

  .resource-section {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .type-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 11px;
  }

  .filter-chip {
    flex: 0 0 auto;
  }

  .results-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .install-section {
    padding-right: var(--gutter);
    padding-left: var(--gutter);
  }

  .code-card pre {
    padding: 17px;
    font-size: 11px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
