/* cobihw.com styles, shared by the Portuguese (/) and English (/en/) pages. */

/* Theme: the page is dark only; colors and fonts used everywhere. */
:root {
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: dark;
  --paper: #090b10;
  --raised: #11151e;
  --ink: #f2f4fb;
  --muted: #9ca7ba;
  --line: #252b39;
  --chip: #1b2230;
  --cta: #b3f07c;
  --cta-hover: #c6ffa0;
  --cta-ink: #12200b;
  --accent: #b7a5ff;
  --focus: #b3f07c;
  --nav-h: 76px;
}

/* Base elements and accessibility helpers. */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(ellipse 650px 560px at 85% 8%, #31234b66, transparent), radial-gradient(ellipse 500px 500px at 15% 22%, #173b4244, transparent), var(--paper);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

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

img {
  max-width: 100%;
}

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

.sr-only:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  clip: auto;
  z-index: 999;
  background: var(--raised);
  padding: 12px;
}

/* Page layout: content width, sections and headings. */
.wrap {
  margin: 0 auto;
  max-width: 1240px;
  padding-inline: 28px;
}

.section {
  border-top: 1px solid var(--line);
  padding-block: 96px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 12px;
}

.section-lede {
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 36px;
  line-height: 1.75;
}

h3 {
  font-size: 1.0625rem;
  margin: 0 0 6px;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -.045em;
}

.section:nth-of-type(odd) {
  background: #10141b88;
}

/* Top navigation bar and the mobile menu. */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
  height: 76px;
  --nav-h: 76px;
  background: #090b10d9;
}

.nav .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -.045em;
}

.brand img {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--chip);
}

.nav-links a[aria-current="true"] {
  color: var(--ink);
  background: var(--chip);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--ink);
}

.lang-link {
  display: grid;
  place-items: center;
  height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.lang-link:hover {
  color: var(--ink);
  background: var(--chip);
}

.icon-btn:hover {
  background: var(--chip);
}

.menu-toggle {
  display: none;
  font: inherit;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

/* Buttons. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s, background .2s;
  border-radius: 999px;
}

.btn-primary {
  background: var(--cta);
  color: var(--cta-ink);
}

.btn-primary:hover {
  background: var(--cta-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--muted);
}

.btn-small {
  padding: 8px 14px;
  font-size: 0.9375rem;
}

.btn:hover {
  transform: translateY(-2px);
}

/* Hero: title, intro and the download buttons. */
.hero {
  padding-block: 64px 32px;
  padding-top: 76px;
  position: relative;
}

.hero h1 {
  font-family: var(--font-display);
  margin: 0 0 18px;
  font-size: clamp(3rem, 6.8vw, 6.3rem);
  letter-spacing: -.065em;
  max-width: 17ch;
  line-height: 1.02;
}

.hero .lede {
  font-size: 1.1875rem;
  color: var(--muted);
  margin: 0 0 28px;
  line-height: 1.7;
  max-width: 53ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.fineprint {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 14px 0 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 25px;
  color: var(--accent);
}

.eyebrow:before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--cta);
  border-radius: 50%;
}

.hero .fineprint {
  font-size: 13px;
}

.hero-art {
  display: block;
  position: absolute;
  right: 90px;
  top: 70px;
  width: 230px;
  filter: drop-shadow(0 0 70px #9c67e848);
  transform: rotate(-12deg);
  opacity: .85;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #b3f07c, #65d4f0 55%, #c7a4fb);
  background-clip: text;
  color: transparent;
}

/* Demo: the fake Windows desktop and taskbar. */
.demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
  margin-top: 54px;
}

.desk {
  position: relative;
  overflow: hidden;
  background: #0B1430;
  border: 1px solid var(--line);
  box-shadow: 0 32px 100px #0008;
  border-radius: 18px;
}

.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 1000px;
  height: 590px;
  transform-origin: 0 0;
  overflow: hidden;
  background: #0B1430 center / cover no-repeat;
  background-image: radial-gradient(ellipse at 25% 70%, #205478 0, transparent 55%), radial-gradient(ellipse at 70% 25%, #443565 0, transparent 60%), linear-gradient(130deg, #101b2d, #081222);
  user-select: none;
  -webkit-user-select: none;
  font-family: "Segoe UI", system-ui, sans-serif;
}

.taskbar {
  position: absolute;
  inset: auto 0 0 0;
  height: 40px;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-inline: 10px;
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  font-size: 11px;
  line-height: 1.2;
}

.os-dark .taskbar {
  background: rgba(28, 28, 30, 0.82);
  color: #F2F2F2;
}

.os-light .taskbar {
  background: rgba(240, 242, 245, 0.84);
  color: #1B1B1B;
}

.tb-apps {
  grid-column: 2;
  display: flex;
  gap: 6px;
  align-items: center;
}

.tb-app {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  display: grid;
  place-items: center;
}

.tb-start {
  display: grid;
  grid-template-columns: 7px 7px;
  gap: 2px;
}

.tb-start i {
  width: 7px;
  height: 7px;
  background: #3B9CF4;
  border-radius: 1px;
}

.tb-dot {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.tb-app.running {
  position: relative;
}

.tb-app.running::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 8px;
  height: 3px;
  border-radius: 2px;
  background: #6CB8F6;
}

.tb-tray {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: right;
}

.tb-tray img {
  width: 16px;
  height: 16px;
}

/* Demo: the widget, in its three layouts. */
.widget {
  position: absolute;
  z-index: 20;
  top: 16px;
  left: 676px;
  color: var(--w-text);
  font-size: 13px;
  line-height: 1.38;
  padding: 12px 16px;
  border-radius: var(--w-radius, 8px);
  font-variant-numeric: tabular-nums;
  transform-origin: 0 0;
  cursor: grab;
  touch-action: none;
}

.widget::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--w-bg);
  opacity: var(--w-opacity, 1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.widget.dragging {
  cursor: grabbing;
}

.widget.locked {
  cursor: default;
}

.w-label {
  color: var(--w-label);
  margin-right: 10px;
}

.w-row {
  display: flex;
  align-items: center;
  margin-top: 6px;
  white-space: nowrap;
}

.w-bar {
  width: 130px;
  height: 6px;
  background: var(--w-line);
  border-radius: 3px;
  overflow: hidden;
  flex: none;
}

.w-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--w-label);
  transition: width 0.6s ease, background-color 0.3s;
}

