:root {
  --paper: #fbf7ef;
  --surface: #fffdf8;
  --ink: #302821;
  --muted: #74685f;
  --line: #e5d9c9;
  --accent: #c65f2f;
  --accent-dark: #8b3d20;
  --sage: #64745f;
  --soft-sage: #eef2ea;
  --shadow: 0 18px 50px rgba(48, 40, 33, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.82), rgba(251, 247, 239, 0.96)),
    radial-gradient(circle at top left, rgba(198, 95, 47, 0.14), transparent 34%),
    var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

.shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 18px 14px 42px;
}

.hero {
  min-height: 285px;
  display: grid;
  align-content: end;
  gap: 16px;
  padding: 24px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: var(--shadow);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.logo {
  width: 46px;
  height: 88px;
  object-fit: contain;
}

h1,
h2,
p {
  margin: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 10ch;
  font-size: 50px;
  line-height: 0.95;
}

h2 {
  font-size: 29px;
  line-height: 1;
}

.hero p,
.section-head p {
  color: var(--muted);
  line-height: 1.45;
}

.progress-wrap {
  display: grid;
  gap: 8px;
  color: var(--sage);
  font-size: 13px;
  font-weight: 700;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border: 1px solid rgba(100, 116, 95, 0.28);
  background: var(--soft-sage);
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: var(--sage);
  transition: width 180ms ease;
}

.tabs {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 14px -14px 0;
  padding: 12px 14px;
  background: rgba(251, 247, 239, 0.94);
  backdrop-filter: blur(14px);
}

.tab {
  flex: 0 0 auto;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
}

.tab.active {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.content {
  margin-top: 12px;
}

.panel {
  display: none;
  gap: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 18px;
}

.panel.active {
  display: grid;
}

.section-head {
  display: grid;
  gap: 7px;
  padding-bottom: 2px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input[type="text"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  padding: 13px 12px;
}

textarea {
  resize: vertical;
  line-height: 1.45;
}

input:focus,
textarea:focus,
button:focus-visible {
  outline: 2px solid rgba(198, 95, 47, 0.34);
  outline-offset: 2px;
}

.add-row {
  display: flex;
  align-items: end;
  gap: 10px;
}

.grow {
  flex: 1;
}

.icon-button {
  width: 48px;
  height: 48px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
  font-size: 25px;
  line-height: 1;
}

.item-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.item span {
  line-height: 1.35;
}

.remove {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: white;
  color: var(--accent-dark);
  font-weight: 700;
}

.check-row {
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.check-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

@media (min-width: 720px) {
  .shell {
    padding-top: 28px;
  }

  .hero {
    min-height: 340px;
    padding: 34px;
  }

  h1 {
    max-width: 12ch;
    font-size: 78px;
  }

  .panel {
    padding: 28px;
  }
}
