:root {
  --bg: #f6e4dd;
  --card: #fdf7f2;
  --rose: #c07d70;
  --rose-dark: #a8665a;
  --line: #e7bcb3;
  --text: #8a5a51;
  --muted: #b8968e;
  --error: #b3402f;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 16px;
  background:
    radial-gradient(circle at 10% 10%, #f3d3cb 0 12%, transparent 40%),
    radial-gradient(circle at 90% 90%, #f3d3cb 0 12%, transparent 40%),
    var(--bg);
  color: var(--text);
  font-family: 'Josefin Sans', system-ui, sans-serif;
  display: grid;
  place-items: center;
}

.card {
  width: 100%;
  max-width: 520px;
  background: var(--card);
  border: 1px solid var(--line);
  outline: 1px solid var(--line);
  outline-offset: -12px;
  padding: 48px 32px 36px;
  text-align: center;
  box-shadow: 0 10px 40px rgb(160 100 90 / 0.15);
}

h1 {
  margin: 0;
  font-family: 'Pinyon Script', cursive;
  font-weight: 400;
  font-size: clamp(3rem, 13vw, 4.25rem);
  line-height: 1.1;
  color: var(--rose);
}

.lede {
  margin: 16px 0 32px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.field {
  display: block;
  text-align: left;
  margin-bottom: 20px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.field em {
  color: var(--muted);
  font-style: normal;
}

.field input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  letter-spacing: normal;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.field input:focus {
  outline: 2px solid var(--rose);
  outline-offset: 1px;
}

.button {
  display: block;
  width: 100%;
  padding: 16px;
  font: inherit;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #fff;
  background: var(--rose);
  border: 1px solid var(--rose);
  border-radius: 4px;
  cursor: pointer;
}

.button:hover {
  background: var(--rose-dark);
}

.button:focus-visible {
  outline: 2px solid var(--rose-dark);
  outline-offset: 3px;
}

.button--ghost {
  margin-top: 12px;
  color: var(--rose);
  background: transparent;
}

.button--ghost:hover {
  color: #fff;
}

.summary {
  min-height: 1.5em;
  margin: 20px 0 0;
}

.list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  text-align: left;
}

.item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 12px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid #f3e1da;
}

.item img,
.item .thumb {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 4px;
  background: #f3e1da;
}

.item .name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.85rem;
}

.item progress {
  width: 100%;
  height: 6px;
  appearance: none;
  border: 0;
  border-radius: 3px;
  background: #f3e1da;
  accent-color: var(--rose);
}

.item progress::-webkit-progress-bar {
  background: #f3e1da;
  border-radius: 3px;
}

.item progress::-webkit-progress-value {
  background: var(--rose);
  border-radius: 3px;
}

.item.done .name::after {
  content: ' ✓';
  color: var(--rose);
}

.item.failed .name {
  color: var(--error);
}

footer {
  margin-top: 40px;
}

.names {
  margin: 0;
  font-family: 'Marcellus', serif;
  font-size: 1.75rem;
  text-transform: uppercase;
  color: var(--rose);
}

.date {
  margin: 4px 0 0;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
}

@media (max-width: 420px) {
  .card {
    padding: 40px 22px 28px;
  }
}

.prose {
  text-align: left;
  line-height: 1.6;
}

.prose h1 {
  text-align: center;
  margin-bottom: 16px;
}

.prose a {
  color: var(--rose-dark);
}
