* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: #221b16;
  background:
    radial-gradient(circle at top, rgba(255, 223, 186, 0.7), transparent 35%),
    linear-gradient(180deg, #f9f1e7 0%, #efe1cf 100%);
}

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.hero {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #8a5d2b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 54px);
  line-height: 1;
}

.subtitle {
  max-width: 620px;
  margin-top: 14px;
  font-size: 18px;
  line-height: 1.5;
  color: #5d4a39;
}

.panel {
  padding: 24px;
  border: 1px solid rgba(124, 89, 46, 0.2);
  border-radius: 24px;
  background: rgba(255, 251, 246, 0.92);
  box-shadow: 0 24px 60px -40px rgba(65, 42, 15, 0.5);
}

.tool-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.file-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border: 2px dashed #c89d64;
  border-radius: 18px;
  background: #fff7ee;
  color: #8a5d2b;
  font-weight: 700;
  cursor: pointer;
}

.file-drop input {
  display: none;
}

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

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

input,
select,
button,
a.button {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid #cfb08a;
  border-radius: 14px;
  font: inherit;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #8f4f1f;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.secondary {
  background: #1d5f5a;
}

.status,
.result {
  margin-top: 18px;
}

.hidden {
  display: none;
}

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