:root {
  --ink: #2b2118;
  --muted: #6b5a4a;
  --paper: #f6efe4;
  --sheet: #fffaf2;
  --line: #d8c8b2;
  --accent: #7a3e2a;
  --accent-dark: #5c2c1c;
  --ok: #2f5d3a;
  --bad: #8b2e2e;
  --shadow: 0 18px 40px rgba(70, 46, 26, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #fbf6ee, var(--paper) 48%, #eadcc8);
  color: var(--ink);
  font: 16px/1.5 "Segoe UI", "Iowan Old Style", Georgia, serif;
}

body {
  min-height: 100vh;
  padding: 1.5rem 1rem 2.5rem;
}

.sheet {
  max-width: 38rem;
  margin: 0 auto;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.75rem 1.5rem 2rem;
  box-shadow: var(--shadow);
}

.intro {
  margin-bottom: 1.4rem;
}

.eyebrow {
  margin: 0 0 0.35rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--accent);
  font-family: "Segoe UI", system-ui, sans-serif;
}

h1,
h2 {
  margin: 0 0 0.5rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.lede,
.hint,
.progress {
  color: var(--muted);
}

.lede {
  margin: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.95rem;
}

.field span {
  font-size: 0.92rem;
}

.field em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.8rem;
}

.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 640px) {
  .row {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 0.7rem 0.8rem;
}

input:focus,
textarea:focus {
  outline: 2px solid #c98a6a;
  border-color: #c98a6a;
}

.drop {
  position: relative;
  border: 1.5px dashed #c4ad91;
  border-radius: 12px;
  padding: 1.3rem 1rem;
  text-align: center;
  background: #fbf6ee;
  margin: 0.4rem 0 0.8rem;
}

.drop.over {
  background: #f3e4d2;
  border-color: var(--accent);
}

.drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.drop p {
  margin: 0.15rem 0;
}

.file-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.file-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #efe4d4;
}

button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fffaf2;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
}

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

button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.progress {
  margin: 0.8rem 0 0;
}

.banner,
.done {
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}

.banner.error,
.done.error {
  background: #f8e6e4;
  color: var(--bad);
}

.banner.ok,
.done {
  background: #e7f0e6;
  color: var(--ok);
}

.done h2 {
  color: var(--ok);
}

.done button {
  margin-top: 0.6rem;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