.w-pct {
  min-width: 38px;
  margin-left: 10px;
  text-align: right;
}

.w-detail {
  margin-left: 14px;
}

.w-div {
  height: 1px;
  background: var(--w-line);
  margin: 10px 0;
}

.w-line {
  margin-top: 6px;
  white-space: nowrap;
}

.w-gap {
  margin-left: 20px;
}

.lv-ok .w-fill {
  background: var(--w-ok);
}

.lv-warn .w-fill {
  background: var(--w-warn);
}

.lv-crit .w-fill {
  background: var(--w-crit);
}

.lv-ok .w-pct, .lv-ok .c-pct {
  color: var(--w-ok);
}

.lv-warn .w-pct, .lv-warn .c-pct {
  color: var(--w-warn);
}

.lv-crit .w-pct, .lv-crit .c-pct {
  color: var(--w-crit);
}

.widget.l-h {
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding: 8px 14px;
}

.l-h .c-sep {
  width: 1px;
  align-self: stretch;
  background: var(--w-line);
  margin: 0 12px;
}

.l-h .c-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.l-h .c-pct {
  min-width: 34px;
  text-align: right;
}

.widget.l-v {
  min-width: 150px;
}

.l-v .c-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.l-v .c-sep {
  height: 1px;
  background: var(--w-line);
  margin: 6px 0;
}

.c-label {
  color: var(--w-label);
}

