:root {
  color-scheme: light;
  --ink: #142320;
  --muted: #586661;
  --paper: #f6f8f5;
  --surface: #ffffff;
  --line: #dbe3dc;
  --teal: #24756f;
  --teal-dark: #15524f;
  --gold: #f2b84b;
  --coral: #ce5a46;
  --blue: #415f7c;
  --shadow: 0 18px 45px rgba(20, 35, 32, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

a {
  color: inherit;
}

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

code {
  color: var(--teal-dark);
  font-size: 0.94em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(246, 248, 245, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--teal-dark);
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.top-nav a {
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--teal-dark);
}

.hero {
  position: relative;
  display: flex;
  min-height: min(720px, 74vh);
  align-items: flex-end;
  padding: clamp(92px, 12vw, 150px) clamp(20px, 5vw, 72px) clamp(52px, 8vw, 86px);
  overflow: hidden;
  background-image: url("screenshot.png");
  background-position: center;
  background-size: cover;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(8, 20, 19, 0.7);
}

.hero-copy {
  position: relative;
  width: min(780px, 100%);
  color: #ffffff;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.79rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold);
}

.hero h1 {
  margin: 0;
  font-size: clamp(4rem, 13vw, 9.5rem);
  line-height: 0.9;
}

.hero-lede {
  width: min(680px, 100%);
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.08rem, 2.1vw, 1.38rem);
}

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

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  color: #ffffff;
  background: var(--teal);
}

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

.button-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(54px, 9vw, 92px) 0;
}

.section-grid,
.split-section,
.publish-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.section-heading {
  width: min(760px, 100%);
  margin-bottom: 28px;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.05;
}

h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
}

p {
  color: var(--muted);
  font-size: 1rem;
}

.code-panel {
  overflow: hidden;
  border: 1px solid #143835;
  border-radius: 8px;
  background: #101b1a;
  box-shadow: var(--shadow);
}

.code-panel pre {
  margin: 0;
  overflow-x: auto;
  padding: 24px;
}

.code-panel code {
  color: #f2f8f4;
  font-size: 0.92rem;
}

.compact pre {
  padding: 20px;
}

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

.step-card,
.note-card {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(20, 35, 32, 0.06);
}

.step-number {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 900;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

th,
td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--ink);
  background: #edf2ee;
  font-size: 0.82rem;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.artifact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.artifact-list span {
  display: flex;
  min-height: 52px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--surface);
  color: var(--teal-dark);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9rem;
  font-weight: 700;
}

.note-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.note-card {
  min-height: 180px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.note-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.publish-section {
  width: min(1160px, calc(100% - 40px));
  margin-bottom: 48px;
  border-top: 1px solid var(--line);
}

.publish-section .button {
  justify-self: end;
}

.site-footer {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer a {
  color: var(--teal-dark);
  font-weight: 800;
}

@media (max-width: 920px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    justify-content: flex-start;
  }

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

  .step-grid,
  .note-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .publish-section .button {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 72vh;
    padding-top: 84px;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 21vw, 5.2rem);
  }

  .section {
    width: min(100% - 28px, 1160px);
  }

  .step-grid,
  .note-grid,
  .artifact-list {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
