@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600&family=Space+Grotesk:wght@400;600&display=swap');

:root {
  --bg: #f6f0e8;
  --bg-accent: #e1efe2;
  --ink: #1f1d1b;
  --muted: #605a54;
  --accent: #0e6f60;
  --accent-dark: #0a5146;
  --card: #ffffff;
  --border: #e1d9cf;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #fbe4cc 0%, transparent 60%),
    radial-gradient(900px 500px at 100% 0%, var(--bg-accent) 0%, transparent 55%),
    var(--bg);
  min-height: 100vh;
}

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

header {
  margin-bottom: 32px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--muted);
  margin: 0 0 10px;
}

h1 {
  font-family: "Fraunces", "Georgia", serif;
  font-size: clamp(2.3rem, 2.6vw + 1.4rem, 3.2rem);
  margin: 0 0 12px;
}

.subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0;
}

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

.field {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

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

.file-meta {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

input[type="file"],
input[type="number"] {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}

button {
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(120deg, var(--accent), var(--accent-dark));
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

button.secondary {
  background: #f3ece3;
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: none;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(14, 111, 96, 0.25);
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--muted);
  min-height: 22px;
}

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

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(120deg, var(--accent), #18a089);
  transition: width 160ms ease;
}

.log {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--muted);
}

.resume {
  display: grid;
  gap: 10px;
  align-items: end;
  grid-template-columns: 1fr auto;
}

.resume label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: var(--muted);
}

.resume input {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
}

.log-box {
  margin: 0;
  background: #fbf7f1;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #3c3530;
  max-height: 200px;
  overflow: auto;
  white-space: pre-wrap;
}

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(14, 111, 96, 0.2);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.flash {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #f1c7c7;
  background: #fff4f4;
  color: #7b1e1e;
}

.notes {
  margin-top: 30px;
  padding: 18px 22px;
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.7);
}

.notes h2 {
  margin: 0 0 10px;
  font-family: "Fraunces", "Georgia", serif;
  font-size: 1.3rem;
}

.notes ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

@media (max-width: 600px) {
  .container {
    padding: 32px 16px 48px;
  }

  .card {
    padding: 18px;
  }
}
