:root {
  color: #202723;
  background: #f4f6f3;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #202723;
  --muted: #66706a;
  --line: #d6ddd8;
  --surface: #ffffff;
  --wash: #f1f5f2;
  --green: #16705d;
  --green-dark: #0f5547;
  --mint: #dcefe8;
  --coral: #c45340;
  --blue: #315f9b;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(rgba(53, 74, 62, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 74, 62, 0.035) 1px, transparent 1px),
    #f4f6f3;
  background-size: 32px 32px;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - var(--content)) / 2));
  border-bottom: 1px solid rgba(214, 221, 216, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--ink);
  color: white;
  font-size: 17px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

.site-header nav a,
footer > a {
  color: #4f5a54;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.site-header nav a:hover,
footer > a:hover,
.text-link:hover {
  color: var(--green);
}

.intro {
  width: min(var(--content), calc(100% - 48px));
  min-height: calc(100vh - 112px);
  margin: 0 auto;
  padding: 42px 0 28px;
  display: grid;
  align-content: center;
  gap: 22px;
}

.intro-copy {
  max-width: 780px;
  animation: rise 500ms ease-out both;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2d9679;
  box-shadow: 0 0 0 4px var(--mint);
}

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

h1,
h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  letter-spacing: 0;
}

h1 {
  margin: 12px 0 7px;
  font-size: 58px;
  line-height: 1;
}

.lede {
  max-width: 760px;
  margin-bottom: 20px;
  color: #435049;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 22px;
  line-height: 1.4;
}

.intro-actions,
.closing > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

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

.button.primary:hover {
  background: var(--green-dark);
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--surface);
}

.button.secondary:hover {
  border-color: #a9b6ae;
}

.product-view {
  width: min(640px, 100%);
  margin: 0;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid #cfd7d1;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 22px 55px rgba(34, 50, 41, 0.13);
  animation: rise 600ms 100ms ease-out both;
}

.product-view img {
  width: 100%;
  height: auto;
  display: block;
}

.product-view figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.thesis,
.source-band,
.trust-band,
.closing {
  width: 100%;
}

.thesis {
  border-block: 1px solid var(--line);
  background: var(--ink);
  color: white;
}

.thesis > div {
  width: min(var(--content), calc(100% - 48px));
  min-height: 270px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
}

