:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #14213d;
  background: #f5f7fc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

main {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

p {
  color: #485571;
  line-height: 1.6;
}

section[aria-label="QR gallery"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px;
  margin-top: 32px;
}

article {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid #dce3f1;
  border-radius: 16px;
  background: #fff;
}

article h2 {
  align-self: stretch;
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}

article a {
  display: block;
  max-width: 100%;
}

article a:focus-visible {
  outline: 3px solid #6d28d9;
  outline-offset: 4px;
}

article img {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  aspect-ratio: 1;
}

@media (max-width: 600px) {
  main {
    padding-top: 32px;
  }
}

.site-header {
  border-bottom: 1px solid #dce3f1;
  background: #fff;
}

.header-inner {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-name {
  color: #14213d;
  font-weight: 750;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

nav a {
  color: #334563;
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: #5b21b6;
  font-weight: 700;
}

a {
  color: #1d4ed8;
}

a:focus-visible {
  outline: 3px solid #6d28d9;
  outline-offset: 4px;
}

.hero {
  padding: 36px 0;
}

.eyebrow {
  color: #6d28d9;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  max-width: 720px;
  font-size: 1.2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.button {
  display: inline-block;
  padding: 12px 18px;
  border: 1px solid #4f46e5;
  border-radius: 10px;
  color: #fff;
  background: #4f46e5;
  font-weight: 700;
  text-decoration: none;
}

.button-secondary {
  color: #4338ca;
  background: #fff;
}

.version-note {
  max-width: 720px;
  font-size: 0.9rem;
}

.content-section {
  margin-top: 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px;
}

.feature-grid article {
  align-items: flex-start;
}

article h3 {
  align-self: stretch;
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}

article p {
  margin: 0;
}

.card-link {
  font-size: 0.9rem;
}

.prose {
  max-width: 780px;
  line-height: 1.6;
}

.prose h2 {
  margin-top: 40px;
}

pre {
  overflow-x: auto;
  padding: 18px;
  border-radius: 12px;
  color: #e5edff;
  background: #14213d;
}

code {
  font-family: ui-monospace, Consolas, monospace;
}

.site-footer {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
  border-top: 1px solid #dce3f1;
}

/* Home: product introduction */

main {
  padding-top: 32px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.95fr);
  gap: 48px;
  align-items: center;
  padding: 48px;
  border-radius: 28px;
  color: #f7f8ff;
  background: #111a31;
}

.hero .eyebrow,
.developer-section .eyebrow {
  color: #b6a5ff;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.4rem);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero h1 span {
  color: #b6a5ff;
}

.hero .lead {
  max-width: 500px;
  margin-top: 24px;
  color: #c8d1e5;
  font-size: 1.15rem;
}

.hero .actions {
  margin: 30px 0 38px;
}

.hero .button {
  border-color: #fff;
  color: #111a31;
  background: #fff;
}

.hero .button-secondary {
  border-color: #56627c;
  color: #fff;
  background: transparent;
}

.button span,
.text-link span {
  margin-left: 8px;
}

.hero-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-details span {
  padding: 7px 10px;
  border: 1px solid #3f4b64;
  border-radius: 999px;
  color: #dbe3f4;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-details .hero-version {
  color: #d8cdff;
}

.hero-art {
  min-width: 0;
  padding: 20px;
  border: 1px solid #49536e;
  border-radius: 22px;
  background: #1b2640;
}

.hero-art-label,
.hero-art-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #c2cee2;
  font-size: 0.7rem;
  line-height: 1.4;
}

.hero-art-label {
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hero-qr {
  display: block;
  padding: 16px;
  border-radius: 14px;
  background: #fff;
}

.hero-qr img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-art-caption {
  margin-top: 16px;
}

.hero-art-caption a {
  flex-shrink: 0;
  color: #fff;
}

.showcase-section {
  padding-top: 88px;
}

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

.section-heading h2,
.developer-copy h2,
.closing-section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading > p {
  max-width: 350px;
  margin: 0;
}

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

.showcase-card {
  align-items: stretch;
  gap: 22px;
  min-width: 0;
  padding: 24px;
  border-radius: 20px;
}

.showcase-card-tint {
  background: #efedff;
}

.showcase-label {
  display: flex;
  justify-content: space-between;
  color: #5d6880;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.showcase-card > a {
  align-self: center;
}

.showcase-card img {
  width: min(100%, 240px);
  height: auto;
}

.showcase-card h3 {
  font-size: 1.1rem;
}

.showcase-card p {
  margin-top: 8px;
  font-size: 0.95rem;
}

.text-link {
  display: inline-block;
  margin-top: 24px;
  color: #4338ca;
  font-weight: 700;
  text-decoration: none;
}

.developer-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  margin-top: 96px;
  padding: 48px;
  border-radius: 28px;
  color: #f7f8ff;
  background: #18233c;
}

.developer-copy p:not(.eyebrow) {
  max-width: 420px;
  color: #c8d1e5;
}

.developer-copy .text-link {
  color: #d8cdff;
}

.code-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #46536c;
  border-radius: 16px;
  background: #0e172a;
}

.code-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #34415a;
  color: #a8b5cd;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.code-panel pre {
  margin: 0;
  padding: 22px 18px;
  border-radius: 0;
  background: transparent;
  font-size: 0.85rem;
  line-height: 1.7;
}

