:root {
  color-scheme: light;
  --paper: #fbf8f1;
  --paper-deep: #f1eadc;
  --paper-green: #edf4ee;
  --ink: #17231c;
  --ink-muted: #526158;
  --green: #174d32;
  --green-bright: #2f704b;
  --green-pale: #dcecdf;
  --stamp: #b33a2f;
  --stamp-dark: #8d2a22;
  --line: rgba(23, 35, 28, 0.16);
  --line-strong: rgba(23, 35, 28, 0.3);
  --white: #fffdf8;
  --shadow: 0 28px 70px rgba(26, 42, 32, 0.14);
  --shadow-small: 0 12px 30px rgba(26, 42, 32, 0.09);
  --radius-large: 28px;
  --radius-medium: 18px;
  --radius-small: 10px;
  --shell: 1160px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

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

a {
  color: inherit;
}

img,
svg {
  display: block;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #e18f44;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 140ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border-radius: 10px;
  transform: rotate(-4deg);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
}

.brand-mark path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.25;
}

.nav-list,
.site-footer ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a,
.site-footer a {
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  text-underline-offset: 5px;
}

.nav-list a:hover,
.site-footer a:hover {
  color: var(--green);
  text-decoration: underline;
}

.button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  font-size: 0.92rem;
  font-weight: 760;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background-color 140ms ease,
    border-color 140ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-compact {
  min-height: 40px;
  padding: 8px 15px;
  font-size: 0.85rem;
}

.button-primary {
  color: var(--white);
  background: var(--stamp);
  box-shadow: 0 9px 24px rgba(179, 58, 47, 0.2);
}

.button-primary:hover {
  background: var(--stamp-dark);
  box-shadow: 0 12px 30px rgba(179, 58, 47, 0.25);
}

.button-secondary {
  color: var(--green);
  background: transparent;
  border-color: var(--line-strong);
}

.button-secondary:hover {
  background: var(--white);
  border-color: var(--green);
}

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

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

.button-paper {
  color: var(--green);
  background: var(--white);
}

.button-paper:hover {
  box-shadow: var(--shadow-small);
}

.button-outline-light {
  color: var(--white);
  border-color: rgba(255, 253, 248, 0.42);
}

.button-outline-light:hover {
  background: rgba(255, 253, 248, 0.1);
  border-color: var(--white);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 9vw, 124px) 0 90px;
  background:
    radial-gradient(circle at 78% 28%, rgba(47, 112, 75, 0.12), transparent 31%),
    radial-gradient(circle at 8% 82%, rgba(179, 58, 47, 0.08), transparent 27%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--stamp-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #f3b9ae;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 760px;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(2.15rem, 4vw, 3.7rem);
  line-height: 1.07;
}

h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.35;
}

.hero-lede,
.section-lede {
  max-width: 680px;
  margin: 28px 0 30px;
  color: var(--ink-muted);
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  line-height: 1.72;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 26px 0 0;
  padding: 0;
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 700;
  list-style: none;
}

.hero-facts li {
  position: relative;
  padding-left: 18px;
}

.hero-facts li::before {
  content: "";
  position: absolute;
  top: 0.64em;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--green-bright);
  border-radius: 50%;
  transform: translateY(-50%);
}

.hero-visual {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: start center;
}

.mascot-frame {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-left: auto;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: inset 0 0 0 20px rgba(255, 253, 248, 0.35);
}

.mascot {
  position: relative;
  z-index: 2;
  width: 86%;
  height: auto;
  filter: drop-shadow(0 18px 22px rgba(23, 77, 50, 0.18));
  animation: mascot-float 5s ease-in-out infinite;
}

.orbit {
  position: absolute;
  border: 1px dashed rgba(23, 77, 50, 0.28);
  border-radius: 50%;
}

.orbit-one {
  inset: -24px;
}

.orbit-two {
  inset: 32px;
}

.approval-stamp {
  position: absolute;
  right: -24px;
  bottom: 54px;
  z-index: 4;
  padding: 9px 16px;
  color: var(--white);
  background: var(--stamp);
  border: 4px solid var(--paper);
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-7deg);
}

.event-card {
  position: absolute;
  right: 0;
  bottom: -8px;
  z-index: 5;
  width: min(88%, 350px);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow);
}

