/* Menamedia — one variable family (Archivo, weight + width axes), self-hosted. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4f5f8;
  --ink: #171a3a;
  --ink-soft: #4a4e70;
  --rule: #d5d8e3;
  --ultra: #2b3fe0;
  --rose: #f4a6c0;
  --forest: #0e5c4a;
  --mint: #d9f2e4;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-gap: clamp(72px, 11vw, 144px);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}

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

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ultra);
}

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

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 10;
}

.skip:focus {
  top: 12px;
  color: var(--paper);
}

/* ---------- Header ---------- */

.site-header {
  padding-block: 22px;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: flex-end;
  gap: 10px;
  font-weight: 750;
  font-stretch: 112%;
  font-size: 1.3125rem;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
}

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

.wordmark svg {
  width: 30px;
  height: auto;
  flex: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 34px);
  font-size: 1rem;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .site-nav .nav-optional {
    display: none;
  }
}

@media (max-width: 420px) {
  .site-header .wrap {
    gap: 12px;
  }

  .wordmark {
    gap: 8px;
    font-size: 1.125rem;
  }

  .wordmark svg {
    width: 24px;
  }

  .site-nav {
    gap: 12px;
    font-size: 0.9375rem;
  }
}

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

.hero {
  padding-top: clamp(28px, 6vw, 80px);
}

.hero h1 {
  max-width: 17em;
  font-size: clamp(2.375rem, 5.2vw, 4.5rem);
  line-height: 1.03;
  font-weight: 680;
  font-stretch: 108%;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero-row {
  margin-top: clamp(32px, 4.5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}

.hero-lede {
  max-width: 30em;
  color: var(--ink-soft);
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}

.button {
  display: inline-block;
  padding: 15px 26px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.15s ease;
}

.button:hover {
  background: var(--ultra);
  color: #fff;
}

/* Ad placements: the three formats we build for every day, used as the menu. */

.placements {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.4vw, 16px);
  align-items: end;
}

.placement {
  container-type: inline-size;
  display: block;
  text-decoration: none;
  border-radius: 4px;
  transition: transform 0.2s ease;
}

.placement:hover {
  transform: translateY(-6px);
}

.placement-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 9cqi;
}

