:root {
  color-scheme: dark;
  --bg: #070b1c;
  --surface: #10172e;
  --surface-hi: #142143;
  --text: #f3f5ff;
  --muted: #b7c4e0;
  --accent: #c1eaff;
  --violet: #c5b7ff;
  --line: #2b3c69;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box }
[hidden] { display: none !important }
html { scroll-behavior: smooth; scroll-padding-top: 6rem }
body {
  margin: 0;
  background: radial-gradient(ellipse at 86% 30%, #15235b88, transparent 37rem), var(--bg);
  color: var(--text);
  font: 16px/1.58 "Segoe UI", system-ui, sans-serif;
}
a { color: inherit; text-underline-offset: .25em }
a:hover { color: var(--accent) }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; letter-spacing: -.045em; text-wrap: balance }
h1 { font-size: clamp(2.55rem, 6vw, 5.2rem); margin: .25em 0; font-weight: 750 }
h2 { font-size: clamp(1.95rem, 4vw, 3.2rem); margin: .4em 0 .65em; font-weight: 720 }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.85rem); margin: .4em 0; font-weight: 700 }
p { margin: .65em 0 1em }
header, footer {
  margin: auto;
  padding: .8rem clamp(1.05rem, 4.7vw, 5.2rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
}
header {
  position: sticky;
  top: 0;
  z-index: 4;
  min-height: 71px;
  background: #070b1ce8;
  border-bottom: 1px solid #809df742;
  backdrop-filter: blur(18px);
}
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; min-height: 85px }
nav { display: flex; flex-wrap: wrap; gap: .35rem clamp(.35rem, 1.2vw, 1.05rem) }
nav a {
  text-decoration: none;
  padding: .36rem .68rem;
  color: var(--muted);
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
nav a:hover { background: #25335e; color: var(--text) }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-height: 44px;
  text-decoration: none;
  white-space: nowrap;
  font: 760 1.12rem/1 var(--display);
  letter-spacing: .13em;
}
.brand img { display: block; flex: none; filter: drop-shadow(0 0 13px #517cff60) }
.brand b { color: #a8c0ff; font-weight: 550; letter-spacing: .19em }
.eyebrow { color: var(--accent); text-transform: uppercase; font-size: .83rem; letter-spacing: .16em; font-weight: 650 }
main { width: min(1410px, 100%); margin: auto; padding: 2rem clamp(1.05rem, 4.7vw, 5.2rem) 4rem; min-height: 73vh }
section { margin-bottom: clamp(2.8rem, 6.5vw, 6rem) }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: clamp(400px, 53vw, 620px);
  padding: clamp(1.55rem, 6vw, 5.5rem);
  border: 1px solid #6889ec70;
  border-radius: clamp(20px, 3vw, 38px);
  background: #0c1434;
  box-shadow: 0 30px 95px #010416b8, inset 0 0 50px #4667ff27;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -2%;
  background: url("hero.webp") 70% 51% / cover no-repeat;
  animation: lift-book 16s ease-in-out infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #060a21e8 0%, #090e26cb 33%, #11174d33 66%, transparent 92%);
  pointer-events: none;
}
.hero-copy { animation: arrive .68s cubic-bezier(.15,.55,.31,1) both }
.hero h1 { font-size: clamp(3rem, 6.5vw, 6.6rem); font-weight: 760; margin: 0 0 .23em; letter-spacing: -.058em }
.hero h1 em {
  color: #c7e9ff;
  font: italic 400 .93em/.98 var(--serif);
  letter-spacing: -.061em;
  text-shadow: 0 5px 35px #748aff85;
}
.hero p { font-size: clamp(1.02rem, 2vw, 1.23rem); color: #e1e9ff; margin: .9em 0 1.55em; max-width: 29rem }
.button, button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  color: #0b1536;
  background: linear-gradient(115deg,#c7f1ff,#a6c4ff 49%,#c6b3ff);
  border: 1px solid #cfe1ff;
  border-radius: 999px;
  padding: .66rem 1.2rem;
  text-decoration: none;
  font: 730 .98rem/1.25 var(--display);
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
.button:hover, button:hover { color: #0b1536; transform: translateY(-2px); box-shadow: 0 0 26px #a5baff5a; filter: brightness(1.08) }
.hero .button { padding: .85rem 1.43rem; box-shadow: 0 0 29px #647dff61 }
.hero .button::after {
  content: ""; position: absolute; inset: 0; width: 35%;
  transform: translateX(-130%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, #fff8, transparent);
  animation: sheen 6s ease-in-out infinite;
  pointer-events: none;
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, textarea:focus-visible {
  outline: 2px solid #def7ff;
  outline-offset: 3px;
}
.cards, .metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: clamp(.85rem, 1.8vw, 1.5rem) }
.metrics { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)) }
.card, .paper {
  background: linear-gradient(145deg,#142042,#0e132b 74%);
  border: 1px solid var(--line);
  border-radius: 21px;
}
.card {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, .87fr) minmax(0, 1fr);
  min-height: 285px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card:hover, .card:focus-within { transform: translateY(-5px); border-color: #93adf9; box-shadow: 0 19px 42px #050818c9 }
.cardbody { align-self: center; padding: 1.2rem clamp(.8rem, 2vw, 1.65rem) 1.2rem .85rem }
.cardbody h3 a { text-decoration: none }
.cardbody p { margin: .25em 0 .7em }
.price { font-weight: 740; color: #d7edff; font-variant-numeric: tabular-nums }
.card-action { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 650 }
.jacket {
  display: grid; place-items: center; min-height: 250px;
  background: radial-gradient(ellipse at 52% 47%,#4869ac80,#0e153163 73%);
  padding: 1.05rem;
  text-decoration: none;
}
.jacket img { display: block; width: auto; max-width: 100%; max-height: 250px; height: auto; object-fit: contain; border-radius: 4px; filter: drop-shadow(0 15px 11px #000b); transition: transform .38s cubic-bezier(.18,.63,.24,1) }
.card:hover .jacket img { transform: scale(1.045) rotate(-1.3deg) }
.paper { padding: clamp(1.05rem,2.4vw,1.8rem); margin-bottom: 1rem }
.product { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); gap: clamp(1.5rem,5vw,5rem); align-items: center; padding-top: 1rem }
.product-cover { width: min(320px,100%); height: auto; justify-self: center; border-radius: 7px; box-shadow: 0 21px 65px #435ec557 }
.product .jacket { border-radius: 20px; padding: 1.8rem }
.product .jacket img { max-height: 455px }
form { display: flex; flex-direction: column; align-items: stretch; gap: .8rem; margin: .85rem 0 1.25rem; max-width: 720px }
.filters { display: flex; flex-flow: row wrap; gap: .85rem; align-items: end; max-width: none; margin-bottom: 1.5rem }
.filters label:first-child { flex: 1; min-width: 175px }
label { display: flex; flex-direction: column; gap: .32rem; color: var(--muted); font-weight: 550 }
input, textarea, select {
  width: 100%; padding: .55rem .8rem;
  border: 1px solid #41558a; background: #0d1530; color: var(--text);
  border-radius: 11px; font: inherit; min-height: 44px;
}
input::placeholder, textarea::placeholder { color: #a1afcc }
textarea { resize: vertical }
select { appearance: none; padding-right: 2.2rem; background-image: linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%); background-position: calc(100% - 15px) 50%,calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat }
label.check { flex-direction: row; align-items: flex-start; gap: .85rem }
label.check input { min-height: 0; width: 1.25rem; height: 1.25rem; flex: none; margin: .2rem 0; accent-color: var(--accent) }
.muted { color: var(--muted) }
.links { display: flex; flex-wrap: wrap; gap: .65rem 1.05rem; margin: 1rem 0 }
.metrics strong { font: 750 2.45rem var(--display); color: var(--accent) }
.metrics p { margin: 0 }
.entries { padding-left: 1.4rem }
.entries li { padding: .45rem 0 }
.scroll { overflow: auto }
table { width: 100%; border-collapse: collapse; min-width: 630px; margin: 1rem 0; text-align: left }
th, td { border-bottom: 1px solid var(--line); padding: .6rem }
td { font-variant-numeric: tabular-nums }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; color: var(--muted) }
summary { cursor: pointer; font-weight: 650 }
video { background: #000; display: block; width: min(100%,440px); max-height: 430px; border-radius: 12px }
.notice { padding: 1rem; border-left: 3px solid var(--violet); background: var(--surface) }
@keyframes lift-book { from { transform: scale(1) translate(0,0) } to { transform: scale(1.055) translate(-.5%,.65%) } }
@keyframes arrive { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: translateY(0) } }
@keyframes sheen { 0%,58% { transform: translateX(-130%) skewX(-20deg) } 84%,100% { transform: translateX(410%) skewX(-20deg) } }
@media (max-width: 680px) {
  header, footer { align-items: flex-start; flex-direction: column; gap: .45rem }
  header { position: static }
  nav { gap: .2rem .4rem }
  nav a { padding-inline: .5rem; min-height: 36px }
  .hero { min-height: 425px; align-items: end }
  .hero::before { background-position: 68% 32%; background-size: auto 103% }
  .hero::after { background: linear-gradient(0deg,#070b1cf7 0%,#080d27e1 35%,#0b174744 68%,transparent) }
  .hero h1 { font-size: clamp(2.65rem, 9.5vw, 4.1rem) }
  .hero p { margin-block: .7rem 1rem }
  .product { grid-template-columns: 1fr }
  .product-cover { width: min(220px,100%) }
  .jacket img { max-height: 235px }
}
@media (max-width: 360px) {
  .card { grid-template-columns: 1fr }
  .cardbody { padding: 1rem }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important }
}

.book-preview { padding: clamp(1.2rem,4vw,2.4rem); display:flex; flex-direction:column; gap:.3rem; margin-bottom:0 }
.book-preview h3 { font-family:var(--serif); font-size:clamp(1.65rem,3vw,2.45rem); line-height:1.13 }
.book-preview h3 a { text-decoration:none }
.book-preview .card-action { margin-top:auto; width:fit-content }
.book-preview p { max-width:52ch }
.book-detail { padding:clamp(1.4rem,5vw,4.4rem); background:linear-gradient(120deg,#080d24f7 15%,#101934eb 73%,#14235166),url('hero.webp') center right/cover; border:1px solid var(--line); border-radius:24px }
.book-detail h1 { max-width:18ch; margin:.42em 0; font-family:var(--serif); font-weight:550; letter-spacing:-.043em }
.book-detail .description { max-width:56ch; color:#e4ecff; font-size:1.08rem; line-height:1.72 }
.book-detail .notice { margin:1.6rem 0 0; max-width:56ch }
.book-detail .author { color:var(--accent); margin:0 0 1.65rem }
