@font-face {
  font-family: "Inter";
  src: url("/assets/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/assets/Manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0a0a0b;
  --ink-2: #080809;
  --ink-3: #131315;
  --paper: #eeeae1;
  --paper-2: #f5f1e7;
  --orange: #ff5a24;
  --smoke: #85827b;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --dur-fast: 180ms;
  --dur-med: 400ms;
  --dur-slow: 1000ms;
}

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

html {
  background-color: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-variant-emoji: text;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* Sticky Navigation */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(10, 10, 11, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(238, 234, 225, 0.08);
  color: var(--paper);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  color: var(--paper);
  justify-self: start;
  white-space: nowrap;
  transition: opacity var(--dur-fast) var(--ease);
}

.nav-brand:hover {
  opacity: 0.82;
}

.nav-mark {
  width: 22px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}

.nav-centre {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  background-color: var(--ink-3);
  border: 1px solid rgba(238, 234, 225, 0.09);
  border-radius: 999px;
  padding: 0.25rem;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  color: var(--smoke);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.nav-pill:hover {
  color: var(--paper);
  background-color: rgba(238, 234, 225, 0.06);
}

.nav-pill.is-active {
  color: var(--paper);
  background-color: rgba(238, 234, 225, 0.1);
}

.nav-right {
  justify-self: end;
  display: flex;
  align-items: center;
}

.nav-github {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4375rem 0.875rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1;
  color: var(--paper);
  background-color: var(--ink-3);
  border: 1px solid rgba(238, 234, 225, 0.14);
  white-space: nowrap;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.nav-github:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.arrow-glyph {
  font-family: var(--font-sans);
  font-variant-emoji: text;
}

/* Dark Hero */
.hero {
  background-color: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid rgba(238, 234, 225, 0.08);
  padding: clamp(4rem, 9vw, 7.5rem) 1.5rem clamp(3.5rem, 7vw, 6rem);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--orange);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--paper);
  margin-bottom: 1.125rem;
  text-wrap: balance;
}

.hero-lede {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  line-height: 1.6;
  color: var(--smoke);
  max-width: 52ch;
}

/* Main Paper Timeline Section */
.changelog-main {
  flex: 1;
  background-color: var(--paper);
  color: var(--ink);
  padding: clamp(3.5rem, 7vw, 6.5rem) 1.5rem clamp(4.5rem, 9vw, 8rem);
}

.timeline-container {
  max-width: 1200px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  padding-left: clamp(1.75rem, 4.5vw, 4rem);
}

/* Vertical 1px line on left */
.timeline::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 4px;
  width: 1px;
  background-color: var(--ink);
  opacity: 0.22;
}

.release-row {
  position: relative;
  padding: 2.75rem 0 3.25rem;
  border-bottom: 1px solid rgba(10, 10, 11, 0.12);
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 1.5rem 3rem;
  align-items: baseline;
}

.release-row:first-child {
  padding-top: 0.5rem;
}

.release-row:first-child .timeline-marker {
  top: 1.6rem;
}

.release-row:last-child {
  border-bottom: none;
  padding-bottom: 1rem;
}

/* Small orange square marker per release */
.timeline-marker {
  position: absolute;
  left: calc(-1 * clamp(1.75rem, 4.5vw, 4rem));
  top: 3.85rem;
  width: 9px;
  height: 9px;
  background-color: var(--orange);
  transition: transform var(--dur-fast) var(--ease);
}

.release-row:hover .timeline-marker {
  transform: scale(1.25);
}

/* Scroll Reveal Animation (1000ms rise, once) */
@media (prefers-reduced-motion: no-preference) {
  .js .release-row.will-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  }

  .js .release-row.will-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .release-row,
  .release-row.will-reveal,
  .release-row.will-reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.release-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

/* Huge outlined Manrope numerals: 1px stroke ink, transparent fill; fills ink on hover */
.release-version {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.25rem, 7.5vw, 6.25rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  margin: 0;
}

.release-head {
  min-width: 0;
}

.version-suffix {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: rgba(10, 10, 11, 0.6);
  overflow-wrap: anywhere;
}

.version-num {
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
  transition: color var(--dur-med) var(--ease);
  display: inline-block;
}

.release-row:hover .version-num,
.release-row:focus-within .version-num {
  color: var(--ink);
}

.release-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
}

