@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/outfit.woff2") format("woff2");
}

/* Palette */

:root {
  --bg: #dff3ea;
  --bg-2: #ecf9f3;
  --fg: #0c2a22;
  --text: #1d3d34;
  --muted: #43645a;
  --line: #bddfd1;
  --line-strong: #6fa593;
  --accent: #0c2a22;
  --ink: #0e6a52;
  --accent-fg: #dff3ea;
  --px-1: #0c2a22;
  --px-2: #178a6c;
  --px-3: #7fd3b5;
  --add: #117457;
  --del: #a3442f;
  --add-bg: rgba(17, 116, 87, 0.1);
  --del-bg: rgba(163, 68, 47, 0.08);
  --field: 23, 138, 108;
}

:root {
  --mono: ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: "Outfit", system-ui, sans-serif;
  --bar-h: 3.5rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--bar-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 0.9375rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 0.9rem;
  background: var(--fg);
  color: var(--bg);
}

.skip-link:focus {
  top: 1rem;
}

.field {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.band {
  position: relative;
  height: clamp(4.5rem, 9vw, 7rem);
  overflow: hidden;
}

/* Top bar */

.bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--bar-h);
  padding: 0 clamp(1rem, 6vw, 7rem);
  font-size: 0.8125rem;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.bar.is-stuck {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--line);
}

.bar__mark {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
  white-space: nowrap;
}

.bar__mark span {
  font-weight: 400;
  color: var(--muted);
}

.bar__nav {
  display: flex;
  gap: 1.5rem;
}

.bar__nav a {
  color: var(--muted);
  transition: color 0.2s;
}

.bar__nav a:hover,
.bar__nav a:focus-visible {
  color: var(--fg);
}

.bar__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}



/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--fg);
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease),
    background-color 0.2s;
}

.btn:hover,
.btn:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--px-2);
}

.btn:active {
  transform: none;
  box-shadow: none;
}

.btn--solid {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
}

.btn--ghost {
  background: var(--bg-2);
  color: var(--fg);
}

.btn--sm {
  padding: 0.45rem 0.8rem;
  font-size: 0.8125rem;
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: calc(var(--bar-h) + 3rem) 1.25rem 5rem;
  text-align: center;
}

.hero > :not(.field) {
  position: relative;
  z-index: 1;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  color: var(--muted);
  font-size: 0.78rem;
  transition: color 0.2s, border-color 0.2s;
}

.pill:hover {
  color: var(--fg);
  border-color: var(--fg);
}

.pill__dot {
  width: 6px;
  height: 6px;
  background: var(--add);
  animation: blink 1.6s steps(2, jump-none) infinite;
}

.wordmark {
  margin: 0.5rem 0 0;
  font-family: var(--mono);
  font-size: clamp(2.75rem, 10vw, 7.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--px-1);
}

.wordmark span {
  font-weight: 400;
  color: var(--muted);
}

