:root {
  --paper: #f4eadc;
  --paper-light: #fbf6ee;
  --ink: #36181f;
  --muted: #7b6967;
  --wine: #761f35;
  --amber: #e7a532;
  --sage: #607765;
  --line: rgba(54, 24, 31, 0.16);
  --shadow: 0 18px 55px rgba(78, 39, 31, 0.11);
  --radius-large: 28px;
  --radius-medium: 17px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 5%, rgba(231, 165, 50, 0.18), transparent 28rem),
    linear-gradient(180deg, var(--paper) 0%, #eee0ce 100%);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  min-height: 100vh;
}

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

.page-shell {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
}

.masthead {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  color: var(--ink);
  font-family: "Unbounded", sans-serif;
  font-size: 13px;
  text-decoration: none;
  letter-spacing: 0.08em;
}

.live-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.live-mark span {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--sage);
  box-shadow: 0 0 0 5px rgba(96, 119, 101, 0.12);
}

.intro {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px 60px;
  align-items: end;
  padding: clamp(56px, 8vw, 110px) 0 52px;
}

.eyebrow {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--wine);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1, h2, h3, p { text-wrap: pretty; }

h1 {
  margin: 0;
  max-width: 850px;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.97;
  letter-spacing: -0.055em;
}

.intro-copy {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}

.event-facts {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  min-height: 32px;
  margin-top: 12px;
}

.fact {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(251, 246, 238, 0.55);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  gap: 20px;
  align-items: start;
}

.add-panel, .list-panel {
  border: 1px solid rgba(54, 24, 31, 0.09);
  border-radius: var(--radius-large);
  background: rgba(251, 246, 238, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.add-panel { padding: clamp(24px, 3.5vw, 42px); }
.list-panel { padding: clamp(24px, 3.5vw, 42px); }

.panel-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper-light);
  font-family: "Unbounded", sans-serif;
  font-size: 11px;
}

.panel-heading h2 {
  margin: 0 0 5px;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(20px, 2.3vw, 27px);
  letter-spacing: -0.035em;
}

.panel-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.field > span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field small {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

input, textarea, select {
  width: 100%;
  min-height: 52px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.86);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

textarea { resize: vertical; }
input:focus, textarea:focus, select:focus {
  border-color: var(--wine);
  box-shadow: 0 0 0 4px rgba(118, 31, 53, 0.11);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.primary-button {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  color: white;
  background: var(--wine);
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease;
}
.primary-button:hover { background: #8a2841; transform: translateY(-1px); }
.primary-button:active { transform: translateY(1px); }
.primary-button:disabled { cursor: wait; opacity: 0.55; }

.form-message { min-height: 22px; margin: 12px 0 0; color: var(--wine); font-size: 13px; }

.suggestions {
  margin: -8px 0 18px;
  padding: 14px;
  border: 1px solid rgba(231, 165, 50, 0.45);
  border-radius: 13px;
  background: rgba(255, 241, 205, 0.7);
}
.suggestions strong { display: block; margin-bottom: 7px; font-size: 13px; }
.suggestion-item { color: var(--muted); font-size: 13px; line-height: 1.5; }

.list-heading { margin-bottom: 20px; }

.filters {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 14px;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  min-height: 40px;
  flex: 0 0 auto;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.filter:hover, .filter.active { color: white; border-color: var(--ink); background: var(--ink); }

.item-list { display: grid; gap: 12px; }
.item-card {
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: rgba(255, 253, 248, 0.72);
  transition: transform 160ms ease, border-color 160ms ease;
}
.item-card:hover { transform: translateY(-2px); border-color: rgba(54, 24, 31, 0.3); }
.item-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.category-label { color: var(--wine); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.status-badge { padding: 5px 8px; border-radius: 99px; background: rgba(96, 119, 101, 0.12); color: var(--sage); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.status-badge.question, .status-badge.not_needed { background: rgba(231, 165, 50, 0.16); color: #80550b; }
.status-badge.duplicate { background: rgba(118, 31, 53, 0.1); color: var(--wine); }
.item-card h3 { margin: 12px 0 7px; font-family: "Unbounded", sans-serif; font-size: 18px; letter-spacing: -0.025em; }
.item-meta, .item-note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.item-note:empty { display: none; }

.review-box {
  margin-top: 17px;
  padding: 16px;
  border-radius: 13px;
  background: #f6e8c7;
}
.review-label { margin: 0 0 5px; color: #80550b; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.review-message { margin: 0 0 13px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.compact { grid-template-columns: .7fr 1.3fr; }
.compact input { min-height: 44px; padding: 10px 12px; font-size: 13px; }
.answer-form button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--ink); color: white; font-size: 12px; font-weight: 700; }
.responses { display: grid; gap: 7px; margin-top: 12px; }
.response { margin: 0; padding-left: 10px; border-left: 2px solid var(--amber); color: var(--muted); font-size: 12px; line-height: 1.5; }

.empty-state { padding: 48px 20px; border: 1px dashed var(--line); border-radius: var(--radius-medium); text-align: center; color: var(--muted); }
.empty-state strong { display: block; margin-bottom: 5px; color: var(--ink); font-family: "Unbounded", sans-serif; }

footer { padding: 42px 0 54px; color: var(--muted); font-size: 13px; text-align: center; }

@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; gap: 22px; }
  .eyebrow, .event-facts { grid-column: auto; }
  .workspace { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .page-shell { width: min(100% - 24px, 1320px); }
  .masthead { min-height: 70px; }
  .intro { padding: 48px 0 34px; }
  h1 { font-size: clamp(40px, 14vw, 62px); }
  .field-row, .compact { grid-template-columns: 1fr; gap: 0; }
  .add-panel, .list-panel { border-radius: 22px; }
  .item-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
