:root {
  --night-950: #040609;
  --night-900: #07090e;

  --gold-200: #f6e7bd;
  --gold-300: #efd89b;
  --gold-400: #e0bf7a;
  --gold-500: #c9a35c;
  --gold-600: #9a7839;

  --parchment: #ece4d2;
  --text: #d6cdb9;
  --text-muted: #a0988a;
  --line: rgba(201, 163, 92, 0.26);

  --font-title: "Uncial Antiqua", "Cinzel", Georgia, serif;
  --font-display: "Cinzel", Georgia, "Times New Roman", serif;
  --font-body: "Cormorant Garamond", Garamond, Georgia, serif;

  --container: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-space: clamp(5rem, 11vw, 8.5rem);
  --header-h: 4.5rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--night-900);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 0.35vw + 1.05rem, 1.3rem);
  font-weight: 500;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.03em;
  color: var(--parchment);
  text-wrap: balance;
}

p {
  margin: 0 0 1.2em;
  text-wrap: pretty;
}

a {
  color: var(--gold-300);
  text-underline-offset: 0.2em;
}

::selection {
  background: rgba(201, 163, 92, 0.35);
  color: #fff;
}

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

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.nowrap {
  white-space: nowrap;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  border: 1px solid var(--gold-500);
  background: var(--night-950);
  color: var(--gold-300);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  transform: translateY(-200%);
  transition: transform 0.3s var(--ease-out);
}

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

.overline {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-500);
}

.text-gold {
  background: linear-gradient(180deg, var(--gold-200) 10%, var(--gold-400) 50%, var(--gold-600) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--gold-500);
}

.ornament::before,
.ornament::after {
  content: "";
  width: min(7rem, 22vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
}

.ornament::after {
  transform: scaleX(-1);
}

.ornament svg {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.15em 2.5em;
  border: 1px solid rgba(224, 191, 122, 0.6);
  background:
    linear-gradient(110deg, transparent 38%, rgba(246, 231, 189, 0.22) 50%, transparent 62%) 110% 0 / 250% 100% no-repeat,
    linear-gradient(180deg, rgba(30, 24, 12, 0.55), rgba(7, 9, 14, 0.8));
  box-shadow:
    inset 0 0 0 4px rgba(7, 9, 14, 0.85),
    inset 0 0 0 5px rgba(224, 191, 122, 0.22),
    0 0 24px rgba(201, 163, 92, 0.1);
  color: var(--gold-200);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.26em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color 0.4s,
    border-color 0.4s,
    box-shadow 0.5s,
    background-position 1s var(--ease-out);
}

.btn::before,
.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold-400);
  background: var(--night-900);
  transform: translate(-50%, -50%) rotate(45deg);
  transition: background-color 0.4s, box-shadow 0.4s;
}

.btn::before {
  left: 0;
}

.btn::after {
  left: 100%;
}

.btn:hover,
.btn:focus-visible {
  border-color: var(--gold-300);
  background-position: -10% 0, 0 0;
  box-shadow:
    inset 0 0 0 4px rgba(7, 9, 14, 0.85),
    inset 0 0 0 5px rgba(239, 216, 155, 0.45),
    0 0 36px rgba(201, 163, 92, 0.28),
    0 0 90px rgba(159, 227, 216, 0.08);
  color: #fff8e4;
}

.btn:hover::before,
.btn:hover::after,
.btn:focus-visible::before,
.btn:focus-visible::after {
  background-color: var(--gold-300);
  box-shadow: 0 0 10px var(--gold-300);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.45;
  pointer-events: none;
}

@media (max-width: 26rem) {
  .btn {
    padding-inline: 1.6em;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
  }
}

