:root {
  color-scheme: light;
  --ink: #12161b;
  --muted: #5d6670;
  --line: #d9dee4;
  --paper: #ffffff;
  --soft: #f3f5f7;
  --violet: #5143e9;
  --cyan: #167f91;
  --amber: #e1a427;
  --red: #c7534d;
  --green: #407d5d;
  --content: 1180px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-underline-offset: 3px;
}

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

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px max(24px, calc((100% - var(--content)) / 2));
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: block;
  width: 150px;
}

.brand img,
.site-footer img {
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 650;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--violet);
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(680px, calc(100svh - 112px));
  padding: 72px max(24px, calc((100% - var(--content)) / 2));
  overflow: hidden;
  color: #ffffff;
  background-color: #151b20;
  background-image: url("assets/duckdb-architecture.webp");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  background-blend-mode: multiply;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(12, 16, 20, 0.72);
}

.hero-content {
  width: min(760px, 100%);
}

.release-meta,
.section-kicker,
.download-label {
  margin: 0 0 16px;
  color: #8ee2ef;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.release-meta span {
  display: inline-block;
  margin-left: 12px;
  padding-left: 12px;
  color: #dfe6eb;
  border-left: 1px solid rgba(255, 255, 255, 0.34);
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: 68px;
  line-height: 1.05;
  font-weight: 760;
}

.hero-lead {
  max-width: 710px;
  margin: 28px 0 0;
  color: #e9edf0;
  font-size: 22px;
  line-height: 1.55;
}

.hero-actions,
.notes-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.button-primary {
  color: var(--ink);
  background: #ffffff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #8ee2ef;
}

.button-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.18);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.hero-footnote {
  margin: 20px 0 0;
  color: #bec8cf;
  font-size: 14px;
}

.section {
  padding: 96px max(24px, calc((100% - var(--content)) / 2));
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  column-gap: 72px;
  align-items: end;
  margin-bottom: 48px;
}

.section-heading .section-kicker {
  grid-column: 1 / -1;
  color: var(--cyan);
}

.section-heading h2,
.rds-band h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.16;
}

.section-heading > p:last-child,
.rds-band p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  grid-column: span 2;
  min-height: 270px;
  padding: 28px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--violet);
  border-radius: 6px;
  background: var(--paper);
}

.feature-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.feature-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.feature-vector {
  border-top-color: var(--amber);
}

.feature-flashback {
  border-top-color: var(--green);
}

.feature-redo {
  border-top-color: var(--red);
}

.feature-free-flush {
  border-top-color: var(--cyan);
}

.feature-number {
  margin: 0 0 38px;
  color: #8b949c;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
}

.feature-card h3,
.download-item h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.25;
}

.feature-card p:last-child,
.download-item p {
  margin: 0;
  color: var(--muted);
}

.compatibility-note {
  max-width: 860px;
  margin: 32px auto 0;
  padding-left: 18px;
  color: var(--muted);
  border-left: 3px solid var(--cyan);
  font-size: 14px;
}

.release-links {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #bfc7ce;
  border-bottom: 1px solid #bfc7ce;
}

.download-item {
  min-width: 0;
  padding: 28px 32px 32px 0;
}

.download-item + .download-item {
  padding-left: 32px;
  border-left: 1px solid #bfc7ce;
}

.download-label {
  color: var(--cyan);
}

.download-item p {
  min-height: 52px;
}

.download-item code {
  overflow-wrap: anywhere;
}

.download-item a {
  display: inline-block;
  margin-top: 22px;
  color: #3130a8;
  font-weight: 700;
}

.button-dark {
  color: #ffffff;
  background: var(--ink);
}

.button-dark:hover,
.button-dark:focus-visible {
  background: #2b333a;
}

.button-outline {
  color: var(--ink);
  border-color: #7b858e;
  background: transparent;
}

.button-outline:hover,
.button-outline:focus-visible {
  border-color: var(--ink);
  background: #ffffff;
}

.rds-band {
  padding: 88px max(24px, calc((100% - var(--content)) / 2));
  color: #ffffff;
  background: #17262a;
}

.rds-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 88px;
  align-items: start;
}

.rds-band .section-kicker {
  color: #8ee2ef;
}

.rds-band h2 {
  max-width: 680px;
}

.rds-band p:last-child {
  max-width: 700px;
  margin-top: 24px;
  color: #c7d1d5;
}

.rds-links {
  display: grid;
  border-top: 1px solid #53676c;
}

.rds-links a {
  padding: 13px 2px;
  border-bottom: 1px solid #53676c;
  color: #ffffff;
  font-weight: 650;
  text-decoration: none;
}

.rds-links a:hover,
.rds-links a:focus-visible {
  color: #8ee2ef;
}

.site-footer {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px max(24px, calc((100% - var(--content)) / 2));
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--ink);
  font-weight: 650;
}

@media (max-width: 900px) {
  .hero h1 {
    font-size: 54px;
  }

  .section-heading,
  .rds-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-heading h2,
  .rds-band h2 {
    font-size: 36px;
  }

  .feature-card,
  .feature-card:nth-child(4),
  .feature-card:nth-child(5) {
    grid-column: span 3;
  }

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

  .download-item,
  .download-item + .download-item {
    padding: 28px 0;
    border-left: 0;
  }

  .download-item + .download-item {
    border-top: 1px solid #bfc7ce;
  }

  .download-item p {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
  }

  .brand {
    width: 118px;
  }

  .site-nav a:not(:last-child) {
    display: none;
  }

  .hero {
    min-height: calc(100svh - 180px);
    padding-top: 54px;
    padding-bottom: 54px;
    background-position: 58% center;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-lead {
    margin-top: 22px;
    font-size: 18px;
  }

  .hero-actions,
  .notes-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .section,
  .rds-band {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .section-heading h2,
  .rds-band h2 {
    font-size: 32px;
  }

  .section-heading > p:last-child,
  .rds-band p {
    font-size: 16px;
  }

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

  .feature-card,
  .feature-card:nth-child(4),
  .feature-card:nth-child(5) {
    grid-column: 1;
    min-height: 0;
  }

  .feature-number {
    margin-bottom: 24px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .site-footer img {
    width: 118px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