.release-latest {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1;
  color: var(--orange);
  border: 1px solid var(--orange);
  padding: 0.25rem 0.5rem;
  letter-spacing: 0.03em;
}

.release-date {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--smoke);
  font-variant-numeric: tabular-nums;
}

.release-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
  align-self: start;
}

.release-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.release-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.release-highlights li {
  position: relative;
  padding-left: 1.125rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-3);
}

.release-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 1px;
  background-color: var(--ink);
}

.release-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.release-downloads {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5625rem 0.9375rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.2;
  color: var(--ink);
  background-color: var(--paper-2);
  border: 1px solid var(--ink);
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.download-btn:hover {
  background-color: var(--ink);
  color: var(--paper);
}

.notes-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ink);
  border-bottom: 1px solid rgba(10, 10, 11, 0.35);
  padding-bottom: 0.125rem;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.notes-link:hover {
  color: var(--orange);
  border-color: var(--orange);
}

/* Footer */
.site-footer {
  background-color: var(--ink-2);
  color: var(--paper);
  border-top: 1px solid rgba(238, 234, 225, 0.08);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid rgba(238, 234, 225, 0.08);
}

.footer-credit {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--smoke);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.footer-link {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--paper);
  transition: color var(--dur-fast) var(--ease);
  white-space: nowrap;
}

.footer-link:hover {
  color: var(--orange);
}

/* Giant cropped 'kimo' wordmark */
.footer-wordmark-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem 0;
  overflow: hidden;
  user-select: none;
}

.footer-wordmark {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(6.5rem, 25vw, 22rem);
  line-height: 0.74;
  letter-spacing: -0.055em;
  color: var(--paper);
  transform: translateY(16%);
}

/* Responsive Breakpoints (Zero Overflow at 375px) */
@media (max-width: 820px) {
  .release-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 2.25rem 0 2.5rem;
  }

  .release-body {
    align-self: stretch;
  }
}

@media (max-width: 720px) {
  .nav-inner {
    padding: 0.5rem 1rem;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand right"
      "centre centre";
    row-gap: 0.375rem;
  }

  .nav-brand {
    grid-area: brand;
    font-size: 0.95rem;
  }

  .nav-right {
    grid-area: right;
  }

  .nav-centre {
    grid-area: centre;
    width: 100%;
    justify-content: space-between;
    padding: 0.1875rem;
    gap: 0.125rem;
  }

  .nav-pill {
    padding: 0.3125rem 0.5rem;
    font-size: 0.75rem;
  }

  .nav-github {
    padding: 0.3125rem 0.625rem;
    font-size: 0.75rem;
  }

  .hero {
    padding: 3rem 1rem 2.75rem;
  }

  .changelog-main {
    padding: 2.75rem 1rem 3.5rem;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-marker {
    left: -1.5rem;
    top: 3.1rem;
  }

  .release-row:first-child .timeline-marker {
    top: 1.25rem;
  }

  .download-btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .release-downloads {
    width: 100%;
  }

  .footer-inner,
  .footer-wordmark-wrap {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* nav: seven page links scroll sideways on phones */
@media (max-width: 720px) {
  .nav-centre { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; min-width: 0; }
  .nav-centre::-webkit-scrollbar { display: none; }
  .nav-pill { flex: none; }
}

/* full changelog: intro line, then Added / Changed / Fixed / ... */
.release-summary {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 68ch;
}


.release-section-title {
  margin: 0 0 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange, #ff5a24);
}

.release-highlights li {
  overflow-wrap: anywhere;
}

.release-body code,
.release-summary code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 0.05em 0.3em;
  background: rgba(10, 10, 11, 0.06);
  border-radius: 3px;
}

/* keep the version in view while reading a long release */
@media (min-width: 900px) {
  .release-head { position: sticky; top: 5.5rem; align-self: start; }
}
