/* The Drop Network: site styles. Tokens first; see brand/brand-guidelines.html for the system. */

@font-face {
  font-family: "Zalando Sans Expanded";
  src: url("../fonts/ZalandoSansExpanded-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Zalando Sans";
  src: url("../fonts/ZalandoSans-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colour */
  --forest: #2a4637;
  --forest-deep: #1e332b;
  --ink: #16261f;
  --ink-secondary: #46564d;
  --mist: #f3f5f0;
  --white: #ffffff;
  --line: #dce2d9;
  --pink: #fe87c7;
  --lime: #c9e88f;
  --blue: #89a2b6;
  --on-forest: #f3f5f0;
  --on-forest-secondary: rgba(243, 245, 240, 0.8);
  --on-forest-line: rgba(243, 245, 240, 0.18);

  /* Type */
  --font-display: "Zalando Sans Expanded", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Zalando Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --size-hero: clamp(2.125rem, 1.1rem + 4.6vw, 4.5rem);
  --size-h2: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  --size-h3: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  --size-lead: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  --size-statement: clamp(1.375rem, 1rem + 1.8vw, 2.25rem);
  --size-body: 1.0625rem;
  --size-small: 0.9375rem;

  /* Space and shape */
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
  --radius-panel: 1.25rem;
  --radius-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
ul,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.06;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 10;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--mist);
  color: var(--ink);
  font-weight: 600;
}

.skip:focus {
  top: 0.75rem;
}

/* Hero ------------------------------------------------------------------ */

.hero {
  background: var(--forest);
  color: var(--on-forest);
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(1.25rem, 3vw, 2rem);
}

.masthead__logo img {
  height: 2rem;
  width: auto;
}

.nav {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  font-size: var(--size-small);
  font-weight: 500;
}

.nav a {
  text-decoration: none;
  padding-block: 0.375rem;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1.5px no-repeat;
  transition: background-size 0.3s var(--ease-out);
}

.nav a:hover,
.nav a:focus-visible {
  background-size: 100% 1.5px;
}

.hero__body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3.5rem, 9vw, 7.5rem);
}

.hero h1 {
  font-size: var(--size-hero);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.hero__lead {
  max-width: 34rem;
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
  color: var(--on-forest-secondary);
  font-size: var(--size-lead);
  line-height: 1.55;
}

.hero__actions {
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--lime);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.button:hover {
  background: #d8f0a8;
}

.button:active {
  transform: scale(0.98);
}

.button svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s var(--ease-out);
}

.button:hover svg {
  transform: translateY(3px);
}

.hero__mark {
  justify-self: end;
  width: min(100%, 24rem);
}

.hero__mark svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.hero__mark .dot {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.45s var(--ease-out);
}

/* Each product link wakes its own dot in the mark. */
.hero:has(a[href="#drop-studio"]:is(:hover, :focus-visible)) .dot--studio,
.hero:has(a[href="#sole-proprietor"]:is(:hover, :focus-visible)) .dot--books,
.hero:has(a[href="#affiliate"]:is(:hover, :focus-visible)) .dot--affiliate {
  transform: scale(1.12);
}

.family {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--on-forest-line);
}

.family a {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 1.375rem 1.5rem 1.5rem 0;
  text-decoration: none;
}

.family li + li a {
  padding-left: 1.5rem;
  border-left: 1px solid var(--on-forest-line);
}

.family__dot {
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  transition: transform 0.3s var(--ease-out);
}

.family a:hover .family__dot {
  transform: scale(1.35);
}

.family__dot--studio {
  background: var(--pink);
}

.family__dot--books {
  background: var(--lime);
}

.family__dot--affiliate {
  background: var(--blue);
}

.family__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.family__what {
  display: block;
  margin-top: 0.25rem;
  color: var(--on-forest-secondary);
  font-size: var(--size-small);
  line-height: 1.45;
}

/* Statement ------------------------------------------------------------- */

.statement {
  padding-block: var(--section);
}

.statement p {
  max-width: 24em;
  font-family: var(--font-display);
  font-size: var(--size-statement);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.28;
  text-wrap: balance;
}

.statement p + p {
  margin-top: 1em;
  color: var(--forest);
}

/* Products -------------------------------------------------------------- */

.products {
  padding-bottom: var(--section);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 3rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head h2 {
  font-size: var(--size-h2);
}

.section-head p {
  max-width: 26rem;
  color: var(--ink-secondary);
}

.product {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: clamp(1.75rem, 5vw, 4rem);
  border-radius: var(--radius-panel);
  scroll-margin-top: 1.5rem;
}

.product + .product {
  margin-top: clamp(1rem, 2vw, 1.5rem);
}

.product--studio {
  background: var(--pink);
}

.product--books {
  background: var(--lime);
}

.product--affiliate {
  background: var(--blue);
}

.product--books .product__art {
  order: -1;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3125rem 0.875rem 0.3125rem 0.75rem;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}

.status::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ink);
}