.section-index {
  align-self: start;
  padding-top: 62px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.thesis .section-index {
  color: #aeb9b3;
}

.thesis p {
  max-width: 940px;
  margin: 0;
  padding: 58px 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 34px;
  line-height: 1.35;
}

.section {
  width: min(var(--content), calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0;
}

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

.eyebrow {
  display: block;
  margin-bottom: 9px;
  color: var(--coral);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-heading h2,
.source-copy h2,
.trust-band h2,
.closing h2 {
  margin-bottom: 13px;
  font-size: 39px;
  line-height: 1.15;
}

.section-heading > p,
.source-copy > p,
.trust-band > p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.section-heading > .pilot-boundary {
  margin-top: 20px;
  padding-left: 14px;
  border-left: 3px solid var(--coral);
  color: #713c33;
  font-size: 14px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  border-block: 1px solid var(--line);
  list-style: none;
}

.steps li {
  min-height: 220px;
  padding: 25px 24px 28px;
  border-right: 1px solid var(--line);
}

.steps li:last-child {
  border-right: 0;
}

.step-number {
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.steps h3 {
  margin: 45px 0 8px;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 22px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.source-band {
  min-height: 470px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.8fr);
  align-items: center;
  gap: 70px;
  padding: 80px max(24px, calc((100vw - var(--content)) / 2));
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.source-copy {
  max-width: 620px;
}

pre {
  max-width: 100%;
  overflow: auto;
  margin: 0;
  padding: 25px;
  border: 1px solid #34423a;
  border-radius: 7px;
  background: #202723;
  color: #dbebe5;
  box-shadow: 0 16px 35px rgba(31, 39, 35, 0.12);
}

code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.7;
}

.architecture-flow {
  display: grid;
  grid-template-columns: 1fr auto 1.15fr auto 1fr auto 1.1fr;
  align-items: center;
  gap: 12px;
}

.architecture-node {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 19px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: 6px;
  background: var(--surface);
}

.architecture-node.service {
  border-top-color: var(--coral);
}

.architecture-node.storage {
  border-top-color: var(--blue);
}

.architecture-node.github {
  border-top-color: var(--ink);
}

.architecture-node span {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.architecture-node strong {
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 17px;
}

.flow-arrow {
  color: #88958e;
  font-size: 21px;
}

.architecture-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 24px;
  border: 1px solid var(--line);
  background: var(--line);
}

.architecture-notes p {
  min-height: 80px;
  margin: 0;
  padding: 17px;
  background: var(--wash);
}

.architecture-notes strong,
.architecture-notes span {
  display: block;
}

.architecture-notes strong {
  margin-bottom: 5px;
  font-size: 11px;
}

.architecture-notes span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.trust-band {
  min-height: 370px;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  align-items: center;
  gap: 80px;
  padding: 72px max(24px, calc((100vw - var(--content)) / 2));
  border-block: 1px solid #bcd7ce;
  background: var(--mint);
}

.trust-band > p {
  margin: 0;
  color: #39554b;
}

.trust-band .eyebrow {
  color: #8c3529;
}

.status-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  background: var(--surface);
}

.status-columns > div {
  padding: 30px;
}

.status-columns > div + div {
  border-left: 1px solid var(--line);
}

.status-columns h3 {
  margin-bottom: 20px;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 22px;
}

.status-columns ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-columns li {
  position: relative;
  padding: 9px 0 9px 21px;
  border-top: 1px solid #ebeeec;
  color: var(--muted);
  font-size: 13px;
}

.status-columns li::before {
  position: absolute;
  left: 0;
  content: "✓";
  color: var(--green);
  font-weight: 700;
}

.status-columns > div + div li::before {
  content: "→";
  color: var(--coral);
}

.closing {
  min-height: 390px;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 25px;
  padding: 70px max(24px, calc((100vw - var(--content)) / 2));
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.closing .section-index {
  padding-top: 6px;
}

.closing h2 {
  max-width: 670px;
  margin: 0;
}

.closing > div {
  flex-direction: column;
  align-items: flex-start;
}

.text-link {
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

footer {
  min-height: 110px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 22px max(24px, calc((100vw - var(--content)) / 2));
  border-top: 1px solid #38443d;
  background: var(--ink);
  color: white;
}

footer p {
  margin: 0;
  color: #aeb9b3;
  font-size: 10px;
}

footer > .brand {
  color: #d9e2dd;
}

footer > a:last-child {
  justify-self: end;
  color: #d9e2dd;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .intro-copy,
  .product-view {
    animation: none;
  }
}

@media (max-width: 940px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .steps li:nth-child(2) {
    border-right: 0;
  }

  .steps li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .source-band,
  .trust-band {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .architecture-flow {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  .closing {
    grid-template-columns: 55px 1fr;
  }

  .closing > div {
    grid-column: 2;
  }
}

@media (max-width: 660px) {
  .site-header {
    min-height: 58px;
    padding-inline: 14px;
  }

  .site-header nav {
    gap: 14px;
  }

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

  .intro {
    width: min(100% - 28px, var(--content));
    min-height: auto;
    padding: 58px 0 28px;
  }

  h1 {
    font-size: 46px;
  }

  .lede {
    font-size: 20px;
  }

  .product-view figcaption {
    display: none;
  }

  .thesis > div {
    width: calc(100% - 28px);
    grid-template-columns: 42px 1fr;
  }

  .thesis p {
    padding: 45px 0;
    font-size: 24px;
  }

  .section {
    width: calc(100% - 28px);
    padding: 68px 0;
  }

  .section-heading h2,
  .source-copy h2,
  .trust-band h2,
  .closing h2 {
    font-size: 31px;
  }

  .steps,
  .status-columns,
  .architecture-notes {
    grid-template-columns: 1fr;
  }

  .steps li {
    min-height: 180px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .steps li:last-child {
    border-bottom: 0;
  }

  .steps h3 {
    margin-top: 28px;
  }

  .source-band,
  .trust-band {
    padding: 60px 14px;
  }

  pre {
    padding: 18px;
  }

  code {
    font-size: 10px;
  }

  .architecture-notes p {
    border-bottom: 1px solid var(--line);
  }

  .status-columns > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .closing {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 60px 14px;
  }

  .closing .section-index,
  .closing > div {
    grid-column: auto;
  }

  footer {
    grid-template-columns: 1fr auto;
    padding-inline: 14px;
  }

  footer p {
    display: none;
  }
}