/* holdeer.com: the product's own page. The week of slots is the brand's mark at work: a filled dot is a taken
   hour, a ring a free one. */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/Jost-300-600-latin-tr.woff2') format('woff2');
}

:root {
  --paper: #fbfbfe;
  --panel: #efeefd;
  --ink: #15171c;
  --muted: #555866;
  --line: #e3e2f0;
  --brand: #3d35e8;
  --brand-strong: #2f28c9;
  --on-brand: #ffffff;
  --slot: #c5c2f3;
  --dot: clamp(16px, 3.4vw, 28px);
  --gutter: clamp(1rem, 4vw, 3rem);
  --round: 28px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15171c;
    --panel: #1f2130;
    --ink: #f6f2ea;
    --muted: #a9abbb;
    --line: #2a2d3d;
    --brand: #8f8aff;
    --brand-strong: #a7a3ff;
    --on-brand: #15171c;
    --slot: #3b3e5c;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 'Jost', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2 {
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
}

h2 {
  margin-bottom: 2rem;
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.bar,
main > section,
.foot {
  width: 100%;
  max-width: calc(72rem + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
}

.bar__logo {
  display: block;
  line-height: 0;
}

.bar__logo img {
  width: 120px;
  height: auto;
}

.bar__mail {
  color: var(--muted);
  text-decoration: none;
}

.bar__mail:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  gap: 3rem;
  align-items: center;
  padding-block: clamp(2.5rem, 7vw, 6.5rem);
}

@media (min-width: 56rem) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 4rem;
  }
}

.hero h1 {
  max-width: 15ch;
  font-size: clamp(2.4rem, 1.4rem + 4vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.hero__lead {
  max-width: 36rem;
  margin: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 1.1875rem;
}

.button {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 500;
  text-decoration: none;
}

.button:hover {
  background: var(--brand-strong);
}

.week {
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--round);
  background: var(--panel);
}

.week__grid {
  display: grid;
  grid-template-columns: auto repeat(7, 1fr);
  gap: clamp(0.55rem, 1.5vw, 0.9rem) clamp(0.35rem, 1.2vw, 0.8rem);
  align-items: center;
  justify-items: center;
}

.week__day,
.week__hour {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.week__hour {
  justify-self: end;
  padding-right: 0.4rem;
  font-variant-numeric: tabular-nums;
}

.slot {
  width: var(--dot);
  height: var(--dot);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--slot);
}

.slot--taken {
  background: var(--brand);
  box-shadow: none;
}

/* The page's one moment: a free hour is booked as the page opens. */
.slot--booking {
  animation: book 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 1.1s both;
}

@keyframes book {
  0% {
    background: transparent;
    box-shadow: inset 0 0 0 2px var(--slot);
    transform: scale(1);
  }

  55% {
    transform: scale(1.3);
  }

  100% {
    background: var(--brand);
    box-shadow: inset 0 0 0 2px var(--brand);
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .slot--booking {
    animation: none;
    background: var(--brand);
    box-shadow: none;
  }
}

.week figcaption {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.features,
.steps,
.contact {
  padding-block: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
}

.features__list {
  display: grid;
  gap: 2.5rem 4rem;
  margin: 0;
}

@media (min-width: 48rem) {
  .features__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.features__list dt {
  font-size: 1.1875rem;
  font-weight: 600;
}

.features__list dd {
  max-width: 34rem;
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.data {
  padding-block: clamp(1rem, 3vw, 2rem) clamp(3rem, 7vw, 6rem);
}

.data > * {
  max-width: 40rem;
}

.data h2 {
  margin-bottom: 1rem;
}

.data p {
  margin: 0;
  font-size: 1.1875rem;
}

.steps__list {
  display: grid;
  gap: 2rem 3rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 56rem) {
  .steps__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.steps__list li {
  color: var(--muted);
  counter-increment: step;
}

.steps__list li::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.75rem;
  color: var(--brand);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}

.steps__list strong {
  color: var(--ink);
  font-weight: 600;
}

.contact h2 {
  margin-bottom: 1.25rem;
}

.contact__mail {
  color: var(--brand);
  font-size: clamp(1.75rem, 1rem + 3vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.contact__mail:hover {
  color: var(--brand-strong);
}

.foot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}
