:root {
  --ink: #080808;
  --muted: #595959;
  --soft: #8f8f8f;
  --line: #d7d7d7;
  --paper: #f8f8f7;
  --card: #ffffff;
  --shade: #eeeeed;
  --green: #eaf8ee;
  --blue: #eef5ff;
  --violet: #f8f0ff;
  --grid: 32px;
  --heading-font: "Geist Bolt", "Geist", "Arial Black", ui-sans-serif, system-ui, sans-serif;
  --body-font: "JetBrains Mono", "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: var(--body-font);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 70% 8%, rgba(0, 0, 0, 0.045), transparent 22rem),
    #f8f8f7;
  color: var(--ink);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #fff 0 28%, transparent 28%),
    linear-gradient(rgba(0, 0, 0, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
  content: "";
  opacity: 1;
  pointer-events: none;
}

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

button {
  font: inherit;
}

body.has-modal {
  overflow: hidden;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

h1 {
  font-family: var(--heading-font);
  max-width: 620px;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.96;
  letter-spacing: 0;
  font-weight: 900;
}

h2 {
  font-family: var(--heading-font);
  max-width: 590px;
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 900;
}

h3 {
  font-family: var(--heading-font);
  font-weight: 900;
}

p {
  color: #171717;
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: var(--grid);
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  width: 100%;
  min-height: 38px;
  align-items: center;
  gap: 24px;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  background: #1f1d1d;
  color: #fff;
  box-shadow: none;
  backdrop-filter: none;
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.brand::before {
  display: inline-grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border-radius: 3px;
  background: #111;
  color: #fff;
  content: "d";
  font-size: 11px;
  font-weight: 800;
}

.site-header nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: #d8d8d8;
  font-size: 12px;
  font-weight: 500;
}

.header-button,
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #090909;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.button.primary,
.header-button {
  border-color: #000;
  background: #000;
  color: #fff;
  box-shadow: none;
}

.header-button {
  min-height: 28px;
  padding: 0 12px;
  border-color: #3a3a3a;
  background: #111;
  font-size: 12px;
}

.subscribe-modal[hidden] {
  display: none;
}

.subscribe-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  justify-items: end;
  align-items: start;
  padding: calc(var(--grid) * 2) calc(var(--grid) / 2) 0;
}

.subscribe-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(248, 248, 247, 0.46);
  cursor: pointer;
}

.subscribe-card {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(432px, calc(100vw - var(--grid)));
  gap: var(--grid);
  margin-right: calc(var(--grid) / 2);
  padding: var(--grid);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    #fff;
  background-size: 32px 32px, 32px 32px, auto;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.18);
}

.subscribe-card h3 {
  max-width: 320px;
  font-size: 32px;
  line-height: 32px;
}

.subscribe-card p:not(.eyebrow) {
  margin-top: calc(var(--grid) / 2);
  font-size: 13px;
  line-height: calc(var(--grid) / 1.5);
}

.subscribe-close {
  position: absolute;
  top: calc(var(--grid) / 2);
  right: calc(var(--grid) / 2);
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #111;
  cursor: pointer;
}

.page-section {
  position: relative;
  display: grid;
  min-height: 100vh;
  align-items: center;
  gap: calc(var(--grid) * 2);
  padding: calc(var(--grid) * 4) calc(var(--grid) * 2) calc(var(--grid) * 2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background:
    linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    rgba(248, 248, 247, 0.86);
  background-size: 32px 32px, 32px 32px, auto;
}

.hero-section,
.split-section,
.final-section {
  grid-template-columns: minmax(320px, 0.86fr) minmax(420px, 1.14fr);
}

.reverse-section {
  grid-template-columns: minmax(420px, 1.14fr) minmax(320px, 0.86fr);
}

.centered-section,
.data-section {
  justify-items: start;
  text-align: left;
}

.section-number {
  position: absolute;
  top: calc(var(--grid) * 3);
  left: calc(var(--grid) * 2);
  color: #a9a9a9;
  font-size: 16px;
  font-weight: 800;
}

.section-copy {
  position: relative;
  z-index: 2;
}

.section-copy p:not(.eyebrow),
.section-heading p:not(.eyebrow) {
  max-width: 620px;
  margin-top: var(--grid);
}

.section-heading {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: start;
  justify-self: stretch;
  width: min(1120px, 100%);
}

.eyebrow {
  margin-bottom: var(--grid);
  color: #6b6b6b;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--grid) / 2);
  margin-top: var(--grid);
}

.button {
  min-height: 48px;
  padding: 0 22px;
  font-size: 14px;
}

.fine-print {
  margin-top: var(--grid);
  color: #333;
  font-size: 13px;
}

.screenshot-frame {
  position: relative;
  z-index: 1;
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.screenshot-frame::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58);
  content: "";
  pointer-events: none;
}

