:root {
  --bg: #f4f0e8;
  --panel: #fffdf9;
  --ink: #1f2a2c;
  --muted: #5f6a6c;
  --line: #d9d1c4;
  --accent: #8a5a2b;
  --accent-dark: #68411c;
  --error: #a53030;
  --shadow: 0 24px 48px rgba(48, 38, 24, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(138, 90, 43, 0.12), transparent 35%),
    linear-gradient(180deg, #f7f3ed 0%, var(--bg) 100%);
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(100%, 720px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.intro {
  margin: 16px 0 28px;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.field-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.96rem;
}

select,
input[type="text"],
input[type="file"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

select:focus,
input[type="text"]:focus,
input[type="file"]:focus,
button:focus {
  outline: 3px solid rgba(138, 90, 43, 0.18);
  outline-offset: 2px;
}

.hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.preview {
  margin: 24px 0 20px;
  padding: 16px 18px;
  border: 1px solid #eadfce;
  border-radius: 16px;
  background: #fbf6ef;
  font-size: 0.98rem;
}

.actions {
  display: flex;
  justify-content: flex-start;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  background: var(--accent);
  color: #fffdfb;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}

button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.error {
  margin: 16px 0 0;
  color: var(--error);
  font-weight: 700;
}

.status {
  margin: 16px 0 0;
  color: var(--accent-dark);
  font-weight: 700;
}

.hidden {
  display: none;
}

@media (max-width: 640px) {
  .card {
    padding: 24px 20px;
    border-radius: 18px;
  }
}
