:root {
  color-scheme: light;
  --bg: #dbe4ec;
  --ink: #0f172a;
  --muted: #475569;
  --accent: #0e7490;
  --line: rgb(14 116 144 / 0.22);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 14% -14%, rgb(14 116 144 / 0.17), transparent 68%),
    radial-gradient(940px 560px at 88% 2%, rgb(34 197 94 / 0.14), transparent 70%),
    linear-gradient(180deg, #eef4f9, #dbe4ec 60%, #ccd9e4);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}
a {
  color: inherit;
}
p {
  line-height: 1.5;
}
h2,
h1 {
  font-family: inherit;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.header {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 4%;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.brand {
  margin-right: auto;
  font:
    700 18px system-ui,
    sans-serif;
  text-decoration: none;
  letter-spacing: 0.05em;
}
nav {
  display: flex;
  gap: 30px;
  align-items: center;
}
nav a {
  text-decoration: none;
  font-size: 14px;
}
.header nav {
  flex-wrap: wrap;
  gap: 8px 24px;
}
.header nav a,
.manual aside a {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.header-menu {
  display: none;
  position: relative;
}
.header-menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}
.header-menu summary::-webkit-details-marker {
  display: none;
}
.header-menu nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 2;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 190px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  box-shadow: 0 8px 24px rgb(15 23 42 / 0.15);
}
.header-menu nav a {
  padding: 0 12px;
}
.header .nav-play {
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  top: 8px;
  left: 4%;
  z-index: 1;
  padding: 12px;
  background: var(--bg);
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: translateY(0);
}
nav a:hover,
.text-link:hover {
  color: var(--accent);
}
.nav-play {
  color: var(--accent);
}
nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 700;
}
.requirements {
  max-width: 1200px;
  margin: auto;
}
.requirements h1 {
  font-size: 30px;
  margin: 0 0 12px;
}

.requirements h2 {
  font-size: 17px;
  letter-spacing: normal;
  margin: 0 0 8px;
}
.requirements ul {
  padding-left: 20px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}
.requirements li + li {
  margin-top: 6px;
}
.requirements-browser {
  max-width: 700px;
  margin-top: 24px;
}
.hero {
  padding: 32px 4%;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: center;
}
.eyebrow,
.features article > .eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.hero h1 {
  font-size: clamp(32px, 3.5vw, 52px);
  margin: 12px 0;
}
em {
  font-style: normal;
  color: var(--accent);
}
.intro {
  font-size: 16px;
  color: var(--muted);
  max-width: 490px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.button {
  display: inline-flex;
  justify-content: center;
  gap: 12px;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 700;
  font-family: inherit;
  font-size: 14px;
  align-items: center;
  min-height: 44px;
}
.secondary {
  background: rgb(255 255 255 / 0.74);
  color: var(--ink);
  border: 1px solid var(--line);
}
.note {
  font-size: 12px;
  color: var(--muted);
}
.hero-image {
  margin: 0;
  min-width: 0;
  position: relative;
}
.hero-image img {
  width: 100%;
  display: block;
  object-fit: cover;
  height: auto;
}
.section {
  padding: 32px 4%;
  border-bottom: 1px solid var(--line);
}
.section-heading h2 {
  font-size: clamp(24px, 2.5vw, 32px);
  margin: 8px 0 20px;
}
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.requirements-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}
.features article {
  border-top: 1px solid var(--line);
  padding-top: 25px;
}
.features h3,
.features h4 {
  font:
    700 17px system-ui,
    sans-serif;
  margin: 0 0 8px;
}
.features p {
  margin: 0;
}
.features p {
  color: var(--muted);
}
.feature-group + .feature-group {
  margin-top: 28px;
}
.feature-group > h3 {
  font-size: 20px;
  margin: 0 0 12px;
}
.text-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}
.manual {
  max-width: 1200px;
  margin: auto;
  padding: 32px 4%;
  display: grid;
  grid-template-columns: 200px minmax(0, 700px);
  gap: 24px;
}
.manual aside nav {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 0;
  margin-top: 12px;
}
.manual-contents summary {
  min-height: 44px;
  align-content: center;
  cursor: pointer;
  font-weight: 700;
}
#chapter {
  scroll-margin-top: 16px;
}
.manual aside a {
  padding: 8px 10px;
  border-left: 1px solid var(--line);
  color: var(--muted);
}
.manual aside a[aria-current] {
  border-color: var(--accent);
  color: var(--accent);
}
.manual h1 {
  font-size: 30px;
  margin: 0 0 20px;
}
.manual h2 {
  margin-top: 24px;
}
.manual article p,
.manual article li {
  color: var(--muted);
  line-height: 1.5;
}
.manual article .text-link {
  display: inline-block;
  margin-top: 20px;
}
.manual article {
  min-width: 0;
  font-size: 16px;
}
.manual table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.5;
  margin: 16px 0;
}
.manual th,
.manual td {
  padding: 8px 10px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.manual th {
  background: rgb(14 116 144 / 0.08);
  white-space: nowrap;
}
@media (max-width: 800px) {
  .header {
    flex-wrap: nowrap;
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .header .brand img {
    width: 112px;
  }
  .header .nav-play {
    padding-right: 10px;
    padding-left: 10px;
  }
  .header .header-links {
    display: none;
  }
  .header-menu {
    display: block;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hero-image {
    margin-top: 0;
  }
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .section {
    padding: 24px 4%;
  }
  .manual {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 24px;
  }
}
@media (max-width: 480px) {
  .requirements-grid,
  .features {
    grid-template-columns: 1fr;
  }
}

.brand img {
  display: block;
  width: 180px;
  max-width: 40vw;
  height: auto;
}
.header {
  background: rgb(248 250 252 / 0.8);
}
.button {
  border: 1px solid rgb(14 116 144 / 0.32);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3);
}
.button:hover:not(:disabled) {
  filter: brightness(0.94);
}
.hero-image img {
  border: 1px solid rgb(14 116 144 / 0.28);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgb(15 23 42 / 0.2);
}
.features article {
  padding: 16px;
  border: 1px solid rgb(14 116 144 / 0.2);
  border-top-color: rgb(14 116 144 / 0.35);
  border-radius: 8px;
  background: linear-gradient(160deg, rgb(248 250 252 / 0.95), rgb(226 236 244 / 0.94));
  box-shadow:
    0 4px 16px rgb(15 23 42 / 0.08),
    inset 0 1px 0 rgb(255 255 255 / 0.82);
}
.manual article,
.manual aside {
  padding: 20px;
  border: 1px solid rgb(14 116 144 / 0.22);
  border-radius: 8px;
  background: linear-gradient(160deg, rgb(248 250 252 / 0.95), rgb(226 236 244 / 0.94));
  box-shadow: 0 8px 24px rgb(15 23 42 / 0.1);
  align-self: start;
}

.button:disabled {
  cursor: not-allowed;
  color: var(--muted);
  background: rgb(248 250 252 / 0.7);
  border-color: rgb(100 116 139 / 0.24);
  box-shadow: none;
  gap: 12px;
}
.status-tag {
  padding: 4px 8px;
  border: 1px solid rgb(100 116 139 / 0.24);
  border-radius: 999px;
  background: rgb(100 116 139 / 0.08);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
a:focus-visible,
summary:focus-visible,
#chapter:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.gallery figure {
  margin: 0;
}
.gallery a {
  display: block;
}
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.gallery figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 800px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}
