/* ---- reviewer flow · editorial graphite ---------------------------------- */
:root {
  --paper: #f4f2ec;
  --paper-2: #eeebe2;
  --card: #fbfaf7;
  --ink: #1d1a16;
  --ink-2: #33302a;
  --ink-soft: #726c62;
  --accent: #a86f1c;        /* muted brass */
  --accent-deep: #8a5a12;
  --accent-tint: #f1e8d6;
  --line: #e4dfd4;
  --line-2: #d8d2c5;
  --star-off: #d9d3c6;
  --shadow: 0 24px 60px -34px rgba(40, 32, 18, 0.5);
  --radius: 18px;
  --serif: ui-serif, Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 620px at 8% -12%, #faf8f2, transparent 60%),
    linear-gradient(168deg, var(--paper), var(--paper-2) 90%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

.wrap { max-width: 580px; margin: 0 auto; padding: 40px 18px 64px; }

/* progress */
.progress { display: flex; gap: 6px; justify-content: center; margin-bottom: 26px; }
.progress span {
  width: 30px; height: 3px; border-radius: 99px;
  background: var(--line-2); transition: background .3s, transform .3s;
}
.progress span.done { background: var(--accent); }
.progress span.active { background: var(--ink); transform: scaleX(1.1); }

/* card */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 34px;
  border: 1px solid var(--line);
}

.step { display: none; animation: rise .35s ease both; }
.step.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }

.eyebrow {
  text-transform: uppercase; letter-spacing: .2em;
  font-size: 11px; font-weight: 700; color: var(--accent);
  margin: 0 0 16px;
}
h1 { font-family: var(--serif); font-weight: 600; font-size: 34px; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 14px; }
h2 { font-family: var(--serif); font-weight: 600; font-size: 27px; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 10px; }
.sub { color: var(--ink-soft); margin: 0 0 26px; font-size: 15.5px; max-width: 44ch; }
.rule { width: 44px; height: 2px; background: var(--accent); border-radius: 2px; margin: 0 0 20px; }

/* rating — star glyph rendered in CSS so it inherits the theme colour */
.rating { display: flex; gap: 6px; margin: 4px 0 4px -4px; }
.rating button {
  font-size: 0; line-height: 1; background: none; border: none; cursor: pointer;
  padding: 4px; transition: transform .12s;
}
.rating button::before {
  content: "\2605"; font-size: 30px; color: var(--star-off);
  transition: color .18s, transform .12s; display: block;
}
.rating button:hover { transform: translateY(-1px) scale(1.06); }
.rating button.on::before { color: var(--accent); }
.rating-hint { font-size: 13px; color: var(--ink-soft); min-height: 18px; margin: 4px 0 20px; font-style: italic; }

/* chips */
.label { font-weight: 600; font-size: 13.5px; margin: 22px 0 11px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line-2); background: #fff; color: var(--ink-2);
  border-radius: 8px; padding: 9px 14px; font-size: 14px; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s; user-select: none;
}
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--accent-tint); border-color: var(--accent); color: var(--accent-deep); font-weight: 600; }

/* optional comment reveal */
.note-toggle {
  margin-top: 22px; background: none; border: none; color: var(--accent);
  font-size: 13.5px; font-weight: 600; cursor: pointer; padding: 0; letter-spacing: .01em;
}
.note-toggle:hover { color: var(--accent-deep); }
.note-box { margin-top: 12px; display: none; }
.note-box.open { display: block; }

textarea, input[type="text"] {
  width: 100%; border: 1px solid var(--line-2); border-radius: 11px;
  padding: 12px 14px; font-size: 15px; font-family: inherit; color: var(--ink);
  resize: vertical; background: #fff;
}
textarea:focus, input[type="text"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
textarea { min-height: 84px; }

/* actions */
.actions { display: flex; align-items: center; gap: 10px; margin-top: 30px; }
.btn {
  border: none; border-radius: 11px; padding: 14px 24px; font-size: 15px;
  font-weight: 600; cursor: pointer; font-family: inherit;
  transition: transform .12s, background .2s, box-shadow .2s;
}
.btn-primary {
  background: var(--ink); color: #f7f3ea; flex: 1; letter-spacing: .01em;
  box-shadow: 0 12px 24px -14px rgba(29, 26, 22, .9);
}
.btn-primary:hover { transform: translateY(-1px); background: #000; }
.btn-primary:disabled { opacity: .6; cursor: default; transform: none; }
.btn-ghost { background: transparent; color: var(--ink-soft); padding: 14px 8px; }
.btn-ghost:hover { color: var(--accent); }
.btn-back {
  background: transparent; color: var(--ink-soft); padding: 14px 14px;
  border: 1px solid var(--line-2);
}
.btn-back:hover { border-color: var(--ink-soft); color: var(--ink-2); }

/* finish / thanks */
.done-wrap { text-align: center; padding: 22px 0; }
.done-wrap .mark {
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%;
  border: 2px solid var(--accent); color: var(--accent);
  font-size: 26px; line-height: 52px; font-weight: 700;
}

.privacy {
  margin-top: 24px; font-size: 12.5px; color: var(--ink-soft);
  border-left: 2px solid var(--line-2); padding: 2px 0 2px 14px;
}

footer { text-align: center; margin-top: 26px; font-size: 12px; color: var(--ink-soft); letter-spacing: .02em; }
footer a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
footer a:hover { color: var(--accent); }

@media (max-width: 480px) {
  .card { padding: 30px 22px; }
  h1 { font-size: 28px; }
  h2 { font-size: 23px; }
}