.hero-shot {
  transform: none;
}

.hero-shot img,
.wide-shot img,
.angled-shot img,
.layered-shot img,
.small-shot img {
  width: 100%;
  height: auto;
}

.wide-shot {
  width: min(1120px, 100%);
  justify-self: start;
  margin-top: 0;
}

.angled-shot {
  transform: none;
  transform-origin: left center;
}

.layered-shot {
  transform: none;
  transform-origin: right center;
}

.small-shot {
  width: min(850px, 100%);
  justify-self: start;
  margin-top: 0;
}

.tool-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  width: min(980px, 100%);
  justify-self: start;
  gap: calc(var(--grid) / 2);
}

.tool-strip::before {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  z-index: -1;
  border-top: 1px dashed #c9c9c9;
  content: "";
}

.tool-strip article,
.principles article,
.workflow-card,
.closing-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.tool-strip article {
  display: grid;
  min-height: calc(var(--grid) * 3);
  align-content: center;
  justify-items: start;
  padding: calc(var(--grid) / 2);
  box-shadow: none;
  text-align: left;
}

.tool-strip strong {
  margin-top: calc(var(--grid) / 4);
  font-size: 14px;
}

small {
  color: #5d5d5d;
  font-size: 11px;
}

.github-mark,
.doc-mark,
.note-mark,
.task-mark,
.file-mark {
  display: inline-block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  color: currentColor;
}

.github-mark {
  position: relative;
  border-radius: 50%;
  background: #080808;
}

.github-mark::before {
  position: absolute;
  inset: 6px 5px 4px;
  border-radius: 45% 45% 48% 48%;
  background: #fff;
  content: "";
}

.doc-mark,
.note-mark,
.task-mark,
.file-mark {
  position: relative;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.doc-mark::after,
.note-mark::after {
  position: absolute;
  left: 5px;
  right: 5px;
  top: 8px;
  border-top: 2px solid currentColor;
  box-shadow: 0 5px 0 currentColor;
  content: "";
}

.task-mark::after {
  position: absolute;
  left: 5px;
  top: 6px;
  width: 10px;
  height: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  content: "";
}

.file-mark::before {
  position: absolute;
  top: -6px;
  left: 1px;
  width: 11px;
  height: 7px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  background: #fff;
  content: "";
}

.check-list,
.icon-list {
  display: grid;
  gap: calc(var(--grid) / 2);
  margin: var(--grid) 0 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.icon-list li {
  position: relative;
  padding-left: 30px;
  color: #1b1b1b;
  font-size: 14px;
  line-height: calc(var(--grid) / 1.5);
}

.check-list li::before,
.icon-list li::before {
  position: absolute;
  left: 0;
  top: 2px;
  width: 19px;
  height: 19px;
  border: 1.5px solid #111;
  border-radius: 50%;
  content: "";
}

.check-list li::after,
.icon-list li::after {
  position: absolute;
  left: 5px;
  top: 7px;
  width: 8px;
  height: 4px;
  border-left: 1.5px solid #111;
  border-bottom: 1.5px solid #111;
  content: "";
  transform: rotate(-45deg);
}

.context-lines {
  display: grid;
  gap: calc(var(--grid) / 2);
  margin-top: var(--grid);
}

.context-lines span {
  width: fit-content;
  padding: calc(var(--grid) / 4) calc(var(--grid) / 2);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f3f2;
  color: #111;
  font-weight: 750;
  font-size: 14px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  width: min(640px, 100%);
  justify-self: start;
  gap: calc(var(--grid) / 2);
}

.principles article {
  display: grid;
  min-height: calc(var(--grid) * 3);
  align-content: center;
  justify-items: start;
  padding: calc(var(--grid) / 2);
  background: #fff;
  text-align: left;
}

.principles article:nth-child(1) {
  background: #fff;
}

.principles article:nth-child(2) {
  background: #fff;
}

.principles article:nth-child(3) {
  background: #fff;
}

.principles strong {
  margin-top: calc(var(--grid) / 4);
  font-size: 14px;
}

.principles p {
  margin-top: calc(var(--grid) / 4);
  color: #5d5d5d;
  font-size: 11px;
  font-weight: 400;
  line-height: calc(var(--grid) / 2);
}

.final-section {
  grid-template-rows: 1fr auto;
}

.workflow {
  display: grid;
  justify-items: center;
  gap: calc(var(--grid) / 2);
}

.terminal {
  display: flex;
  width: min(640px, 100%);
  min-height: calc(var(--grid) * 2);
  align-items: center;
  gap: 8px;
  padding: 0 26px;
  border-radius: 8px;
  background: #151515;
  color: #fff;
  box-shadow: none;
}

.terminal span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5f57;
}

.terminal span:nth-child(2) {
  background: #febc2e;
}

.terminal span:nth-child(3) {
  margin-right: 8px;
  background: #28c840;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(12px, 1.2vw, 15px);
}

.arrow {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.workflow-card {
  display: flex;
  width: min(500px, 92%);
  min-height: calc(var(--grid) * 2);
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  font-weight: 750;
}

.workflow-card strong {
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.closing-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 480px);
  align-items: center;
  gap: var(--grid);
  padding: var(--grid);
}

.closing-card h2 {
  max-width: none;
  font-size: clamp(26px, 3vw, 42px);
}

.closing-card p {
  margin-top: calc(var(--grid) / 4);
}

.subscribe-panel {
  display: grid;
  gap: calc(var(--grid) / 2);
}

.subscribe-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: calc(var(--grid) / 2);
  align-items: start;
}