.placement-ratio {
  font-size: max(0.8125rem, 7.5cqi);
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.placement-title {
  display: block;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.placement-desc {
  display: block;
  margin-top: 6cqi;
  font-size: max(0.8125rem, 7.2cqi);
  line-height: 1.3;
  font-stretch: 92%;
}

@container (max-width: 150px) {
  .placement-desc {
    display: none;
  }
}

.placement--story {
  aspect-ratio: 9 / 16;
  background: var(--ultra);
  color: #fff;
}

.placement--story:hover {
  color: #fff;
}

.placement--story .placement-title {
  font-size: 19cqi;
  font-weight: 800;
  font-stretch: 62%;
  letter-spacing: -0.01em;
}

.placement--feed {
  aspect-ratio: 4 / 5;
  background: var(--rose);
  color: var(--ink);
}

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

.placement--feed .placement-title {
  font-size: 11.6cqi;
  font-weight: 720;
  font-stretch: 100%;
}

.placement--square {
  aspect-ratio: 1 / 1;
  background: var(--forest);
  color: var(--mint);
}

.placement--square:hover {
  color: var(--mint);
}

.placement--square .placement-title {
  font-size: 13.6cqi;
  font-weight: 700;
  font-stretch: 125%;
}

@media (prefers-reduced-motion: no-preference) {
  .placement {
    animation: placement-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .placement--feed {
    animation-delay: 0.09s;
  }

  .placement--square {
    animation-delay: 0.18s;
  }
}

@keyframes placement-in {
  from {
    opacity: 0;
    transform: translateY(36px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 860px) {
  .hero-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .placements {
    max-width: 560px;
  }
}

/* ---------- Sections ---------- */

.section {
  padding-top: var(--section-gap);
}

.section-title {
  font-size: clamp(1.875rem, 3.6vw, 3rem);
  line-height: 1.08;
  font-weight: 680;
  font-stretch: 108%;
  letter-spacing: -0.02em;
  max-width: 18em;
  text-wrap: balance;
}

/* Services */

.services {
  margin-top: clamp(32px, 5vw, 64px);
  border-top: 1.5px solid var(--ink);
}

.service {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 20px clamp(24px, 4vw, 56px);
  padding-block: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 24px;
}

.service-swatch {
  width: 40px;
  border-radius: 2px;
  align-self: start;
}

.service-swatch--story {
  aspect-ratio: 9 / 16;
  background: var(--ultra);
}

.service-swatch--feed {
  aspect-ratio: 4 / 5;
  background: var(--rose);
}

.service-swatch--square {
  aspect-ratio: 1 / 1;
  background: var(--forest);
}

.service h3 {
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  line-height: 1.15;
  font-weight: 660;
  letter-spacing: -0.01em;
}

.service-body p {
  max-width: 38em;
}

.service-list {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 28px;
  font-size: 1rem;
  color: var(--ink-soft);
}

.service-list li {
  position: relative;
  padding-left: 18px;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  background: currentColor;
}

@media (max-width: 860px) {
  .service {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .service-swatch {
    grid-row: 1 / span 2;
  }

  .service-body {
    grid-column: 2;
  }
}

@media (max-width: 520px) {
  .service-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Method: a real sequence, so it is numbered. */

.steps {
  margin-top: clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px clamp(20px, 3vw, 40px);
  counter-reset: step;
}

.step {
  counter-increment: step;
  border-top: 1.5px solid var(--ink);
  padding-top: 16px;
}

.step::before {
  content: counter(step);
  display: block;
  font-size: 3.75rem;
  line-height: 1;
  font-weight: 800;
  font-stretch: 62%;
  color: var(--ultra);
}

.step h3 {
  margin-top: 18px;
  font-size: 1.3125rem;
  line-height: 1.2;
  font-weight: 660;
}

.step p {
  margin-top: 10px;
  font-size: 1rem;
  color: var(--ink-soft);
}

@media (max-width: 960px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Report */

.report {
  margin-top: var(--section-gap);
  padding-block: clamp(64px, 9vw, 120px);
  background: var(--ink);
  color: var(--paper);
}

.report a:hover {
  color: var(--rose);
}

.report-intro {
  margin-top: 22px;
  max-width: 36em;
  color: #c3c7e0;
}

.report-columns {
  margin-top: clamp(32px, 5vw, 56px);
  display: flex;
  overflow-x: auto;
  border: 1px solid #454a7a;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  font-stretch: 88%;
  white-space: nowrap;
}

.report-columns li {
  flex: 1 0 auto;
  padding: 14px 18px;
  border-left: 1px solid #454a7a;
}

.report-columns li:first-child {
  flex-grow: 2.4;
  border-left: 0;
  color: var(--rose);
}

.report-terms {
  margin-top: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px clamp(24px, 4vw, 56px);
}

.report-terms dt {
  font-size: 1.3125rem;
  line-height: 1.2;
  font-weight: 660;
}

.report-terms dd {
  margin-top: 8px;
  font-size: 1rem;
  color: #c3c7e0;
}

@media (max-width: 860px) {
  .report-terms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .report-terms {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 24px clamp(24px, 4vw, 56px);
}

.about-text p {
  max-width: 36em;
}

.about-text p + p {
  margin-top: 1.1em;
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Contact */

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

.contact-lede {
  margin-top: 22px;
  max-width: 34em;
  color: var(--ink-soft);
}

.contact-mail {
  display: inline-block;
  margin-top: 36px;
  font-size: clamp(1.5rem, 4.6vw, 3.5rem);
  line-height: 1.1;
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: -0.02em;
  color: var(--ultra);
  text-decoration-thickness: 0.06em;
  overflow-wrap: anywhere;
}

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

.contact-address {
  margin-top: 40px;
  font-style: normal;
  font-size: 1rem;
  color: var(--ink-soft);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 28px 40px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 32px;
}

/* Legal page */

.legal {
  padding-block: clamp(40px, 7vw, 88px) var(--section-gap);
}

.legal h1 {
  font-size: clamp(2.25rem, 4.4vw, 3.5rem);
  line-height: 1.06;
  font-weight: 680;
  font-stretch: 108%;
  letter-spacing: -0.02em;
}

.legal-updated {
  margin-top: 14px;
  font-size: 1rem;
  color: var(--ink-soft);
}

.legal h2 {
  margin-top: 2.2em;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 660;
}

.legal p {
  margin-top: 0.8em;
  max-width: 38em;
}
