﻿:root {
  color-scheme: light;
  --bg: #f4f0ea;
  --card: #fffaf2;
  --ink: #1f1b16;
  --muted: #6d6258;
  --accent: #d1495b;
  --accent-dark: #b23a48;
  --border: #e0d4c7;
  --shadow: 0 18px 40px rgba(64, 49, 34, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "DM Serif Display", "Georgia", serif;
  background: radial-gradient(circle at top, #fff7e8 0%, var(--bg) 55%, #efe3d5 100%);
  color: var(--ink);
  min-height: 100vh;
}

.page {
  max-width: 920px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  display: grid;
  gap: 24px;
}

.hero {
  text-align: left;
  padding: 28px 30px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(130deg, #fffdf9 0%, #fff3e1 100%);
  box-shadow: var(--shadow);
}

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

h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.subtitle {
  margin: 0;
  font-family: "Fira Sans", "Trebuchet MS", sans-serif;
  font-size: 1rem;
  color: var(--muted);
}

.card {
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

h2 {
  margin-top: 0;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.file-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 2px dashed var(--border);
  padding: 18px;
  border-radius: 16px;
  background: #fff7ec;
  cursor: pointer;
  font-family: "Fira Sans", "Trebuchet MS", sans-serif;
}

.file-field input {
  font-family: inherit;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

button {
  font-family: "Fira Sans", "Trebuchet MS", sans-serif;
  border-radius: 999px;
  border: none;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 0.95rem;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.primary {
  background: var(--accent);
  color: white;
}

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

.ghost {
  background: transparent;
  border: 1px solid var(--border);
}

.status {
  margin-top: 16px;
  font-family: "Fira Sans", "Trebuchet MS", sans-serif;
  min-height: 1.5em;
  color: var(--muted);
}

.result {
  font-family: "Fira Sans", "Trebuchet MS", sans-serif;
  white-space: pre-wrap;
  background: #fff2df;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.result.muted {
  color: var(--muted);
}

.backend {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: "Fira Sans", "Trebuchet MS", sans-serif;
}

.backend .label {
  background: #f6e7d3;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

code {
  background: #f2e6d8;
  padding: 2px 6px;
  border-radius: 6px;
  font-family: "Consolas", "Courier New", monospace;
}

@media (max-width: 640px) {
  .page {
    padding: 24px 16px 60px;
  }

  .actions {
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}
