/* ──────────────────────────────────────────────────────────────
   Reckoner — website
   Static, gruvbox-dark, JetBrains Mono. No build step.
   ────────────────────────────────────────────────────────────── */

@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/JetBrainsMono-Medium.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/JetBrainsMono-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/JetBrainsMono-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #121110;
  --surface: #181715;
  --surface-2: #1d2021;
  --ink: #ebdbb2;
  --muted: #a89984;
  --dim: #8a7d6d;
  --line: #3c3836;
  --line-soft: #292623;
  --olive: #a9b665;
  --olive-deep: #78824b;
  --yellow: #d79921;
  --font: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1240px;
  --pad: 32px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--olive); color: #12110f; }

a { color: inherit; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s;
}
.skip:focus { transform: none; }

:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
}

code {
  font-family: inherit;
  font-size: .92em;
  color: #d5c4a1;
  background: rgba(80, 73, 69, .16);
  border: 1px solid var(--line-soft);
  padding: .04em .3em;
}

kbd {
  display: inline-block;
  min-width: 1.85em;
  padding: .1em .4em .14em;
  font-family: inherit;
  font-size: .72em;
  line-height: 1.4;
  letter-spacing: .04em;
  text-align: center;
  color: var(--ink);
  background: #201e1a;
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 #0a0908;
}

/* ────────────────────────────────────────────────────────────── header */

.site-header {
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark { width: 18px; height: 18px; color: var(--olive); flex: none; }
.badge {
  padding: 1px 6px 2px;
  border: 1px solid rgba(169, 182, 101, .45);
  color: var(--olive);
  font-size: 8px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--olive-deep); }
.nav .nav-out { color: var(--ink); }

/* ────────────────────────────────────────────────────────────── hero */

.hero { padding: 82px 0 0; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.eyebrow-line { width: 28px; height: 1px; background: var(--olive-deep); flex: none; }
.eyebrow i { color: var(--dim); font-style: normal; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 56px;
  align-items: start;
  margin-top: 30px;
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 8.6vw, 7rem);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.075em;
  color: var(--ink);
}

.tagline {
  max-width: 32ch;
  margin: 24px 0 0;
  color: var(--ink);
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.025em;
}

.intro {
  max-width: 62ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px 11px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--olive-deep); background: rgba(120, 130, 75, .08); }
.btn-primary {
  background: var(--olive);
  border-color: var(--olive);
  color: #12110f;
  font-weight: 700;
}
.btn-primary:hover { background: #bac878; border-color: #bac878; }

.release-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .06em;
}
.dot { width: 5px; height: 5px; background: var(--olive); flex: none; }

