:root {
  color-scheme: light;
  --paper: #f2eee5;
  --paper-deep: #e8e1d4;
  --ink: #171815;
  --muted: #68675f;
  --hairline: rgba(23, 24, 21, 0.15);
  --card: rgba(255, 255, 255, 0.55);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% -10%, rgba(184, 74, 47, 0.1), transparent 32rem),
    linear-gradient(180deg, #f7f3eb 0, var(--paper) 25rem);
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(100% - 32px, 680px);
  margin: 0 auto;
  padding: 38px 0 72px;
}

.masthead {
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 22px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  height: 28px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  padding: 0 11px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
}

.kicker {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 8vw, 61px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.94;
}

.window {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.status-wrap {
  flex: 0 0 112px;
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.progress {
  width: 112px;
  height: 3px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(23, 24, 21, 0.12);
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
  transition: width 280ms ease;
}

.timeline-wrap {
  min-height: 180px;
  padding-top: 14px;
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  position: absolute;
  top: 31px;
  bottom: 31px;
  left: 95px;
  width: 1px;
  background: var(--hairline);
  content: "";
}

.time-row {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 31px;
  min-height: 72px;
  padding: 13px 0;
}

.time-row::before {
  position: absolute;
  top: 27px;
  left: 91px;
  z-index: 1;
  width: 9px;
  height: 9px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
  content: "";
}

.time-row time {
  padding-top: 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: right;
}

.names {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.name-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 8px 13px 8px 10px;
  background: var(--card);
  font-size: 14px;
  font-weight: 680;
  transition:
    transform 150ms ease,
    background 150ms ease;
}

.name-chip::before {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.name-chip:hover,
.name-chip:focus-visible {
  background: #fff;
  transform: translateY(-1px);
}

.name-chip:focus-visible,
.person:focus-visible {
  outline: 3px solid rgba(23, 24, 21, 0.28);
  outline-offset: 3px;
}

.people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 32px;
  border-top: 1px solid var(--hairline);
  padding-top: 22px;
}

.person {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 8px 10px 8px 8px;
  background: var(--card);
  transition:
    transform 150ms ease,
    background 150ms ease;
}

.person:hover,
.person:focus-visible {
  background: #fff;
  transform: translateY(-1px);
}

.person img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.person-name {
  min-width: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.08;
}

.person-price {
  align-self: center;
  border-radius: 999px;
  padding: 5px 8px;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.loading {
  padding: 18px 0 0 111px;
}

.loading div {
  width: min(100%, 250px);
  height: 42px;
  margin: 0 0 24px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(23, 24, 21, 0.055),
    rgba(255, 255, 255, 0.72),
    rgba(23, 24, 21, 0.055)
  );
  background-size: 220% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.loading div:nth-child(2) {
  width: min(80%, 190px);
}

.loading div:nth-child(3) {
  width: min(90%, 220px);
}

.empty {
  margin: 0;
  padding: 52px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  line-height: 1.25;
  text-align: center;
}

@keyframes shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 24px, 680px);
    padding-top: 24px;
  }

  .heading-row {
    align-items: flex-start;
    margin-top: 28px;
  }

  .status-wrap {
    flex-basis: 86px;
  }

  .progress {
    width: 86px;
  }

  .people {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
