#app {
  width: min(100% - 2rem, 44rem);
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

/* ========================================
   Passport Header
======================================== */

.passport-header h1 {
  margin: 0;
  font-size: clamp(2.5rem, 10vw, 4.5rem);
  line-height: 0.95;
}

.passport-header p {
  margin: 1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.45;
}

/* ========================================
   Progress
======================================== */

.passport-progress {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border: 3px solid #111;
  background: #fff;
  box-shadow: 5px 5px 0 #111;
}

.passport-progress__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.passport-progress__header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.passport-progress__percentage {
  font-size: 1.6rem;
  font-weight: 700;
}

.passport-progress__track {
  height: 1.25rem;
  margin-top: 1rem;
  overflow: hidden;
  border: 3px solid #111;
  background: #fff;
}

.passport-progress__fill {
  display: block;
  width: 0;
  height: 100%;
  background: #ffd400;
  transition: width 300ms ease;
}

.passport-progress__message {
  margin: 0.75rem 0 0;
  font-weight: 700;
}

.passport-progress--complete {
  background: #111;
  color: #ffd400;
}

.passport-progress--complete .passport-progress__track {
  border-color: #ffd400;
}

.passport-progress--complete .passport-progress__fill {
  background: #ffd400;
}

/* ========================================
   Store Grid
======================================== */

.passport-stores h2 {
  margin: 2rem 0 1rem;
  font-size: 1.6rem;
}

.store-grid {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.store-card {
  padding: 1.25rem;
  border: 3px solid #111;
  background: #fff;
  box-shadow: 5px 5px 0 #111;
}

.store-card__header {
  display: grid;
  gap: 0.75rem;
}

.store-card__name {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.15;
}

/* ========================================
   Status Badges
======================================== */

.store-card__status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 0.35rem 0.6rem;
  border: 2px solid #111;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.store-card__status--pending {
  background: #fff;
  color: #111;
}

.store-card__status--visited {
  background: #0b6b36;
  color: #fff;
}

.store-card__status--completed {
  background: #111;
  color: #ffd400;
}

.store-card__status--visiting {
  background: #ffd400;
  color: #111;
}

/* ========================================
   Visiting Interaction
======================================== */

.store-card--visiting {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 #111;
}

/* ========================================
   Social Buttons
======================================== */

.store-card__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border: 3px solid #111;
  background: #ffd400;
  color: #111;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
}

.social-link:hover {
  background: #111;
  color: #fff;
}

.social-link:active {
  transform: translate(2px, 2px);
}

.social-link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.social-link__external {
  margin-left: 0.4rem;
  font-size: 0.9em;
}

.store-card__unavailable {
  margin: 0;
  font-style: italic;
}

/* ========================================
   Status, Loading and Error States
======================================== */

.passport-status {
  padding: 1.25rem;
  border: 3px solid #111;
  background: #fff;
  box-shadow: 5px 5px 0 #111;
}

.passport-status h1,
.passport-status p {
  margin-top: 0;
}

.passport-status p:last-child {
  margin-bottom: 0;
}

.passport-status--error {
  background: #fff;
}

/* ========================================
   Motion
======================================== */

@media (prefers-reduced-motion: no-preference) {
  .store-card {
    transition:
      transform 150ms ease,
      box-shadow 150ms ease;
  }
}

/* ========================================
   Desktop Layout
======================================== */

@media (min-width: 42rem) {
  .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 41.99rem) {
  #app {
    width: min(100% - 1rem, 32rem);
    padding: 1rem 0 2rem;
  }

  .passport-header h1 {
    font-size: clamp(2.25rem, 11vw, 3.25rem);
    line-height: 0.95;
  }

  .passport-header p {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .passport-progress {
    margin: 1rem 0;
    padding: 0.85rem;
    box-shadow: 3px 3px 0 #111;
  }

  .passport-progress__header h2 {
    font-size: 1rem;
  }

  .passport-progress__percentage {
    font-size: 1.2rem;
  }

  .passport-progress__track {
    height: 0.9rem;
    margin-top: 0.65rem;
    border-width: 2px;
  }

  .passport-progress__message {
    margin-top: 0.5rem;
    font-size: 0.9rem;
  }

  .passport-stores h2 {
    margin: 1.25rem 0 0.75rem;
    font-size: 1.35rem;
  }

  .store-grid {
    gap: 0.65rem;
  }

  .store-card {
    padding: 0.85rem;
    border-width: 2px;
    box-shadow: 3px 3px 0 #111;
  }

  .store-card__header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem;
  }

  .store-card__name {
    font-size: 1rem;
    line-height: 1.15;
  }

  .store-card__status {
    padding: 0.25rem 0.4rem;
    border-width: 1px;
    font-size: 0.65rem;
    white-space: nowrap;
  }

  .store-card__socials {
    gap: 0.5rem;
    margin-top: 0.7rem;
  }

  .social-link {
    min-height: 2.5rem;
    flex: 1 1 0;
    padding: 0.5rem 0.6rem;
    border-width: 2px;
    font-size: 0.9rem;
  }

  .social-link__external {
    margin-left: 0.25rem;
  }
}