:root {
  --demo-brand-1: #e5392d;
  --demo-brand-2: #ff9a6b;
}

.intro {
  padding-block: 32px 24px;
}

.intro h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.intro p {
  max-width: 62ch;
  margin: 0;
  color: var(--demo-muted);
  font-size: 1.0625rem;
}

.store {
  overflow: hidden;
  border: 1px solid var(--demo-line);
  border-radius: var(--demo-radius);
  background: var(--demo-surface);
}

.store__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 18px clamp(18px, 3vw, 32px);
  border-bottom: 1px solid var(--demo-line);
}

.store__logo {
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.store__nav {
  display: flex;
  gap: 6px;
}

.store__nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.store__nav a[aria-current='page'] {
  background: var(--demo-ink);
  color: #fff;
}

.store__body {
  padding: clamp(18px, 3vw, 32px);
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  min-height: 420px;
  padding: clamp(24px, 4vw, 48px);
  border-radius: 16px;
  background: linear-gradient(150deg, #ffb38a, #e5392d 70%);
  color: #fff;
}

.hero h2 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.btn {
  display: inline-block;
  align-self: flex-start;
  padding: 14px 24px;
  border-radius: 999px;
  background: #fff;
  color: var(--demo-ink);
  font-weight: 700;
  text-decoration: none;
}

.btn--dark {
  background: var(--demo-ink);
  color: #fff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid a {
  text-decoration: none;
}

.tile {
  aspect-ratio: 3 / 4;
  border-radius: 14px;
}

.grid h3 {
  margin: 10px 0 2px;
  font-size: 1rem;
}

.grid span {
  color: var(--demo-muted);
  font-size: 0.875rem;
}

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
}

.product .tile {
  aspect-ratio: 4 / 5;
}

.product h2 {
  margin: 0 0 6px;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
}

.product p {
  margin: 0 0 20px;
  color: var(--demo-muted);
}

.switcher {
  position: fixed;
  bottom: 20px;
  left: 50%;
  z-index: 10;
  display: grid;
  gap: 6px;
  justify-items: center;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 8px;
  border: 1px solid var(--demo-line);
  border-radius: 22px;
  background: rgb(255 255 255 / 90%);
  box-shadow: 0 12px 40px rgb(60 20 20 / 18%);
  translate: -50% 0;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.switcher__modes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.switcher__modes button {
  padding: 10px 18px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--demo-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.switcher__modes button:hover {
  background: rgb(229 57 45 / 8%);
}

.switcher__modes button[aria-pressed='true'] {
  background: linear-gradient(135deg, var(--demo-brand-1), var(--demo-brand-2));
  color: #fff;
}

.switcher__info {
  margin: 0 0 4px;
  color: var(--demo-muted);
  font-size: 0.8125rem;
  text-align: center;
}

.unsupported {
  display: none;
  margin: 0 0 20px;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--demo-surface);
}

.no-page-transitions .unsupported {
  display: block;
}

.demo-footer {
  padding-bottom: 160px;
}

@media (max-width: 760px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .switcher__modes button {
    padding: 8px 12px;
  }
}
