:root {
  color-scheme: only light;
  --bg: #f2efe9;
  --surface: #fdfaf5;
  --ink: #1f1c17;
  --muted: #6b6256;
  --accent: #f05a28;
  --accent-dark: #c33b12;
  --line: #e1d7cc;
  --glow: rgba(240, 90, 40, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #fff7ea 0%, var(--bg) 50%, #e9e0d3 100%);
  min-height: 100vh;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 72px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.page__title h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2.2rem, 3vw, 3rem);
  text-align: center;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero__copy h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2.4rem, 3vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.lede {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 480px;
}

.hero__card {
  position: relative;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 24px 50px rgba(27, 20, 10, 0.12);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: float-in 0.8s ease both;
}

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  background: #efe7dd;
}

.uploader {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

input[type="file"] {
  display: none;
}

.button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(27, 20, 10, 0.12);
}

.button--ghost {
  border-style: dashed;
  color: var(--muted);
}

.button--primary {
  background: var(--accent);
  color: #fff8f0;
  border: none;
  font-size: 1rem;
  box-shadow: 0 18px 32px var(--glow);
}

.preview {
  border-radius: 18px;
  background: #f5efe6;
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--muted);
  overflow: hidden;
}

.preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.controls {
  display: grid;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 0.85rem;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 12px;
  font-family: inherit;
}

.result {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 28px;
  padding: 32px;
  border: 1px solid var(--line);
  display: grid;
  gap: 24px;
}

.result__header h2 {
  font-family: "Fraunces", serif;
  font-size: 1.8rem;
}

.note {
  color: var(--muted);
  margin-top: 8px;
}

.result__panel {
  border-radius: 20px;
  background: linear-gradient(135deg, #efe7dc, #fdf8f2);
  min-height: 280px;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

.result__panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .page {
    padding: 36px 18px 56px;
  }

  .card {
    padding: 22px;
  }
}