.product h3 {
  margin-top: 1.25rem;
  font-size: var(--size-h3);
}

.product__name-note {
  display: block;
  margin-top: 0.375rem;
  font-family: var(--font-body);
  font-size: var(--size-small);
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}

.product__what {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.product__copy {
  max-width: 32rem;
  margin-top: 1.25rem;
}

.facts {
  margin-top: 1.75rem;
  border-top: 1.5px solid rgba(22, 38, 31, 0.22);
}

.facts li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-block: 0.75rem;
  border-bottom: 1.5px solid rgba(22, 38, 31, 0.22);
  font-weight: 500;
  line-height: 1.4;
}

.facts li::before {
  content: "";
  flex: none;
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--ink);
  transform: translateY(-0.125rem);
}

.product__art {
  justify-self: center;
  width: min(100%, 20rem);
}

.product__art svg {
  width: 100%;
  height: auto;
}

/* Approach -------------------------------------------------------------- */

.approach {
  padding-block: var(--section);
  background: var(--white);
}

.approach__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
}

.approach h2 {
  font-size: var(--size-h2);
}

.approach__intro {
  max-width: 24rem;
  margin-top: 1.25rem;
  color: var(--ink-secondary);
}

.principles {
  margin: 0;
  border-top: 1.5px solid var(--ink);
}

.principles div {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 0.5rem 2rem;
  padding-block: clamp(1.25rem, 2.5vw, 1.75rem);
  border-bottom: 1px solid var(--line);
}

.principles dt {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.principles dd {
  color: var(--ink-secondary);
}

/* Company and footer ---------------------------------------------------- */

.company {
  padding-block: var(--section) clamp(2rem, 4vw, 3rem);
  background: var(--forest-deep);
  color: var(--on-forest);
}

.company__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.company h2 {
  font-size: var(--size-h2);
}

.company__copy {
  max-width: 34rem;
  margin-top: 1.5rem;
  color: var(--on-forest-secondary);
  font-size: var(--size-lead);
  line-height: 1.55;
}

.details {
  margin: 0;
  border-top: 1px solid var(--on-forest-line);
}

.details div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--on-forest-line);
}

.details dt {
  color: var(--on-forest-secondary);
}

.details dd {
  font-weight: 500;
  text-align: right;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-top: var(--section);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--on-forest-line);
  color: var(--on-forest-secondary);
  font-size: var(--size-small);
}

.footer img {
  height: 1.75rem;
  width: auto;
}

.footer p + p {
  margin-top: 0.125rem;
}

.footer__legal {
  text-align: right;
}

/* Not found ------------------------------------------------------------- */

.lost {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding: var(--gutter);
  background: var(--forest);
  color: var(--on-forest);
  text-align: center;
}

.lost img {
  width: 5.5rem;
  margin-inline: auto;
}

.lost h1 {
  margin-top: 2rem;
  font-size: var(--size-h2);
}

.lost p {
  margin-top: 1rem;
  color: var(--on-forest-secondary);
}

.lost .button {
  margin-top: 2rem;
}

/* Smaller screens ------------------------------------------------------- */

@media (max-width: 60rem) {
  .hero__body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.5fr);
  }

  .principles div {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 46rem) {
  .nav {
    display: none;
  }

  .hero__body,
  .product,
  .approach__grid,
  .company__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* The masthead logo already shows the mark at this size. */
  .hero__mark {
    display: none;
  }

  .masthead__logo img {
    height: 1.625rem;
  }

  .family {
    grid-template-columns: minmax(0, 1fr);
  }

  .family a,
  .family li + li a {
    padding: 1rem 0;
    border-left: 0;
  }

  .family li + li {
    border-top: 1px solid var(--on-forest-line);
  }

  .product__art,
  .product--books .product__art {
    order: -1;
    justify-self: start;
    width: 9rem;
  }

  .footer__legal {
    text-align: left;
  }
}

/* Motion ---------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .hero__mark .link {
    stroke-dasharray: 144;
    animation: draw 1s var(--ease-out) 0.15s both;
  }

  .hero__mark .dot {
    animation: land 0.7s var(--ease-out) both;
  }

  .hero__mark .dot--studio {
    animation-delay: 0.3s;
  }

  .hero__mark .dot--books {
    animation-delay: 0.5s;
  }

  .hero__mark .dot--affiliate {
    animation-delay: 0.7s;
  }

  @keyframes draw {
    from {
      stroke-dashoffset: 144;
    }

    to {
      stroke-dashoffset: 0;
    }
  }

  @keyframes land {
    from {
      transform: scale(0);
    }

    to {
      transform: scale(1);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