/* Demo: the game, video editor and downloads windows. */
.win {
  position: absolute;
  z-index: 10;
  left: 22%;
  top: 6%;
  width: 64%;
  height: 74%;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(12px) scale(0.985);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.win.show {
  opacity: 1;
  transform: none;
}

.win-bar {
  height: 32px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline: 12px;
  font-size: 12px;
}

.win-bar .ctl {
  margin-left: auto;
  letter-spacing: 14px;
  opacity: 0.7;
}

.win-body {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.os-dark .win {
  background: #202020;
  color: #EDEDED;
}

.os-dark .win-bar {
  background: #2B2B2B;
}

.os-light .win {
  background: #F9F9F9;
  color: #1B1B1B;
}

.os-light .win-bar {
  background: #EDEDED;
}

.win canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.narrow .win {
  left: 5%;
  width: 90%;
  top: 6%;
  height: 56%;
}

.editor {
  display: grid;
  grid-template-rows: 1fr auto;
  height: 100%;
}

.editor-preview {
  margin: 14px auto 10px;
  aspect-ratio: 16 / 9;
  height: calc(100% - 24px);
  max-width: calc(100% - 28px);
  border-radius: 4px;
  background: linear-gradient(135deg, hsl(var(--hue, 210) 70% 45%), hsl(calc(var(--hue, 210) + 60) 70% 30%));
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}

.timeline {
  position: relative;
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(127, 127, 127, 0.25);
  font-size: 11px;
}

.track {
  position: relative;
  height: 16px;
  margin: 4px 0;
  border-radius: 3px;
  background: rgba(127, 127, 127, 0.15);
  overflow: hidden;
}

.track i {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 3px;
}

.playhead {
  position: absolute;
  top: 26px;
  bottom: 30px;
  width: 2px;
  background: #FF5A5A;
  left: 14px;
}

.status {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

.prog {
  height: 6px;
  border-radius: 3px;
  background: rgba(127, 127, 127, 0.22);
  overflow: hidden;
}

.prog i {
  display: block;
  height: 100%;
  width: 0;
  background: #0F6CBD;
}

.dl-list {
  list-style: none;
  margin: 0;
  padding: 18px 22px;
  display: grid;
  gap: 18px;
  font-size: 13px;
}

.dl-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 4px 12px;
  align-items: center;
}

.dl-icon {
  grid-row: span 3;
  width: 34px;
  height: 40px;
  border-radius: 4px;
  background: rgba(127, 127, 127, 0.2);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
}

.dl-meta {
  opacity: 0.7;
  font-size: 12px;
}

/* Demo: settings panel next to the desktop. */
.settings {
  overflow: hidden;
  color: var(--ink);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12), 0 0 0 1px var(--line);
  font-size: 14px;
  border-color: var(--line);
  background: #10141ddd;
  border-radius: 18px;
}

.st-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.st-title img {
  width: 16px;
  height: 16px;
}

.st-body {
  padding: 4px 14px 14px;
  max-height: 620px;
  overflow-y: auto;
}

.st-group {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.st-group:last-child {
  border-bottom: 0;
}

.st-group>h3 {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 8px;
}

.st-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.st-opt {
  font: inherit;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
}

.st-opt[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.st-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
  font-size: 13px;
}

.st-hint {
  color: var(--muted);
  font-size: 12px;
  margin: 6px 0 0;
}

.st-range {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: center;
  font-size: 13px;
  padding: 4px 0;
}

.st-range input {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--accent);
}

.st-range output {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.switch {
  appearance: none;
  -webkit-appearance: none;
  width: 40px;
  height: 20px;
  border-radius: 10px;
  border: 1px solid var(--muted);
  position: relative;
  margin: 0;
  cursor: pointer;
  flex: none;
  transition: background-color 0.2s;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.2s;
}

.switch:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.switch:checked::after {
  transform: translateX(20px);
  background: #fff;
}

/* Demo: scenario buttons and hint. */
.scenes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.scenes .lbl {
  color: var(--muted);
  font-size: 0.9375rem;
}

.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  border-radius: 8px;
  background: var(--chip);
}

.seg button {
  font: inherit;
  font-size: 0.9375rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.seg button[aria-pressed="true"] {
  background: var(--raised);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  font-weight: 600;
}

.demo-hint {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 10px 0 0;
}

/* Features list. */
.metrics {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  margin: 0;
  max-width: none;
}

.metrics dt {
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.metrics dd {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

/* Install: requirements, 64/32-bit choice, download cards and first steps. */
.requirements {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--chip);
  margin-bottom: 28px;
  font-size: 0.9375rem;
}

.downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.dl-card {
  background: var(--raised);
  border: 1px solid var(--line);
  flex-direction: column;
  gap: 10px;
  padding: 36px;
  border-radius: 18px;
  min-width: 0;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 5;
}

.dl-card.recommended {
  border-color: var(--cta);
  box-shadow: 0 0 0 1px var(--cta);
}

.tag {
  align-self: flex-start;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cta) 22%, transparent);
  color: var(--ink);
}

.dl-card p {
  margin: 0;
  color: var(--muted);
}

.dl-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.dl-size {
  font-size: 0.875rem;
  color: var(--muted);
}

.steps {
  margin: 0;
  padding-left: 1.4rem;
  max-width: 66ch;
}

.steps li {
  margin-bottom: 14px;
  padding-left: 6px;
}

.dl-card h3 {
  font-size: 28px;
  letter-spacing: -.04em;
}

.downloads .recommended {
  background: linear-gradient(145deg, #1c3022, #11151e);
}

.download-action {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  min-width: 0;
  grid-row: 4 / span 2;
  grid-template-rows: subgrid;
  margin-top: 0;
}

.download-action .dl-size {
  display: block;
  line-height: 1.5;
  min-height: 3em;
  overflow-wrap: anywhere;
  grid-row: 1;
  align-self: start;
}

.download-action .btn {
  margin-top: 0;
  justify-self: start;
  max-width: 100%;
  grid-row: 2;
  align-self: start;
}

.dl-card>.tag {
  grid-row: 1;
  justify-self: start;
  align-self: start;
}

.dl-card>h3 {
  grid-row: 2;
  margin: 0;
}

.dl-card>p {
  grid-row: 3;
}

.arch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: -8px 0 24px;
}

.arch .lbl {
  color: var(--muted);
  font-size: 0.9375rem;
}

.arch-hint {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Changelog, filled from the GitHub releases. */
.releases {
  display: grid;
  gap: 20px;
  max-width: 820px;
}

.release {
  background: var(--raised);
  border: 1px solid var(--line);
  padding: 22px 24px;
  border-radius: 16px;
}

.release header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin-bottom: 8px;
}

.release h3 {
  font-size: 1.25rem;
  margin: 0;
}

.release time {
  color: var(--muted);
  font-size: 0.9375rem;
}

.release-notes {
  color: var(--muted);
}

.release-notes h1, .release-notes h2, .release-notes h3 {
  font-size: 1rem;
  color: var(--ink);
  margin: 14px 0 4px;
}

.release-notes ul {
  padding-left: 1.2rem;
  margin: 6px 0;
}

.release-notes a {
  color: var(--accent);
}

.release-notes code, .release-notes tt {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.85em;
  color: var(--ink);
  background: var(--chip);
  padding: 0.15em 0.4em;
  border-radius: 6px;
}

/* Tables (the Downloads section) with GitHub's structure: header row and cell borders.
   Scrolls sideways on narrow screens instead of squeezing the file names. */
.release-notes table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 8px 0 12px;
  font-size: 0.875rem;
}

