@font-face {
  font-family: "Charter-Roman";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/Charter-Roman/font.ttf") format("truetype");
}

@font-face {
  font-family: "Cousine-Regular-Latin";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/Cousine-Regular-Latin/font.ttf") format("truetype");
}

:root {
  --bg: #000;
  --text: #fff;
  --muted: #bdbdbd;
  --line: rgba(255, 255, 255, 0.18);
  --panel: rgba(255, 255, 255, 0.02);
  --button: #ccc;
  --button-text: #3f3c03;
  --button-hover: #fff;
  --content-width: 1180px;
  --size-large: 1.6rem;
  --size-base: 1.1rem;
  --lh-large: 1.15;
  --lh-base: 1.42;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 6%, rgba(210, 180, 120, 0.08), transparent 22%),
    radial-gradient(circle at 84% 10%, rgba(155, 155, 155, 0.06), transparent 18%),
    #000;
  font-family: "Charter-Roman", Georgia, serif;
  line-height: var(--lh-base);
}

img,
video {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page-shell {
  width: min(100%, calc(var(--content-width) + 2.5rem));
  margin: 0 auto;
  padding: 0.7rem 1.25rem 2.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.4rem 0 0.8rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.7));
  backdrop-filter: blur(10px);
}

.header-topline,
.header-navline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.header-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 1rem;
}

.header-navline {
  margin-top: 0.35rem;
  justify-content: flex-end;
}

.brand {
  font-family: "Charter-Roman", Georgia, serif;
  font-size: var(--size-base);
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: var(--lh-base);
  justify-self: start;
  white-space: nowrap;
}

.site-nav,
.header-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
}

.site-nav {
  justify-content: center;
  min-width: 0;
  justify-self: center;
}

.site-nav a,
.footer-links a {
  color: var(--muted);
  font-size: var(--size-base);
  line-height: var(--lh-base);
}

.footer-separator {
  color: var(--muted);
  font-size: var(--size-base);
  line-height: var(--lh-base);
}

.site-nav a:hover,
.footer-links a:hover,
.brand:hover {
  color: #fff;
}

.language-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  justify-self: end;
  gap: 0.15rem 0.25rem;
}

.language-switcher button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  cursor: pointer;
  font-family: "Charter-Roman", Georgia, serif;
  font-size: var(--size-base);
  letter-spacing: 0.08em;
  line-height: var(--lh-base);
}

.language-switcher button::after {
  content: "/";
  margin-left: 0.25rem;
  color: rgba(255, 255, 255, 0.28);
}

.language-switcher button:last-child::after {
  content: "";
  margin: 0;
}

.language-switcher button:hover,
.language-switcher button[aria-pressed="true"] {
  color: #fff;
}

