:root {
  color-scheme: light;
  --page-bg: #f4efe6;
  --card-bg: rgba(255, 255, 255, 0.78);
  --card-border: rgba(20, 34, 52, 0.08);
  --text: #162234;
  --muted: #5f6b7b;
  --accent: #2c92a0;
  --accent-dark: #1d3f6e;
  --shadow: 0 24px 60px rgba(22, 34, 52, 0.12);
  --radius: 24px;
  font-family: "Segoe UI Variable Text", "Aptos", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(44, 146, 160, 0.14), transparent 28rem),
    linear-gradient(180deg, #f7f2ea 0%, #f3ede3 100%);
  color: var(--text);
}

body.lightbox-open {
  overflow: hidden;
}

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

code {
  background: rgba(29, 63, 110, 0.08);
  border-radius: 6px;
  padding: 0.1rem 0.35rem;
}

.page {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

.page-narrow {
  width: min(880px, calc(100% - 2rem));
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.hero-copy,
.hero-art,
.card,
.policy,
.shot {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-copy {
  padding: 2rem;
}

.hero-copy h1,
.policy h1,
.readme-render h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-family: Georgia, "Times New Roman", serif;
}

.lede {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 1.25rem 0 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.8rem;
  border-radius: 999px;
  background: rgba(29, 63, 110, 0.08);
  border: 1px solid rgba(29, 63, 110, 0.08);
  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid rgba(29, 63, 110, 0.12);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.75);
  color: var(--accent-dark);
  font-weight: 700;
}

.button.primary {
  background: linear-gradient(135deg, #20324f 0%, #2c92a0 100%);
  border-color: transparent;
  color: #fff;
}

.hero-art {
  padding: 1rem;
}

.lightbox-trigger {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.hero-art img,
.shot img {
  display: block;
  width: 100%;
  border-radius: calc(var(--radius) - 8px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.readme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.readme-section {
  margin-bottom: 1.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.card {
  padding: 1.25rem;
}

.card h2,
.section-head h2,
.policy h2 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
}

.card p,
.policy p,
.policy li {
  margin: 0 0 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

.readme-section p,
.readme-section li,
.card li,
.card ol {
  color: var(--muted);
  line-height: 1.7;
}

.readme-section ul,
.card ul,
.card ol {
  margin: 0.7rem 0 0;
  padding-left: 1.2rem;
}

.readme-section h2 {
  margin: 0 0 0.65rem;
  font-size: 1.4rem;
}

.inline-link {
  font-weight: 700;
}

.privacy-list {
  margin-top: 0.5rem;
}

.gallery {
  margin-top: 2rem;
}

.section-head {
  margin-bottom: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.shot {
  padding: 0.9rem;
}

.shot figcaption {
  margin-top: 0.75rem;
  font-weight: 700;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(9, 15, 27, 0.86);
  backdrop-filter: blur(10px);
}

.lightbox[data-open="true"] {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: zoom-out;
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.9rem;
  width: min(96vw, 1500px);
  max-height: calc(100vh - 3rem);
}

.lightbox-nav,
.lightbox-close {
  position: absolute;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(9, 15, 27, 0.72);
  color: #fff;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.85rem;
}

.lightbox-prev {
  left: 0.75rem;
}

.lightbox-next {
  right: 0.75rem;
}

.lightbox-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.lightbox-close {
  top: 0.5rem;
  right: 0.5rem;
  font-size: 1.4rem;
}

.lightbox-figure {
  margin: 0;
}

.lightbox-figure img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 8rem);
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.9);
}

.lightbox-caption {
  margin: 0;
  text-align: center;
  color: #eef4f8;
  font-weight: 700;
}

.lightbox-meta {
  margin: 0;
  text-align: center;
  color: rgba(238, 244, 248, 0.76);
  font-size: 0.95rem;
  font-weight: 600;
}

.policy {
  padding: 2rem;
}

.readme-render {
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.readme-render > :first-child {
  margin-top: 0;
}

.readme-render > :last-child {
  margin-bottom: 0;
}

.readme-render p,
.readme-render li,
.readme-render td,
.readme-render th {
  color: var(--muted);
  line-height: 1.7;
}

.readme-render h2,
.readme-render h3 {
  color: var(--text);
}

.readme-render h2 {
  margin-top: 2.4rem;
  margin-bottom: 0.75rem;
  font-size: 1.55rem;
}

.readme-render h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
  font-size: 1.08rem;
}

.readme-render blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--accent);
  border-radius: 18px;
  background: rgba(29, 63, 110, 0.06);
}

.readme-render blockquote p {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

.readme-render ul,
.readme-render ol {
  padding-left: 1.35rem;
}

.readme-render .user-guide-toc {
  position: relative;
  margin: 1.5rem 0 2rem;
  padding: 1.1rem;
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.16), transparent 34%),
    rgba(240, 253, 250, 0.72);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.readme-render .user-guide-toc summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 800;
}

.readme-render .user-guide-toc > summary {
  width: fit-content;
  max-width: calc(100% - 7rem);
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  color: #0f766e;
  letter-spacing: 0.01em;
}

.readme-render .user-guide-toc-toolbar {
  position: absolute;
  top: 1.05rem;
  right: 1.15rem;
}

.readme-render .user-guide-toc-toggle-all {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #0f766e;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.2;
  padding: 0.25rem 0.45rem;
  text-decoration: none;
}

.readme-render .user-guide-toc-toggle-all:hover {
  background: rgba(20, 184, 166, 0.1);
}

.readme-render .user-guide-toc-toggle-all:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.35);
  outline-offset: 2px;
}