.closing-section {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-top: 72px;
  padding: 40px;
  border: 1px solid #dce3f1;
  border-radius: 24px;
  background: #fff;
}

.closing-section p:not(.eyebrow) {
  max-width: 620px;
}

.closing-section .button {
  flex-shrink: 0;
}

main > .version-note {
  margin-top: 32px;
}

/* Gallery */

.gallery-card {
  align-items: stretch;
  gap: 16px;
}

.gallery-card-heading {
  min-height: 64px;
}

.card-kicker {
  color: #69758d;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.gallery-card h3 {
  margin-top: 8px;
}

.gallery-card .gallery-image {
  align-self: center;
}

.gallery-card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #e4e9f3;
}

.gallery-meta {
  margin: 0 0 8px;
  color: #5d6880;
  font-size: 0.8rem;
}

@media (max-width: 800px) {
  .hero,
  .developer-section {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .hero-art {
    max-width: 500px;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .showcase-card {
    max-width: 100%;
  }

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

@media (max-width: 480px) {
  .hero,
  .developer-section,
  .closing-section {
    padding: 24px;
    border-radius: 20px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-art {
    padding: 14px;
  }

  .hero-art-label,
  .hero-art-caption {
    flex-wrap: wrap;
  }

  .showcase-section {
    padding-top: 64px;
  }

  .developer-section {
    margin-top: 64px;
  }
}

/* Documentation pages */

.docs-intro {
  max-width: 850px;
  padding: 28px 0 16px;
}

.docs-intro h1 {
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.page-nav a {
  padding: 9px 13px;
  border: 1px solid #dce3f1;
  border-radius: 999px;
  color: #334563;
  background: #fff;
  font-size: 0.9rem;
  text-decoration: none;
}

.page-nav a:hover {
  border-color: #8b7ce8;
  color: #4338ca;
}

.docs-content {
  max-width: 850px;
}

.docs-section {
  padding: 32px 0;
  border-bottom: 1px solid #dce3f1;
}

.docs-section h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.docs-section p {
  max-width: 720px;
}

.docs-section pre {
  margin: 20px 0;
  line-height: 1.7;
}

.docs-callout {
  margin-top: 24px;
  padding: 20px;
  border-left: 4px solid #6d28d9;
  border-radius: 0 12px 12px 0;
  background: #efedff;
}

.docs-callout p {
  margin-bottom: 0;
}

.docs-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding: 32px;
  border: 1px solid #dce3f1;
  border-radius: 20px;
  background: #fff;
}

.docs-next h2 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.docs-next p:not(.eyebrow) {
  margin-bottom: 0;
}

.docs-next .actions {
  margin: 0;
}

@media (max-width: 480px) {
  .docs-next {
    padding: 24px;
  }
}