:root {
  --cream: #fbf6ee;
  --ink: #2b2420;
  --warm: #c9773e;
  --warm-dark: #a85f2d;
  --muted: #7a6f63;
  --line: #e6dcca;
  --card: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  background: linear-gradient(180deg, #fdf1e3 0%, var(--cream) 320px);
  color: var(--ink);
  line-height: 1.6;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--warm-dark);
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 12px;
}

h1 {
  font-size: 34px;
  line-height: 1.25;
  margin: 0 0 16px;
  font-weight: normal;
}

h2 {
  font-size: 22px;
  font-weight: normal;
  margin: 40px 0 12px;
}

p { font-size: 17px; color: #3a332c; }

.lede { font-size: 19px; color: var(--muted); }

.sunrise {
  width: 100%;
  border-radius: 14px;
  margin: 24px 0 8px;
  display: block;
  box-shadow: 0 12px 30px -14px rgba(120, 80, 30, 0.45);
}

.btn {
  display: inline-block;
  background: var(--warm);
  color: #fff !important;
  text-decoration: none;
  padding: 16px 30px;
  border-radius: 999px;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--warm-dark); transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-row { margin: 28px 0 8px; }

.price-note {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}

.how-it-works {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.how-it-works li {
  padding: 14px 0 14px 44px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.how-it-works li:last-child { border-bottom: none; }
.how-it-works .num {
  position: absolute;
  left: 0;
  top: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--warm);
  color: #fff;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.how-it-works strong { display: block; font-family: Helvetica, Arial, sans-serif; font-size: 15px; }

footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: var(--muted);
}

/* ── Intake form ─────────────────────────────────────────────── */
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  margin: 20px 0;
}

.part-label {
  font-family: Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  color: var(--warm-dark);
  font-weight: 700;
  margin: 32px 0 4px;
}
.part-label:first-child { margin-top: 0; }

label {
  display: block;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 15px;
  margin: 20px 0 6px;
}
label .hint {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdf9;
  color: var(--ink);
}
textarea { min-height: 70px; resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--warm);
  box-shadow: 0 0 0 3px rgba(201, 119, 62, 0.18);
}

.required-mark { color: var(--warm-dark); }

.form-error {
  background: #fdecec;
  border: 1px solid #f2b8b5;
  color: #8a2c25;
  border-radius: 10px;
  padding: 12px 16px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 14px;
  margin-top: 16px;
  display: none;
}
.form-error.visible { display: block; }

.submit-row { margin-top: 32px; text-align: center; }

/* ── Admin dashboard ─────────────────────────────────────────── */
body.admin { background: #f4f1ea; font-family: Helvetica, Arial, sans-serif; }
.admin-wrap { max-width: 1000px; margin: 0 auto; padding: 32px 20px 80px; }
.admin-wrap h1 { font-family: inherit; font-size: 24px; }

.order-list { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }

.order-card {
  background: #fff;
  border: 1px solid #e2ddd0;
  border-radius: 12px;
  padding: 18px 20px;
}
.order-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.order-head h3 { margin: 0; font-size: 16px; }
.order-meta { color: #7a7264; font-size: 13px; }

.status-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eee;
  color: #555;
}
.status-new { background: #e8eefc; color: #2c4c9b; }
.status-writing, .status-producing { background: #fff2d9; color: #92660a; }
.status-written { background: #eaf3ff; color: #1a5fa8; }
.status-produced { background: #e6f6ec; color: #1c7a41; }
.status-sent { background: #dff3e2; color: #1c7a41; }
.status-error { background: #fbe4e2; color: #a5291d; }

.order-body { margin-top: 14px; display: none; }
.order-card.expanded .order-body { display: block; }

.field-block { margin-top: 14px; }
.field-block label { display: block; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: #8a8172; margin-bottom: 6px; }
.field-block textarea, .field-block input {
  width: 100%;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid #e2ddd0;
  border-radius: 8px;
}
.field-block textarea { min-height: 90px; }

.answers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-top: 10px; }
.answers-grid .q { font-size: 12px; color: #8a8172; margin-bottom: 2px; }
.answers-grid .a { font-size: 13px; margin-bottom: 10px; }

.btn-row-admin { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.btn-sm {
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #d9c9b3;
  background: #fff8ee;
  color: #7a4a1f;
  cursor: pointer;
}
.btn-sm.primary { background: var(--warm); color: #fff; border-color: var(--warm); }
.btn-sm:disabled { opacity: 0.5; cursor: not-allowed; }

.toggle-link { font-size: 13px; color: var(--warm-dark); cursor: pointer; background: none; border: none; padding: 0; font-family: inherit; }

.error-msg { color: #a5291d; font-size: 13px; margin-top: 10px; }
.login-note { color: #7a7264; font-size: 14px; }

audio { width: 100%; margin-top: 10px; }
