:root {
  color-scheme: light;
  --bg: #ffffff;
  --paper: #ffffff;
  --text: #2a2620;
  --muted: #6f685e;
  --accent: #1a1a1a;
  --accent-dark: #000000;
  --border: #e0e0e0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

main {
  width: min(100% - 32px, 720px);
  margin: 0 auto;
  padding: 48px 0 28px;
}

h1 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1.15;
}

p {
  margin: 0;
}

.lead {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 18px;
}

.download-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

select,
.button-link {
  width: 100%;
  min-height: 44px;
  border-radius: 6px;
  font: inherit;
}

select {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 0 12px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  padding: 0 14px;
}

.button-link:hover {
  background: var(--accent-dark);
}

footer {
  margin-top: 26px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 520px) {
  main {
    width: min(100% - 24px, 720px);
    padding-top: 32px;
  }

  h1 {
    font-size: 29px;
  }

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

  .download-panel {
    padding: 18px;
  }
}

.about {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #ddd;
}

.about h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.about p {
  margin-bottom: 0.5rem;
  color: #555;
  font-size: 0.9rem;
  line-height: 1.5;
}

.about a {
  color: inherit;
  text-decoration: underline;
}
