:root {
  --bg: #f4f1e8;
  --panel: #fffdf8;
  --panel-strong: #f0e6d2;
  --line: #d6ccb8;
  --text: #1f2933;
  --muted: #58616b;
  --brand: #0f6d5f;
  --brand-dark: #09473e;
  --accent: #c97b20;
  --danger: #a13232;
  --success: #20603d;
  --radius: 18px;
  --shadow: 0 16px 36px rgba(31, 41, 51, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Barlow", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(201, 123, 32, 0.16), transparent 24rem),
    linear-gradient(180deg, #f6f2ea 0%, #efe8d8 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: Consolas, monospace;
}

.shell {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.shell--form {
  width: min(100%, 820px);
}

.hero,
.notes,
.form-card,
.preview-card {
  background: var(--panel);
  border: 1px solid rgba(214, 204, 184, 0.85);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero {
  padding: 24px;
}

.hero__badge,
.action-card__eyebrow,
.preview-card__label {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--panel-strong);
  color: var(--brand-dark);
}

.hero h1,
.page-head h1 {
  margin: 14px 0 10px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.hero__text,
.page-head p,
.action-card__meta,
.field-hint,
.preview-meta,
.message {
  color: var(--muted);
}

.card-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.action-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: var(--radius);
  background: #fffaf0;
  border: 1px solid rgba(214, 204, 184, 0.85);
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.action-card strong {
  font-size: 1.3rem;
}

.action-card:hover,
.action-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(31, 41, 51, 0.14);
}

.action-card--accent {
  background: linear-gradient(135deg, rgba(15, 109, 95, 0.12), rgba(255, 250, 240, 0.92));
}

.notes {
  margin-top: 18px;
  padding: 20px;
}

.simple-list {
  margin: 12px 0 0;
  padding-left: 18px;
}

.page-head {
  margin-bottom: 18px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--brand-dark);
  font-weight: 600;
}

.form-card {
  padding: 20px;
}

.field-row {
  margin-bottom: 16px;
}

.field-row--split {
  display: grid;
  gap: 14px;
}

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

.field span {
  font-weight: 700;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

input[readonly] {
  background: #f7f4ee;
}

textarea {
  resize: vertical;
}

.preview-card {
  padding: 16px;
  margin-bottom: 16px;
}

.preview-card img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 14px;
  margin-top: 12px;
  background: #ebe4d4;
}

.form-actions {
  display: flex;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.button--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
}

.button[disabled] {
  cursor: wait;
  opacity: 0.7;
}

.message {
  margin-top: 14px;
  min-height: 24px;
  font-weight: 600;
}

.message.is-error {
  color: var(--danger);
}

.message.is-success {
  color: var(--success);
}

@media (min-width: 680px) {
  .card-grid,
  .field-row--split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero,
  .notes,
  .form-card {
    padding: 28px;
  }
}
