:root {
  --paper: #f4f1ea;
  --ink: #151515;
  --muted: #6f6b63;
  --line: #cbc6bc;
  --signal: #ff5c35;
  --signal-ink: #231008;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
  --mono: "DM Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-200%);
}

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

.site-header,
main,
footer {
  width: min(100% - 3rem, 1280px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: -0.04em;
}

.intro {
  max-width: 1080px;
  padding: clamp(5rem, 12vw, 10.5rem) 0 clamp(6rem, 13vw, 11rem);
}

h1 {
  max-width: 1000px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.8rem, 8vw, 8.25rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.91;
}

h1 em {
  font-weight: 400;
}

.intro-copy {
  max-width: 570px;
  margin: 2.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}

.collection {
  padding-bottom: clamp(7rem, 12vw, 11rem);
}

.benchmark-card {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(280px, 0.9fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.benchmark-content {
  display: flex;
  flex-direction: column;
  padding: clamp(2.5rem, 5vw, 5rem) clamp(2rem, 5vw, 5.5rem) 2.5rem 0;
}

.benchmark-content h3 {
  margin: 0 0 1.7rem;
  font-family: var(--serif);
  font-size: clamp(3rem, 5.4vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.94;
}

.benchmark-summary {
  max-width: 630px;
  margin: 0 0 3rem;
  color: var(--muted);
  line-height: 1.75;
}

.prompt-preview {
  position: relative;
  max-width: 760px;
  margin-bottom: 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.prompt-preview pre {
  max-height: 360px;
  margin: 0;
  overflow: hidden;
  padding: 1.6rem 1rem 5.2rem 0;
  color: #3f3c37;
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.75;
  white-space: pre-wrap;
}

.prompt-preview:not(.is-expanded)::after {
  position: absolute;
  right: 0;
  bottom: 52px;
  left: 0;
  height: 130px;
  background: linear-gradient(transparent, var(--paper));
  content: "";
  pointer-events: none;
}

.prompt-preview.is-expanded pre {
  max-height: none;
}

.prompt-toggle {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
}

.prompt-toggle:hover {
  color: var(--signal);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: auto;
}

.action {
  display: inline-flex;
  min-width: 170px;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 1rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.action:hover {
  background: var(--ink);
  color: var(--paper);
}

.action-primary {
  background: var(--signal);
  color: var(--signal-ink);
}

.copy-status {
  min-height: 1.2rem;
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.results {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  background: var(--ink);
}

.result-panel {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: var(--ink);
  color: var(--paper);
}

.result-panel + .result-panel {
  border-top: 1px solid #5a5853;
}

.result-panel h4 {
  margin: auto 0 2rem;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3vw, 3.4rem);
  font-weight: 400;
}

.result-action {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #5a5853;
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease;
}

.result-action:hover {
  color: var(--signal);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .benchmark-card {
    grid-template-columns: 1fr;
  }

  .result-panel {
    min-height: 210px;
  }
}

@media (max-width: 620px) {
  .site-header,
  main,
  footer {
    width: min(100% - 2rem, 1280px);
  }

  .site-header {
    min-height: 76px;
  }

  .intro {
    padding: 4.5rem 0 6rem;
  }

  h1 {
    font-size: clamp(3.4rem, 16vw, 5rem);
  }

  .benchmark-content {
    padding: 2.5rem 0;
  }

  .benchmark-content h3 {
    font-size: clamp(3rem, 15vw, 4.2rem);
  }

  .actions {
    display: grid;
  }

  .action {
    width: 100%;
  }

  .result-panel {
    min-height: 190px;
    margin-inline: -1rem;
  }

  footer {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
