:root {
  color-scheme: dark;
  --section-ink: #f3f4f0;
  --section-muted: rgba(243, 244, 240, 0.66);
  --section-line: rgba(243, 244, 240, 0.18);
  --section-accent: #a6fff2;
  --section-hot: #ff5c8a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.section-page {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #050606;
  color: var(--section-ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.section-page a { color: inherit; text-decoration: none; }

.section-topbar {
  position: absolute;
  z-index: 5;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 14px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(3,4,5,0.72), transparent);
}

.section-brand,
.section-nav { display: inline-flex; align-items: center; }

.section-brand { gap: 10px; font-size: 0.84rem; font-weight: 900; }

.section-brand img { width: 36px; height: 36px; border: 1px solid var(--section-line); border-radius: 7px; }

.section-nav { gap: clamp(12px, 2vw, 26px); color: var(--section-muted); font-size: 0.8rem; font-weight: 800; text-transform: uppercase; }

.section-nav a { padding: 9px 0; transition: color 180ms ease; }
.section-nav a:hover,
.section-nav a[aria-current="page"] { color: var(--section-accent); }

.editorial-hero {
  position: relative;
  isolation: isolate;
  min-height: 78svh;
  display: flex;
  align-items: center;
  padding: 116px clamp(20px, 7vw, 110px) 76px;
  overflow: hidden;
}

.editorial-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(3,4,5,0.96) 0%, rgba(3,4,5,0.77) 38%, rgba(3,4,5,0.17) 100%), linear-gradient(0deg, #050606 0%, transparent 48%);
}

.editorial-atmosphere {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  opacity: 0.68;
}

.editorial-intro { width: min(660px, 100%); }

.section-kicker {
  margin: 0 0 18px;
  color: var(--section-accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editorial-intro h1,
.studio-opening h1 {
  margin: 0;
  font-size: clamp(3.5rem, 8vw, 7.8rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
}

.editorial-intro > p:not(.section-kicker) {
  max-width: 480px;
  margin: 24px 0 28px;
  color: var(--section-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.section-cta {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--section-accent);
  color: var(--section-ink);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section-cta span { color: var(--section-accent); font-size: 1.2rem; }

.hero-index {
  position: absolute;
  right: clamp(20px, 4vw, 56px);
  bottom: 56px;
  color: rgba(243,244,240,0.45);
  font-size: 0.7rem;
  font-weight: 800;
}

.books-section {
  position: relative;
  padding: 20px clamp(16px, 4vw, 56px) 110px;
  background: linear-gradient(180deg, #050606, #090b0b 46%, #050606);
}

.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading .section-kicker { margin: 0; }
.section-heading h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3.1rem); line-height: 1; text-transform: uppercase; }

.books-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }

.book-item {
  --book-accent: #b8fff2;
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 8px 8px 16px;
  perspective: 1000px;
  transition: background 220ms ease;
}

.book-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  isolation: isolate;
  transform: rotateY(-7deg) translateZ(0);
  transform-origin: left center;
  border-radius: 2px 5px 5px 2px;
  background: #08090a;
  box-shadow: -7px 8px 0 -3px rgba(10,10,10,.95), -11px 15px 26px rgba(0,0,0,.58), 0 10px 26px rgba(0,0,0,.42);
  transition: transform 420ms cubic-bezier(.18,.75,.18,1), box-shadow 420ms ease;
}

.book-cover::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 0;
  width: 12px;
  background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(255,255,255,.22) 38%, rgba(0,0,0,.2));
  box-shadow: 2px 0 5px rgba(0,0,0,.34);
  pointer-events: none;
}

.book-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px 5px 5px 2px;
  backface-visibility: hidden;
}