.event-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  color: var(--ink-muted);
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
}

.status-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--green-bright);
  border-radius: 50%;
}

.event-list {
  margin: 0;
  padding: 10px 18px;
  list-style: none;
}

.event-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: start;
  gap: 10px;
  padding: 12px 0;
}

.event-list li + li {
  border-top: 1px solid var(--line);
}

.event-index {
  color: var(--stamp);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
}

.event-list strong,
.event-list small {
  display: block;
}

.event-list strong {
  font-size: 0.87rem;
}

.event-list small {
  margin-top: 1px;
  color: var(--ink-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
}

.boundary-strip {
  padding: 56px 0;
  color: var(--white);
  background: var(--green);
}

.boundary-grid {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 210px;
  align-items: center;
  gap: 40px;
}

.boundary-grid .eyebrow {
  margin: 0;
}

.boundary-grid h2 {
  max-width: 760px;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
}

.boundary-grid p:not(.eyebrow) {
  max-width: 760px;
  margin: 13px 0 0;
  color: rgba(255, 253, 248, 0.78);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(23, 77, 50, 0.35);
  text-underline-offset: 5px;
}

.text-link::after {
  content: "→";
  transition: transform 140ms ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

.text-link-light {
  color: var(--white);
  text-decoration-color: rgba(255, 253, 248, 0.42);
}

.section {
  padding: clamp(82px, 10vw, 132px) 0;
}

.section-tinted {
  background: var(--paper-green);
  border-block: 1px solid rgba(23, 77, 50, 0.12);
}

.section-heading {
  margin-bottom: clamp(44px, 6vw, 70px);
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  align-items: end;
  gap: clamp(34px, 6vw, 80px);
}

.split-heading > p,
.centered-heading > p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.02rem;
}

.centered-heading {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.centered-heading .eyebrow {
  margin-bottom: 14px;
}

.centered-heading > p {
  max-width: 680px;
  margin: 22px auto 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  list-style: none;
  box-shadow: var(--shadow-small);
}

.steps li {
  position: relative;
  min-height: 270px;
  padding: 38px;
  background: var(--white);
}

.steps li:first-child {
  border-radius: var(--radius-large) 0 0 var(--radius-large);
}

.steps li:last-child {
  border-radius: 0 var(--radius-large) var(--radius-large) 0;
}

.steps li + li {
  border-left: 1px solid var(--line);
}

.step-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 48px;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 800;
}

.steps h3 {
  margin-bottom: 12px;
}

.steps p,
.feature-card p,
.deploy-grid p {
  margin: 0;
  color: var(--ink-muted);
}

.config-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(460px, 1.2fr);
  align-items: center;
  gap: clamp(48px, 8vw, 108px);
}

.config-grid .section-lede {
  margin-bottom: 24px;
}

.code-window {
  overflow: hidden;
  background: #13241b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow);
}

.code-window-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 13px 18px;
  color: rgba(255, 253, 248, 0.65);
  background: #0e1b14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  width: 8px;
  height: 8px;
  background: rgba(255, 253, 248, 0.3);
  border-radius: 50%;
}

.code-window pre {
  overflow-x: auto;
  margin: 0;
  padding: clamp(24px, 4vw, 38px);
  color: #e9f5ea;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(0.78rem, 1.35vw, 0.91rem);
  line-height: 1.9;
  tab-size: 2;
}

.comment {
  color: #89a895;
}

.string {
  color: #f1ba78;
}

.value {
  color: #7ed6a2;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  min-height: 250px;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  box-shadow: 0 1px 0 rgba(23, 35, 28, 0.04);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.feature-card:hover {
  border-color: rgba(23, 77, 50, 0.34);
  box-shadow: var(--shadow-small);
  transform: translateY(-4px);
}

.feature-label {
  display: inline-block;
  margin-bottom: 58px;
  color: var(--stamp-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feature-card h3 {
  margin-bottom: 10px;
}

.deploy-section {
  background:
    linear-gradient(135deg, rgba(23, 77, 50, 0.04), transparent 40%),
    var(--paper-deep);
}

.deploy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line-strong);
}

.deploy-grid article {
  min-height: 285px;
  padding: 38px 34px;
}

.deploy-grid article + article {
  border-left: 1px solid var(--line-strong);
}

