* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font: 1rem/1.55 var(--font-body);
}
a {
  color: var(--primary);
  text-underline-offset: 0.2em;
}
button {
  font: inherit;
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.skip {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.6rem;
  background: var(--card);
  transform: translateY(-130%);
}
.skip:focus {
  transform: none;
}
.masthead {
  background: var(--card);
  border-top: 0.25rem solid var(--brand-accent);
  border-bottom: 1px solid var(--border);
}
.bar {
  max-width: 70rem;
  min-height: 4.5rem;
  margin-inline: auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--foreground);
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.045em;
}
.brand svg {
  width: 2rem;
  height: 2rem;
  border-radius: 0.4rem;
  color: var(--primary-foreground);
  background: var(--primary);
  box-shadow: 3px 3px 0 var(--brand-accent);
}
.bar nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  font-size: 0.92rem;
}
.bar nav a {
  color: var(--foreground);
  text-decoration: none;
}
.bar nav a:hover,
footer a:hover {
  text-decoration: underline;
}
.theme-menu {
  display: none;
  position: relative;
}
.enhanced .theme-menu {
  display: block;
}
.theme-menu button {
  padding: 0.44rem 0.7rem;
  color: var(--foreground);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
[data-theme-popup] {
  position: absolute;
  z-index: 1;
  right: 0;
  top: calc(100% + 0.25rem);
  min-width: 8rem;
  border: 1px solid var(--border);
  padding: 0.35rem;
  background: var(--popover);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}
[data-theme-popup] button {
  display: block;
  width: 100%;
  border: 0;
  text-align: left;
}
[data-theme-option][aria-checked='true'] {
  background: var(--secondary);
  color: var(--secondary-foreground);
}
main {
  width: min(52rem, 100%);
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 6.5rem) 1.5rem 2rem;
}
h1,
h2 {
  font-family: var(--font-heading);
  line-height: 1.15;
  text-wrap: balance;
}
h1 {
  margin: 0;
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  letter-spacing: -0.055em;
}
.intro {
  margin: 0.9rem 0 2rem;
  font-size: clamp(1rem, 2vw, 1.19rem);
  color: var(--muted-foreground);
}
.installer {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-card);
  overflow: clip;
}
.platform-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  padding: 0 clamp(1.25rem, 4vw, 2.3rem);
  background: var(--muted);
  border-bottom: 1px solid var(--border);
}
.platform-nav a {
  color: var(--foreground);
  padding: 0.95rem 0.05rem 0.8rem;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  font-weight: 600;
}
.platform-nav a:hover,
.platform-nav a[aria-current] {
  color: var(--primary);
  border-color: var(--primary);
}
.platform-nav a:focus-visible {
  outline-offset: -3px;
}
.platform {
  padding: clamp(1.3rem, 5vw, 2.3rem);
  scroll-margin: 1rem;
}
.platform + .platform {
  border-top: 1px solid var(--border);
}
.platform[hidden] + .platform {
  border: 0;
}
h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  letter-spacing: -0.035em;
}
.platform p {
  margin: 0.65rem 0 1.4rem;
}
.downloads,
.unix-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--input);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--foreground);
  text-decoration: none;
  font-weight: 650;
}
.action:hover {
  background: var(--secondary);
  color: var(--secondary-foreground);
}
.action.primary {
  color: var(--primary-foreground);
  background: var(--primary);
  border-color: var(--primary);
}
.action.primary:hover {
  filter: brightness(0.92);
}
.platform .fine-print,
#copy-status {
  color: var(--muted-foreground);
  font-size: 0.9rem;
}
.platform .fine-print {
  margin: 1rem 0 0;
}
#copy-status:not(:empty) {
  display: block;
  margin-top: 0.7rem;
}
.command {
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--background);
  margin: 0 0 1rem;
}
code {
  font-family: ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}
.command code {
  user-select: all;
  font-size: 0.95rem;
}
footer {
  padding-top: 1.3rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
}
footer a {
  font-size: 0.95rem;
}
@media (max-width: 30rem) {
  .bar {
    padding-inline: 1rem;
  }
  .bar nav {
    gap: 0.65rem;
  }
  main {
    padding-inline: 1rem;
  }
  .downloads .action {
    flex: 1 1 100%;
  }
}