.hero__tag {
  margin: 0.5rem 0 0;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.kinetic {
  display: inline-block;
  min-width: 13ch;
  text-align: left;
  color: var(--ink);
}


.kinetic::after {
  content: "_";
  animation: blink 1s steps(2, jump-none) infinite;
}

.hero__lede {
  margin: 0;
  max-width: 36rem;
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  text-wrap: balance;
}

@media (max-width: 720px) {
  .hero__lede br {
    display: none;
  }
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

/* Sections */

.sect {
  position: relative;
  padding: clamp(5rem, 14vh, 8.5rem) 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.sect::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  background: var(--px-2);
}

.wrap {
  width: min(64rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

.wrap--narrow {
  width: min(44rem, calc(100% - 2.5rem));
}

.center {
  text-align: center;
}

.center .prose {
  margin-inline: auto;
}

.tag {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.1rem;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tag::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--px-2);
  box-shadow: 10px 0 0 var(--px-3);
  margin-right: 10px;
}

.center .tag {
  justify-content: center;
}

.h2 {
  margin: 0 0 1.75rem;
  font-family: var(--mono);
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.h2 em {
  font-style: normal;
  color: var(--muted);
}

.prose {
  max-width: 36rem;
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.3vw, 1.15rem);
  line-height: 1.7;
  color: var(--text);
}

.prose p {
  margin: 0 0 1.1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--fg);
  font-weight: 600;
}

.quote {
  margin: 3rem 0 0;
  padding: 1.5rem 1.75rem;
  border-left: 4px solid var(--accent);
  background: var(--bg-2);
}

.quote p {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
}

.quote footer {
  color: var(--muted);
  font-size: 0.8rem;
}

/* Diff face-off */

.diff {
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  font-size: 0.9rem;
}

.diff__head,
.diff__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.diff__head span {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.78rem;
}

.diff__head span + span,
.diff__row span + span {
  border-left: 1px solid var(--line);
}

.diff__row span {
  position: relative;
  padding: 0.9rem 1rem 0.9rem 2.25rem;
  border-bottom: 1px solid var(--line);
}

.diff__row:last-child span {
  border-bottom: 0;
}

.diff__row span::before {
  position: absolute;
  left: 1rem;
  font-weight: 700;
}

.del {
  background: var(--del-bg);
  color: var(--del);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--del) 45%, transparent);
}

.del::before {
  content: "−";
}

.add {
  background: var(--add-bg);
  color: var(--add);
  font-weight: 600;
}

.add::before {
  content: "+";
}

/* Split + terminal */

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 880px) {
  .split {
    grid-template-columns: 1fr 1.1fr;
  }
}

.term {
  margin: 0;
}

.term__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  background: var(--bg-2);
}

.term__bar span {
  width: 9px;
  height: 9px;
  border: 1px solid var(--line-strong);
}

.term__bar b {
  margin-left: 0.5rem;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--muted);
}

.term__body {
  margin: 0;
  min-height: 15.5rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line-strong);
  background: #0c0e11;
  color: #d7dde5;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.75;
  overflow-x: auto;
}

.term__body .c {
  color: #00d1a6;
}
.term__body .d {
  color: #5d6773;
}
.term__body .w {
  color: #ffd60a;
}
.term__body .n {
  color: #ff6b5a;
}
.term__body .y {
  color: #3ddc97;
}

.caret {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: #d7dde5;
  animation: blink 1s steps(2, jump-none) infinite;
}

.term figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
}

/* Playbook cards */

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 860px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  position: relative;
  padding: 1.5rem;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 4px 4px 0 var(--px-2);
}

.card__px {
  display: grid;
  grid-template-columns: repeat(7, 5px);
  gap: 1px;
  margin-bottom: 1.25rem;
}

.card__px i {
  width: 5px;
  height: 5px;
  background: var(--accent);
}

.card__px i.off {
  background: var(--line);
}

.card__n {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  line-height: 1.3;
}

.card p {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
}

/* Log list */

.log {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}

.log li {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.log__k {
  color: var(--ink);
  font-weight: 700;
}

.log__k::before {
  content: "> ";
  color: var(--muted);
}

.log__v {
  max-width: 40rem;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
}

.sect--end {
  padding-bottom: clamp(7rem, 18vh, 11rem);
}

/* Footer */

.foot {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
  padding: 1.5rem clamp(1rem, 6vw, 7rem);
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-size: 0.78rem;
}

.foot__mark {
  color: var(--fg);
  font-weight: 800;
}

.foot__meta {
  margin-left: auto;
}

.foot__meta b {
  color: var(--fg);
  font-weight: 600;
}

/* Motion */

@keyframes blink {
  to {
    opacity: 0;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 720px) {
  .bar__nav {
    display: none;
  }

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

  .diff__row span + span {
    border-left: 0;
  }

  .log li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

.contact__addr {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  user-select: all;
}
