:root {
  color-scheme: light dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f3ee;
  color: #172026;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), transparent 34%),
    linear-gradient(315deg, rgba(194, 65, 12, 0.10), transparent 38%),
    #f6f3ee;
}

button,
pre,
code {
  font: inherit;
}

.shell {
  width: min(1040px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 32px;
  align-items: center;
}

.intro,
.panel {
  min-width: 0;
}

.eyebrow,
.label {
  margin: 0 0 10px;
  color: #0f766e;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
.lede {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 6vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: 1.35rem;
}

.lede {
  max-width: 620px;
  color: #43505a;
  font-size: 1.08rem;
  line-height: 1.65;
}

code {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(23, 32, 38, 0.08);
}

.panel {
  border: 1px solid rgba(23, 32, 38, 0.14);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 22px 60px rgba(23, 32, 38, 0.12);
}

pre {
  min-height: 220px;
  max-height: 360px;
  overflow: auto;
  margin: 0 0 18px;
  padding: 16px;
  border-radius: 6px;
  background: #172026;
  color: #e7f6f2;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

button {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: #0f766e;
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
}

button:hover {
  background: #115e59;
}

button:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.35);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .shell {
    min-height: auto;
    padding: 56px 0;
    grid-template-columns: 1fr;
    align-items: start;
  }

  h1 {
    font-size: clamp(2.15rem, 14vw, 3.8rem);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    background: #151718;
    color: #f4f0e8;
  }

  body {
    background:
      linear-gradient(135deg, rgba(45, 212, 191, 0.10), transparent 34%),
      linear-gradient(315deg, rgba(251, 146, 60, 0.10), transparent 38%),
      #151718;
  }

  .lede {
    color: #c4cbc7;
  }

  code {
    background: rgba(244, 240, 232, 0.12);
  }

  .panel {
    border-color: rgba(244, 240, 232, 0.16);
    background: rgba(25, 29, 31, 0.72);
  }
}

