@font-face {
  font-family: "Bricolage";
  src: url("fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --night: #15102b;
  --mist: #ece8f7;
  --haze: #9a93b8;
  --line: rgba(236, 232, 247, 0.14);
  --violet: #8a6bff;
  --aura: var(--violet);
  --pad: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }

html { background: var(--night); color: var(--mist); }

body {
  margin: 0;
  font-family: "Bricolage", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--mist); outline-offset: 4px; border-radius: 4px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* The one moving thing: a soft light that takes the colour of the product you point at. */
.aura { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aura span {
  position: absolute; border-radius: 50%;
  background: var(--aura);
  filter: blur(120px);
  transition: background-color 700ms ease;
}
.aura span:first-child {
  width: 60vmax; height: 60vmax; top: -25vmax; right: -18vmax; opacity: 0.55;
  animation: drift 26s ease-in-out infinite alternate;
}
.aura span:last-child {
  width: 34vmax; height: 34vmax; bottom: -16vmax; left: -10vmax; opacity: 0.25;
  animation: drift 32s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  to { transform: translate(-6vmax, 5vmax) scale(1.08); }
}

.top, main, .foot { max-width: 1240px; margin: 0 auto; padding-inline: var(--pad); }

.top {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-block: 28px;
}
.mark {
  font-size: 1.5rem; font-weight: 750; font-stretch: 80%;
  letter-spacing: -0.02em; text-decoration: none;
}
.mail { color: var(--haze); text-decoration: none; }
.mail:hover { color: var(--mist); }

.hero { padding-block: clamp(72px, 16vh, 180px) clamp(64px, 12vh, 140px); }
.hero h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(3rem, 9.5vw, 8.5rem);
  font-weight: 700;
  font-stretch: 75%;
  line-height: 0.94;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.lede {
  max-width: 38ch;
  margin: clamp(28px, 4vw, 44px) 0 0;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  color: var(--haze);
}

.products ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.products li { border-bottom: 1px solid var(--line); }
.products a {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1.3fr) minmax(0, 1fr);
  grid-template-areas: "field name desc" "field name url";
  column-gap: 32px;
  align-items: start;
  padding-block: clamp(28px, 4vw, 44px);
  text-decoration: none;
}
.field { grid-area: field; padding-top: 0.6em; color: var(--haze); }
.name {
  grid-area: name;
  font-size: clamp(2.4rem, 5.6vw, 4.75rem);
  font-weight: 650;
  font-stretch: 75%;
  line-height: 1;
  letter-spacing: -0.03em;
  transition: font-stretch 400ms ease, color 400ms ease;
}
.desc { grid-area: desc; max-width: 40ch; padding-top: 0.5em; color: var(--haze); }
.url { grid-area: url; margin-top: 10px; color: var(--hue); font-weight: 600; }

.products a:hover .name,
.products a:focus-visible .name { font-stretch: 100%; color: var(--hue); }
.products a:hover .desc,
.products a:focus-visible .desc { color: var(--mist); }

.more {
  max-width: 44ch;
  margin: 0;
  padding: clamp(28px, 4vw, 44px) 0 0 calc(8rem + 32px);
  color: var(--haze);
}

.people { padding-block: clamp(96px, 14vh, 160px) 24px; }
.people h2 {
  margin: 0 0 28px;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  font-weight: 650;
  font-stretch: 80%;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 38ch)); gap: 32px 56px; }
.pair p { margin: 0; color: var(--haze); }
.pair a { color: var(--mist); text-underline-offset: 3px; }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: clamp(72px, 10vh, 120px);
  padding-block: 28px 40px;
  border-top: 1px solid var(--line);
  width: min(100% - 2 * var(--pad), 1240px - 2 * var(--pad));
  max-width: none;
  padding-inline: 0;
  margin-inline: auto;
  color: var(--haze); font-size: 0.95rem;
}
.foot p { margin: 0; }
.foot a { color: var(--mist); text-underline-offset: 3px; }

@media (max-width: 820px) {
  .products a {
    grid-template-columns: 1fr;
    grid-template-areas: "field" "name" "desc" "url";
    row-gap: 6px;
  }
  .field, .desc { padding-top: 0; }
  .desc { margin-top: 6px; }
  .pair { grid-template-columns: 1fr; }
  .more { padding-left: 0; }
  .mail { font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .aura span { animation: none; transition: none; }
  .name { transition: none; }
}
