:root {
  --bg: #f6f4f0;
  --surface: #ffffff;
  --ink: #1c1b19;
  --muted: #5c5854;
  --line: #e4dfd7;
  --accent: #8a7355;
  --accent-soft: rgba(138, 115, 85, 0.12);
  --radius: 14px;
  --shadow: 0 18px 50px rgba(28, 27, 25, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: radial-gradient(1200px 600px at 10% -10%, #ebe4d9 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #e8e2da 0%, transparent 50%), var(--bg);
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.header {
  text-align: center;
  margin-bottom: 2rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.title {
  margin: 0 0 0.75rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0 auto;
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.card {
  background: var(--surface);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 1.75rem 1.5rem 1.5rem;
}

.upload-zone {
  position: relative;
  border: 1px dashed #c9c2b8;
  border-radius: var(--radius);
  min-height: 12rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: linear-gradient(180deg, #faf9f7 0%, #fff 100%);
  overflow: hidden;
}

.upload-zone:hover,
.upload-zone:focus-visible {
  border-color: var(--accent);
  outline: none;
  background: var(--accent-soft);
}

.upload-inner {
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.upload-preview {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
}

.upload-preview img {
  max-width: 100%;
  max-height: 18rem;
  width: auto;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: contain;
}

.btn-reupload {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.btn-reupload:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.upload-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
}

.upload-hint {
  font-size: 0.85rem;
  color: var(--muted);
}

.field {
  display: block;
  margin-top: 1.25rem;
}

.field-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 3rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  font: inherit;
  background: #fafaf9;
}

textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}

.preset-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.preset-btn {
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--muted);
}

.preset-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.preset-btn.active {
  border-color: var(--accent);
  background: var(--ink);
  color: #faf8f5;
}

.preset-btn.active:hover {
  background: var(--ink);
  opacity: 0.9;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.1rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn.primary {
  background: var(--ink);
  color: #faf8f5;
}

.btn.primary:not(:disabled):hover {
  transform: translateY(-1px);
}

.btn.ghost {
  width: auto;
  margin-top: 0;
  padding: 0.65rem 1.25rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  text-decoration: none;
}

.btn.ghost:hover {
  border-color: var(--accent);
}

.fineprint {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: #8a8580;
  text-align: center;
}

.status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  background: #f3f0eb;
  color: var(--muted);
  border: 1px solid var(--line);
}

.status.error {
  background: #faf4f2;
  color: #6b2e2e;
  border-color: #e8d4cf;
}

.compare {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.figure {
  margin: 0;
}

.figure figcaption {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f0eeeb;
}

.actions {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
}

.footer {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #9a9590;
}