.hero-facts {
  border-left: 1px solid var(--line);
  padding-left: 20px;
  margin-top: 6px;
}
.hero-facts dl { margin: 0; font-size: 10.5px; }
.hero-facts dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-soft);
}
.hero-facts dt {
  color: var(--dim);
  font-size: 8.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero-facts dd { margin: 0; color: var(--muted); text-align: right; }
.facts-link {
  display: block;
  margin-top: 14px;
  color: var(--olive);
  font-size: 9px;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.facts-link:hover { color: var(--ink); }

.hero-figure { margin: 52px 0 0; }
.hero-figure > a { display: block; }
.hero-figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: #0d0c0a;
}
.hero-figure figcaption,
.full-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 9px;
  color: var(--dim);
  font-size: 8.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ────────────────────────────────────────────────────────────── sections */

.section { padding: 128px 0 0; }

.section-head {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: end;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  margin-bottom: 38px;
}

.kicker {
  margin: 0 0 18px;
  color: var(--dim);
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.kicker span { color: var(--olive); }

h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.055em;
}

.section-lede {
  max-width: 48ch;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

/* ────────────────────────────────────────────────────────────── gallery */

.gallery {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.tabs {
  border-top: 1px solid var(--line);
}
.tab {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 43px;
  padding: 0 10px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-left: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}
.tab:hover { color: var(--ink); background: var(--surface); }
.tab[aria-selected="true"] {
  color: var(--ink);
  background: var(--surface);
  border-left-color: var(--olive);
}
.tab-num { color: var(--dim); font-size: 8.5px; }
.tab-label {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer { margin: 0; min-width: 0; }
.viewer-link { display: block; }
.viewer img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #0d0c0a;
}

.viewer-caption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.viewer-name {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}
.viewer-desc {
  max-width: 72ch;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}
.viewer-open {
  flex: none;
  margin-top: 2px;
  color: var(--olive);
  font-size: 8.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.viewer-open:hover { color: var(--ink); }

.gallery-note {
  margin: 16px 0 0;
  color: var(--dim);
  font-size: 9.5px;
  letter-spacing: .04em;
}

/* ────────────────────────────────────────────────────────────── details */

.details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.details h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.details p {
  max-width: 38ch;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.keys-block {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.keys-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}
.keys-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.keys-head p {
  margin: 0;
  color: var(--dim);
  font-size: 9.5px;
}
.keys-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  margin-top: 14px;
}
.key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0 8px;
  border-bottom: 1px dotted #302d29;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}
.keys { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.keys b { color: var(--line); font-size: 8px; font-weight: 400; }

/* ────────────────────────────────────────────────────────────── btop */

.full-figure { margin: 28px 0 0; }
.full-figure > a { display: block; }
.full-figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: #0d0c0a;
}

/* ────────────────────────────────────────────────────────────── install */

.install-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.os-soon {
  align-self: center;
  min-width: 0;
  padding-left: 10px;
}
.os-soon .kicker { margin-bottom: 10px; }
.os-soon .soon {
  margin: 0;
  color: var(--olive);
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.055em;
}
.os-soon p {
  max-width: 38ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}
.os-soon .contribute {
  display: inline-block;
  margin-top: 18px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--olive-deep);
  color: var(--olive);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
}
.os-soon .contribute:hover { color: var(--ink); border-bottom-color: var(--ink); }
.install-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.install-block header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.install-block h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.tag {
  flex: none;
  padding: 1px 6px 2px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 7.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.install-block > p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}
.install-block > p.note {
  margin: 12px 0 0;
  color: var(--dim);
  font-size: 9px;
  line-height: 1.65;
}

.path-list { margin-top: 18px; }
.path-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 0;
  border-top: 1px solid var(--line-soft);
  color: var(--dim);
  font-size: 9px;
}
.path-list div:last-child { border-bottom: 1px solid var(--line-soft); }
.path-list span:first-child { color: var(--muted); }

.code {
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line);
  background: #0f0e0d;
}
.code + .code { margin-top: 8px; }
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 9px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--dim);
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.copy {
  flex: none;
  padding: 0 5px 1px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 7.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.copy:hover { background: var(--line); color: var(--ink); }

.code pre {
  max-width: 100%;
  margin: 0;
  padding: 11px 12px 12px;
  overflow-x: auto;
  color: var(--muted);
  font-family: inherit;
  font-size: 10px;
  line-height: 1.8;
  tab-size: 2;
  scrollbar-width: thin;
  scrollbar-color: var(--line) #0f0e0d;
}
.code pre::-webkit-scrollbar { height: 6px; }
.code pre::-webkit-scrollbar-track { background: #0f0e0d; }
.code pre::-webkit-scrollbar-thumb { background: var(--line); }
.code .p { color: var(--olive); }
.code .c { color: var(--dim); }

/* ────────────────────────────────────────────────────────────── footer */

.footer {
  margin-top: 128px;
  padding: 34px 0 24px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 32px;
  align-items: start;
}
.footer-brand .brand { font-size: 14px; }
.footer-brand p {
  margin: 8px 0 0;
  color: var(--dim);
  font-size: 10px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 8.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-meta {
  grid-column: 1 / -1;
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  color: var(--dim);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ────────────────────────────────────────────────────────────── reveal */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.22, .8, .24, 1);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ────────────────────────────────────────────────────────────── responsive */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 230px; gap: 40px; }
  .gallery { grid-template-columns: 240px minmax(0, 1fr); gap: 28px; }
  .section-head { gap: 36px; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-facts {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
    padding: 18px 0 0;
    max-width: 620px;
  }
  .hero-facts dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 18px; }
  .hero-facts dl > div { display: block; }
  .hero-facts dd { text-align: left; margin-top: 2px; }
  .facts-link { margin-top: 10px; }

  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .section-lede { max-width: 62ch; }

  .gallery { grid-template-columns: 1fr; gap: 18px; }
  .tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
  }
  .tab {
    height: 38px;
    border-left: 2px solid transparent;
  }
  .viewer { margin-top: 4px; }

  .details { grid-template-columns: 1fr; gap: 18px; }
  .details p { max-width: 68ch; }
  .install-grid { grid-template-columns: 1fr; }
  .os-soon { align-self: start; padding: 4px 0 0; }
  .tabs .tab:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --pad: 20px; }

  .header-inner { height: 58px; }
  .nav { gap: 18px; font-size: 9px; }
  .nav a[href="#shell"] { display: none; }

  .hero { padding-top: 60px; }
  h1 { font-size: clamp(3.4rem, 16vw, 4.6rem); }
  .tagline { margin-top: 20px; max-width: 26ch; }
  .actions { gap: 12px 18px; }
  .hero-figure { margin-top: 36px; }
  .hero-figure figcaption,
  .full-figure figcaption { flex-direction: column; gap: 4px; }

  .section { padding-top: 92px; }
  .section-head { padding-top: 20px; margin-bottom: 28px; }

  .tab { height: 36px; padding: 0 8px; grid-template-columns: 22px minmax(0, 1fr); }
  .tab-label { font-size: 11px; }
  .viewer-caption { flex-direction: column; gap: 8px; }
  .viewer-open { margin-top: 0; }

  .keys-head { flex-direction: column; gap: 4px; }
  .keys-grid { grid-template-columns: 1fr; }

  .footer { margin-top: 92px; }
  .footer-inner { grid-template-columns: 1fr; gap: 16px; }
  .footer-meta { margin-top: 12px; }

  .code pre { font-size: 9px; }
}

@media (max-width: 460px) {
  .brand { font-size: 14px; }
  .nav { gap: 14px; font-size: 8.5px; }
  .nav a[href="#screens"] { display: none; }
  .hero-facts dl { grid-template-columns: 1fr 1fr; }
  .btn { flex: 1 1 auto; }
  .release-note { align-items: flex-start; line-height: 1.5; }
  .tab { grid-template-columns: 20px minmax(0, 1fr); gap: 6px; }
  .tab-label { font-size: 10.5px; }
  .install-block { padding: 18px; }
}

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