/* Editorial additions: forewords and the work's audio / physical forms. */
.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 18px;
  padding: 14px 18px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-180%);
}

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

.hero {
  padding-bottom: 170px;
}

.hero-forewords {
  display: block;
  width: fit-content;
  max-width: 560px;
  min-height: 44px;
  margin-top: 16px;
  padding: 8px 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.hero-forewords span {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: rgba(211, 180, 102, 0.5);
  text-underline-offset: 4px;
}

.hero-forewords:hover span {
  color: var(--gold);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.forewords,
.experience {
  padding: clamp(64px, 7.5vw, 108px) 0;
}

.forewords {
  background: rgba(16, 17, 24, 0.38);
}

.forewords h2,
.experience h2 {
  max-width: 900px;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.02;
  text-wrap: balance;
}

.forewords-intro,
.experience-intro {
  max-width: 740px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.55;
}

.forewords-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 72px);
  margin-top: 42px;
}

.foreword {
  min-width: 0;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(211, 180, 102, 0.32);
}

.foreword figcaption {
  color: var(--gold);
  font-size: 16px;
  line-height: 1.5;
}

.foreword blockquote {
  margin: 20px 0 0;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(27px, 2.5vw, 33px);
  line-height: 1.24;
}

.foreword blockquote p {
  margin: 0;
}

.foreword-context {
  max-width: 420px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.experience-heading {
  margin-bottom: 48px;
}

.experience-part {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 26px clamp(28px, 5vw, 72px);
  padding: 36px 0;
  border-top: 1px solid rgba(211, 180, 102, 0.26);
}

.experience-part-heading,
.experience-copy {
  min-width: 0;
}

.experience-label {
  margin: 0 0 16px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-transform: uppercase;
}

.experience-part h3 {
  max-width: 430px;
  font-size: clamp(30px, 3.1vw, 40px);
  line-height: 1.08;
  text-wrap: balance;
}

.experience-copy {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.experience-copy p {
  margin: 0;
}

.experience-copy p + p {
  margin-top: 16px;
}

.experience-illustrations {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 10px 0 0;
}

.experience .arcana-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0;
  gap: 16px;
}

.experience .arcana-strip img {
  height: auto;
}

.experience .arcana-strip figcaption {
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.2;
}

.experience-caption {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.experience-follow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 26px;
  border-top: 1px solid rgba(211, 180, 102, 0.26);
}

.experience-follow p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.experience-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 48px;
  max-width: 100%;
  padding: 10px 0;
  color: var(--paper);
  border-bottom: 1px solid var(--gold);
  font-size: 16px;
  line-height: 1.5;
  transition: color 160ms ease, border-color 160ms ease;
}

.experience-action span {
  color: var(--gold);
  font-size: 22px;
}

.experience-action:hover {
  color: var(--gold);
}

.experience-action:active {
  border-color: var(--paper);
}

.experience-action:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
}

@media (max-width: 900px) {
  .topbar {
    flex-wrap: wrap;
    gap: 4px;
    padding: 12px 18px 4px;
    background: rgba(5, 5, 8, 0.93);
  }

  .nav {
    display: flex;
    width: 100%;
    gap: 2px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) transparent;
  }

  .nav a {
    flex: 0 0 auto;
    padding: 9px 10px;
    font-size: 11px;
  }

  .hero {
    padding-top: 132px;
    padding-bottom: 150px;
  }

  section,
  #contenuto {
    scroll-margin-top: 124px;
  }
}

@media (max-width: 640px) {
  .forewords-pair,
  .experience-part {
    grid-template-columns: minmax(0, 1fr);
  }

  .forewords-pair {
    margin-top: 32px;
    gap: 32px;
  }

  .experience-heading {
    margin-bottom: 36px;
  }

  .experience-part {
    padding: 28px 0;
    gap: 22px;
  }

  .experience .arcana-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .experience .arcana-strip figcaption {
    padding: 34px 10px 12px;
  }

  .experience-follow {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .experience-action {
    transition: none;
  }
}

/* Keep the existing desktop hero; reserve room for its cover on small laptops. */
@media (min-width: 901px) and (max-width: 1160px) {
  .hero .hero-copy {
    max-width: calc(100% - 380px);
  }

  .hero .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(62px, 7vw, 80px);
    line-height: 0.96;
  }

  .hero .hero-copy .subtitle {
    font-size: 30px;
    line-height: 1.12;
  }

  .hero .hero-copy .lead {
    max-width: 100%;
    font-size: 18px;
    line-height: 1.5;
  }
}

/* Captions sit below the artwork, whose raster image already includes titles. */
.experience .arcana-strip figcaption {
  position: static;
  inset: auto;
  padding: 12px 14px 14px;
  background: none;
  border-top: 1px solid rgba(211, 180, 102, 0.18);
}

@media (max-width: 640px) {
  .experience .arcana-strip figcaption {
    padding: 10px;
  }
}

/* Reserve space for the 390px desktop cover across the wider hero range. */
@media (min-width: 1161px) {
  .hero .hero-copy {
    max-width: min(820px, calc(100% - 490px));
  }

  .hero .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(80px, 8.05vw, 116px);
    line-height: 0.92;
  }

  .hero .hero-copy .subtitle {
    font-size: clamp(28px, 2.64vw, 38px);
  }

  .hero .hero-copy .lead {
    max-width: 100%;
    font-size: clamp(18px, 1.53vw, 22px);
  }
}
