:root {
  color-scheme: light;
  --bg: #f7f4f0;
  --card: #ffffff;
  --text: #1b1b1b;
  --muted: #5a5a5a;
  --accent: #e0582b;
  --border: #d8d0c6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Alegreya", "Georgia", serif;
  color: var(--text);
  background: radial-gradient(circle at top, #fff8ee, var(--bg));
}

.shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

header h1 {
  margin: 0 0 8px;
  font-size: 2.3rem;
}

header p {
  margin: 0 0 24px;
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: grid;
  gap: 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-weight: 600;
}

.field input[type="text"],
.field input[type="file"] {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 1rem;
}

.field small {
  color: var(--muted);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.radio-group {
  display: grid;
  gap: 8px;
  align-items: center;
}

.radio-group input[type="text"] {
  max-width: 160px;
}

.radio-group.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.dropzone {
  border: 2px dashed var(--border);
  border-radius: 14px;
  padding: 22px;
  text-align: center;
  background: #fffaf5;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.dropzone p {
  margin: 0 0 6px;
  font-weight: 600;
}

.dropzone span {
  color: var(--muted);
}

.dropzone.dragging {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224, 88, 43, 0.15);
  transform: translateY(-2px);
}

.dropzone.error {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.18);
}

.file-name {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.progress {
  display: grid;
  gap: 10px;
}

.progress.hidden {
  display: none;
}

.progress-bar {
  height: 10px;
  background: #efe6de;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #e0582b, #f18f63);
  width: 0%;
  transition: width 0.2s ease;
}

.progress-text {
  color: var(--muted);
  font-size: 0.95rem;
}

button {
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  filter: brightness(0.95);
}

.alert {
  background: #ffe9e0;
  border: 1px solid #f3b29b;
  color: #82210b;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.site-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  display: grid;
  gap: 12px;
}

.footer-intro {
  margin: 0;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-weight: 600;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}