.subscribe-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 calc(var(--grid) / 2);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 14px;
  line-height: 48px;
}

.subscribe-form input:focus {
  border-color: #111;
  outline: 0;
}

.subscribe-form p {
  grid-column: 1 / -1;
  margin: 0;
  color: #5d5d5d;
  font-size: 11px;
  line-height: calc(var(--grid) / 2);
}

.subscribe-success {
  min-height: calc(var(--grid) * 3);
  align-content: center;
  gap: calc(var(--grid) / 4);
  padding: calc(var(--grid) / 2);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f3f2;
}

.subscribe-success strong {
  font-size: 14px;
}

.subscribe-success p {
  margin: 0;
  color: #5d5d5d;
  font-size: 11px;
  line-height: calc(var(--grid) / 2);
}

.site-footer {
  display: flex;
  min-height: calc(var(--grid) * 2);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--grid);
  padding: calc(var(--grid) / 2) var(--grid);
  border-top: 1px solid var(--line);
  background: #fff;
  color: #181818;
  font-size: 13px;
}

.site-footer a {
  padding-bottom: 2px;
  border-bottom: 1px solid #111;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--grid) / 2);
}

.footer-pill {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 800;
}

.site-footer .footer-pill {
  border-bottom: 1px solid var(--line);
}

.footer-pill svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.coffee-link {
  border-color: #111;
  box-shadow: inset 0 0 0 1px #111;
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .site-header nav {
    display: none;
  }

  .hero-section,
  .split-section,
  .reverse-section,
  .final-section {
    grid-template-columns: 1fr;
  }

  .reverse-section .section-copy {
    order: -1;
  }

  .angled-shot,
  .layered-shot,
  .hero-shot {
    transform: none;
  }

  .final-section {
    grid-template-rows: auto;
  }
}

@media (max-width: 760px) {
  .site-header {
    top: 0;
    width: 100%;
    padding-left: 14px;
  }

  .brand {
    font-size: 13px;
  }

  .header-button {
    min-height: 28px;
    padding: 0 10px;
    font-size: 12px;
  }

  .page-section {
    padding: calc(var(--grid) * 3) var(--grid) calc(var(--grid) * 1.5);
  }

  .section-number {
    top: calc(var(--grid) * 2.5);
    left: var(--grid);
    font-size: 16px;
  }

  .actions,
  .button {
    width: 100%;
  }

  .tool-strip,
  .principles {
    grid-template-columns: 1fr;
  }

  .tool-strip::before {
    display: none;
  }

  .closing-card {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .subscribe-form {
    grid-template-columns: 1fr;
  }

  .subscribe-modal {
    justify-items: center;
    padding: calc(var(--grid) * 2) calc(var(--grid) / 2) 0;
  }

  .subscribe-card {
    margin-right: 0;
  }

  .site-footer {
    align-items: center;
    flex-direction: column;
    gap: calc(var(--grid) / 2);
  }

  .screenshot-frame {
    border-radius: 6px;
  }
}

@media (max-width: 460px) {
  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 33px;
  }

  .terminal {
    padding: 0 12px;
  }
}
