:root {
  --cream: #f3ead6;
  --cream-light: #fbf6e9;
  --aubergine: #35162f;
  --aubergine-soft: #5b3651;
  --maize: #d9ae3f;
  --maize-light: #e8cb77;
  --forest: #254b3d;
  --ink: #2b2328;
  --muted: #6d5d63;
  --display: Georgia, "Times New Roman", Times, serif;
  --body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page: min(100% - 48px, 1320px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

a:hover {
  text-decoration-color: var(--maize);
}

a:focus-visible {
  outline: 3px solid var(--maize);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--cream-light);
  color: var(--aubergine);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  width: var(--page);
  min-height: 88px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: var(--aubergine);
}

.wordmark {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 30px;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

nav a {
  text-decoration: none;
}

nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--maize);
  text-decoration-thickness: 4px;
}

.hero {
  position: relative;
  width: var(--page);
  min-height: 760px;
  margin: 0 auto 140px;
  overflow: hidden;
  background: var(--cream-light);
  color: var(--aubergine);
}

.hero::after {
  content: "";
  position: absolute;
  right: 6%;
  bottom: 9%;
  width: 22%;
  height: 2px;
  background: var(--aubergine);
}

.hero-plane {
  position: absolute;
  pointer-events: none;
}

.hero-plane--maize {
  top: 8%;
  left: 0;
  width: 30%;
  height: 38%;
  background: var(--maize);
}

.hero-plane--green {
  right: 5%;
  bottom: 0;
  width: 17%;
  height: 27%;
  background: var(--forest);
}

.eyebrow,
.kicker,
.issue {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero > .eyebrow {
  position: absolute;
  top: 11%;
  left: 4%;
  z-index: 2;
  width: 17%;
  color: var(--aubergine);
}

.hero-image {
  position: absolute;
  z-index: 2;
  top: 8%;
  right: 10%;
  width: min(31vw, 390px);
  margin: 0;
}

.hero-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: saturate(0.76) contrast(1.04);
}

figcaption {
  margin-top: 10px;
  font-size: 0.7rem;
  line-height: 1.45;
  color: var(--muted);
}

.hero-title {
  position: absolute;
  z-index: 3;
  left: 6%;
  bottom: 9%;
  width: 69%;
}

.hero-title .issue {
  margin-bottom: 18px;
  color: var(--forest);
}

h1,
h2,
h3,
.footer-name {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3.3rem, 7.1vw, 7.1rem);
  line-height: 0.86;
}

.dek {
  max-width: 620px;
  margin: 28px 0 0 24%;
  color: var(--aubergine-soft);
  font-size: 1.04rem;
  line-height: 1.55;
}

h2 {
  margin: 0 0 26px;
  color: var(--aubergine);
  font-size: clamp(2.35rem, 4.6vw, 4.9rem);
  line-height: 0.98;
}

h3 {
  margin: 42px 0 14px;
  color: var(--forest);
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  line-height: 1.08;
}

p {
  margin: 0 0 1.15em;
}

.section-number {
  margin: 0;
  color: var(--maize);
  font-family: var(--display);
  font-size: clamp(6rem, 12vw, 11rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.72;
}

.opening {
  width: min(100% - 48px, 1120px);
  margin: 0 auto 170px;
  display: grid;
  grid-template-columns: 0.65fr 2fr 0.8fr;
  align-items: start;
  gap: 44px;
}

.opening h2 {
  max-width: 650px;
}

.opening > div p {
  max-width: 700px;
  font-size: 1.08rem;
}

.margin-note {
  margin-top: 145px;
  padding-top: 14px;
  border-top: 5px solid var(--forest);
  color: var(--aubergine-soft);
  font-size: 0.78rem;
  line-height: 1.55;
}

.chapter {
  position: relative;
  width: min(100% - 48px, 1140px);
  margin: 0 auto 180px;
  display: grid;
  grid-template-columns: 0.55fr 1fr 1.25fr;
  align-items: start;
  gap: 38px;
}

.chapter--wide {
  width: var(--page);
  grid-template-columns: 0.45fr 0.95fr 1.5fr;
}

.chapter-heading {
  position: sticky;
  top: 32px;
}

.chapter-heading .kicker,
.checklist .kicker,
.closing .kicker {
  margin-bottom: 15px;
  color: var(--forest);
}

.chapter-copy {
  max-width: 680px;
}

.chapter-copy > p:first-child::first-letter,
.opening > div > p:first-of-type::first-letter {
  float: left;
  margin: 0.03em 0.08em 0 0;
  color: var(--aubergine);
  font-family: var(--display);
  font-size: 4.4rem;
  line-height: 0.78;
}

.columns {
  column-count: 2;
  column-gap: 44px;
}

.columns h3 {
  break-after: avoid;
}

.columns p,
.columns h3 {
  break-inside: avoid;
}

.depth {
  width: min(100% - 48px, 1200px);
  padding: 80px 52px 90px 0;
}

.depth-plane {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 14%;
  background: var(--maize-light);
}

.depth .section-number {
  color: var(--cream-light);
}

.editorial-figure {
  width: min(72%, 920px);
  margin: -60px 0 190px auto;
  display: grid;
  grid-template-columns: 1fr minmax(180px, 0.3fr);
  align-items: end;
  gap: 25px;
}

.editorial-figure img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  filter: saturate(0.65) sepia(0.1);
}