.deploy-index {
  margin-bottom: 58px !important;
  color: var(--stamp) !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 800;
}

.deploy-grid h3 {
  margin-bottom: 12px;
}

.deploy-grid code {
  display: inline-block;
  max-width: 100%;
  margin-top: 22px;
  padding: 6px 9px;
  color: var(--green);
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

.deploy-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 44px;
}

.cta {
  padding: clamp(70px, 9vw, 106px) 0;
  color: var(--white);
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 253, 248, 0.12), transparent 26%),
    var(--stamp-dark);
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 64px;
}

.cta h2 {
  max-width: 700px;
}

.cta p:not(.eyebrow) {
  max-width: 680px;
  margin: 20px 0 0;
  color: rgba(255, 253, 248, 0.78);
  font-size: 1.05rem;
}

.site-footer {
  padding: 48px 0;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px 48px;
}

.footer-brand {
  font-size: 1.1rem;
}

.footer-brand .brand-mark {
  width: 29px;
  height: 29px;
  border-radius: 8px;
}

.footer-brand .brand-mark svg {
  width: 20px;
  height: 20px;
}

.footer-inner > div > p,
.copyright {
  margin: 8px 0 0;
  color: var(--ink-muted);
  font-size: 0.8rem;
}

.copyright {
  grid-column: 1 / -1;
  margin-top: 2px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

@keyframes mascot-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: auto 1fr;
  }

  .header-inner > nav {
    display: none;
  }

  .header-inner > .button {
    justify-self: end;
  }

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

  .hero-copy {
    max-width: 780px;
  }

  .hero-visual {
    width: min(100%, 620px);
    margin: 10px auto 0;
  }

  .mascot-frame {
    margin-inline: auto;
  }

  .boundary-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .boundary-grid .text-link {
    margin-top: 4px;
  }

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

  .steps li:nth-child(2),
  .steps li:nth-child(3),
  .deploy-grid article:nth-child(3) {
    border-top: 1px solid var(--line);
  }

  .steps li:nth-child(3),
  .deploy-grid article:nth-child(3) {
    grid-column: 1 / -1;
  }

  .steps li:first-child,
  .steps li:last-child {
    border-radius: 0;
  }

  .steps li:first-child {
    border-radius: var(--radius-large) 0 0 0;
  }

  .steps li:nth-child(2) {
    border-top: 0;
    border-radius: 0 var(--radius-large) 0 0;
  }

  .steps li:last-child {
    border-radius: 0 0 var(--radius-large) var(--radius-large);
  }

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

  .config-grid > div:first-child {
    max-width: 720px;
  }

  .cta-inner {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 38px;
  }
}

@media (max-width: 700px) {
  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    min-height: 64px;
  }

  .header-inner > .button {
    display: none;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4.15rem);
  }

  .hero {
    padding-top: 62px;
  }

  .hero-visual {
    min-height: 0;
    gap: 24px;
  }

  .mascot-frame {
    width: min(88vw, 390px);
  }

  .approval-stamp {
    right: -6px;
    bottom: 48px;
  }

  .event-card {
    position: static;
    width: min(94%, 350px);
    transform: none;
  }

  .split-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

  .steps li,
  .steps li:nth-child(2),
  .steps li:nth-child(3),
  .deploy-grid article,
  .deploy-grid article:nth-child(3) {
    grid-column: auto;
    border-left: 0;
    border-radius: 0;
  }

  .steps li + li,
  .deploy-grid article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .steps li:first-child {
    border-radius: var(--radius-large) var(--radius-large) 0 0;
  }

  .steps li:last-child {
    border-radius: 0 0 var(--radius-large) var(--radius-large);
  }

  .step-number,
  .feature-label,
  .deploy-index {
    margin-bottom: 30px !important;
  }

  .config-grid {
    gap: 42px;
  }

  .code-window pre {
    font-size: 0.72rem;
  }

  .deploy-actions,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .deploy-actions {
    display: flex;
  }

  .footer-inner {
    display: flex;
  }

  .site-footer ul {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px 22px;
  }

  .copyright {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: rgba(23, 35, 28, 0.38);
    --line-strong: rgba(23, 35, 28, 0.6);
  }

  .button-secondary,
  .button-outline-light {
    border-width: 2px;
  }
}
