:root {
  --paper: #F5F1E7;
  --ink: #1E1E1E;
  --slate: #3F4650;
  --muted: rgba(30, 30, 30, .68);
  --gold: #C4B97D;
  --night: #1C2C3C;
  --night-deep: #13202D;
  --cream: #F5E9D0;
  --line: rgba(30, 30, 30, .16);
  --serif: Iowan Old Style, Baskerville, "Times New Roman", Times, serif;
  --sans: Inter, Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--night-deep);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: fixed;
  top: 0;
  left: 1rem;
  z-index: 100;
  padding: .75rem 1rem;
  color: var(--cream);
  background: var(--night);
  transform: translateY(-110%);
}

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

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem clamp(1.5rem, 5vw, 5.5rem);
}

.brand img { width: clamp(10.5rem, 17vw, 15.4rem); height: auto; }

.header-contact,
.text-link {
  position: relative;
  font-size: .76rem;
  font-weight: 650;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
}

.header-contact::after,
.text-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -.35rem;
  left: 0;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: transform .3s ease;
}

.header-contact:hover::after,
.text-link:hover::after { transform: scaleX(.45); }

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(26rem, 1.06fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 8rem);
  padding: clamp(9rem, 14vw, 12rem) clamp(1.5rem, 7vw, 8rem) clamp(5rem, 8vw, 8rem);
  overflow: hidden;
}

.hero-copy { max-width: 43rem; }

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--slate);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero h1,
.book h2,
.contact h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .98;
}

.hero h1 { font-size: clamp(3.4rem, 6.6vw, 7.5rem); }

.hero-intro {
  max-width: 36rem;
  margin: clamp(2rem, 4vw, 3.25rem) 0 2.25rem;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.65vw, 1.6rem);
  line-height: 1.55;
}

.text-link span {
  display: inline-block;
  margin-left: .45rem;
  transition: transform .3s ease;
}

.text-link:hover span { transform: translateY(.2rem); }

.hero-art {
  position: relative;
  margin: 0;
  isolation: isolate;
}

.hero-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -7% -12% 8% 14%;
  border: 1px solid rgba(196, 185, 125, .38);
  border-radius: 48% 48% 1rem 1rem;
}

.hero-art picture,
.hero-art img {
  width: 100%;
  aspect-ratio: 1.14 / 1;
  object-fit: cover;
  object-position: 54% center;
  border-radius: 48% 48% .25rem .25rem;
}

.hero-art figcaption {
  position: absolute;
  right: -1rem;
  bottom: 2rem;
  padding: .65rem .9rem;
  color: var(--cream);
  background: var(--night);
  font-family: var(--serif);
  font-size: .92rem;
  font-style: italic;
  letter-spacing: .03em;
}

.manifesto {
  display: grid;
  grid-template-columns: auto minmax(0, 1.35fr) minmax(15rem, .65fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(5rem, 9vw, 9rem) clamp(1.5rem, 9vw, 10rem);
  border-top: 1px solid var(--line);
}

.manifesto-mark {
  width: clamp(3rem, 5vw, 5.5rem);
  opacity: .7;
}

.manifesto-text {
  max-width: 50rem;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4.3rem);
  letter-spacing: -.025em;
  line-height: 1.15;
}

.manifesto-note {
  max-width: 22rem;
  margin: 2.6rem 0 0;
  color: var(--muted);
  font-size: .98rem;
}

.book {
  position: relative;
  padding: clamp(6rem, 10vw, 10rem) clamp(1.5rem, 9vw, 10rem);
  color: var(--cream);
  background: var(--night);
  overflow: hidden;
}

.book::after {
  content: "";
  position: absolute;
  right: -10rem;
  bottom: -18rem;
  width: 38rem;
  height: 38rem;
  border: 1px solid rgba(245, 233, 208, .09);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(245, 233, 208, .025), 0 0 0 8rem rgba(245, 233, 208, .018);
  pointer-events: none;
}

.book-inner {
  position: relative;
  z-index: 1;
  max-width: 78rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(16rem, .75fr) minmax(24rem, 1.25fr);
  align-items: center;
  gap: clamp(4rem, 10vw, 10rem);
}

.cover-wrap {
  position: relative;
  max-width: 26rem;
  justify-self: center;
}

.cover {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: .2rem .5rem .5rem .2rem;
  box-shadow: -1.2rem 2.2rem 4rem rgba(30, 30, 30, .35), inset .2rem 0 rgba(245, 233, 208, .18);
  transform: rotate(-1.2deg);
}

.cover-shadow {
  position: absolute;
  right: 3%;
  bottom: -4%;
  left: 7%;
  height: 12%;
  background: rgba(30, 30, 30, .46);
  filter: blur(1.7rem);
  transform: rotate(-1deg);
}

.eyebrow-light { color: var(--gold); }

.book h2 { font-size: clamp(3.2rem, 6vw, 6.8rem); }

.book-lead {
  max-width: 38rem;
  margin: 2.3rem 0 1.25rem;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.45;
}

.book-body {
  max-width: 37rem;
  margin: 0;
  color: rgba(245, 233, 208, .74);
}

.book-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 38rem;
  margin-top: 3.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(245, 233, 208, .18);
}

.book-facts p { margin: 0; }

.book-facts strong {
  display: block;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
}

