/*
 * Kelkwerk, a fictional florist, in lilac and plum: a name set as large as the page in a
 * high-contrast serif, the bouquet grown through it, cream pages for the flowers, a dark plum
 * band for weddings and one acid-yellow pill. Plum on lilac is 10:1, plum on cream 13:1, cream
 * on the dark band 14:1, plum on the yellow 11.7:1. The hero is floral typography: the name in
 * Bodoni, with vines that wind round its ascenders and weave in front of and behind its strokes,
 * leaves, anemones and a calla (a "kelk"), rendered in Blender (scripts/concepts/floral.py). Photos from Unsplash (README.md,
 * "Website concepts").
 */
:root {
  --lilac: #e4d5ee;
  --cream: #faf5ef;
  --plum: #4b1739;
  --plum-soft: #6b4560;
  --night: #2b1420;
  --night-ink: #f5ece6;
  --night-soft: #cdb9c4;
  --acid: #e4f36a;
  --serif: 'Didot', 'Bodoni 72', 'Sitka Banner', 'Sitka Display', Georgia, serif;
  --sans: 'Segoe UI', 'Avenir Next', system-ui, sans-serif;
}
body {
  background: var(--cream);
  color: var(--plum);
  font: 400 1.0625rem/1.55 var(--sans);
}
.wrap {
  width: min(100% - 2.5rem, 84rem);
  margin-inline: auto;
}
.lilac {
  background: var(--lilac);
}
.cream {
  background: var(--cream);
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.big {
  font-size: clamp(3rem, 7.5vw, 6.5rem);
  line-height: 0.92;
}
.caps {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.top nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.75rem;
  padding: 0.75rem 0;
  font-size: 0.9375rem;
}
.top nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.top nav a:not(.btn):hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.top nav .logo {
  margin-right: 1.5rem;
  font: 400 1.5rem var(--serif);
  letter-spacing: -0.03em;
}
@media (max-width: 39.99rem) {
  .top nav span {
    display: none;
  }
  /* The logo stays on a phone, beside the button. */
  body .top nav a.logo {
    display: inline-flex;
  }
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 48px;
  margin-left: auto;
  padding: 0 1.5rem;
  border-radius: 999px;
  background: var(--acid);
  color: var(--plum);
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.btn:hover {
  background: var(--plum);
  color: var(--acid);
}
.btn-small {
  min-height: 44px;
}

/* The hero: the name grown over with flowers, as wide as the page, then the line and the way in.
   The picture is wider than its letters (the vines trail off both ends), so it is set 120.6%
   wide and pulled left, which puts the letters' edges on the column's. The band clips what
   runs past the screen, so a phone gets the trailing vines cut, never a sideways scroll. */
.hero-band {
  overflow-x: clip;
}
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 2rem;
  padding-top: 0.5rem;
}
.naam {
  grid-column: 1 / -1;
  width: 120.6%;
  max-width: none;
  margin: 0 0 -1.5% -11.6%;
}
.hero h1 {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  font-size: clamp(2.5rem, 5.5vw, 5rem);
}
.hero-lead {
  grid-column: 1;
  grid-row: 3;
  max-width: 26rem;
  margin-top: 1rem;
  color: var(--plum-soft);
  font-size: 0.9375rem;
}
.round {
  grid-column: 2;
  grid-row: 2 / 4;
  align-self: end;
  justify-self: end;
  display: grid;
  place-content: center;
  width: 9.5rem;
  padding: 1rem;
  aspect-ratio: 1;
  border: 1px solid var(--plum);
  border-radius: 50%;
  font: 400 1.0625rem/1.2 var(--serif);
  text-align: center;
  text-decoration: none;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.round span {
  display: block;
  margin-top: 0.25rem;
}
.round:hover {
  background: var(--plum);
  color: var(--lilac);
}
.hero-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding: 2rem 0 1.5rem;
}
.rule {
  flex: 1;
  min-width: 3rem;
  height: 1px;
  background: currentColor;
}

/* The bouquets: the line beside a rule, a tall photo with pinned labels, a wide one, prices. */
.neat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem 6rem;
  padding: 4rem 0 4.5rem;
}
.neat .big {
  grid-column: 1;
  padding-left: 2rem;
  border-left: 1px solid var(--plum);
}
.tall {
  grid-column: 2;
  grid-row: 1 / 4;
  position: relative;
}
.tall img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
}
figcaption {
  margin-top: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--plum);
  font: 400 1rem var(--serif);
}
/* Labels on fine lines that reach into the bouquet, as in a botanical plate. Wide screens only. */
/* Three labels, drawn like a florist's notes, each with a line that ends on the flower it names
   (a dot marks the spot). The photo is always cropped to 4:5, so a point on it is a fraction of
   the figure's width across (--x) and of its width times 1.25 down (--y), in container units.
   Not underlined: they are labels, not links. */
