:root {
  --incrementic-red: #ea5148;
  --incrementic-charcoal: #4c4e56;
  --incrementic-white: #ffffff;
  --ink: #2b2c31;
  --hair: #e6e6e8;
  --soft: #fafafa;
  --muted: #9a9aa0;

  --color-accent: var(--incrementic-red);
  --color-text: var(--incrementic-charcoal);
  --color-bg: var(--incrementic-white);

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --max: 1080px;
  --space: clamp(1.25rem, 3vw, 2.5rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
}

/* nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.nav-logo {
  height: 20px;
  width: auto;
  flex-shrink: 0;
}

.nav-divider {
  width: 1px;
  height: 18px;
  background: var(--hair);
  flex-shrink: 0;
}

.nav-product {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.82rem;
  font-weight: 500;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--color-text);
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--color-accent);
}

/* hero */
.hero {
  padding: clamp(3rem, 8vh, 4.5rem) 0 clamp(2.5rem, 6vh, 3.5rem);
}

.eyebrow {
  margin: 0 0 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero h1 span {
  color: var(--color-accent);
}

.hero-lede {
  margin: 1.25rem 0 0;
  max-width: 46ch;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-tools {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hair);
  color: var(--ink);
}

.tool {
  width: clamp(4rem, 10vw, 6rem);
  height: auto;
}

.tool-pigment {
  width: 2.5rem;
  color: var(--color-accent);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--hair);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease,
    transform 0.15s ease;
}

.btn-primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--incrementic-white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #d94840;
  border-color: #d94840;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn:active {
  transform: translateY(1px);
}

/* sections */
.section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--hair);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.sec-num {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  flex-shrink: 0;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.section-intro {
  margin: -1rem 0 2rem;
  max-width: 52ch;
  font-size: 0.93rem;
}

/* tests */
.test-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.test-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1.25rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--hair);
}

.test-item:first-child {
  border-top: 1px solid var(--hair);
}

.test-index {
  grid-row: 1 / span 3;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  padding-top: 0.2rem;
}

.test-item h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}

.test-rule {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--color-accent);
}

.test-item > p:last-child {
  margin: 0;
  max-width: 58ch;
  font-size: 0.93rem;
  grid-column: 2;
}

/* resources */
.resources {
  background: var(--soft);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.resource {
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 1.5rem 1.6rem;
  background: var(--color-bg);
}

.resource-label {
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.resource h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}

.resource p {
  margin: 0 0 1.1rem;
  font-size: 0.93rem;
  max-width: 34ch;
}

.resource p a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.skills-badge-wrap {
  margin: -0.5rem 0 1.5rem;
}

.skills-badge-wrap img {
  display: block;
  height: 20px;
  width: auto;
}

.install-snippet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--hair);
  border-radius: 8px;
  background: var(--ink);
}

.install-snippet code {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ededef;
  font-size: 0.72rem;
  line-height: 1.4;
  word-break: break-all;
}

.install-snippet .text-btn {
  color: #ff9d96;
  flex-shrink: 0;
}

.install-snippet .text-btn:hover,
.install-snippet .text-btn:focus-visible {
  color: var(--incrementic-white);
}

.resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.copy-status {
  min-height: 1.25rem;
  margin: 0.75rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-accent);
}

code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  background: var(--soft);
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
  color: var(--color-accent);
  border: 1px solid var(--hair);
}

.prompt-preview {
  border: 1px solid var(--hair);
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-bg);
}

.prompt-preview-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--hair);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--soft);
}

.text-btn {
  border: 0;
  background: transparent;
  color: var(--color-accent);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  padding: 0;
}

.text-btn:hover,
.text-btn:focus-visible {
  color: #d94840;
}

.prompt-preview pre {
  margin: 0;
  max-height: 22rem;
  overflow: auto;
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  color: #ededef;
  background: var(--ink);
  white-space: pre-wrap;
}

/* more */
.more-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
}

.more-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--hair);
}

.more-list h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}

.more-list p {
  margin: 0;
  font-size: 0.93rem;
  max-width: 30ch;
}

/* note — editorial pull from earlier design */
.note {
  padding-top: clamp(2.5rem, 6vh, 4rem);
}

.note blockquote {
  margin: 0;
  max-width: 40rem;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 0;
}

.note blockquote p {
  margin: 0;
  font-family: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", serif;
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
}

.note blockquote footer {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
}

/* footer */
.site-footer {
  border-top: 1px solid var(--hair);
  padding: 2.5rem 0 3.5rem;
  margin-top: 1rem;
}

.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.foot-links {
  display: flex;
  gap: 1.1rem;
  font-size: 0.83rem;
  flex-wrap: wrap;
}

.foot-links a:hover,
.foot-links a:focus-visible {
  color: var(--color-accent);
}

.foot-note {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
}

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

  .nav-links {
    display: none;
  }

  .hero-tools {
    flex-wrap: wrap;
  }

  .test-item {
    grid-template-columns: 1fr;
  }

  .test-index {
    grid-row: auto;
  }

  .test-item > p:last-child {
    grid-column: 1;
  }
}

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