:root {
  --bg-deep: #060a10;
  --bg-mid: #111d29;
  --bg-panel: rgba(8, 16, 24, 0.76);
  --line-soft: rgba(214, 237, 255, 0.2);
  --line-strong: rgba(214, 237, 255, 0.5);
  --text-main: #f4f9ff;
  --text-muted: #bfd1e2;
  --accent: #56f4d6;
  --accent-2: #8ec8ff;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at 10% 0%, #1a2a3a 0%, #071019 45%, #03060b 100%);
  min-height: 100vh;
}

.home-body {
  background:
    linear-gradient(to bottom, rgba(4, 10, 18, 0.45) 0%, rgba(3, 6, 11, 0.9) 75%),
    url("../../bloom_bg.jpg") center bottom / cover no-repeat fixed;
}

.fog {
  position: fixed;
  inset: -25%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(112, 190, 194, 0.16) 0%, transparent 52%),
    radial-gradient(ellipse at 70% 60%, rgba(140, 205, 255, 0.13) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 20%, rgba(116, 255, 223, 0.1) 0%, transparent 48%);
  filter: blur(20px);
  opacity: 0.5;
  z-index: 1;
  animation: drift 46s linear infinite;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-8%, 4%, 0);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(2, 8, 14, 0.7);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  width: min(var(--max), 94vw);
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: "Cinzel", serif;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--text-main);
  font-size: 1rem;
  text-transform: uppercase;
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
  border-color: var(--line-strong);
  background: rgba(86, 244, 214, 0.08);
}

main {
  position: relative;
  z-index: 10;
}

.container {
  width: min(var(--max), 94vw);
  margin: 0 auto;
}

.hero {
  min-height: calc(88vh - 72px);
  display: flex;
  align-items: center;
  padding: 5rem 0 4rem;
}

.hero-panel {
  max-width: 760px;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 0.8rem;
  font-family: "Cinzel", serif;
  font-size: clamp(2.8rem, 9vw, 8rem);
  line-height: 0.92;
  font-weight: 400;
  text-shadow: 0 0 30px rgba(86, 244, 214, 0.25);
}

.hero .subtitle {
  margin: 0 0 1.5rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.2rem, 2.8vw, 1.9rem);
  line-height: 1.45;
  max-width: 700px;
  color: #e4f2ff;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--line-strong);
  color: var(--text-main);
  background: rgba(3, 10, 18, 0.68);
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.btn.primary {
  background: linear-gradient(135deg, #66f0d3 0%, #70baf5 100%);
  color: #051016;
  border-color: transparent;
  font-weight: 700;
}

.credit {
  margin: 0;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: #c5ddf4;
}

.section {
  padding: 3rem 0;
}

.section-title {
  margin: 0 0 0.75rem;
  font-family: "Cinzel", serif;
  letter-spacing: 0.04em;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
}

.section-intro {
  margin: 0 0 1.5rem;
  max-width: 800px;
  color: var(--text-muted);
  line-height: 1.65;
}

.tab-strip,
.section-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.tab-card,
.section-tab {
  text-decoration: none;
  color: var(--text-main);
  border: 1px solid var(--line-soft);
  background: var(--bg-panel);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  transition: 0.2s ease;
}

.section-tab {
  text-align: center;
  font-weight: 600;
}

.tab-card:hover,
.section-tab:hover,
.section-tab.active {
  border-color: var(--accent);
  background: rgba(7, 18, 28, 0.92);
}

.tab-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.tab-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 1rem;
}

.book-card {
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: var(--bg-panel);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.book-cover {
  border-radius: 10px;
  min-height: 220px;
  border: 1px solid var(--line-soft);
  overflow: hidden;
}

.book-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-placeholder {
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  font-family: "Cinzel", serif;
  letter-spacing: 0.04em;
  background:
    linear-gradient(135deg, rgba(95, 167, 208, 0.25), rgba(87, 245, 213, 0.1)),
    #111d29;
}

.book-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.book-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.detail-header {
  padding: 3rem 0 1rem;
}

.breadcrumbs {
  margin: 0 0 0.8rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: inherit;
}

.detail-title {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-weight: 400;
}

.detail-tagline {
  margin: 0.8rem 0 1.2rem;
  max-width: 760px;
  font-family: "Cormorant Garamond", serif;
  color: #e0edf9;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
}

.split {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}

.panel {
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: var(--bg-panel);
  padding: 1rem 1.1rem;
}

.panel h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.panel p {
  margin: 0;
  line-height: 1.7;
  color: var(--text-muted);
}

.story-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.story-list li {
  margin: 0.4rem 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.8rem;
}

.gallery img,
.photo-slot {
  width: 100%;
  min-height: 170px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: #0f1b2a;
}

.gallery img {
  object-fit: cover;
}

.photo-slot {
  display: grid;
  place-items: center;
  text-align: center;
  color: #acc5dc;
  font-size: 0.88rem;
  padding: 0.8rem;
  line-height: 1.4;
}

.newsletter {
  border-top: 1px solid var(--line-soft);
  margin-top: 1rem;
  padding: 2.2rem 0 3rem;
}

.newsletter-box {
  max-width: 620px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: var(--bg-panel);
  padding: 1.1rem;
}

.newsletter-title {
  margin: 0 0 0.35rem;
  font-family: "Cinzel", serif;
  color: var(--accent);
}

.newsletter-text {
  margin: 0 0 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
}

.newsletter-input {
  min-width: 0;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  padding: 0.7rem 0.95rem;
  background: rgba(6, 13, 20, 0.82);
  color: var(--text-main);
  font-family: inherit;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--accent);
}

.newsletter-btn {
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #66f0d3 0%, #70baf5 100%);
  color: #051016;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.7rem 1rem;
  cursor: pointer;
}

.loading-text {
  margin-top: 0.55rem;
  min-height: 1rem;
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

.site-footer {
  border-top: 1px solid var(--line-soft);
  margin-top: 1.8rem;
}

.footer-inner {
  width: min(var(--max), 94vw);
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-inner a {
  color: var(--text-muted);
}

@media (max-width: 820px) {
  .header-inner {
    flex-direction: column;
    justify-content: center;
    padding: 0.8rem 0;
    min-height: auto;
  }

  .hero {
    min-height: auto;
    padding-top: 3.5rem;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .tab-strip,
  .section-tabs {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    padding: 0.8rem 0;
  }
}