.tall {
  container-type: inline-size;
}
.pin {
  position: absolute;
  display: none;
  align-items: center;
  font: 400 0.875rem var(--serif);
  transform: translateY(-50%);
}
.pin span {
  padding-right: 0.25rem;
}
.pin::after {
  content: '';
  width: calc(var(--x) * 100cqw + 1.5rem);
  height: 1px;
  margin-left: 0.5rem;
  background: var(--plum);
}
.pin::before {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--plum);
  box-shadow: 0 0 0 2px rgb(255 255 255 / 0.85);
}
@media (min-width: 64rem) {
  .pin {
    display: flex;
    right: calc(100% - var(--x) * 100cqw);
    top: calc(var(--y) * 125cqw);
  }
  /* The pink sprays, the open rose, the red carnation. */
  .pin-1 {
    --x: 0.26;
    --y: 0.23;
  }
  .pin-2 {
    --x: 0.4;
    --y: 0.38;
  }
  .pin-3 {
    --x: 0.07;
    --y: 0.5;
  }
}
.wide {
  grid-column: 1;
}
.wide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 40%;
}
.list {
  grid-column: 1;
  align-self: end;
}
.list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.125rem 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #d8c9d3;
}
.list h3 {
  font-size: 1.75rem;
}
.list p {
  grid-column: 1;
  color: var(--plum-soft);
  font-size: 0.9375rem;
}
.list .price {
  grid-column: 2;
  grid-row: 1;
  color: var(--plum);
  font: 400 1.5rem var(--serif);
}
.note {
  grid-column: 1 / -1;
  color: var(--plum-soft);
  font-size: 0.9375rem;
}

/* Weddings and goodbyes, on the dark band. */
.plum {
  background: var(--night);
  color: var(--night-ink);
}
.plum-in {
  display: grid;
  gap: 1.75rem;
  padding: 4.5rem 0 5rem;
}
.plum .caps {
  color: var(--night-soft);
}
.plum .big {
  max-width: 11ch;
}
.plum-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}
.plum-cols > div {
  padding-top: 1rem;
  border-top: 1px solid rgb(245 236 230 / 0.3);
}
.plum h3 {
  font-size: 1.75rem;
}
.plum-cols p {
  margin-top: 0.5rem;
  color: var(--night-soft);
}
.pill {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: 999px;
  background: var(--lilac);
  color: var(--plum);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s;
}
.pill:hover {
  background: var(--acid);
}

.order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2.5rem 4rem;
  padding: 4.5rem 0;
}
.order > div:first-child {
  padding-left: 2rem;
  border-left: 1px solid var(--plum);
}
.order-sub {
  margin-top: 1.25rem;
  color: var(--plum-soft);
  font-size: 1.125rem;
}
.order .picker {
  --pick-line: var(--plum);
  --pick-on-bg: var(--plum);
  --pick-on-ink: var(--lilac);
  --pick-radius: 999px;
}
.order .btn {
  margin-left: 0;
}
.order .picked {
  border-color: var(--plum);
}

.foot {
  overflow: hidden;
  background: var(--plum);
  color: var(--lilac);
}
.foot-in {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem 3rem;
  padding: 3rem 0 2rem;
  font-size: 0.9375rem;
}
.hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgb(228 213 238 / 0.3);
}
.foot-concept {
  font-size: 0.8125rem;
}
.foot-mark {
  display: block;
  width: 100%;
  margin-top: 1rem;
}
.foot-mark text {
  pointer-events: none;
  fill: var(--lilac);
  font: 400 330px/1 var(--serif);
  letter-spacing: -0.04em;
}

@media (max-width: 56rem) {
  .hero h1 {
    margin-top: 1rem;
  }
  .hero-lead {
    grid-column: 1 / -1;
  }
  .round {
    grid-row: 2;
    width: 7rem;
    font-size: 0.9375rem;
  }
  .neat,
  .order,
  .foot-in {
    grid-template-columns: minmax(0, 1fr);
  }
  .neat .big,
  .tall,
  .wide,
  .list {
    grid-column: 1;
    grid-row: auto;
  }
  .plum-cols {
    grid-template-columns: minmax(0, 1fr);
  }
}
