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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

main {
  width: 90vw;
  margin: 0 auto;
  padding: 64px 0 80px;
}

header {
  margin-bottom: 36px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 16px;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 36px;
  padding-bottom: 8px;
  border-bottom: 1px solid #d8cec3;
}

.tab {
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6c5e55;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.tab:hover {
  color: #8a5030;
}

.tab.is-active {
  background: #201b18;
  color: #fffdf9;
}

.tab:focus-visible {
  outline: 2px solid #8a5030;
  outline-offset: 3px;
}

.tab-panel[hidden] {
  display: none;
}

.prompt {
  margin-bottom: 48px;
}

blockquote {
  margin: 0;
  padding: 24px;
  border-left: 3px solid #9a6f52;
  border-radius: 0 10px 10px 0;
  background: #fffdf9;
  color: #554a43;
  line-height: 1.7;
}

blockquote p:last-child {
  margin-bottom: 0;
}

.models ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.models li {
  min-width: 0;
}

.models a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  height: 100%;
  padding: 20px;
  border: 1px solid #d8cec3;
  border-radius: 12px;
  background: #fffdf9;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.models a small {
  margin-left: auto;
  color: #806f64;
  font-size: 0.76rem;
  font-weight: 500;
  white-space: nowrap;
}

.models a span {
  flex: 0 0 auto;
}

.models a:hover,
.models a:focus-visible {
  border-color: #9a6f52;
  color: #8a5030;
  transform: translateY(-2px);
}

.models a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

@media (max-width: 780px) {
  .models ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  main {
    padding: 44px 0 56px;
  }

  header,
  .tabs {
    margin-bottom: 28px;
  }

  blockquote {
    padding: 18px;
  }

  .models ul {
    grid-template-columns: 1fr;
  }
}