.editorial-figure figcaption {
  padding-right: 28px;
}

.editorial-figure figcaption span {
  display: block;
  margin-bottom: 18px;
  color: var(--aubergine);
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.1;
}

.chapter--offset {
  width: min(100% - 48px, 1050px);
  margin-left: max(24px, calc((100% - 1320px) / 2));
  grid-template-columns: 0.4fr 1fr 1.35fr;
}

.off-frame {
  width: min(100% - 48px, 1060px);
  margin-right: max(24px, calc((100% - 1320px) / 2));
  grid-template-columns: 0.5fr 1fr 1.35fr;
}

.checklist {
  width: var(--page);
  margin: 0 auto 180px;
  padding: 85px 7%;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1.4fr);
  gap: 9%;
  background: var(--forest);
  color: var(--cream-light);
}

.checklist .section-number {
  margin-bottom: 30px;
  color: var(--maize);
}

.checklist h2,
.checklist .kicker {
  color: var(--cream-light);
}

.checklist-intro > p:last-child {
  color: #e4dac8;
}

.checklist ul {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: check;
}

.checklist li {
  position: relative;
  min-height: 50px;
  padding: 11px 0 16px 53px;
  border-bottom: 1px solid rgba(251, 246, 233, 0.24);
  counter-increment: check;
}

.checklist li::before {
  content: counter(check, decimal-leading-zero);
  position: absolute;
  top: 11px;
  left: 0;
  color: var(--maize-light);
  font-family: var(--display);
  font-size: 1.1rem;
}

.closing {
  width: min(100% - 48px, 820px);
  margin: 0 auto 180px;
  padding-left: 12%;
}

.closing h2 {
  font-size: clamp(2.7rem, 5.5vw, 5.8rem);
}

.closing p:last-child {
  max-width: 620px;
  font-size: 1.12rem;
}

.site-footer {
  position: relative;
  min-height: 430px;
  padding: 70px max(24px, calc((100% - 1320px) / 2));
  display: grid;
  grid-template-columns: 1.4fr 0.75fr;
  grid-template-rows: 1fr auto;
  gap: 48px;
  overflow: hidden;
  background: var(--aubergine);
  color: var(--cream-light);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 12%;
  width: 22%;
  height: 54px;
  background: var(--maize);
}

.site-footer::after {
  content: "";
  position: absolute;
  left: 42%;
  bottom: 0;
  width: 13%;
  height: 30%;
  background: var(--forest);
}

.footer-name {
  z-index: 1;
  align-self: end;
  font-size: clamp(4rem, 11vw, 10rem);
  line-height: 0.75;
  text-decoration: none;
}

.footer-statement {
  max-width: 320px;
  margin: 0;
  align-self: end;
  color: #d8cabc;
  font-size: 0.84rem;
}

