:root {
  --bg: #ffffff;
  --text: #0a0a0a;
  --muted: #a3a3a3;
  --accent: #000000;
  --border: #000000;
  --surface: #f5f5f5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

header,
main,
footer {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}

header {
  padding: 32px 0 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

main {
  padding: 40px 0 64px;
}

footer {
  padding: 24px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

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

h1 {
  font-size: clamp(2rem, 7vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: 0;
  max-width: 12ch;
}

h2 {
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.lede {
  max-width: 640px;
  font-size: 1.1rem;
}

.answer-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.answer-row {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.meta,
.muted {
  color: var(--muted);
}

.filters,
form {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.filters {
  grid-template-columns: 1fr 160px 160px auto;
  align-items: end;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

input,
textarea,
select,
button {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  padding: 10px 12px;
}

textarea {
  min-height: 180px;
  resize: vertical;
}

button,
.button {
  display: inline-flex;
  justify-content: center;
  width: auto;
  background: var(--text);
  color: var(--bg);
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
}

pre,
code {
  background: var(--surface);
  font-family: "Geist Mono", "JetBrains Mono", Consolas, monospace;
}

pre {
  overflow: auto;
  padding: 16px;
}

.source-list,
.query-list {
  padding-left: 20px;
}

.stack {
  display: grid;
  gap: 24px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 720px) {
  header {
    display: grid;
  }

  .filters {
    grid-template-columns: 1fr;
  }
}