.book-facts span {
  display: block;
  color: rgba(245, 233, 208, .62);
  font-size: .7rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.book-action {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.7rem;
}

.book-link {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1.15rem;
  border: 1px solid var(--gold);
  color: var(--cream);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .15em;
  line-height: 1.35;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .25s ease, background-color .25s ease;
}

.book-link span { font-size: .95rem; transition: transform .25s ease; }
.book-link:hover { color: var(--night); background: var(--gold); }
.book-link:hover span { transform: translate(.12rem, -.12rem); }

.book-action p {
  margin: 0;
  color: rgba(245, 233, 208, .62);
  font-size: .67rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.return {
  position: relative;
  min-height: min(78vw, 53rem);
  display: grid;
  place-items: center;
  padding: 5rem 1.5rem;
  color: var(--cream);
  text-align: center;
  overflow: hidden;
}

.return-image {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(19, 32, 45, .18), rgba(19, 32, 45, .6)), url("assets/il-bosco-stelle.webp");
  background-position: center bottom;
  background-size: cover;
  transform: scale(1.01);
}

.return blockquote {
  position: relative;
  z-index: 1;
  max-width: 64rem;
  margin: 0;
  text-shadow: 0 2px 2rem rgba(30, 30, 30, .4);
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.8vw, 5rem);
  line-height: 1.18;
}

.return blockquote span {
  display: block;
  margin-bottom: 1.6rem;
  font-family: var(--sans);
  font-size: .7rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.return blockquote em { color: var(--gold); font-weight: 400; }

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(6rem, 11vw, 11rem) 1.5rem;
  text-align: center;
}

.contact > img { width: 3.4rem; margin-bottom: 2.2rem; opacity: .72; }
.contact h2 { font-size: clamp(2.8rem, 5.4vw, 5.6rem); }

.contact > p:not(.eyebrow) {
  margin: 2.3rem 0 .3rem;
  color: var(--muted);
}

.email-link {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  text-underline-offset: .35rem;
  text-decoration-thickness: 1px;
}

.email-link:hover { color: var(--slate); }

.social-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-top: 3.2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.social-links > span {
  color: var(--muted);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.social-links a {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

.social-links a span {
  display: inline-block;
  margin-left: .22rem;
  color: var(--gold);
  transition: transform .25s ease;
}

.social-links a:hover { color: var(--slate); }
.social-links a:hover span { transform: translate(.12rem, -.12rem); }

.book-link:focus-visible,
.social-links a:focus-visible,
.email-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 2.6rem clamp(1.5rem, 5vw, 5.5rem);
  color: rgba(245, 233, 208, .62);
  background: var(--night-deep);
  font-size: .75rem;
  letter-spacing: .05em;
}

.site-footer img { width: 10rem; }
.site-footer p { margin: 0; }
.site-footer p:nth-child(2) { text-align: center; }
.copyright { text-align: right; }

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 5rem;
    padding-top: 10rem;
  }

  .hero-copy { max-width: 47rem; }
  .hero-art { width: min(92%, 42rem); margin-left: auto; }

  .manifesto { grid-template-columns: auto 1fr; }
  .manifesto-note { grid-column: 2; margin-top: 0; }

  .book-inner {
    grid-template-columns: minmax(14rem, .7fr) minmax(20rem, 1.3fr);
    gap: 3.5rem;
  }

  .return { min-height: 42rem; }
}

@media (max-width: 680px) {
  .site-header { padding: 1.4rem 1.25rem; }
  .brand img { width: 9.8rem; }
  .header-contact { font-size: .68rem; }

  .hero {
    gap: 4rem;
    padding: 8.5rem 1.25rem 5rem;
  }

  .hero h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
  .hero-intro { font-size: 1.2rem; }
  .hero-art { width: 94%; }
  .hero-art figcaption { right: -.5rem; bottom: 1.2rem; }

  .manifesto {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 5.5rem 1.25rem;
  }

  .manifesto-note { grid-column: auto; margin: .5rem 0 0; }
  .manifesto-text { font-size: 2.3rem; }

  .book { padding: 5.5rem 1.25rem 6rem; }
  .book-inner { grid-template-columns: 1fr; gap: 5rem; }
  .cover-wrap { width: min(76vw, 20rem); }
  .book h2 { font-size: clamp(3.2rem, 16vw, 4.8rem); }
  .book-facts { gap: .6rem; }
  .book-facts span { font-size: .62rem; }
  .book-action { align-items: flex-start; flex-direction: column; gap: .85rem; }

  .return { min-height: 32rem; }
  .return-image { background-position: right bottom; }
  .return blockquote br { display: none; }
  .return blockquote em { display: block; margin-top: .45rem; }

  .contact h2 { font-size: 3.15rem; }
  .contact > p:not(.eyebrow) { max-width: 18rem; }
  .social-links { flex-wrap: wrap; justify-content: center; gap: .8rem 1.2rem; }
  .social-links > span { flex-basis: 100%; }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1rem;
    padding: 3rem 1.25rem;
    text-align: center;
  }

  .site-footer p:nth-child(2), .copyright { text-align: center; }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes reveal {
    from { opacity: 0; transform: translateY(1rem); }
    to { opacity: 1; transform: translateY(0); }
  }

  .hero-copy > * { animation: reveal .8s both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .hero-art { animation: reveal .9s .18s both; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
