:root {
  --ink: #1f2328;
  --muted: #5f6670;
  --surface: #fffdf8;
  --surface-elevated: #ffffff;
  --line: #e7dfd2;
  --accent: #b3402a;
  --accent-strong: #8f2f1d;
  --success-bg: #e8f8ef;
  --success-fg: #1f6f45;
  --warn-bg: #fff2df;
  --warn-fg: #9b5b0c;
  --error-bg: #fdeaea;
  --error-fg: #9e1f1f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 0% 0%, #ffd9b8 0%, rgba(255, 217, 184, 0) 45%),
    radial-gradient(circle at 100% 100%, #f4d2c5 0%, rgba(244, 210, 197, 0) 40%),
    linear-gradient(155deg, #fdf7ef 0%, #f8f0e6 100%);
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  opacity: 0.35;
  filter: blur(22px);
  pointer-events: none;
}

.bg-shape-a { width: 260px; height: 260px; background: #f7ba8d; top: -70px; right: -30px; }
.bg-shape-b { width: 220px; height: 220px; background: #f1b9b9; bottom: -80px; left: -40px; }

.page { width: min(920px, 92vw); margin: 2rem auto 3rem; display: grid; gap: 1rem; }

.card {
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.2rem;
  box-shadow: 0 8px 30px rgba(43, 30, 18, 0.08);
}

.hero { background: linear-gradient(120deg, #fff8ee, #fff4ec); }

.eyebrow {
  margin: 0;
  color: var(--accent-strong);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

h1, h2 { margin: 0.35rem 0 0.6rem; font-family: "Fraunces", Georgia, serif; }
h1 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
h2 { font-size: 1.2rem; }

.subtext, .hint { color: var(--muted); margin: 0; }
.hint { font-size: 0.9rem; }

form { display: grid; gap: 1rem; }
.grid { display: grid; gap: 0.8rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

label { display: grid; gap: 0.4rem; font-size: 0.95rem; font-weight: 600; }
input, select, textarea, button { font: inherit; }

input, select, textarea {
  width: 100%;
  border: 1px solid #d8cdbd;
  background: var(--surface);
  border-radius: 12px;
  padding: 0.68rem 0.75rem;
  color: var(--ink);
}

input:focus, select:focus, textarea:focus {
  border-color: #d4845c;
  outline: 2px solid rgba(212, 132, 92, 0.2);
}

textarea { resize: vertical; }

button {
  border: 0;
  border-radius: 12px;
  padding: 0.72rem 0.95rem;
  cursor: pointer;
}

button.primary {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  transition: transform 120ms ease, background-color 180ms ease;
}

button.primary:hover { transform: translateY(-1px); background: var(--accent-strong); }
button.primary:disabled { opacity: 0.7; cursor: wait; }

button.secondary {
  background: #efe7dc;
  color: #4b4136;
  font-weight: 600;
}

.result {
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  border: 1px solid transparent;
}

.result ul {
  margin: 0;
  padding-left: 1.15rem;
}

.result li + li {
  margin-top: 0.2rem;
}

.result.neutral { background: #f8f5f0; color: #5c5750; }
.result.success { background: var(--success-bg); color: var(--success-fg); border-color: #b7e6ca; }
.result.warning { background: var(--warn-bg); color: var(--warn-fg); border-color: #f3d3a5; }
.result.error { background: var(--error-bg); color: var(--error-fg); border-color: #f2b9b9; }

.confirm-modal {
  border: none;
  border-radius: 16px;
  padding: 0;
  width: min(560px, 92vw);
}

.confirm-modal::backdrop { background: rgba(31, 35, 40, 0.42); }

.confirm-modal-content { padding: 1.2rem; }
.confirm-summary {
  margin: 0.8rem 0 1rem;
  padding: 0.8rem;
  border-radius: 12px;
  background: #f8f5f0;
  border: 1px solid #ece2d3;
}
.confirm-summary p { margin: 0.35rem 0; }

.confirm-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
}

@media (max-width: 760px) {
  .grid.two,
  .grid.three { grid-template-columns: 1fr; }

  .confirm-actions {
    flex-direction: column;
  }
}
