:root {
  color-scheme: light;
  --bg: #f6f4ee;
  --surface: #ffffff;
  --ink: #171717;
  --muted: #62605a;
  --line: #d9d4c8;
  --orange: #f38020;
  --blue: #276ef1;
  --green: #16835b;
  --shadow: 0 18px 50px rgba(33, 28, 18, 0.1);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(243, 128, 32, 0.09), transparent 34rem),
    linear-gradient(225deg, rgba(39, 110, 241, 0.08), transparent 34rem),
    var(--bg);
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
  background: rgba(246, 244, 238, 0.86);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  gap: 20px;
}

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

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  color: #111;
  background: var(--orange);
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.08);
}

.nav-actions {
  gap: 4px;
}

.nav-actions a {
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-actions a:hover {
  color: var(--ink);
  background: rgba(23, 23, 23, 0.06);
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  align-items: center;
  min-height: calc(100svh - 72px);
  padding: 56px 0 40px;
  gap: 42px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(3.1rem, 9vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.lede {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.4vw, 1.34rem);
  line-height: 1.55;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button {
  padding: 0 18px;
}

.button.primary {
  color: #101010;
  background: var(--orange);
}

.button.secondary {
  color: var(--ink);
  background: rgba(23, 23, 23, 0.08);
}

.button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.path-panel {
  display: grid;
  align-content: center;
  gap: 18px;
  min-height: 520px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(23, 23, 23, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 23, 0.045) 1px, transparent 1px),
    #fffaf0;
  background-size: 26px 26px;
  box-shadow: var(--shadow);
}

.path-node {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.path-node strong,
.path-node small {
  grid-column: 2;
}

.path-node small {
  color: var(--muted);
  font-weight: 700;
}

.node-icon {
  grid-row: 1 / span 2;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--blue);
  box-shadow: inset 0 -7px 0 rgba(0, 0, 0, 0.12);
}

.edge .node-icon {
  background: var(--orange);
}

.origin .node-icon {
  background: var(--green);
}

.path-line {
  width: 3px;
  height: 42px;
  margin-left: 40px;
  border-radius: 999px;
  background: linear-gradient(var(--blue), var(--orange));
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 0 70px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.status-strip div {
  min-width: 0;
  padding: 18px;
  background: var(--surface);
}

.status-strip span,
.status-strip strong {
  display: block;
}

.status-strip span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-strip strong {
  margin-top: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section {
  padding: 70px 0;
  border-top: 1px solid rgba(23, 23, 23, 0.1);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.round-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.round-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.round-card.wide {
  grid-column: span 2;
}

.round-number {
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 900;
}

h3 {
  margin: 44px 0 0;
  font-size: 1.18rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.round-card p,
.split p,
.site-footer p {
  color: var(--muted);
  line-height: 1.55;
}

.round-card p {
  margin: 12px 0 22px;
}

.icon-button {
  width: 100%;
  margin-top: auto;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(39, 110, 241, 0.11);
}

.split {
  display: grid;
  grid-template-columns: 0.76fr 1fr;
  align-items: start;
  gap: 34px;
}

.terminal {
  overflow: auto;
  border-radius: 8px;
  background: #151515;
  box-shadow: var(--shadow);
}

pre {
  margin: 0;
  padding: 22px;
}

code {
  color: #f8f4e9;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  line-height: 1.8;
}

.log-form {
  display: grid;
  grid-template-columns: 0.75fr 1fr 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: #fbfaf7;
  font-size: 1rem;
  font-weight: 500;
  text-transform: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(39, 110, 241, 0.35);
  outline-offset: 2px;
}

.form-actions {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.entries {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.entry {
  display: grid;
  grid-template-columns: 0.6fr 1fr 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.entry strong {
  display: block;
  margin-bottom: 8px;
}

.entry p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.empty-state {
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.45);
}

.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 46px;
  border-top: 1px solid rgba(23, 23, 23, 0.1);
}

@media (max-width: 920px) {
  .hero,
  .split,
  .log-form {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .path-panel {
    min-height: 430px;
  }

  .round-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 640px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
  }

  .nav-actions a {
    padding: 10px 8px;
  }

  h1 {
    font-size: 3.15rem;
  }

  .status-strip,
  .round-grid {
    grid-template-columns: 1fr;
  }

  .round-card.wide {
    grid-column: auto;
  }

  .section {
    padding: 52px 0;
  }
}
