:root {
  color-scheme: light;
  --paper: #f7f4ee;
  --paper-strong: #fffdf8;
  --ink: #20211f;
  --muted: #68645c;
  --line: #d9d1c3;
  --teal: #207a74;
  --teal-dark: #0c4f4b;
  --plum: #6c3d7c;
  --amber: #b46625;
  --rose: #b84f61;
  --shadow: 0 18px 50px rgb(41 33 23 / 14%);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgb(32 33 31 / 10%);
  background: rgb(247 244 238 / 86%);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 750;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
}

.nav-links {
  gap: clamp(14px, 2vw, 26px);
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.66fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  overflow: hidden;
  padding: 128px clamp(20px, 6vw, 92px) 76px;
  border-bottom: 1px solid var(--line);
}

#contract-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(to bottom, rgb(247 244 238 / 0), var(--paper));
  content: "";
  pointer-events: none;
}

.hero-content,
.hero-snapshot {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 860px;
  margin-bottom: 22px;
  font-size: clamp(54px, 11vw, 142px);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.hero-copy {
  max-width: 690px;
  color: #3f3d38;
  font-size: clamp(19px, 2.3vw, 27px);
  line-height: 1.35;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-weight: 720;
}

.button.primary {
  background: var(--ink);
  color: var(--paper-strong);
}

.button.secondary {
  background: rgb(255 253 248 / 74%);
}

.hero-snapshot {
  border: 1px solid rgb(32 33 31 / 18%);
  border-radius: 8px;
  background: rgb(255 253 248 / 86%);
  box-shadow: var(--shadow);
}

.snapshot-toolbar {
  display: flex;
  gap: 7px;
  padding: 14px 16px;
  border-bottom: 1px solid rgb(32 33 31 / 12%);
}

.snapshot-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rose);
}

.snapshot-toolbar span:nth-child(2) {
  background: var(--amber);
}

.snapshot-toolbar span:nth-child(3) {
  background: var(--teal);
}

pre {
  overflow: auto;
  margin: 0;
  white-space: pre-wrap;
}

.hero-snapshot pre,
.code-grid pre {
  padding: 20px;
  color: #242520;
  font-size: 13px;
  line-height: 1.6;
}

.section {
  padding: clamp(62px, 9vw, 120px) clamp(20px, 6vw, 92px);
}

.intro {
  background: var(--paper-strong);
}

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

.section-heading p,
.split p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.workflow-grid article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #faf8f2;
}

.workflow-grid p,
.artifact-list span {
  color: var(--muted);
  line-height: 1.55;
}

.step {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 28px;
  place-items: center;
  border: 1px solid var(--teal);
  border-radius: 50%;
  color: var(--teal-dark);
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.artifact-list {
  display: grid;
  gap: 10px;
}

.artifact-list div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.artifact-list strong {
  color: var(--plum);
}

.code-section {
  background: #21221f;
  color: var(--paper-strong);
}

.code-section .eyebrow {
  color: #8ad0c8;
}

.code-section .section-heading p {
  color: #c8c1b4;
}

.code-grid {
  display: grid;
  gap: 14px;
}

.code-grid pre {
  border: 1px solid rgb(255 253 248 / 16%);
  border-radius: 8px;
  background: #111210;
  color: #f4efe4;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  padding: 30px 20px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer span {
  color: var(--ink);
  font-weight: 760;
}

@media (max-width: 860px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    gap: 18px;
  }

  .nav-links {
    display: none;
  }

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

  .hero {
    min-height: auto;
    padding-top: 110px;
  }

  .hero-snapshot {
    max-width: 100%;
  }

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

  .artifact-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (min-width: 861px) and (max-width: 1120px) {
  .workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
