:root {
  color-scheme: light;
  --ink: #191724;
  --ink-2: #2a2537;
  --muted: #656170;
  --muted-2: #837e8f;
  --paper: #fffdfa;
  --paper-2: #f7f4ef;
  --paper-3: #eee9df;
  --line: #ded8cf;
  --line-strong: #cfc7bb;
  --purple: #34215f;
  --purple-2: #4a337d;
  --cyan: #28a9c7;
  --cyan-dark: #147d96;
  --green: #2f8d54;
  --gold: #b98522;
  --max: 1180px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 16px 40px rgba(30, 24, 46, .10);
  --shadow-strong: 0 24px 60px rgba(30, 24, 46, .18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper-2);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--cyan-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(40, 169, 199, .42);
  outline-offset: 3px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .94em;
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: .75rem;
  z-index: 100;
  transform: translateY(-150%);
  padding: .7rem 1rem;
  border-radius: .65rem;
  color: #fff;
  background: var(--ink);
}

.skip-link:focus { transform: translateY(0); }

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 250, .94);
  border-bottom: 1px solid rgba(222, 216, 207, .9);
  backdrop-filter: blur(12px);
}

.nav-row {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  border-radius: .75rem;
}

.brand img { width: 214px; height: auto; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .1rem;
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: .5rem .64rem;
  border-radius: 999px;
  color: #2c2937;
  font-size: .93rem;
  font-weight: 720;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--purple);
  background: #eee9f6;
  text-decoration: none;
}

.site-nav .nav-pill {
  color: #fff;
  background: var(--purple);
}

.site-nav .nav-pill:hover,
.site-nav .nav-pill:focus-visible {
  color: #fff;
  background: var(--purple-2);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: var(--ink);
}