.release-notes th, .release-notes td {
  padding: 6px 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.release-notes th {
  color: var(--ink);
  font-weight: 600;
  background: var(--chip);
}

.release-notes td code {
  white-space: nowrap;
}

.releases-empty {
  color: var(--muted);
}

/* Contact form. */
.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  max-width: 760px;
}

.form .full {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.field input, .field select, .field textarea {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 0;
  border-color: transparent;
}

.trap {
  position: absolute;
  left: -9999px;
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  font-size: 0.9375rem;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.form-status.ok {
  color: #1E8E3E;
}

.form-status.err {
  color: #C5221F;
}

main > .section:last-child {
  min-height: calc(100svh - var(--nav-h) + 96px);
}

/* Footer. */
.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
  padding-block: 35px;
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer a {
  color: inherit;
}

/* Tablets and narrow windows: the settings panel goes under the desktop. */
@media (max-width: 1024px) {
  .demo {
    grid-template-columns: 1fr;
  }
  .st-body {
    max-height: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }
}

/* Phones and small tablets: collapsible menu and smaller spacing. */
@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    margin-left: auto;
    border-radius: 8px;
  }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 8px 16px 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    top: 76px;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 12px;
  }
  .nav .wrap {
    gap: 12px;
  }
  .hero {
    padding-top: 48px;
  }
  .hero h1 {
    font-size: clamp(2.8rem, 10vw, 5rem);
  }
  .wrap {
    padding-inline: 20px;
  }
  .section {
    padding-block: 64px;
  }
  .hero-art {
    display: none;
  }
  main > .section:last-child {
    min-height: calc(100svh - var(--nav-h) + 64px);
  }
}

/* Phones: one column. */
@media (max-width: 640px) {
  .hero {
    padding-bottom: 16px;
  }
  .st-body {
    grid-template-columns: 1fr;
  }
  .downloads, .form {
    grid-template-columns: 1fr;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  .metrics dt {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .metrics dd {
    padding-top: 2px;
  }
  .nav-actions .btn-small {
    display: none;
  }
  .dl-card {
    grid-row: auto;
    grid-template-rows: auto;
  }
  .dl-card>.tag, .dl-card>h3, .dl-card>p, .download-action {
    grid-row: auto;
  }
  .download-action {
    grid-template-rows: auto auto;
  }
}

/* No animations for people who turned them off in the system. */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
