:root {
  --bg-0: #070b15;
  --bg-1: #0c1222;
  --bg-2: #18132d;
  --surface: rgba(13, 18, 34, 0.78);
  --surface-strong: rgba(16, 22, 41, 0.94);
  --line: rgba(228, 192, 124, 0.2);
  --line-soft: rgba(136, 120, 186, 0.24);
  --text: #f4f1ea;
  --muted: #b8b1c7;
  --gold: #d8b06a;
  --gold-strong: #f1d092;
  --purple: #8e6ad8;
  --shadow: 0 30px 70px rgba(2, 4, 10, 0.58);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Plus Jakarta Sans", sans-serif;
  background:
    radial-gradient(circle at 16% 14%, rgba(148, 118, 212, 0.25), transparent 40%),
    radial-gradient(circle at 84% -5%, rgba(215, 170, 98, 0.2), transparent 42%),
    radial-gradient(circle at 50% 120%, rgba(107, 79, 171, 0.24), transparent 48%),
    linear-gradient(160deg, var(--bg-0) 0%, var(--bg-1) 46%, var(--bg-2) 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -2;
}

body::before {
  top: -10rem;
  left: -8rem;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 208, 146, 0.24), transparent 63%);
  filter: blur(12px);
}

body::after {
  right: -12rem;
  bottom: -14rem;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(142, 106, 216, 0.26), transparent 58%);
  filter: blur(14px);
}

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

.page-aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 70%, rgba(216, 176, 106, 0.08), transparent 48%),
    radial-gradient(circle at 80% 35%, rgba(142, 106, 216, 0.1), transparent 45%);
}

