:root {
  color-scheme: light;
  --ivory: #fbfaf7;
  --soft-black: #171817;
  --anthracite: #222321;
  --cartel-gray: #e9e7e1;
  --display: "EB Garamond", Georgia, serif;
  --sans: Inter, Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --gap: clamp(1.5rem, 3vw, 3rem);
  --section-space: clamp(5rem, 10vw, 10rem);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--soft-black);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 400;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.5rem, 7.8vw, 7.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2.75rem, 5vw, 5rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

h3,
h4 {
  font-size: 2rem;
  line-height: 1.15;
}

p {
  max-width: 40rem;
}

p + p {
  margin-top: 1rem;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--soft-black);
  outline-offset: 5px;
}

.section-dark :focus-visible {
  outline-color: var(--ivory);
}

.section-dark .cartel :focus-visible {
  outline-color: var(--soft-black);
}

img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.skip-link {
  position: absolute;
  top: 1rem;
  left: var(--gutter);
  z-index: 1;
  padding: 0.75rem 1rem;
  background: var(--ivory);
  color: var(--soft-black);
  transform: translateY(calc(-100% - 2rem));
}

.skip-link:focus {
  transform: none;
}

.site-header,
.editorial-grid,
.site-footer {
  max-width: 90rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem var(--gap);
  padding-block: 1.5rem;
}

.wordmark {
  font-family: var(--display);
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.05em;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem clamp(1rem, 2.5vw, 2.5rem);
  font-size: 0.875rem;
}

.site-header a,
.cartel a,
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 0.5rem;
}

.cta {
  display: inline-block;
  max-width: 100%;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border: 1px solid currentColor;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
}

.cta:hover {
  background: var(--soft-black);
  color: var(--ivory);
  border-color: var(--soft-black);
}

.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 3rem var(--gap);
  padding-block: var(--section-space);
}

.editorial-grid > * {
  min-width: 0;
}

.section-copy > p {
  margin-top: 2rem;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
}

.section-copy > .cta {
  margin-top: 2rem;
}

.hero {
  padding-top: clamp(3rem, 6vw, 6rem);
}

.hero-artwork img,
.presentation-preview img {
  aspect-ratio: 1800 / 2561;
}

.cartel {
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.cartel p + p {
  margin-top: 0.5rem;
}

/* Keep both bands full bleed while their content follows the same grid. */
#decouvrir,
#contact {
  max-width: none;
  padding-inline: max(var(--gutter), calc((100% - 90rem) / 2 + var(--gutter)));
  background: var(--anthracite);
  color: var(--ivory);
}

.section-dark .cta:hover {
  background: var(--ivory);
  color: var(--anthracite);
  border-color: var(--ivory);
}

.presentation-preview {
  border-top: 1px solid currentColor;
  padding-top: 1.5rem;
}

.presentation-preview > h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
}

.prototype-status {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
}

.preview-copy {
  margin-block: 2.5rem 2rem;
}

.preview-copy h4 {
  margin-bottom: 1rem;
}

.presentation-preview figure {
  margin: 0;
}

.presentation-preview .cartel {
  margin-top: 0;
  padding: 1rem 1.25rem;
  background: var(--cartel-gray);
  color: var(--soft-black);
}

.aperture {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.aperture-artwork .cartel {
  max-width: 26rem;
  margin-inline: auto;
}

.audience {
  padding-top: clamp(2rem, 4vw, 4rem);
}

.audience-context h3 {
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
}

.formats {
  align-items: center;
}

.formats-artwork img {
  aspect-ratio: 1024 / 964;
}

.custom {
  align-items: center;
}

.campaign-frame {
  width: 100%;
  max-width: 28rem;
  aspect-ratio: 4 / 5;
  border: clamp(1.25rem, 2.5vw, 2.5rem) solid var(--anthracite);
}

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

.contact h2 {
  max-width: 12ch;
  font-size: clamp(3.5rem, 8vw, 8rem);
  line-height: 1;
}

.contact p {
  margin-block: 2.5rem 2rem;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 2rem;
  font-size: 0.8125rem;
}

.site-footer p + p {
  margin: 0;
}

@media (min-width: 56rem) {
  .editorial-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .hero .section-copy {
    grid-column: span 7;
  }

  .hero-artwork {
    grid-column: span 5;
    margin-top: 1rem;
  }

  .product .section-copy,
  .continuity .section-copy {
    grid-column: span 5;
  }

  .presentation-preview {
    grid-column: 7 / -1;
  }

  .presentation-preview figure {
    width: 70%;
    margin-left: auto;
  }

  .aperture-artwork {
    grid-column: span 7;
  }

  .continuity {
    align-items: center;
  }

  .audience > * {
    grid-column: span 3;
  }

  .audience > h2 {
    font-size: clamp(2.25rem, 3vw, 3rem);
  }

  .formats .section-copy {
    grid-column: span 6;
  }

  .formats-artwork {
    grid-column: 9 / -1;
  }

  .custom .section-copy {
    grid-column: 7 / -1;
    grid-row: 1;
  }

  .campaign-frame {
    grid-column: 1 / 6;
    grid-row: 1;
  }
}