.btn-group {
  display: grid;
  gap: 0.6rem;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.btn-group__or {
  align-self: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1;
  text-align: center;
}

@media (min-width: 48rem) {
  .btn-group {
    grid-template-columns: 1fr auto 1fr;
    gap: 1.25rem;
  }
}

.text-link {
  position: relative;
  display: inline-block;
  padding: 0.4rem 0;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.24em;
  bottom: 0.15rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

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

.text-link:hover::after {
  transform: scaleX(1);
}

.card {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(19, 27, 39, 0.85), rgba(8, 11, 17, 0.6));
}

.card::before,
.card::after {
  content: "";
  position: absolute;
  width: 1.4rem;
  height: 1.4rem;
  border: 1px solid var(--gold-400);
  pointer-events: none;
}

.card::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.card::after {
  right: -1px;
  bottom: -1px;
  border-left: 0;
  border-top: 0;
}

.frame {
  position: relative;
  margin: 0;
  padding: 0.75rem;
  border: 1px solid var(--line);
}

.frame::before {
  content: "";
  position: absolute;
  inset: -0.55rem;
  border: 1px solid rgba(201, 163, 92, 0.12);
  pointer-events: none;
}

.frame img,
.frame__placeholder {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.frame__placeholder {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.25rem;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(159, 227, 216, 0.08), transparent 60%),
    linear-gradient(160deg, #111a26, #070a0f);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.frame__placeholder svg {
  width: 7rem;
  height: 7rem;
  color: var(--gold-500);
  opacity: 0.3;
  --triskell-stroke: 3;
  --triskell-ring: 1.5;
}

.dropcap::first-letter {
  float: left;
  margin: 0.06em 0.14em 0 0;
  color: var(--gold-400);
  font-family: var(--font-title);
  font-size: 4.1em;
  line-height: 0.8;
  text-shadow: 0 0 22px rgba(201, 163, 92, 0.35);
}

.facts {
  display: grid;
  gap: 0.9rem;
  margin: 2.25rem 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.facts div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
}

.facts dt {
  color: var(--gold-500);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.facts dd {
  margin: 0;
  color: var(--parchment);
}

@media (max-width: 30rem) {
  .facts div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}

.mist {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200%;
  height: var(--mist-height, 60%);
  background: url("../assets/images/brume.svg") 0 100% / 50% 100% repeat-x;
  opacity: var(--mist-opacity, 0.35);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 35%, transparent);
  mask-image: linear-gradient(to top, #000 35%, transparent);
  animation: mist-drift var(--mist-speed, 110s) linear infinite;
}

.mist--front {
  --mist-height: 40%;
  --mist-opacity: 0.4;
  --mist-speed: 65s;
  background-position: 37% 100%;
  background-size: 50% 150%;
}

@keyframes mist-drift {
  to {
    transform: translateX(-50%);
  }
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
  padding-inline: var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color 0.5s, border-color 0.5s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background-color: rgba(5, 7, 11, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gold-400);
  font-family: var(--font-title);
  font-size: 1.3rem;
  line-height: 1;
  text-decoration: none;
  transition: color 0.3s;
}

.brand svg {
  flex: none;
  width: 2.1rem;
  height: 2.1rem;
  transition: transform 1.2s var(--ease-out);
}

.brand:hover {
  color: var(--gold-200);
}

.brand:hover svg {
  transform: rotate(120deg);
}

.site-nav ul {
  display: flex;
  gap: clamp(1.1rem, 3vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  position: relative;
  display: block;
  padding: 0.5rem 0;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.3s;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.22em;
  bottom: 0.2rem;
  height: 1px;
  background: var(--gold-400);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-out);
}

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

.site-nav a:hover::after,
.site-nav a[aria-current]::after {
  transform: scaleX(1);
}

@media (max-width: 30rem) {
  .brand__name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .site-header {
    gap: 1rem;
  }

  .site-nav ul {
    gap: 0.9rem;
  }

  .site-nav a {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }

  .site-nav a::after {
    right: 0.08em;
  }
}

@media (max-width: 23.5rem) {
  .site-header {
    gap: 0.75rem;
  }

  .brand svg {
    width: 1.75rem;
    height: 1.75rem;
  }

  .site-nav ul {
    gap: 0.6rem;
  }

  .site-nav a {
    font-size: 0.65rem;
    letter-spacing: 0.06em;
  }

  .site-nav a::after {
    right: 0.06em;
  }
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-200));
  box-shadow: 0 0 10px rgba(239, 216, 155, 0.55);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

.site-footer {
  padding: 3rem var(--gutter);
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.page-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 88vh;
  min-height: 88svh;
  padding: calc(var(--header-h) + 3rem) 0 7rem;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.page-hero__scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 55% 45% at 50% 42%, rgba(159, 227, 216, 0.07), transparent 70%),
    linear-gradient(to bottom, #04060a 0%, #09101a 55%, #0c1a23 80%, var(--night-900) 100%);
}

.page-hero__scene::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(to bottom, transparent, var(--night-900));
}

.page-hero__image {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
}

.page-hero__wisps {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-hero .mist--back {
  --mist-height: 55%;
}

.page-hero__content > * {
  animation: rise 1.4s var(--ease-out) both;
}

.page-hero__content > :nth-child(1) { animation-delay: 0.5s; }
.page-hero__content > :nth-child(2) { animation-delay: 0.7s; }
.page-hero__content > :nth-child(3) { animation-delay: 1s; }
.page-hero__content > :nth-child(4) { animation-delay: 1.2s; }
.page-hero__content > :nth-child(5) { animation-delay: 1.4s; }

.page-hero__title {
  font-family: var(--font-title);
  font-size: clamp(2.6rem, 8vw, 6rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
  background-size: 100% 1.05em;
  filter: drop-shadow(0 0 26px rgba(201, 163, 92, 0.25));
}

.album__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4em;
  font-weight: 400;
}

.album__title-small {
  padding-left: 0.5em;
  color: var(--gold-500);
  font-family: var(--font-display);
  font-size: clamp(0.8rem, 1.3vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.5em;
  text-transform: uppercase;
}

.album__title-main {
  padding: 0 0.06em 0.1em;
  font-family: var(--font-title);
  font-size: clamp(2rem, 10vw, 5rem);
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  filter: drop-shadow(0 0 24px rgba(201, 163, 92, 0.25));
}

.album__title-volume {
  padding-left: 0.32em;
  color: var(--gold-400);
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.page-hero__lead {
  max-width: 38rem;
  margin: 1.75rem auto 0;
  color: rgba(236, 228, 210, 0.85);
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-style: italic;
  line-height: 1.6;
}

.page-hero__action {
  margin-top: 2.5rem;
}

.scroll-hint {
  position: absolute;
  left: calc(50% - 1.5rem);
  bottom: 1.5rem;
  width: 3rem;
  height: 5rem;
  animation: rise 1.4s var(--ease-out) 1.6s both;
}

.scroll-hint::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold-600));
}

.scroll-hint::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.5rem;
  width: 5px;
  height: 5px;
  background: var(--gold-300);
  box-shadow: 0 0 8px var(--gold-300);
  animation: scroll-hint 2.4s var(--ease-in-out) infinite;
}

@keyframes scroll-hint {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) rotate(45deg);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 3.5rem) rotate(45deg);
  }
}

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

.section-heading {
  max-width: 44rem;
  margin: 0 auto clamp(3rem, 7vw, 5rem);
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2.1rem, 4.5vw, 3.3rem);
}

.section-heading .ornament {
  margin-top: 1.4rem;
}

.page-veil {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: radial-gradient(ellipse at 50% 45%, #0b121b 0%, var(--night-950) 70%);
  opacity: 0;
  pointer-events: none;
  animation: veil-lift 1.6s var(--ease-out) both;
}

.is-leaving .page-veil {
  animation: veil-fall 0.9s var(--ease-in-out) both;
}

@keyframes veil-lift {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes veil-fall {
  from { opacity: 0; }
  to { opacity: 1; }
}

.js .reveal {
  opacity: 0;
  transform: translateY(2.5rem);
  transition:
    opacity 1.2s var(--ease-out),
    transform 1.2s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
