@font-face {
  font-family: "Mattianelo Signature";
  src: url("assets/fonts/mattianelo-signature.woff?v=6") format("woff");
  font-display: swap;
}

@font-face {
  font-family: "Mattianelo Text";
  src: url("assets/fonts/mattianelo-text.woff?v=5") format("woff");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f3e8d7;
  --quiet: #d1c1ae;
  --gold: #e5bb85;
  --paper: #171310;
  --rule: #614a36;
  --text: "Mattianelo Text", Georgia, serif;
  --signature: "Mattianelo Signature", var(--text);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--text);
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  font-size: 1.1rem;
  line-height: 1.5;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 400; }
.hero h1, .section-heading h2, .novel-feature h3,
.artist-bio h2 { font-family: var(--signature); }
a { color: inherit; }
em { color: var(--gold); }
img { display: block; max-width: 100%; }

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

.skip {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  transform: translateY(-160%);
  background: var(--paper);
}

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

.wrap {
  width: min(78rem, 84%);
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid #392c21;
  background: #15110f;
}

.site-header nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(.55rem, 3.5vw, 3rem);
  width: min(78rem, 84%);
  min-height: 4.6rem;
  margin-inline: auto;
  padding-block: .55rem;
}

.header-mark {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
}

.header-mark img {
  width: 32px;
  height: auto;
}

.header-mark:hover img { opacity: .78; }

.nav-links {
  display: flex;
  gap: clamp(.55rem, 3vw, 2.65rem);
}

.nav-links--left { justify-content: flex-end; }
.nav-links--right { justify-content: flex-start; }