.book-spine {
  position: absolute;
  z-index: -1;
  top: 3px;
  bottom: 3px;
  left: -7px;
  width: 8px;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(90deg, #17191a, #777 42%, #242526);
  transform: skewY(-1deg);
  box-shadow: inset 1px 0 rgba(255,255,255,.4);
}

.book-item:hover .book-cover,
.book-item:focus-visible .book-cover {
  transform: rotateY(-15deg) translateY(-7px) translateZ(10px);
  box-shadow: -8px 9px 0 -3px rgba(10,10,10,.95), -17px 23px 34px rgba(0,0,0,.68), 0 0 24px color-mix(in srgb, var(--book-accent) 28%, transparent);
}

.book-two { --book-accent: #ff85a8; }
.book-three { --book-accent: #ebd37b; }
.book-four { --book-accent: #98ddff; }
.book-five { --book-accent: #d4aaff; }

.book-details { display: grid; gap: 9px; padding: 0 7px; }
.book-number { color: var(--book-accent); font-size: 0.68rem; font-weight: 900; text-transform: uppercase; }
.book-item strong { max-width: 100%; font-size: clamp(1.05rem, 1.6vw, 1.45rem); line-height: 0.98; text-transform: uppercase; }
.book-link { margin-top: 3px; color: var(--book-accent); font-size: 0.7rem; font-weight: 900; text-transform: uppercase; }

.studio-page {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.028) 1px, transparent 1px),
    radial-gradient(ellipse at 82% 58%, rgba(255,82,122,0.11), transparent 32%),
    #050606 !important;
  background-size: 64px 64px, 64px 64px, auto !important;
}

.studio-opening {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 130px clamp(22px, 9vw, 140px) 80px;
  overflow: hidden;
}

.studio-opening h1 { font-size: clamp(4rem, 11vw, 10rem); }
.studio-opening h1 span { color: transparent; -webkit-text-stroke: 1px rgba(243,244,240,0.7); }

.opening-place {
  position: absolute;
  right: clamp(22px, 11vw, 170px);
  bottom: clamp(80px, 15vh, 150px);
  display: grid;
  gap: 10px;
  padding-left: 18px;
  border-left: 2px solid var(--section-hot);
}

.opening-place span { color: var(--section-hot); font-size: 0.75rem; font-weight: 900; text-transform: uppercase; }
.opening-place strong { font-size: clamp(1.2rem, 2.2vw, 2rem); line-height: 1.08; text-transform: uppercase; }
.opening-line { position: absolute; left: 0; right: 0; bottom: 40px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent); }

@media (max-width: 900px) {
  .books-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .editorial-hero { min-height: 72svh; }
}

@media (max-width: 620px) {
  .section-topbar { min-height: 62px; padding: 10px 12px; gap: 8px; }
  .section-brand { gap: 6px; font-size: 0.68rem; }
  .section-brand img { width: 30px; height: 30px; }
  .section-nav { gap: 10px; font-size: 0.65rem; }
  .editorial-hero { min-height: 72svh; align-items: flex-end; padding: 110px 18px 66px; }
  .editorial-hero::after { background: linear-gradient(0deg, rgba(3,4,5,0.98) 0%, rgba(3,4,5,0.68) 58%, rgba(3,4,5,0.2) 100%); }
  .editorial-atmosphere { object-position: 68% center; }
  .editorial-intro h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .editorial-intro > p:not(.section-kicker) { margin: 17px 0 18px; font-size: 0.95rem; }
  .hero-index { right: 18px; bottom: 22px; }
  .books-section { padding: 24px 14px 72px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .books-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .book-item { padding: 5px 5px 13px; gap: 11px; }
  .book-item strong { font-size: clamp(1rem, 5vw, 1.35rem); }
  .book-details { gap: 7px; padding: 0 4px; }
  .book-link { font-size: 0.63rem; }
  .studio-opening { min-height: 92svh; padding: 110px 18px 50px; }
  .studio-opening h1 { font-size: clamp(4rem, 20vw, 6.5rem); }
  .opening-place { position: relative; right: auto; bottom: auto; margin-top: 54px; margin-left: 5px; }
}
