/*
 * Naaf, a fictional bike workshop, as a poster: a wordmark the width of the page, black heavy
 * type and monospaced labels on cream, and one cobalt blue for everything that acts. Blue on
 * cream is 8.8:1, white on blue 10.2:1, cream on black 16.6:1. The hero is a full-width photo of
 * the workshop (Unsplash, README.md, "Website concepts") with the headline in a blue block.
 */
:root {
  --paper: #f1ede4;
  --paper-2: #e6e0d3;
  --ink: #0d0d0d;
  --soft: #4a4740;
  --blue: #1515d0;
  --heavy: 'Helvetica Neue', 'Arial Black', 'Arial Bold', Arial, sans-serif;
  --sans: 'Helvetica Neue', Arial, system-ui, sans-serif;
  --mono: Consolas, 'SF Mono', Menlo, ui-monospace, monospace;
}
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.5 var(--sans);
}
.wrap {
  width: min(100% - 2.5rem, 90rem);
  margin-inline: auto;
}
.mono {
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* The masthead: the name in the page's full width, the menu on one line under it. */
.masthead {
  padding: 0.75rem 1.25rem 0;
}
.wordmark {
  display: block;
  text-decoration: none;
}
.wordmark svg {
  width: 100%;
  overflow: visible;
}
/* The text's em box reaches above the letters; it must not catch clicks meant for the ribbon. */
.wordmark text {
  pointer-events: none;
  fill: var(--ink);
  font: 900 300px/1 var(--heavy);
  letter-spacing: -0.04em;
}
.top {
  display: flex;
  padding: 0.5rem 0 0.75rem;
}
.top nav {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1rem;
  font: 400 1rem var(--mono);
}
.top nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.top nav a:not(.btn):hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-family: var(--mono);
  text-decoration: none;
  transition: background-color 0.15s;
}
.btn:hover {
  background: var(--ink);
}
.btn-small {
  min-height: 44px;
}
@media (max-width: 39.99rem) {
  .top nav span {
    display: none;
  }
  .top nav {
    justify-content: flex-end;
  }
}

/* The hero: the workshop photo across the page, mono labels in its corners, a thin wheel that
   turns slowly, and the headline in a blue block on its lower left. */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: space-between;
  min-height: min(44rem, 88vh);
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgb(13 13 13 / 0.55), rgb(13 13 13 / 0.1) 40%, rgb(13 13 13 / 0.35));
}
.hero-kicker,
.hero-where {
  position: absolute;
  top: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-kicker {
  left: 1.25rem;
}
.hero-kicker::after {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  margin-top: 1rem;
  background: currentColor;
}
.hero-where {
  right: 1.25rem;
  text-align: right;
}
.wheel {
  position: absolute;
  top: 18%;
  right: 12%;
  width: clamp(10rem, 24vw, 22rem);
  fill: none;
  stroke: rgb(255 255 255 / 0.85);
  stroke-width: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .wheel g {
    transform-origin: 130px 130px;
    animation: spin 60s linear infinite;
  }
}
@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}
.hero-block {
  grid-row: 2;
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem 2.5rem;
  width: min(100%, 52rem);
  margin-top: 12rem;
  padding: 1.5rem 1.25rem 1.75rem;
  background: var(--blue);
}
.hero h1 {
  flex: 1 1 22rem;
  font: 900 clamp(2.75rem, 7vw, 6rem) / 0.88 var(--heavy);
  letter-spacing: -0.055em;
}
.hero-block .mono {
  flex: 0 1 13rem;
  padding-top: 0.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-block .mono::after {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  margin-top: 1rem;
  background: currentColor;
}

/* 01: an outlined number, the promise in heavy type, the text behind a rule, a photo. */
.intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: start;
  padding: 2.5rem 0;
}
.num {
  color: transparent;
  font: 300 clamp(6rem, 12vw, 10rem) / 0.8 var(--sans);
  letter-spacing: -0.06em;
  -webkit-text-stroke: 2px var(--blue);
}
@media (forced-colors: active) {
  .num {
    color: CanvasText;
  }
}
.intro h2 {
  font: 900 clamp(2.25rem, 4.2vw, 3.75rem) / 0.92 var(--heavy);
  letter-spacing: -0.05em;
}
.intro-text {
  align-self: stretch;
  padding-left: 2rem;
  border-left: 1px solid var(--ink);
  font-size: 0.9375rem;
}
.dash {
  display: block;
  width: 2rem;
  height: 1px;
  margin-top: 1.5rem;
  background: var(--ink);
}
.intro-photo {
  width: 100%;
  aspect-ratio: 6 / 5;
  object-fit: cover;
}

/* 02: the prices as rows of huge type. A row turns blue under the mouse or focus, and a strip
   of the workshop photo slides in beside the price. */