.hero {
  padding: 4.2rem 0 3rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, #fffdfa 0%, #f4f0ea 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .48fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.hero-copy { max-width: 760px; }

.eyebrow {
  margin: 0 0 .65rem;
  color: var(--purple);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 760px;
  margin-bottom: 1rem;
  color: var(--ink);
  font-size: clamp(2.35rem, 5.5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

h2 {
  margin-bottom: .65rem;
  color: var(--ink);
  font-size: clamp(1.65rem, 3.4vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

h3 {
  margin-bottom: .4rem;
  color: var(--ink);
  font-size: 1.06rem;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.lead {
  margin-bottom: 1.3rem;
  color: var(--ink-2);
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .72rem;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .72rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  text-decoration: none;
}

.button-primary {
  color: #fff;
  background: var(--purple);
  border-color: rgba(52, 33, 95, .2);
}

.button-primary:hover,
.button-primary:focus-visible {
  color: #fff;
  background: var(--purple-2);
}

.button-secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line-strong);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: var(--purple);
  background: #f7f3ff;
  border-color: #cdbfe6;
}

.release-panel,
.repo-card,
.summary-grid article,
.notes-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.release-panel {
  padding: 1rem;
}

.release-panel h2 {
  margin-bottom: .85rem;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.release-panel dl,
.repo-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.release-panel dl > div,
.repo-list div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: .75rem;
  padding: .72rem 0;
  border-top: 1px solid var(--line);
}

.release-panel dl > div:first-child,
.repo-list div:first-child { border-top: 0; padding-top: 0; }
.release-panel dl > div:last-child,
.repo-list div:last-child { padding-bottom: 0; }

.release-panel dt,
.repo-list dt {
  color: var(--muted-2);
  font-size: .73rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.release-panel dd,
.repo-list dd {
  margin: 0;
  color: var(--ink-2);
  font-weight: 650;
}

.panel-note {
  margin: 1rem 0 0;
  padding: .82rem;
  border: 1px solid #d8d0c4;
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: #f8f4ed;
  font-size: .94rem;
}

.hero-shot-wrap { margin-top: 2.4rem; }

.hero-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #171421;
  box-shadow: var(--shadow-strong);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: .45rem;
  height: 38px;
  padding: 0 .85rem;
  color: #cac6d8;
  background: rgba(16, 14, 24, .96);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.window-bar span {
  width: .66rem;
  height: .66rem;
  border-radius: 999px;
  background: #5e5a6d;
}

.window-bar span:first-child { background: #d76e6a; }
.window-bar span:nth-child(2) { background: #d8b45e; }
.window-bar span:nth-child(3) { background: #62bf75; }

.window-bar strong {
  margin-left: .35rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .8rem;
  font-weight: 650;
}

.hero-frame img {
  width: 100%;
  aspect-ratio: 1414 / 565;
  object-fit: cover;
  object-position: center;
}

.hero-frame figcaption {
  padding: .78rem 1rem;
  color: #d6d2e2;
  background: rgba(16, 14, 24, .92);
  font-size: .9rem;
}

.section { padding: 4.25rem 0; }

.summary-section {
  padding: 1.2rem 0 0;
  background: var(--paper-2);
}

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

.summary-grid article {
  min-height: 154px;
  padding: 1.2rem;
  box-shadow: none;
}

.summary-grid h2 {
  margin-bottom: .45rem;
  font-size: 1.12rem;
  letter-spacing: 0;
}

.summary-grid p,
.section-heading > p,
.project-grid > div > p,
.notes-list p,
.media-card figcaption span,
.data-note,
.site-footer p {
  margin-bottom: 0;
  color: var(--muted);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.compact-heading h2 { margin-bottom: .45rem; }

.media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(350px, .9fr);
  gap: 1rem;
  align-items: stretch;
}

.media-stack {
  display: grid;
  gap: 1rem;
}

.media-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.media-card img {
  width: 100%;
  height: 255px;
  object-fit: cover;
  object-position: top left;
  background: #15131d;
  border-bottom: 1px solid var(--line);
}

.media-card-large img { height: 578px; }
.media-stack .media-card:first-child img { object-position: center; }
.media-stack .media-card:nth-child(2) img { object-position: top center; }

.media-card figcaption {
  padding: .95rem 1rem 1rem;
}

.media-card figcaption strong {
  display: block;
  margin-bottom: .2rem;
  color: var(--ink);
}

.notes-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fffdfa;
}

.release-notes-grid {
  display: grid;
  grid-template-columns: minmax(280px, .52fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.sticky-heading {
  position: sticky;
  top: 96px;
  margin-bottom: 0;
}

.notes-list {
  display: grid;
  gap: .85rem;
}

.notes-list article {
  padding: 1rem 1.1rem;
  box-shadow: none;
}

.notes-list h3 {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.notes-list h3::before {
  content: "";
  width: .48rem;
  height: .48rem;
  border-radius: 50%;
  background: var(--cyan-dark);
}

.project-section {
  background: var(--paper-2);
}

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.project-grid > div { max-width: 700px; }
.compact-actions { margin-top: 1.25rem; }

.repo-card {
  padding: 1.15rem;
}

.repo-card h3 { margin-bottom: 1rem; }

.repo-list div {
  grid-template-columns: 96px 1fr;
  padding: .82rem 0;
}

.repo-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
  margin-top: 1rem;
}

.repo-stat-grid div {
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
}

.repo-stat-grid strong {
  display: block;
  color: var(--ink);
  font-size: 1.36rem;
  line-height: 1.1;
}

.repo-stat-grid span {
  display: block;
  color: var(--muted);
  font-size: .82rem;
}

.data-note {
  margin-top: .9rem;
  font-size: .9rem;
}

.site-footer {
  padding: 2.6rem 0 1.2rem;
  color: #dcd7e8;
  background: #15131d;
  border-top: 1px solid rgba(255,255,255,.09);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(160px, .5fr) minmax(220px, .7fr);
  gap: 2rem;
}

.footer-logo {
  width: 210px;
  margin-bottom: 1rem;
  padding: .35rem;
  border-radius: .85rem;
  background: #fff;
}

.site-footer p { max-width: 520px; color: #bdb6ce; }
.site-footer h2 { margin-bottom: .7rem; color: #fff; font-size: 1rem; letter-spacing: 0; }
.site-footer nav { display: grid; align-content: start; gap: .35rem; }
.site-footer a { color: #e9f8ff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.1);
  color: #bdb6ce;
  font-size: .92rem;
}

@media (max-width: 1020px) {
  .nav-toggle { display: inline-block; }

  .site-nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + .55rem);
    justify-content: flex-start;
    padding: .85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open { display: flex; }

  .hero-grid,
  .summary-grid,
  .media-grid,
  .release-notes-grid,
  .project-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy { max-width: 820px; }
  .sticky-heading { position: static; }
  .media-card-large img { height: 520px; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 1rem), var(--max)); }
  .nav-row { min-height: 66px; }
  .brand img { width: 188px; }
  .hero { padding: 3.2rem 0 2.5rem; }
  h1 { font-size: clamp(2.15rem, 11vw, 3.2rem); }
  h2 { font-size: clamp(1.55rem, 8vw, 2.2rem); }
  .lead { font-size: 1.02rem; }
  .actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .release-panel dl > div,
  .repo-list div { grid-template-columns: 1fr; gap: .12rem; }
  .summary-section { padding-top: 1rem; }
  .section { padding: 3.25rem 0; }
  .media-card img,
  .media-card-large img {
    height: auto;
    object-fit: contain;
  }
  .repo-stat-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 440px) {
  .brand img { width: 170px; }
  .site-nav a { width: 100%; }
  .site-nav .nav-pill { justify-content: center; }
  .window-bar strong { font-size: .72rem; }
  .hero-frame figcaption { font-size: .86rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
