@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700&family=Source+Serif+4:opsz,wght@8..60,500&display=swap");

:root {
  --bg-top: #f7efe2;
  --bg-bottom: #d8e4ea;
  --ink: #1d2a33;
  --accent: #117a6b;
  --accent-strong: #0d6155;
  --panel: rgba(255, 255, 255, 0.88);
  --line: rgba(29, 42, 51, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Outfit", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 10% 20%, #fff5db 0%, transparent 50%),
    radial-gradient(circle at 90% 10%, #d9f5f3 0%, transparent 42%),
    linear-gradient(160deg, var(--bg-top), var(--bg-bottom));
}

.shell {
  width: min(980px, 94vw);
  margin: 2.2rem auto;
  display: grid;
  gap: 1.2rem;
}

.hero {
  padding: 1.2rem 0.2rem;
  animation: rise 480ms ease-out both;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  margin: 0;
  color: #2a5a70;
}

h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  margin: 0.4rem 0;
}

.subcopy {
  max-width: 58ch;
  margin: 0;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1rem;
  backdrop-filter: blur(4px);
  box-shadow: 0 20px 40px rgba(21, 41, 50, 0.11);
  animation: rise 620ms ease-out both;
}

#convert-form {
  display: grid;
  gap: 0.9rem;
}

.drop {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border: 2px dashed #4a7e8f;
  border-radius: 14px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.66);
}

.drop.drag {
  border-color: var(--accent);
  background: #e9f8f6;
}

#file {
  display: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.64rem 0.72rem;
  background: rgba(255, 255, 255, 0.93);
}

textarea {
  resize: vertical;
}

button {
  border: 0;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

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

.status {
  margin: 0;
  min-height: 1.2em;
}

.status.error {
  color: #ab1124;
}

.status.ok {
  color: #0f5f48;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