.site-header,
.section,
.site-footer {
  width: min(1180px, calc(100% - 2.4rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 1.2rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-top: 1.2rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(9, 13, 25, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 36px rgba(1, 2, 7, 0.5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: fit-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: "Cinzel", serif;
  font-weight: 600;
  color: var(--gold-strong);
  background:
    radial-gradient(circle at 30% 20%, rgba(241, 208, 146, 0.28), transparent 56%),
    linear-gradient(160deg, rgba(11, 16, 31, 0.95), rgba(26, 20, 45, 0.9));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.06rem;
}

.brand-copy strong,
h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
}

.brand-copy strong {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.02;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0 0.84rem;
  border-radius: 999px;
  color: #d6cfdf;
  font-size: 0.9rem;
  transition: color 180ms ease, background-color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  color: var(--gold-strong);
  background: rgba(216, 176, 106, 0.14);
}

.site-nav .nav-shop {
  border: 1px solid rgba(241, 208, 146, 0.35);
  background: rgba(216, 176, 106, 0.1);
}

.section {
  padding: clamp(3.6rem, 5vw, 5.8rem) 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2.2rem;
  min-height: calc(100vh - 8rem);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: none;
  white-space: nowrap;
  font-size: clamp(2.3rem, 4.7vw, 4.2rem);
  line-height: 0.88;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.tagline {
  margin: 1.15rem 0 0;
  max-width: 36rem;
  color: #f0e9da;
  font-size: clamp(1.12rem, 2.2vw, 1.5rem);
  line-height: 1.34;
}

.lead,
.about-copy p,
.book-content p,
.tvorba-card p,
.footer-text,
.footer-quick,
.footer-copy {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.76;
}

.lead {
  margin: 1rem 0 0;
  max-width: 44rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.82rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  transition:
    transform 210ms ease,
    border-color 210ms ease,
    box-shadow 210ms ease,
    background-color 210ms ease,
    color 210ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-gold {
  color: #2d1f12;
  border-color: rgba(241, 208, 146, 0.2);
  background: linear-gradient(145deg, var(--gold-strong), var(--gold));
  box-shadow: 0 12px 32px rgba(203, 154, 74, 0.25);
}

.btn-gold:hover,
.btn-gold:focus-visible {
  box-shadow: 0 18px 34px rgba(203, 154, 74, 0.36);
}

.btn-shop {
  box-shadow:
    0 16px 34px rgba(203, 154, 74, 0.38),
    0 0 0 1px rgba(241, 208, 146, 0.3) inset;
}

.btn-ghost {
  color: var(--text);
  border-color: rgba(136, 120, 186, 0.42);
  background: rgba(15, 20, 37, 0.72);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(241, 208, 146, 0.52);
  background: rgba(23, 29, 53, 0.84);
}

.hero-visual {
  display: grid;
}

.dragon-frame {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line-soft);
  border-radius: 2.3rem;
  background:
    radial-gradient(circle at 10% 15%, rgba(142, 106, 216, 0.24), transparent 38%),
    radial-gradient(circle at 80% 85%, rgba(216, 176, 106, 0.18), transparent 34%),
    linear-gradient(152deg, rgba(14, 19, 38, 0.96), rgba(15, 12, 30, 0.95));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dragon-frame::before {
  content: "";
  position: absolute;
  inset: 1.05rem;
  border: 1px solid rgba(241, 208, 146, 0.14);
  border-radius: 1.8rem;
}

.dragon-frame::after {
  content: "";
  position: absolute;
  inset: auto 2.2rem 2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(241, 208, 146, 0.54), transparent);
}

.dragon-ornament {
  width: 100%;
  height: 100%;
  padding: 1.4rem;
}

.ring {
  fill: none;
  stroke: rgba(241, 208, 146, 0.22);
  stroke-width: 1.5;
}

.ring-soft {
  stroke: rgba(142, 106, 216, 0.28);
  stroke-dasharray: 3 8;
}

.dragon-path {
  fill: none;
  stroke: url(#dragonStroke);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}

.dragon-path.eye {
  fill: rgba(241, 208, 146, 0.22);
}

.sigil {
  position: absolute;
  left: 2.2rem;
  bottom: 2.2rem;
  display: grid;
  gap: 0.3rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(241, 208, 146, 0.24);
  border-radius: 0.85rem;
  background: rgba(10, 14, 26, 0.78);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.sigil span {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sigil strong {
  font-family: "Cinzel", serif;
  color: var(--gold-strong);
  font-size: 0.9rem;
  font-weight: 500;
}

.section-head {
  display: grid;
  gap: 0.42rem;
  margin-bottom: 1.7rem;
}

.section-head-center {
  text-align: center;
  justify-items: center;
}

h2 {
  margin: 0;
  max-width: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: clamp(1.4rem, 2.8vw, 2.9rem);
  line-height: 0.94;
  font-weight: 600;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.3rem;
}

.portrait-card,
.about-copy,
.book-card {
  border: 1px solid var(--line-soft);
  border-radius: 1.4rem;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.portrait-card {
  margin: 0;
  padding: 1rem;
}

.portrait-placeholder {
  position: relative;
  display: grid;
  place-items: end start;
  min-height: 24rem;
  border: 1px solid rgba(241, 208, 146, 0.18);
  border-radius: 1rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 18%, rgba(241, 208, 146, 0.2), transparent 38%),
    radial-gradient(circle at 80% 15%, rgba(142, 106, 216, 0.24), transparent 42%),
    linear-gradient(160deg, rgba(13, 19, 37, 0.98), rgba(20, 15, 35, 0.95));
}

.portrait-placeholder::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px dashed rgba(241, 208, 146, 0.24);
  border-radius: 0.9rem;
}

.portrait-placeholder span {
  position: relative;
  margin: 0 0 1.1rem 1.1rem;
  font-family: "Cinzel", serif;
  color: var(--gold-strong);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portrait-card figcaption {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.about-copy {
  padding: 1.4rem;
}

.about-copy p {
  margin: 0 0 1rem;
}

.about-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-list li {
  position: relative;
  padding-left: 1.4rem;
  color: #ddd6e6;
  font-size: 0.97rem;
}

.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 0.6rem;
  height: 0.6rem;
  border: 1px solid rgba(241, 208, 146, 0.5);
  border-radius: 50%;
  background: rgba(216, 176, 106, 0.24);
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.book-card {
  overflow: hidden;
}

.book-cover {
  position: relative;
  min-height: 17rem;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  place-items: end start;
  padding: 1rem;
}

.book-cover span {
  position: relative;
  z-index: 1;
  padding: 0.24rem 0.54rem;
  border: 1px solid rgba(241, 208, 146, 0.24);
  border-radius: 999px;
  background: rgba(7, 11, 21, 0.58);
  color: var(--gold-strong);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-cover::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(241, 208, 146, 0.2);
}

.cover-1 {
  background:
    radial-gradient(circle at 15% 20%, rgba(241, 208, 146, 0.24), transparent 40%),
    linear-gradient(165deg, #101830 0%, #27183d 100%);
}

.cover-2 {
  background:
    radial-gradient(circle at 80% 18%, rgba(142, 106, 216, 0.34), transparent 35%),
    linear-gradient(165deg, #0c1531 0%, #19122c 100%);
}

.cover-3 {
  background:
    radial-gradient(circle at 50% 20%, rgba(241, 208, 146, 0.2), transparent 37%),
    linear-gradient(165deg, #11172f 0%, #231430 100%);
}

.book-content {
  padding: 1rem 1rem 1.2rem;
}

h3 {
  margin: 0 0 0.6rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 0.96;
  font-weight: 600;
}

.book-content p {
  margin: 0;
}

.inline-link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--gold-strong);
  font-size: 0.92rem;
  font-weight: 500;
}

.inline-link::after {
  content: "→";
  margin-left: 0.4rem;
  transition: transform 180ms ease;
}

.inline-link:hover::after,
.inline-link:focus-visible::after {
  transform: translateX(2px);
}

.section-actions {
  margin-top: 1.5rem;
}

.tvorba-card {
  margin: 0 auto;
  width: min(860px, 100%);
  text-align: center;
  padding: 1.5rem 1.2rem;
  border: 1px solid var(--line-soft);
  border-radius: 1.4rem;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.tvorba-card p {
  margin: 0;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.review-card {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border: 1px solid var(--line-soft);
  border-radius: 1.4rem;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transition: border-color 180ms ease, transform 180ms ease;
}

.review-card:hover,
.review-card:focus-within {
  border-color: rgba(241, 208, 146, 0.42);
  transform: translateY(-2px);
}

.review-stars {
  margin: 0;
  color: var(--gold-strong);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
}

.review-card p {
  margin: 0;
}

.review-author {
  margin-top: 0.3rem;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 500;
}

.site-footer {
  padding: 0 0 2.8rem;
}

.footer-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(241, 208, 146, 0.4);
  border-radius: 1.9rem;
  padding: clamp(1.5rem, 2.4vw, 2.2rem) clamp(1rem, 2.8vw, 2.4rem);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(241, 208, 146, 0.08), transparent 32%),
    radial-gradient(circle at 50% -35%, rgba(241, 208, 146, 0.2), transparent 58%),
    linear-gradient(150deg, rgba(14, 19, 36, 0.96), rgba(24, 15, 41, 0.96));
  box-shadow:
    0 30px 64px rgba(2, 4, 10, 0.52),
    0 0 0 1px rgba(241, 208, 146, 0.12) inset;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.footer-shell::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(241, 208, 146, 0.14), transparent 62%);
  opacity: 0.9;
  pointer-events: none;
}

.footer-shell::after {
  content: "";
  position: absolute;
  top: 0.9rem;
  left: 50%;
  width: min(340px, 62%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(241, 208, 146, 0.6), transparent);
  pointer-events: none;
}

.footer-shell > * {
  position: relative;
  z-index: 1;
}

.footer-name {
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 4.6vw, 2.9rem);
  line-height: 0.9;
  color: #f3ebdd;
}

.footer-text {
  margin: 0.55rem auto 0;
  max-width: 34ch;
  color: #d9d1e5;
  font-size: 0.96rem;
}

.footer-shop {
  margin-top: 1rem;
}

.footer-quick {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(136, 120, 186, 0.24);
}

.footer-quick a,
.footer-quick span {
  display: inline-block;
  color: #ddd6e8;
  font-size: 0.9rem;
  line-height: 1.35;
  opacity: 0.95;
  transition: color 160ms ease;
}

.footer-quick > * + *::before {
  content: "•";
  margin-right: 0.9rem;
  color: rgba(241, 208, 146, 0.52);
}

.footer-quick a:hover,
.footer-quick a:focus-visible {
  color: var(--gold-strong);
}

.footer-meta {
  margin-top: 1.05rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(136, 120, 186, 0.24);
}

.footer-maker {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
}

.footer-maker span {
  color: #c8c1d6;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-maker-logo {
  width: auto;
  height: clamp(23px, 3vw, 30px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.footer-copy {
  margin: 0.75rem 0 0;
  padding-top: 0;
  border-top: 0;
  text-align: center;
  color: #b6aec7;
  font-size: 0.84rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .hero-visual {
    max-width: 36rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

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

  .review-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .site-header {
    border-radius: 1.35rem;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.86rem;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav a {
    padding-inline: 0.6rem;
    font-size: 0.86rem;
  }

  h1 {
    font-size: clamp(1.95rem, 8.2vw, 3.2rem);
  }

  .book-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .footer-quick {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .footer-quick > * + *::before {
    content: "";
    margin: 0;
  }

  .footer-maker {
    flex-direction: column;
    gap: 0.45rem;
  }

  .footer-maker-logo {
    height: 26px;
  }
}