.nav-links a, .section-label, .text-link, .footer-label {
  font-family: var(--text);
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover, .nav-links a[aria-current] { color: var(--gold); }

.language-switch {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: max(5%, calc((100% - 78rem) / 2));
  display: flex;
  transform: translateY(-50%);
}

.language-switch a {
  display: grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid transparent;
  border-radius: .25rem;
  color: var(--quiet);
  font-size: .875rem;
  text-decoration: none;
}

.language-switch a:hover, .language-switch a[aria-current] { color: var(--gold); }
.language-switch a[aria-current] { border-color: var(--rule); background: #211916; }

.hero {
  display: grid;
  align-items: center;
  min-height: clamp(34rem, 53vw, 49rem);
  background:
    linear-gradient(90deg, #171310 2%, #171310db 24%, #17131026 67%, transparent 88%),
    linear-gradient(0deg, var(--paper), transparent 23%),
    var(--art) var(--art-position, center) / cover no-repeat;
}

.hero--journal { --art: url("assets/journal.webp"); }
.hero--forest {
  --art: url("assets/forest-veil.webp");
  --art-position: 72% center;
  min-height: clamp(28rem, 40vw, 39rem);
}

.hero-inner { padding-block: 5rem; }

.section-label {
  color: var(--gold);
}

.hero h1 {
  font-size: clamp(4rem, 8.5vw, 9rem);
  line-height: .92;
  letter-spacing: normal;
}

.hero h1 em { font-style: normal; }

.lede {
  max-width: 33ch;
  margin-top: 1.4rem;
  color: var(--quiet);
  font-size: clamp(1.1rem, 2.2vw, 1.36rem);
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  min-height: 2.75rem;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: .45em;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .55rem 1.6rem;
  border: 1px solid var(--gold);
  border-radius: .25rem;
  color: var(--paper);
  background: var(--gold);
  font-family: var(--text);
  font-size: .875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { background: var(--ink); border-color: var(--ink); }

.button--ghost { border-color: #aa8b6d; color: var(--ink); background: #171310a6; }
.button--ghost:hover { border-color: var(--gold); background: #171310; color: var(--gold); }

.section { padding-block: clamp(3rem, 6vw, 5.75rem); }

@media (prefers-reduced-motion: no-preference) {
  [data-reveal-state="pending"]:not(:focus-within) {
    opacity: 0;
    pointer-events: none;
  }

  [data-reveal="fade"][data-reveal-state="entered"] {
    animation: section-fade 520ms ease-out;
  }

  [data-reveal="hand"][data-reveal-state="entered"] .release-item {
    animation: release-deal 560ms cubic-bezier(.22, .68, .32, 1) var(--deal-delay, 0ms) backwards;
  }
}

@keyframes section-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes release-deal {
  from {
    opacity: 0;
    translate: var(--deal-x, 0px) var(--deal-y, 1.5rem);
    rotate: var(--deal-rotation, 0deg);
  }
  to {
    opacity: 1;
    translate: 0 0;
    rotate: 0deg;
  }
}

.section-heading {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 3vw, 2rem);
  margin-bottom: 1.85rem;
}

.section-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.section-heading h2, .artist-bio h2 {
  font-size: clamp(2.5rem, 5.2vw, 5.4rem);
  line-height: 1;
  letter-spacing: normal;
}

.artist-section {
  --about-shade: linear-gradient(90deg, #15110f2b, #15110fc4 65%);
  padding-block: clamp(2.75rem, 5vw, 4.75rem);
  border-top: 1px solid var(--rule);
  background: var(--about-shade), url("assets/about-woodland.jpg") center / cover no-repeat #15110f;
}

.artist-bio {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 28rem);
  align-items: center;
  justify-content: center;
  gap: clamp(1.75rem, 6vw, 6rem);
}

.artist-portrait {
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: .875rem;
}

.site-footer {
  border-top: 1px solid var(--rule);
  background: #191410;
  text-align: center;
}

.site-footer > .wrap { padding-block: clamp(2rem, 4vw, 3.5rem) 1.75rem; }

.footer-label { color: var(--gold); }

.collaborators {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 1rem;
  width: min(100%, 47rem);
  padding: 0;
  margin: 1.55rem auto 0;
  list-style: none;
}

.collaborators li {
  display: grid;
  place-items: center;
  min-height: 4.25rem;
}

.collaborators img { height: auto; }
.natura-mark {
  width: min(100%, 8rem);
  filter: brightness(0) invert(1);
}
.iser-mark { width: min(100%, 5.8rem); }

.chip-mark {
  display: grid;
  place-items: center;
  width: 3.6rem;
  aspect-ratio: 1;
  padding: .38rem;
  color: var(--ink);
  background:
    repeating-linear-gradient(90deg, var(--gold) 0 1px, transparent 1px 6px) center / 55% 100%,
    repeating-linear-gradient(0deg, var(--gold) 0 1px, transparent 1px 6px) center / 100% 55%;
  background-repeat: no-repeat;
}

.chip-mark span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 1px solid var(--gold);
  border-radius: .35rem;
  background: #15110f;
  font: 400 1.75rem/1 var(--text);
}

.alta-gama { align-content: center; gap: .2rem; }
.alta-gama > span:last-child { font: 400 .68rem/1.2 var(--text); letter-spacing: .1em; text-transform: uppercase; }
.ag-mark { font: 400 2.55rem/.9 var(--signature); letter-spacing: -.13em; padding-right: .13em; }

.footer-identity {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .85rem;
  min-height: clamp(20rem, 24vw, 33rem);
  padding: 3rem 1.25rem;
  border-top: 1px solid var(--rule);
  background:
    linear-gradient(#191410, #19141000 38%) center bottom / 100% 24vw no-repeat,
    url("assets/editorial-footer.webp") center bottom / 100% auto no-repeat;
}

.footer-signature {
  font: 400 clamp(3rem, 8vw, 6rem)/1 var(--signature);
}

.footer-copyright {
  color: var(--ink);
  font-size: .875rem;
  text-shadow: 0 1px 5px #171310;
}

.back-to-top {
  position: absolute;
  right: clamp(1rem, 4.5vw, 4.5rem);
  bottom: 1.25rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--rule);
  background: #191410e0;
  text-decoration: none;
}

.back-to-top:hover { border-color: var(--gold); color: var(--gold); }

.footer-socials { display: flex; gap: .5rem; }

.footer-socials a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .35rem;
}

.footer-socials a:hover { background: #2b211b; }
.footer-socials img, .footer-socials svg { width: 1.55rem; height: 1.55rem; }
.footer-socials img { object-fit: contain; }

.music-heading::after { order: 1; }
.music-heading .text-link { order: 2; white-space: nowrap; }

.release-players {
  position: relative;
  isolation: isolate;
  width: min(100%, 60rem);
  margin-inline: auto;
}

.release-item[data-slot="main"] {
  position: relative;
  z-index: 1;
  width: 60%;
  margin-inline: auto;
}

.release-item:not([data-slot="main"]) {
  --side: 1;
  --deal-delay: 160ms;
  --deal-x: calc(var(--side) * -1 * clamp(3rem, 11vw, 9rem));
  --deal-rotation: calc(var(--side) * -4deg);
  --compact-player-height: 152px;
  position: absolute;
  top: 2.5rem;
  right: .7rem;
  width: 25%;
  transform: rotate(calc(var(--side) * 4deg));
  transition: transform .3s ease;
}

.release-item[data-slot="left"] {
  --side: -1;
  --deal-delay: 85ms;
  right: auto;
  left: .7rem;
}

.release-players:not([data-interactive]) .release-item:not([data-slot="main"]) { display: none; }

@media (hover: hover) {
  .release-players:hover .release-item:not([data-slot="main"]) {
    transform: translateX(calc(var(--side) * 1rem)) rotate(calc(var(--side) * 5deg));
  }
}

.release-players:focus-within .release-item:not([data-slot="main"]) {
  transform: translateX(calc(var(--side) * 1rem)) rotate(calc(var(--side) * 5deg));
}

@media (prefers-reduced-motion: reduce) {
  .release-item:not([data-slot="main"]) { transition: none; }
}

.release-item .spotify-player { background: #181818; }
.release-item:not([data-slot="main"]) .spotify-player { height: var(--compact-player-height); }

.release-switch {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  border-radius: .75rem;
  background: none;
  cursor: pointer;
}

.release-switch[hidden] { display: none; }

.spotify-player {
  display: block;
  width: 100%;
  border: 0;
  border-radius: .75rem;
  background: transparent;
  color-scheme: normal;
}

.writing-section {
  border-top: 1px solid var(--rule);
  background: #211916;
}

.novel-feature {
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 34rem);
  justify-content: center;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5.5rem);
}

.novel-cover {
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: .875rem;
}

.novel-feature h3 {
  margin-top: .55rem;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 1.05;
}

.novel-excerpt {
  margin: 1.4rem 0 0;
  padding-inline-start: 1.2rem;
  border-inline-start: 1px solid var(--gold);
  color: var(--quiet);
}

.novel-excerpt blockquote {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.65;
}

.novel-excerpt figcaption { margin-top: .75rem; font-size: .95rem; }

.story-hero { min-height: clamp(23rem, 47vw, 38rem); }
.story-hero .section-label { margin-bottom: 1.25rem; }

.reading-column {
  width: min(39rem, 84%);
  margin-inline: auto;
  padding-block: clamp(2.5rem, 6vw, 5rem);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.72;
}

.reading-column > p + p { margin-top: 1em; }
.reading-column .text-link { margin-top: 1.75rem; }

.redirect-page main { width: min(36rem, 88%); margin: 4rem auto; }

@media (max-width: 740px) {
  .site-header nav { row-gap: 0; padding-block: .3rem; }
  .language-switch {
    position: static;
    grid-row: 1;
    grid-column: 1 / -1;
    justify-self: end;
    transform: none;
  }
  .release-players[data-interactive] { padding-top: 5.75rem; }
  .release-item[data-slot="main"] { width: 100%; }
  .release-item:not([data-slot="main"]) {
    --deal-x: calc(var(--side) * -3.75rem);
    --deal-y: 4.25rem;
    top: .55rem;
    right: .6rem;
    width: 47%;
  }
  .release-item[data-slot="left"] { right: auto; left: .6rem; }
  .release-switch {
    inset-block-end: auto;
    height: 4.5rem;
  }
  .release-switch::after {
    position: absolute;
    inset: 0 0 auto;
    height: var(--compact-player-height);
    content: "";
  }
  .release-players:hover .release-item:not([data-slot="main"]),
  .release-players:focus-within .release-item:not([data-slot="main"]) {
    transform: translateY(-.33rem) rotate(calc(var(--side) * 4deg));
  }
}

@media (max-width: 650px) {
  .wrap, .site-header nav { width: 90%; }

  .nav-links a { font-size: .82rem; letter-spacing: .025em; }
  .collaborators { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 21rem; }
  .footer-identity {
    min-height: 19rem;
    padding-block: 1.5rem 4.5rem;
    background-size: 100% 65%, auto 80%;
  }

  .hero {
    min-height: 34rem;
    align-items: end;
    background:
      linear-gradient(0deg, var(--paper) 2%, #171310c7 31%, #17131021 67%, transparent 88%),
      var(--art) 70% center / cover no-repeat;
  }

  .hero h1 { font-size: clamp(3.6rem, 12vw, 5rem); }
  .hero--forest { min-height: clamp(27rem, 118vw, 34rem); }
  .hero--forest h1 { font-size: clamp(3rem, 14.5vw, 5rem); }
  .hero-inner { padding-block: 4rem 2.4rem; }
  .story-hero { min-height: 25rem; }

  .artist-section {
    --about-shade: linear-gradient(180deg, #15110f08 10%, #15110f32 36%, #15110fda 68%);
    background-position: center, 12% center;
  }

  .artist-bio, .novel-feature { grid-template-columns: minmax(0, 1fr); }
  .artist-portrait, .novel-cover { width: min(100%, 15rem); }

}

@media (max-width: 355px) {
  .site-header nav { column-gap: .4rem; }
  .nav-links { gap: .4rem; }
  .nav-links a { font-size: .78rem; letter-spacing: .025em; }
  .music-heading { column-gap: .6rem; }
  .music-heading .text-link { font-size: .8rem; letter-spacing: .04em; }
}
