@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/_a/bricolage-400.826772cb12.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/_a/bricolage-600.b34fc8c1ef.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #111113;
  --surface: #1c1c1e;
  --surface-2: #151517;
  --line: #2c2c2e;
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: #a1a1a6;
  --faint: #8e8e93;
  --blue: #2563eb;
  --blue-soft: #1a2744;
  --blue-text: #7aa2ff;
  --radius: 20px;
  --shadow: 0 10px 28px -16px rgba(0, 0, 0, 0.8);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f7fb;
  --line: #ececec;
  --line-soft: rgba(0, 0, 0, 0.06);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --faint: #8e8e93;
  --blue-soft: #eef3ff;
  --blue-text: #2563eb;
  --shadow: 0 10px 28px -16px rgba(15, 23, 42, 0.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--blue-text);
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 48px;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 17px;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

.wrap {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

.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: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
}

.skip-link:focus {
  top: 12px;
}

/* Header */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(16px);
}

.head-row {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.gf-site-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
}

.primary-nav a:hover {
  color: var(--text);
}

.kofi-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #ffdd00;
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.kofi-btn:hover {
  color: #1d1d1f;
  filter: brightness(0.96);
}

.kofi-btn svg {
  width: 16px;
  height: 16px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.theme-toggle:hover {
  color: var(--text);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

[data-theme="light"] .icon-moon,
[data-theme="dark"] .icon-sun {
  display: none;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: none;
  flex-direction: column;
  width: min(360px, 82vw);
  background: var(--surface);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  overscroll-behavior: contain;
}

.menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  font-weight: 500;
}

.menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.menu-close svg {
  width: 20px;
  height: 20px;
}

.menu-kofi {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.menu-kofi .kofi-btn {
  min-height: 48px;
  padding: 0 20px;
  font-size: 15px;
}

.menu-kofi .kofi-btn span {
  display: inline;
}

.menu-nav {
  display: grid;
  gap: 4px;
  padding: 8px 16px 24px;
  overflow-y: auto;
}

.menu-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  font-size: 18px;
  color: var(--text);
}

.menu-nav a.is-active {
  background: var(--blue-soft);
  color: var(--blue-text);
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .menu-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.menu-open .menu-drawer {
  transform: none;
}

@media (min-width: 701px) {
  .menu-drawer,
  .menu-backdrop {
    display: none !important;
  }
}

/* Shared */

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-text);
}

.lede {
  margin-top: 16px;
  max-width: 640px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
  filter: brightness(1.06);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--text);
}

.btn-white {
  background: #fff;
  color: var(--blue);
}

.btn-white:hover {
  color: var(--blue);
  background: rgba(255, 255, 255, 0.9);
}

.text-link {
  color: var(--blue-text);
  font-weight: 600;
  font-size: 14px;
}

.page-head-left {
  padding: 48px 0 32px;
}

.page-head-left h1 {
  margin-top: 18px;
  font-size: 48px;
}

.page-head-center {
  padding: 64px 0 40px;
  text-align: center;
}

.page-head-center .lede {
  margin-inline: auto;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--faint);
}

.breadcrumbs a:hover {
  color: var(--text);
}

.crumb-sep {
  color: var(--line);
}

.review-line {
  margin-top: 14px;
  font-size: 13px;
  color: var(--faint);
}

.review-line a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Home hero */

.home-hero {
  padding: 96px 0 48px;
  text-align: center;
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-title {
  margin-top: 24px;
  font-size: 72px;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.home-lede {
  margin: 24px auto 0;
  max-width: 760px;
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
}

.recent-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 10px 18px;
  border: 1px solid #1f3159;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-text);
  font-size: 14px;
  font-weight: 500;
}

.recent-pill:hover {
  color: var(--blue-text);
}

.recent-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

/* Home gallery */

.home-gallery {
  padding-top: 24px;
}

.center-head {
  text-align: center;
}

.center-head h2 {
  font-size: 32px;
}

.center-head p {
  margin: 12px auto 0;
  max-width: 760px;
  font-size: 15px;
  color: var(--muted);
}

.spec-reviewed {
  margin-top: 6px;
  font-size: 12px;
  color: var(--faint);
}

.home-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 24px 0 32px;
}