.footer-links {
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: end;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-place {
  z-index: 1;
  margin: 0;
  align-self: end;
  text-align: right;
  color: var(--maize-light);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Páginas informativas */
.legal-main {
  overflow: hidden;
}

.legal-hero {
  position: relative;
  width: var(--page);
  min-height: 510px;
  margin: 0 auto 120px;
  padding: 110px 7% 70px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--maize);
  color: var(--aubergine);
}

.legal-hero--green {
  background: var(--forest);
  color: var(--cream-light);
}

.legal-hero--aubergine {
  background: var(--aubergine);
  color: var(--cream-light);
}

.legal-plane {
  position: absolute;
  top: 0;
  right: 7%;
  width: 24%;
  height: 42%;
  background: var(--cream-light);
}

.legal-hero--green .legal-plane {
  background: var(--maize);
}

.legal-hero--aubergine .legal-plane {
  background: var(--forest);
}

.legal-hero h1 {
  position: relative;
  max-width: 970px;
  font-size: clamp(3.4rem, 7.3vw, 7.4rem);
  line-height: 0.91;
}

.legal-hero .eyebrow {
  position: relative;
  margin-bottom: 24px;
}

.legal-date {
  position: relative;
  margin: 26px 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.legal-layout {
  width: min(100% - 48px, 1080px);
  margin: 0 auto 170px;
  display: grid;
  grid-template-columns: 0.65fr 1.75fr;
  gap: 10%;
}

.legal-layout aside {
  padding-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.legal-layout aside span {
  color: var(--forest);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-copy {
  max-width: 700px;
}

.legal-copy h2 {
  margin-top: 68px;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
}

.legal-copy h2:first-child {
  margin-top: 0;
}

address {
  margin-top: 48px;
  padding: 24px 0;
  border-top: 5px solid var(--maize);
  border-bottom: 1px solid var(--aubergine);
  font-style: normal;
  font-weight: 700;
}

@media (max-width: 900px) {
  :root {
    --page: min(100% - 32px, 1320px);
  }

  .site-header {
    min-height: 78px;
  }

  .hero {
    min-height: 720px;
    margin-bottom: 110px;
  }

  .hero-plane--maize {
    width: 37%;
    height: 31%;
  }

  .hero-image {
    right: 5%;
    width: min(43vw, 340px);
  }

  .hero-title {
    width: 86%;
  }

  .dek {
    max-width: 520px;
  }

  .opening,
  .chapter,
  .chapter--wide,
  .chapter--offset,
  .off-frame {
    width: min(100% - 32px, 740px);
    margin-right: auto;
    margin-left: auto;
    grid-template-columns: 110px 1fr;
    gap: 30px;
  }

  .opening > div,
  .opening .margin-note,
  .chapter-copy {
    grid-column: 2;
  }

  .margin-note {
    max-width: 350px;
    margin-top: 0;
  }

  .chapter-heading {
    position: static;
  }

  .columns {
    column-count: 1;
  }

  .depth {
    width: min(100% - 32px, 800px);
    padding: 65px 40px 75px 0;
  }

  .editorial-figure {
    width: calc(100% - 48px);
  }

  .checklist {
    padding: 65px 7%;
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .site-footer {
    grid-template-columns: 1fr 0.7fr;
  }

  .footer-name {
    font-size: clamp(4rem, 14vw, 8rem);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .site-header {
    min-height: 104px;
    align-items: flex-start;
    padding-top: 21px;
  }

  nav {
    max-width: 190px;
    gap: 8px 18px;
    font-size: 0.66rem;
  }

  .hero {
    min-height: 700px;
  }

  .hero::after {
    display: none;
  }

  .hero-plane--maize {
    top: 0;
    width: 42%;
    height: 32%;
  }

  .hero-plane--green {
    right: 0;
    width: 20%;
    height: 19%;
  }

  .hero > .eyebrow {
    top: 5%;
    left: 5%;
    width: 29%;
    font-size: 0.61rem;
  }

  .hero-image {
    top: 5%;
    right: 5%;
    width: 52%;
  }

  .hero-image figcaption {
    font-size: 0.59rem;
  }

  .hero-title {
    left: 6%;
    bottom: 8%;
    width: 88%;
  }

  h1 {
    font-size: clamp(3.2rem, 16vw, 5rem);
  }

  .dek {
    margin: 22px 0 0 0;
    max-width: 88%;
    font-size: 0.94rem;
  }

  h2 {
    font-size: clamp(2.35rem, 12vw, 3.5rem);
  }

  .section-number {
    font-size: 5.7rem;
  }

  .opening,
  .chapter,
  .chapter--wide,
  .chapter--offset,
  .off-frame {
    margin-bottom: 120px;
    display: block;
  }

  .opening .section-number,
  .chapter .section-number {
    margin-bottom: 36px;
  }

  .margin-note {
    margin-top: 45px;
  }

  .depth {
    width: calc(100% - 16px);
    padding: 58px 24px 66px 8px;
  }

  .depth-plane {
    left: 0;
  }

  .editorial-figure {
    width: calc(100% - 16px);
    margin: -35px 0 130px auto;
    grid-template-columns: 1fr;
  }

  .editorial-figure figcaption {
    width: calc(100% - 32px);
  }

  .checklist {
    width: calc(100% - 16px);
    margin-right: 0;
    margin-bottom: 120px;
    padding: 55px 24px;
  }

  .closing {
    margin-bottom: 120px;
    padding-left: 0;
  }

  .site-footer {
    min-height: 520px;
    padding-top: 80px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 30px;
  }

  .site-footer::before {
    right: 10%;
    width: 32%;
  }

  .site-footer::after {
    left: auto;
    right: 0;
    width: 24%;
    height: 20%;
  }

  .footer-name {
    align-self: end;
    font-size: clamp(4rem, 20vw, 6.2rem);
  }

  .footer-statement {
    order: -1;
  }

  .footer-place {
    text-align: left;
  }

  .legal-hero {
    min-height: 440px;
    margin-bottom: 85px;
    padding: 90px 7% 55px;
  }

  .legal-plane {
    right: 0;
    width: 34%;
    height: 31%;
  }

  .legal-hero h1 {
    font-size: clamp(3.2rem, 15vw, 5rem);
  }

  .legal-layout {
    width: min(100% - 32px, 1080px);
    margin-bottom: 120px;
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .legal-layout aside {
    max-width: 280px;
    padding-bottom: 18px;
    border-bottom: 5px solid var(--maize);
  }
}

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

@media print {
  .site-header,
  .site-footer,
  .skip-link {
    display: none;
  }

  body {
    background: white;
  }
}