.services {
  border-top: 1px solid var(--ink);
}
.services-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding: 1.25rem 0;
  font-size: 0.875rem;
}
.services-head h2 {
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.services-head p {
  color: var(--soft);
}
.rows li {
  border-top: 1px solid var(--ink);
}
.rows li:last-child {
  border-bottom: 1px solid var(--ink);
}
.rows a {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 18rem) 9rem 3rem;
  gap: 0.5rem 2rem;
  align-items: center;
  padding: 0.75rem 1.25rem;
  overflow: hidden;
  text-decoration: none;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.rows .name {
  font: 900 clamp(2.25rem, 6.2vw, 5.5rem) / 1 var(--heavy);
  letter-spacing: -0.055em;
}
.rows .what {
  font-size: 0.8125rem;
  color: var(--soft);
  transition: color 0.2s;
}
.rows .price {
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.rows .arrow {
  font: 300 2.75rem/1 var(--sans);
  text-align: right;
}
.rows a::after {
  content: '';
  position: absolute;
  inset: 0 0 0 48%;
  z-index: -1;
  background: url('/concepts/fietsenmaker/ketting.webp') center 45% / cover;
  opacity: 0;
  transition: opacity 0.3s;
}
.rows a:hover,
.rows a:focus-visible {
  background: var(--blue);
  color: #fff;
  outline-offset: -4px;
}
.rows a:hover .what,
.rows a:focus-visible .what {
  color: #fff;
}
@media (min-width: 64rem) {
  .rows a:hover::after,
  .rows a:focus-visible::after {
    opacity: 0.35;
  }
}

/* 03: three steps, big mono numbers. */
.steps-band {
  display: grid;
  gap: 1.5rem;
  padding: 3rem 0;
}
.steps-band > h2,
.visit > h2 {
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.steps li {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}
.step-num {
  color: var(--blue);
  font: 900 3.5rem/1 var(--heavy);
  letter-spacing: -0.05em;
}
.steps h3 {
  font: 900 1.5rem/1.1 var(--heavy);
  letter-spacing: -0.03em;
}
.steps p {
  color: var(--soft);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  padding-bottom: 3rem;
}
.tile {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  min-height: 12rem;
  padding: 1.5rem;
  background: var(--paper-2);
}
.tile h2 {
  font: 900 1.875rem/1 var(--heavy);
  letter-spacing: -0.045em;
}
.tile-blue {
  background: var(--blue);
  color: #fff;
}

.visit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  gap: 1.5rem 2.5rem;
  padding: 2.5rem 0 3.5rem;
  border-top: 1px solid var(--ink);
}
.hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--ink);
}
.hours dd {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.address {
  font: 900 1.375rem/1.15 var(--heavy);
  letter-spacing: -0.03em;
}
.address .mono {
  display: block;
  margin-top: 0.75rem;
  color: var(--soft);
  font-size: 0.8125rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* The close: cream on black, the choices, and a round blue button. */
.plan {
  background: var(--ink);
  color: var(--paper);
}
.plan-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2.5rem 3rem;
  align-items: end;
  padding: 3.5rem 0 4rem;
}
.plan h2 {
  grid-column: 1 / -1;
  font: 900 clamp(3.25rem, 9vw, 8rem) / 0.86 var(--heavy);
  letter-spacing: -0.06em;
}
.plan .picker {
  --pick-line: rgb(241 237 228 / 0.5);
  --pick-on-bg: var(--paper);
  --pick-on-ink: var(--ink);
  --pick-radius: 999px;
  font-family: var(--mono);
}
.plan .picker legend {
  font-family: var(--sans);
  font-weight: 700;
}
.plan .picked {
  border-color: var(--paper);
}
.disc {
  display: grid;
  place-content: center;
  width: 12rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font: 900 1.875rem/0.95 var(--heavy);
  letter-spacing: -0.04em;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s;
}
.disc span {
  display: block;
  margin-top: 0.5rem;
  font: 300 2.25rem/1 var(--sans);
}
.disc:hover {
  background: #fff;
  color: var(--blue);
}
@media (prefers-reduced-motion: no-preference) {
  .disc {
    transition:
      background-color 0.2s,
      transform 0.3s;
  }
  .disc:hover {
    transform: rotate(-8deg);
  }
}

.foot {
  display: grid;
  gap: 0.25rem;
  padding: 1.25rem 0 3rem;
  font-size: 0.8125rem;
  color: var(--soft);
}

@media (max-width: 64rem) {
  .intro {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .intro-text {
    grid-column: 1 / -1;
    padding-left: 0;
    padding-top: 1.5rem;
    border-left: 0;
    border-top: 1px solid var(--ink);
  }
  .intro-photo {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }
  .rows a {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }
  .rows .what {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .visit {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .visit > h2 {
    grid-column: 1 / -1;
  }
}
@media (max-width: 44rem) {
  .hero-where {
    display: none;
  }
  .wheel {
    top: 6rem;
    right: 1.25rem;
  }
  .hero-block {
    margin-top: 14rem;
  }
  .intro {
    grid-template-columns: minmax(0, 1fr);
  }
  .num {
    font-size: 5rem;
  }
  .rows .arrow {
    display: none;
  }
  .rows .price {
    font-size: 1rem;
  }
  .steps,
  .tiles,
  .visit {
    grid-template-columns: minmax(0, 1fr);
  }
  .tile {
    min-height: 0;
  }
  .plan-in {
    grid-template-columns: minmax(0, 1fr);
  }
  .disc {
    width: 9.5rem;
    font-size: 1.5rem;
  }
}