.chip-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}

.chip-link:hover {
  color: var(--text);
  border-color: var(--faint);
}

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

.home-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.home-card-img {
  position: relative;
  display: block;
  overflow: hidden;
}

.home-card-img img {
  width: 100%;
  aspect-ratio: 1398 / 2034;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.home-card:hover .home-card-img img {
  transform: scale(1.03);
}

.home-card-body {
  padding: 16px 18px 20px;
}

.home-card-body h3 {
  font-size: 16px;
}

.home-card-body p {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.home-card-feature {
  position: relative;
  grid-column: span 2;
  grid-row: span 2;
}

.home-card-feature .home-card-img {
  height: 100%;
}

.home-card-feature .home-card-img img {
  height: 100%;
  min-height: 100%;
  aspect-ratio: auto;
}

.home-card-feature .home-card-body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 56px 22px 22px;
}

.home-card-feature .home-card-body h3,
.home-card-feature .home-card-body p {
  color: #fff;
}

.center-actions {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.view-download {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.home-card-img:hover .view-download,
.tile-img:hover .view-download {
  opacity: 1;
}

/* Specs */

.home-specs {
  padding-top: 64px;
}

.spec-table {
  width: 100%;
  margin-top: 32px;
  border-collapse: collapse;
  font-size: 14px;
}

.spec-table th,
.spec-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.spec-table thead th {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.spec-table tbody th {
  font-weight: 600;
}

.spec-table td:nth-child(2) {
  color: var(--blue-text);
}

.spec-table td {
  color: var(--muted);
}

/* Steps */

.home-howto {
  padding-top: 64px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 56px;
  margin-top: 40px;
}

.step-n {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--faint);
}

.step h3 {
  margin-top: 6px;
  font-size: 18px;
}

.step p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.center-note {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
}

.center-note a {
  color: var(--blue-text);
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--blue-soft);
  font-weight: 500;
}

/* Panels (catalog) */

.panel {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.collections-panel h2 {
  font-size: 20px;
}

.panel-sub {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text);
}

.pill span {
  color: var(--muted);
  font-size: 12px;
}

.pill:hover {
  border-color: var(--faint);
  color: var(--text);
}

.search-row {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--faint);
  pointer-events: none;
}

.search {
  width: 100%;
  min-height: 46px;
  padding: 0 16px 0 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}

.search::placeholder {
  color: var(--faint);
}

.facet-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.facet-label {
  width: 72px;
  flex: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.chip span {
  font-size: 12px;
  opacity: 0.75;
}

.chip:hover {
  color: var(--text);
  background: var(--surface-2);
}

.chip.is-hidden {
  display: none;
}

.chip-more {
  border: 1px dashed var(--line);
  color: var(--blue-text);
}

.catalog-collections {
  margin-top: 40px;
}

.catalog-jump {
  margin-top: 24px;
  font-size: 13px;
}

.catalog-jump a {
  color: var(--blue-text);
}

.chip.is-active,
.chip-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.chip-primary:hover {
  color: #fff;
}

.result-count {
  margin-top: 18px;
  font-size: 13px;
  color: var(--faint);
}

.empty-state {
  padding: 48px 0;
  color: var(--muted);
  text-align: center;
}

/* Cards */

.grid-5,
.grid-4 {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

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

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

.tile-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.tile-img {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface-2);
}

.tile-img img {
  width: 100%;
  aspect-ratio: 1398 / 2034;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tile-card:hover .tile-img img {
  transform: scale(1.03);
}

.tile-body {
  padding: 10px 12px 12px;
}

.tile-body h3 {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
}

.tile-cat {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--blue-text);
}

.tile-res {
  display: grid;
  gap: 1px;
  margin-top: 5px;
  font-size: 12px;
  color: var(--faint);
  white-space: nowrap;
}

.tile-res span:last-child {
  text-align: left;
}

/* Pager */

.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 32px 0 8px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.page-btn:hover {
  color: var(--text);
  border-color: var(--faint);
}

.page-btn.is-current {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.page-btn.is-disabled {
  opacity: 0.35;
  cursor: default;
}

/* Collection index */

.collection-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 24px;
}

.collection-index-grid-3 {
  margin-top: 24px;
}

.collection-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.collection-card-img {
  display: block;
  overflow: hidden;
  background: var(--surface-2);
}

.collection-card-img img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.collection-card:hover .collection-card-img img {
  transform: scale(1.03);
}

.collection-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px 22px;
}

.collection-card-body h2,
.collection-card-body h3 {
  font-size: 17px;
}

.collection-count {
  font-size: 12px;
  color: var(--faint);
}

.collection-intro {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.collection-card-body .text-link {
  margin-top: 6px;
}

/* Collection detail */

.section-head-left {
  margin-top: 8px;
}

.section-head-left h2 {
  font-size: 24px;
}

.section-head-left p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

.prose-section {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.prose-section h2 {
  font-size: 26px;
}

.prose-section h3 {
  margin-top: 28px;
  font-size: 17px;
}

.prose-section p {
  margin-top: 12px;
  max-width: 78ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.section-intro {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.notes-list {
  list-style: none;
  margin-top: 20px;
}

.notes-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.notes-list a {
  color: var(--text);
  font-weight: 600;
}

/* Detail page */

.detail-head {
  padding: 48px 0 8px;
  text-align: center;
}

.detail-head .breadcrumbs {
  justify-content: center;
}

.detail-head h1 {
  margin-top: 22px;
  font-size: 64px;
}

.detail-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.detail-dates {
  margin-top: 20px;
  font-size: 14px;
  color: var(--faint);
}

.detail-maintained {
  margin-top: 6px;
  font-size: 12px;
  color: var(--faint);
}

.detail-maintained a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.preview-wrap {
  max-width: 900px;
  margin: 32px auto 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface-2);
}

.preview-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  margin: 0 auto 12px;
  width: max-content;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.preview-tab {
  min-height: 38px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.preview-tab.is-active {
  background: var(--blue);
  color: #fff;
}

.device-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 460px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--bg);
}

.device-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.device {
  position: relative;
}

.device-cover {
  width: 245px;
  aspect-ratio: 1544 / 2167;
}

.device-inner {
  width: 500px;
  max-width: 94%;
  aspect-ratio: 2810 / 2041;
}

.device-screen {
  position: absolute;
  inset: 0;
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

.device-inset {
  position: absolute;
}

.device-inset-cover {
  inset: 2.57% 3.93% 3.4% 5.29%;
}

.device-inset-inner {
  inset: 3.33% 2.52% 4.6% 2.23%;
}

.device-inset img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.device-frame {
  position: absolute;
  inset: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 24px 24px rgba(0, 0, 0, 0.45));
}

.preview-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 8px 4px;
  font-size: 12px;
  color: var(--faint);
}

.preview-full {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-weight: 500;
}

.mobile-actions {
  display: none;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

.detail-section {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.detail-section h2 {
  font-size: 28px;
}

.detail-section h3 {
  margin-top: 20px;
  font-size: 16px;
}

.detail-section p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

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

.two-col h2:first-child,
.two-col h3:first-child {
  margin-top: 0;
}

.bullet-list {
  margin-top: 10px;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  font-size: 15px;
  color: var(--muted);
}

.bullet-list li::marker {
  color: var(--blue-text);
}

.note-box {
  margin-top: 28px;
  padding: 24px;
  border-radius: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.note-box h3 {
  margin-top: 0;
}

.note-box p {
  font-size: 14px;
}

.note-box a {
  color: var(--blue-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.download-card h3 {
  margin-top: 0;
  font-size: 17px;
}

.download-note {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.download-meta {
  margin: 18px 0 16px;
  font-size: 13px;
  color: var(--faint);
}

.download-card .btn {
  margin-top: auto;
}

.download-card-zip {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.download-card-zip .download-note,
.download-card-zip .download-meta {
  color: rgba(255, 255, 255, 0.9);
}

.detail-list {
  margin-top: 22px;
}

.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.detail-list dt {
  color: var(--faint);
}

.detail-list dd {
  margin: 0;
  text-align: right;
  color: var(--text);
}

.small-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}

.howto-list {
  list-style: none;
  margin-top: 22px;
  display: grid;
  gap: 20px;
}

.howto-list li {
  display: flex;
  gap: 14px;
}

.howto-n {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.howto-list h3 {
  margin-top: 0;
  font-size: 15px;
}

.howto-list p {
  margin-top: 6px;
  font-size: 14px;
}

/* FAQ */

.faq-section {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.faq-section h2 {
  font-size: 28px;
}

.faq-intro {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.faq-accordion {
  margin-top: 20px;
}

.faq-row {
  border-bottom: 1px solid var(--line);
}

.faq-row summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-row summary::-webkit-details-marker {
  display: none;
}

.faq-row summary::after {
  content: "+";
  color: var(--faint);
  font-weight: 400;
}

.faq-row[open] summary::after {
  content: "–";
}

.faq-row p {
  padding: 0 0 18px;
  max-width: 78ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 48px;
  margin-top: 24px;
}

.faq-numbered {
  counter-reset: faq;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 64px;
  margin-top: 24px;
}

.faq-item h3 {
  font-size: 15px;
  line-height: 1.4;
}

.faq-item p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.faq-numbered .faq-item::before {
  counter-increment: faq;
  content: counter(faq, decimal-leading-zero);
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--faint);
}

.faq-section > h3 {
  margin-top: 28px;
  font-size: 16px;
}

.faq-section > h3 + p {
  margin-top: 6px;
  max-width: 78ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* Blog */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 24px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.blog-img {
  display: block;
  overflow: hidden;
  background: var(--surface-2);
}

.blog-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-img img {
  transform: scale(1.03);
}

.blog-body {
  padding: 18px 20px 22px;
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--faint);
}

.blog-meta .chip {
  min-height: 26px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  cursor: default;
}

.blog-body h2 {
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.35;
}

.blog-body p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Post */

.post-wrap {
  max-width: 960px;
  padding-top: 40px;
  padding-bottom: 24px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}

.back-btn:hover {
  color: var(--text);
}

.post-card {
  margin-top: 20px;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
}

.post-card h1 {
  margin-top: 18px;
  font-size: 40px;
}

.post-lede {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}

.post-rule {
  margin: 28px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.post-card .faq-section {
  margin-top: 40px;
  padding-top: 32px;
}

/* Prose */

.prose {
  max-width: 78ch;
  margin-top: 24px;
}

.prose h2 {
  margin-top: 44px;
  font-size: 26px;
}

.prose h3 {
  margin-top: 32px;
  font-size: 18px;
}

.prose p {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

.prose ul,
.prose ol {
  margin-top: 16px;
  padding-left: 22px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.prose li {
  font-size: 16px;
  line-height: 1.7;
}

.prose a {
  color: var(--blue-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--blue);
  color: var(--muted);
}

.prose code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface-2);
  font-size: 0.92em;
}

.prose table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  font-size: 14px;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  color: var(--text);
}

/* Live */

.live-section-title {
  margin-top: 8px;
  font-size: 24px;
}

.live-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.live-poster {
  overflow: hidden;
  border-radius: 20px;
  background: #000;
}

.live-poster img {
  width: 100%;
  aspect-ratio: 1280 / 900;
  object-fit: cover;
}

.live-body {
  padding: 16px 18px 20px;
}

.live-body h3 {
  font-size: 17px;
}

.live-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--faint);
}

.live-btn {
  margin-top: 14px;
}

.live-match {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--faint);
}

.live-match a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer */

.site-foot {
  margin-top: 80px;
  padding: 56px 0 32px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.foot-name {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}

.foot-note {
  margin-top: 8px;
  max-width: 32ch;
  font-size: 13px;
  color: var(--muted);
}

.foot-kofi {
  margin-top: 16px;
}

.foot-title {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.foot-grid nav a,
.foot-legal a {
  display: block;
  padding: 5px 0;
  font-size: 13px;
  color: var(--muted);
}

.foot-grid nav a:hover,
.foot-legal a:hover {
  color: var(--text);
}

.foot-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.foot-legal .foot-title {
  width: 100%;
  margin: 0;
}

.foot-legal a {
  display: inline-block;
  padding: 0;
}

.foot-copy {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--faint);
}

.foot-copy a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Responsive */

@media (max-width: 1100px) {
  .grid-5 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .home-title {
    font-size: 60px;
  }
}

@media (max-width: 900px) {
  .grid-5,
  .grid-4,
  .home-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .two-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

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

@media (max-width: 700px) {
  .wrap {
    width: min(1200px, 100% - 32px);
  }

  .home-hero {
    padding-top: 56px;
  }

  .home-title {
    font-size: 40px;
  }

  .home-lede {
    font-size: 17px;
  }

  .home-eyebrow {
    padding: 5px 12px;
    font-size: 12px;
    letter-spacing: 0.1em;
  }

  .home-grid,
  .grid-5,
  .grid-4,
  .blog-grid,
  .collection-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .home-card-feature {
    grid-column: span 2;
    grid-row: span 1;
  }

  .home-card-feature .home-card-img img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .home-card-feature .home-card-body {
    padding: 36px 16px 16px;
  }

  .page-head-left h1,
  .page-head-center h1 {
    font-size: 32px;
  }

  .detail-head {
    padding-top: 28px;
  }

  .detail-head h1 {
    font-size: 34px;
  }

  .device-stage {
    height: 330px;
  }

  .device-cover {
    width: 190px;
  }

  .preview-tab {
    padding: 0 14px;
    font-size: 12px;
  }

  .mobile-actions {
    display: flex;
  }

  .detail-section,
  .prose-section,
  .faq-section {
    margin-top: 44px;
    padding-top: 32px;
  }

  .detail-section h2,
  .faq-section h2,
  .prose-section h2 {
    font-size: 23px;
  }

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

  .faq-grid,
  .faq-numbered {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .post-card {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .post-card h1 {
    font-size: 28px;
  }

  .post-lede {
    font-size: 15px;
  }

  .prose p,
  .prose li {
    font-size: 15px;
  }

  .facet-label {
    width: 100%;
  }

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

  .foot-legal {
    gap: 6px 16px;
  }

  .foot-copy {
    flex-direction: column;
  }

  .kofi-btn span {
    display: none;
  }

  .kofi-btn {
    min-height: 36px;
    padding: 0 10px;
  }

  .primary-nav {
    gap: 14px;
    font-size: 13px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .primary-nav::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 380px) {
  .home-title {
    font-size: 34px;
  }

}
/* Mobile performance & usability */

@media (max-width: 700px) {
  .head-row {
    min-height: 64px;
    gap: 10px;
  }

  .brand {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    overflow: hidden;
  }

  .brand-word {
    display: inline;
  }

  .site-head .kofi-btn,
  .primary-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    flex: none;
  }

  .theme-toggle {
    flex: none;
  }

  .menu-drawer {
    display: flex;
  }

  .home-eyebrow {
    letter-spacing: 0.04em;
    padding: 5px 10px;
  }

  .chip,
  .chip-link {
    min-height: 40px;
  }

  .pill-list,
  .facet-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .pill-list::-webkit-scrollbar,
  .facet-row::-webkit-scrollbar {
    display: none;
  }

  .pill {
    flex: none;
    min-height: 38px;
    font-size: 12px;
    white-space: nowrap;
  }

  .chip {
    flex: none;
    white-space: nowrap;
  }

  .facet-label {
    width: auto;
    flex: none;
    padding-right: 2px;
  }

  .panel {
    padding: 16px;
    border-radius: 18px;
  }

  .home-hero {
    padding: 40px 0 32px;
  }

  .home-title {
    font-size: 36px;
  }

  .home-lede {
    margin-top: 16px;
    font-size: 16px;
  }

  .home-card:nth-child(n + 9) {
    display: none;
  }

  .detail-head h1 {
    font-size: 30px;
  }

  .detail-dates {
    font-size: 13px;
  }

  .device-stage {
    height: 300px;
  }

  .device-cover {
    width: 180px;
  }

  main {
    padding-bottom: 76px;
  }

  .mobile-actions {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    margin: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--bg);
    border-top: 1px solid var(--line);
  }

  .mobile-actions .btn {
    flex: 1;
  }

  .download-card .btn,
  .live-btn {
    width: 100%;
  }

  .tile-body {
    padding: 8px 10px 10px;
  }

  .catalog-grid {
    gap: 10px;
  }

  .facet-row {
    gap: 6px;
  }

  .foot-grid nav a {
    display: flex;
    align-items: center;
    min-height: 36px;
  }
}
