@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Instrument+Serif&display=swap");

.upkeep-preview {
  --canvas: #f5f2e9;
  --surface: #fffdf7;
  --text: #252c25;
  --muted: #526052;
  --line: #d8ded2;
  --accent: #284f38;
  --selected: #e3ece0;
  --late-text: #822d24;
  --late-fill: #fae1db;
  --soon-text: #654007;
  --soon-fill: #fce7b5;

  box-sizing: border-box;
  width: min(100%, 28rem);
  margin: 0 auto;
  background: var(--canvas);
  color: var(--text);
  font: 1rem/1.45 "Instrument Sans", "Segoe UI", sans-serif;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
}

.upkeep-content {
  padding: clamp(1rem, 5vw, 1.75rem);
}

.upkeep-header h1 {
  margin: 0;
  font: 400 clamp(3rem, 12vw, 4rem)/1 "Instrument Serif", Georgia, serif;
}

.upkeep-header p {
  margin: .45rem 0 0;
  color: var(--muted);
}

.upkeep-tasks {
  margin-top: 1.5rem;
  padding: .25rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}

.upkeep-tasks h2 {
  margin: .7rem 0 0;
  font-size: .875rem;
  font-weight: 650;
  color: var(--muted);
}

.upkeep-tasks ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.upkeep-task {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .4rem .75rem;
  padding: .85rem 0;
}

.upkeep-task + .upkeep-task {
  border-top: 1px solid var(--line);
}

.upkeep-task small {
  display: block;
  color: var(--muted);
  font-size: .875rem;
}

.upkeep-status {
  border-radius: .4rem;
  padding: .2rem .5rem;
  font-size: .8rem;
  font-weight: 650;
}

.upkeep-status--late {
  background: var(--late-fill);
  color: var(--late-text);
}

.upkeep-status--soon {
  background: var(--soon-fill);
  color: var(--soon-text);
}

.upkeep-action {
  width: 100%;
  min-height: 44px;
  margin-top: 1.25rem;
  padding: .65rem 1rem;
  border: 0;
  border-radius: 2rem;
  background: var(--accent);
  color: white;
  font: inherit;
  font-weight: 700;
  opacity: 1;
}

.upkeep-nav {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: .25rem;
  padding: .65rem .85rem;
  border-top: 1px solid var(--line);
  border-radius: 0 0 1.5rem 1.5rem;
  background: var(--surface);
  color: var(--muted);
  font-size: .875rem;
  font-weight: 650;
}

.upkeep-nav span {
  padding: .5rem .65rem;
  border-radius: .55rem;
}

.upkeep-nav [aria-current="page"] {
  background: var(--selected);
  color: var(--accent);
  font-weight: 700;
}
