/* The storefront: the front page, the paddle pages, and the pages about the shop. */
.home { padding: 0 1.5rem; }
.home section,
.hero-paddle {
  max-width: 60rem;
  margin-right: auto;
  margin-left: auto;
}
.home h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  text-align: center;
}

.hero-paddle { margin-top: 2.5rem; margin-bottom: 0; }
.hero-paddle canvas,
.paddle-card canvas,
.product-figure canvas,
.starter-grid canvas {
  display: block;
  width: 100%;
}

.steps { margin-top: 4rem; text-align: center; }
.steps ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  padding: 0;
  text-align: left;
  list-style: none;
  counter-reset: step;
}
.steps li {
  padding: 1.25rem;
  background: var(--card);
  border-radius: 1.25rem;
  counter-increment: step;
}
.steps li::before {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--pink);
  content: counter(step);
}
.steps p { margin-top: 1rem; }

.paddles { margin-top: 4rem; }
.paddle-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); /* two by two, or one on phones */
  gap: 1.25rem;
}
.paddle-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--card);
  border-radius: 1.25rem;
}
.paddle-card h3 { font-size: 1.3rem; }
.paddle-card h3 a { text-decoration: none; }

.promises { margin-top: 4rem; text-align: center; }
.promises ul {
  display: inline-flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0;
  text-align: left;
  list-style: none;
}
.promises li::before { margin-right: 0.5rem; color: var(--pink); content: "♥"; }

.ordering-note {
  max-width: 40rem;
  margin: 2.5rem auto 0;
  padding: 0.8rem 1.1rem;
  font-weight: 600;
  text-align: center;
  background: var(--card);
  border-radius: 1rem;
}
.product .ordering-note { margin: 1rem 0 0; text-align: left; }

/* A paddle's page. */
.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(16rem, 2fr);
  gap: 2rem;
  align-items: center;
}
.product-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  text-align: center;
  opacity: 0.7;
}
.product-info { display: flex; flex-direction: column; gap: 0.75rem; }
.product-info .hero-actions { justify-content: flex-start; margin-top: 0.5rem !important; }
.price { font-size: 1.6rem; font-weight: 800; }
.price small { font-size: 0.9rem; font-weight: 600; opacity: 0.75; }
.specs { padding-left: 1.2rem; }
.specs li + li { margin-top: 0.25rem; }

.starters { margin-top: 3rem; }
.starters h2 { font-size: 1.5rem; }
.starter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}
.starter-grid a {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.6rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  background: var(--card);
  border: 2px solid transparent;
  border-radius: 1rem;
}
.starter-grid a:hover { border-color: rgb(255 126 182 / 0.6); }

/* Questions, open one at a time. */
.faq details {
  margin-top: 0.6rem;
  padding: 0.8rem 1.1rem;
  background: var(--card);
  border-radius: 1rem;
}
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin-top: 0.5rem; }
.faq > .meta { margin-top: 1.5rem; }

.credits h3 { margin-top: 1rem; font-size: 1.05rem; }
.credits h3 small { font-weight: 500; opacity: 0.7; }
.credits details { margin-top: 0.75rem; }
.credits summary { cursor: pointer; font-weight: 600; }
.credits pre {
  max-width: 100%;
  margin-top: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.75rem;
  white-space: pre-wrap;
  background: var(--card);
  border-radius: 0.75rem;
}
.font-credits { columns: 2 14rem; }

/* The account page: one section per form. */
.account section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.account h2 { font-size: 1.25rem; }
.button.danger { background: var(--alert); }
.button.danger:hover { background: #7d0f3d; }

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.25rem;
}

@media (max-width: 50rem) {
  .product-hero { grid-template-columns: 1fr; }
}

/* "Most popular" beside a paddle's name. */
.badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: middle;
  color: var(--white);
  background: var(--rose, #d63f86);
  border-radius: 999px;
}

/* The handles on the finishes page. */
.handles { margin-bottom: 2.5rem; }
.handles h2 { font-size: 1.6rem; }
.handle-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.handle-groups > div { padding: 1rem; background: var(--card); border-radius: 1.1rem; }
.handle-groups h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.handle-list { display: flex; flex-direction: column; gap: 0.6rem; padding: 0; list-style: none; }
.handle-list span { display: block; font-size: 0.92rem; opacity: 0.85; }
.handle-list small, .handle-groups p small { font-weight: 600; opacity: 0.7; }

/* The finishes page: each finish as a card with a starter design engraved on it. */
.finish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
  padding: 0;
  list-style: none;
}
.finish-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.9rem;
  background: var(--card);
  border-radius: 1.1rem;
}
.finish-card canvas { display: block; width: 100%; }
.finish-card h2 { display: flex; align-items: baseline; gap: 0.5rem; font-size: 1.25rem; }
.finish-card h2 small { font-size: 0.85rem; font-weight: 600; opacity: 0.7; }
.finishes .lede { max-width: 42rem; margin-top: 0.75rem; }

/* A category's heading among a paddle page's starter designs. */
.starter-category { margin-top: 1.75rem; font-size: 1.2rem; }
.starters .meta + .starter-category { margin-top: 1rem; }