@media (max-width: 1000px) {
  .header-topline {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .brand,
  .site-nav,
  .language-switcher {
    justify-self: auto;
  }

  .brand,
  .site-nav,
  .language-switcher,
  .site-nav a,
  .language-switcher button {
    line-height: var(--lh-base);
  }

  .site-nav,
  .language-switcher {
    justify-content: flex-start;
  }
}

.hero,
.section {
  margin-top: 0;
}

.hero {
  padding-top: 0.7rem;
}

.hero-stage,
.book-cover-stage {
  width: min(100%, 66%);
  margin: 0 auto;
}

.hero-stage video,
.book-cover-stage img {
  background: #000;
}

.section {
  padding: 0;
}

.section-copy {
  width: min(100%, 100%);
  padding-top: 1.5rem;
}

.section-heading {
  margin-bottom: 1rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: #fff;
  font-family: "Charter-Roman", Georgia, serif;
  font-size: var(--size-base);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: var(--lh-base);
}

.hero-kicker {
  display: inline;
  margin-bottom: 0.5rem;
}

.hero-kicker::after {
  content: " ";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.7rem;
  font-family: "Charter-Roman", Georgia, serif;
  font-size: var(--size-large);
  font-weight: 400;
  line-height: var(--lh-large);
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0.65rem;
  font-family: "Charter-Roman", Georgia, serif;
  font-size: var(--size-large);
  font-weight: 400;
  line-height: var(--lh-large);
}

h3 {
  margin-bottom: 0.35rem;
  font-size: var(--size-base);
  font-weight: 400;
  text-transform: uppercase;
  line-height: var(--lh-base);
}

.hero-subtitle,
.hero-intro,
.hero-lead,
.hero-tail,
.detail-card p,
.edition-card p {
  font-family: "Charter-Roman", Georgia, serif;
  font-size: var(--size-base);
  line-height: var(--lh-base);
}

.hero-subtitle {
  margin-bottom: 0.55rem;
}

.hero-intro {
  max-width: none;
  margin-bottom: 0;
}

.hero-lead {
  display: inline;
  margin: 0;
  padding: 0;
  color: #fff;
}

.hero-tail {
  margin: 1.15rem 0 0;
  padding: 0;
  color: var(--muted);
}

.hero-facts-inline,
.muted,
.site-footer {
  color: var(--muted);
}

.hero-facts-inline {
  margin-top: 1.15rem;
  font-size: var(--size-base);
  line-height: var(--lh-base);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0.6rem 1.5rem;
  border: 0;
  border-radius: 3px;
  background: var(--button);
  color: var(--button-text);
  font-family: "Charter-Roman", Georgia, serif;
  font-size: var(--size-base);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: var(--lh-base);
  white-space: nowrap;
  transition: 180ms ease;
}

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

.button-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.gallery-section {
  padding-top: 3rem;
}

.gallery-carousel {
  position: relative;
  width: min(100%, 83.3333%);
  margin: 0 auto;
}

.carousel-track {
  position: relative;
  min-height: 330px;
}

.carousel-slide {
  display: none;
  margin: 0;
}

.carousel-slide.is-active {
  display: block;
}

.carousel-slide img {
  width: 100%;
  max-height: 600px;
  object-fit: contain;
}

.carousel-control {
  position: absolute;
  top: 50%;
  width: 60px;
  height: 60px;
  margin-top: -30px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: var(--size-large);
  line-height: var(--lh-large);
  cursor: pointer;
  transition: 180ms ease;
}

.carousel-control:hover {
  background: #1b1b1b;
}

.carousel-prev {
  left: 0;
  transform: translateX(-2.5rem);
}

.carousel-next {
  right: 0;
  transform: translateX(2.5rem);
}

.cover-section {
  padding-top: 2.4rem;
  padding-bottom: 0.5rem;
}

.detail-grid,
.edition-grid {
  display: grid;
  column-gap: 2rem;
  row-gap: 0;
}

.detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.detail-card,
.edition-card {
  padding: 0.9rem 0;
  background: transparent;
  min-width: 0;
}

.detail-card {
  border-top: 1px solid rgba(239, 239, 239, 0.7);
}

.detail-card p {
  color: var(--muted);
}

.edition-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.edition-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(239, 239, 239, 0.7);
}

.edition-card h3 {
  margin-bottom: 0.35rem;
  color: #fff;
}

.edition-copy {
  margin: 0;
  padding: 0;
  font-family: "Charter-Roman", Georgia, serif;
  font-size: var(--size-base);
  line-height: var(--lh-base);
  color: var(--muted);
}

.edition-actions {
  margin-top: 0.5rem;
  margin-bottom: calc(1em * var(--lh-base));
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem 1rem;
  padding-top: 2rem;
  font-size: var(--size-base);
  line-height: var(--lh-base);
  text-transform: uppercase;
}

.footer-copy {
  margin: 0;
}

#editions {
  padding-top: 3rem;
}

@media (max-width: 991px) {
  .gallery-carousel {
    width: min(100%, 92%);
  }

  .carousel-track {
    min-height: 390px;
  }

  .carousel-slide img {
    max-height: 390px;
  }
}

@media (max-width: 768px) {
  .page-shell {
    padding: 0.7rem 0.85rem 2rem;
  }

  .header-navline,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .language-switcher,
  .header-actions {
    justify-content: flex-start;
  }

  .hero-stage,
  .book-cover-stage,
  .gallery-carousel {
    width: 100%;
  }

  .carousel-track {
    min-height: 330px;
  }

  .carousel-slide img {
    max-height: 330px;
  }

  .carousel-control {
    top: auto;
    bottom: 1rem;
    width: 46px;
    height: 46px;
    margin-top: 0;
    font-size: var(--size-large);
  }

  .carousel-prev {
    left: 0.75rem;
    transform: none;
  }

  .carousel-next {
    right: 0.75rem;
    transform: none;
  }

  .header-actions {
    display: none;
  }

  .footer-copy {
    display: none;
  }

  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .edition-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
