@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&family=Space+Mono:wght@400;700&display=swap");

:root {
  --bg: #f2efe8;
  --panel: #fff8ec;
  --ink: #1c1c1c;
  --accent: #e17b36;
  --accent-2: #2f6f6f;
  --muted: #6e6a61;
  --shadow: rgba(30, 30, 30, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #f9f4ea 0%, #f2efe8 40%, #e8e0d3 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}

.shell {
  width: min(980px, 100%);
  display: grid;
  gap: 24px;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  background: linear-gradient(135deg, #fff9ef 0%, #f8e7d0 55%, #f0d7b7 100%);
  border-radius: 24px;
  box-shadow: 0 20px 40px var(--shadow);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  font-family: "Space Mono", monospace;
  color: var(--accent-2);
  margin: 0 0 8px;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
}

.lede {
  margin: 0;
  color: var(--muted);
}

.panel {
  background: var(--panel);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 16px 30px var(--shadow);
}

.field {
  display: grid;
  gap: 8px;
  font-size: 14px;
}

label {
  font-weight: 600;
}

input,
select,
button {
  font: inherit;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d8cbb8;
  background: #fffdf8;
}

button {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 16px rgba(225, 123, 54, 0.25);
}

.primary {
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 600;
}

.primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 16px;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

.status {
  font-family: "Space Mono", monospace;
  color: var(--accent-2);
}

.preview canvas {
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: #fff;
  border: 1px dashed #d8cbb8;
}

.hint {
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

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

  .actions {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
}