.readme-render .user-guide-toc-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.readme-render .user-guide-toc a {
  text-decoration: none;
}

.readme-render .user-guide-toc-link,
.readme-render .user-guide-toc-section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem 0.65rem 0.9rem;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--link);
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.readme-render .user-guide-toc-link:hover,
.readme-render .user-guide-toc-section > summary:hover {
  border-color: rgba(15, 118, 110, 0.28);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  text-decoration: none;
  transform: translateY(-1px);
}

.readme-render .user-guide-toc a:hover {
  text-decoration: none;
}

.readme-render .user-guide-toc-section > summary {
  list-style: none;
}

.readme-render .user-guide-toc-section > summary::-webkit-details-marker {
  display: none;
}

.readme-render .user-guide-toc-section > summary::after {
  content: "Expand";
  flex: 0 0 auto;
  padding: 0.18rem 0.52rem;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  color: #0f766e;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.readme-render .user-guide-toc-section[open] > summary::after {
  content: "Collapse";
}

.readme-render .user-guide-toc-section[open] > summary {
  margin-bottom: 0;
  border-color: rgba(15, 118, 110, 0.3);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
}

.readme-render .user-guide-toc-section > ul {
  margin: -0.2rem 0 0.2rem;
  padding: 0.85rem 1rem 0.85rem 1.75rem;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-top: 0;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  background: rgba(255, 255, 255, 0.48);
  list-style: disc;
}

.readme-render .user-guide-toc-section ul ul {
  margin: 0.35rem 0 0.5rem;
  padding-left: 1.15rem;
  list-style: circle;
}

.readme-render .user-guide-toc-section li {
  margin-bottom: 0.24rem;
}

.readme-render .user-guide-toc-section li a {
  color: var(--link);
  font-size: 0.94em;
}

.readme-render .user-guide-toc-section li a:hover {
  color: #0f766e;
}

.readme-render pre {
  overflow-x: auto;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(20, 34, 52, 0.92);
  color: #eef4f8;
}

.readme-render pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.readme-render p > img[src*="img.shields.io"] {
  display: inline-block;
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
  vertical-align: middle;
}

.readme-render img {
  max-width: 100%;
  height: auto;
}

.readme-render .lightbox-trigger {
  margin: 1rem 0;
}

.readme-render .lightbox-trigger img {
  display: block;
  width: 100%;
  border-radius: calc(var(--radius) - 8px);
}

.readme-render table {
  width: 100%;
  margin: 1.25rem 0;
  border-collapse: separate;
  border-spacing: 0.8rem;
}

.readme-render th,
.readme-render td {
  width: 50%;
  vertical-align: top;
  text-align: left;
  padding: 0;
}

.readme-render th {
  color: var(--text);
  font-weight: 700;
}

.policy h2 {
  margin-top: 2rem;
}

.policy h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
}

.meta {
  margin-top: 0.75rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero,
  .cards,
  .readme-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .page,
  .page-narrow {
    width: min(100% - 1rem, 1180px);
  }

  .lightbox {
    padding: 1rem 0.75rem;
  }

  .lightbox-panel {
    width: min(100vw, 1500px);
  }

  .lightbox-nav {
    top: auto;
    bottom: 4.5rem;
    transform: none;
  }

  .lightbox-prev {
    left: 1rem;
  }

  .lightbox-next {
    right: 1rem;
  }

  .lightbox-figure img {
    max-height: calc(100vh - 10rem);
  }

}
