:root {
  color-scheme: light;
  --sand: #e6d0b1;
  --sage: #a6b39b;
  --rust: #c96f4b;
  --ocean: #3f6f8f;
  --deep: #2b3e4b;
  --slate: #97a3ad;
  --rust-deep: #8b4a2e;
  --foam: #f9f4ea;
  --panel: rgba(249, 244, 234, 0.85);
  --panel-border: rgba(63, 111, 143, 0.2);
  --text: #2b2f33;
  --muted: #56616b;
  --accent: #c96f4b;
  --accent-2: #3f6f8f;
  --accent-3: #a6b39b;
  --shadow: 0 24px 60px rgba(38, 48, 56, 0.18);
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-hero: "Source Serif 4", "Times New Roman", serif;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--sand);
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

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



.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(
      to right,
      rgba(63, 111, 143, 0.12) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      rgba(63, 111, 143, 0.12) 1px,
      transparent 1px
    );
  background-size: 140px 140px;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(14px);
  background: rgba(241, 230, 211, 0.8);
  z-index: 10;
  border-bottom: 1px solid rgba(63, 111, 143, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 16px;
}

.logo {
  font-family: var(--font-display);
  letter-spacing: 1px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1rem;
  color: var(--deep);
}

.logo.small {
  font-size: 0.85rem;
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--ocean);
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--rust), var(--ocean));
  color: #fffaf0;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 14px 40px rgba(63, 111, 143, 0.22);
}

.button.cta {
  font-size: 1.05rem;
  padding: 14px 26px;
  box-shadow: 0 18px 60px rgba(201, 111, 75, 0.3);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(63, 111, 143, 0.32);
}

.button.ghost {
  background: transparent;
  color: var(--deep);
  border: 1px solid rgba(63, 111, 143, 0.35);
  box-shadow: none;
}

.button.small {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.hero {
  padding: 110px 0 80px;
  position: relative;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(166, 179, 155, 0.35),
    rgba(241, 230, 211, 0.1)
  );
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.75rem;
  color: var(--ocean);
  margin: 0 0 20px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3vw + 1.6rem, 4rem);
  margin: 0 0 16px;
}

.hero h1 {
  font-family: var(--font-hero);
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-art {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
}

.glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.glyph-ring {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(63, 111, 143, 0.35);
  box-shadow: 0 0 60px rgba(63, 111, 143, 0.2);
  animation: pulse 6s ease-in-out infinite;
}

.glyph-core {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 22px;
  background: linear-gradient(140deg, #a6b39b, #f1e6d3);
  opacity: 0.85;
  transform: rotate(15deg);
}

.glyph-lines {
  position: absolute;
  width: 200px;
  height: 200px;
  border: 1px dashed rgba(63, 111, 143, 0.35);
  border-radius: 50%;
  animation: spin 16s linear infinite;
}

.card {
  position: relative;
  z-index: 2;
  padding: 26px;
  max-width: 340px;
  text-align: left;
  background: #666e7d;
  border: 1px solid rgba(230, 238, 245, 0.24);
}

.card.glass {
  background: #666e7d;
  border: 1px solid rgba(230, 238, 245, 0.24);
}

.card .book-cover {
  height: 260px;
  object-fit: contain;
  background: #2d2727;
  padding: 10px;
  margin-bottom: 12px;
  border: 4px solid var(--slate);
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(43, 62, 75, 0.18);
}

.card-label {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.7rem;
  color: #d6e4ef;
  margin: 0 0 10px;
}

.card-text {
  color: #f0f4f7;
  margin: 8px 0 18px;
}

.card h3 {
  color: #f8fbff;
}

.book-cover {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 18px 45px rgba(43, 62, 75, 0.25);
  object-fit: contain;
  background: #2d2727;
  padding: 8px;
  border: 4px solid var(--slate);
}

.glass {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.books {
  background: linear-gradient(
    180deg,
    rgba(63, 111, 143, 0.1),
    rgba(241, 230, 211, 0.2)
  );
}

.about {
  background: linear-gradient(
    180deg,
    rgba(201, 111, 75, 0.12),
    rgba(241, 230, 211, 0.2)
  );
}

.signup {
  background: linear-gradient(
    180deg,
    rgba(166, 179, 155, 0.25),
    rgba(241, 230, 211, 0.2)
  );
}

.signup-shell {
  padding: 2rem;
}

.signup-panel {
  padding: 32px;
}

.signup-form {
  margin-top: 28px;
}

.signup-actions {
  margin-top: 18px;
}

.contact {
  background: linear-gradient(
    180deg,
    rgba(63, 111, 143, 0.12),
    rgba(241, 230, 211, 0.2)
  );
}

.section-title h2 {
  font-family: var(--font-display);
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2.3vw + 1rem, 2.8rem);
}

.section-title p {
  color: var(--muted);
  margin: 0 0 40px;
}

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

.book-card {
  padding: 28px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #666e7d;
  border: 1px solid rgba(230, 238, 245, 0.24);
}

.book-card .book-cover {
  height: 260px;
}

.tag {
  font-size: 0.75rem;
  background: rgba(248, 252, 255, 0.2);
  padding: 6px 12px;
  border-radius: 999px;
  align-self: flex-start;
  color: #f6fbff;
}

.book-card h3 {
  margin: 0;
  font-family: var(--font-display);
  color: #f8fbff;
}

.book-card p {
  color: #e9f0f5;
  margin: 0;
  line-height: 1.6;
}

.meta {
  font-size: 0.85rem;
  color: #d4e0e9;
}

.book-card .button {
  margin-top: auto;
  align-self: flex-start;
}

.text-link {
  margin-top: auto;
  color: #e8f5ff;
  font-weight: 600;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
  align-items: center;
}

.about-panel {
  padding: 32px;
}

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

.signature {
  font-family: var(--font-display);
  margin-top: 24px;
}

.about-visual {
  position: relative;
  padding: 30px 28px 24px;
  min-height: 300px;
  display: grid;
  place-items: center;
  gap: 18px;
  isolation: isolate;
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(18, 29, 39, 0.96), rgba(34, 53, 66, 0.92)),
    radial-gradient(circle at top, rgba(63, 111, 143, 0.22), transparent 48%);
  border: 1px solid rgba(249, 244, 234, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(249, 244, 234, 0.08),
    inset 0 0 0 1px rgba(63, 111, 143, 0.08),
    inset 0 18px 40px rgba(6, 12, 18, 0.45),
    0 24px 50px rgba(43, 62, 75, 0.16);
  overflow: hidden;
}

.about-visual::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 18% 20%, rgba(249, 244, 234, 0.14), transparent 16%),
    radial-gradient(circle at 78% 24%, rgba(201, 111, 75, 0.12), transparent 18%),
    radial-gradient(circle at 42% 72%, rgba(166, 179, 155, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(9, 16, 22, 0.25), transparent 28%);
  opacity: 0.9;
  pointer-events: none;
}

.constellation {
  position: relative;
  width: 220px;
  height: 160px;
  filter: drop-shadow(0 8px 24px rgba(7, 12, 18, 0.42));
}

.constellation::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background:
    radial-gradient(circle at 30% 35%, rgba(249, 244, 234, 0.08), transparent 18%),
    radial-gradient(circle at 70% 30%, rgba(63, 111, 143, 0.14), transparent 32%),
    radial-gradient(circle at 58% 72%, rgba(201, 111, 75, 0.12), transparent 36%);
  opacity: 1;
  z-index: -1;
}

.constellation::after {
  content: "";
  position: absolute;
  inset: 10px 18px 18px;
  background:
    linear-gradient(rgba(249, 244, 234, 0.22), rgba(249, 244, 234, 0.22)) 22px 18px / 82px 1px no-repeat,
    linear-gradient(rgba(166, 179, 155, 0.18), rgba(166, 179, 155, 0.18)) 95px 46px / 76px 1px no-repeat,
    linear-gradient(rgba(201, 111, 75, 0.18), rgba(201, 111, 75, 0.18)) 40px 102px / 128px 1px no-repeat;
  transform: rotate(-14deg);
  opacity: 0.55;
}

.constellation span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 252, 245, 1), rgba(255, 244, 220, 0.96) 42%, currentColor 70%, transparent 76%);
  color: rgba(255, 238, 198, 0.95);
  box-shadow:
    0 0 0 2px rgba(255, 249, 238, 0.04),
    0 0 10px rgba(255, 241, 205, 0.7),
    0 0 22px rgba(255, 220, 160, 0.32);
  animation: twinkle 6.8s ease-in-out infinite;
}

.constellation span::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 235, 188, 0.18), transparent 72%);
  opacity: 0.75;
}

.constellation span:nth-child(1) {
  top: 10px;
  left: 20px;
  width: 8px;
  height: 8px;
  animation-delay: -0.6s;
}

.constellation span:nth-child(2) {
  top: 60px;
  left: 90px;
  width: 13px;
  height: 13px;
  animation-delay: -2.2s;
}

.constellation span:nth-child(3) {
  top: 110px;
  left: 40px;
  width: 9px;
  height: 9px;
  animation-delay: -1.4s;
}

.constellation span:nth-child(4) {
  top: 40px;
  left: 160px;
  width: 7px;
  height: 7px;
  animation-delay: -3.1s;
}

.constellation span:nth-child(5) {
  top: 120px;
  left: 160px;
  width: 11px;
  height: 11px;
  animation-delay: -4.4s;
}

.quote {
  text-align: center;
  font-style: italic;
  color: rgba(249, 244, 234, 0.82);
  max-width: 22rem;
}

.quote span {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: rgba(230, 208, 177, 0.72);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.contact-panel {
  padding: 32px;
}

.contact-panel.alt {
  background: linear-gradient(
    160deg,
    rgba(63, 111, 143, 0.08),
    rgba(201, 111, 75, 0.08)
  );
  border: 1px solid rgba(63, 111, 143, 0.2);
}

.newsletter {
  display: flex;
  gap: 12px;
  margin: 20px 0 12px;
  flex-wrap: wrap;
}

.newsletter input {
  flex: 1 1 180px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(63, 111, 143, 0.25);
  background: rgba(249, 244, 234, 0.9);
  color: var(--text);
}

.newsletter input:focus {
  outline: 2px solid rgba(63, 111, 143, 0.35);
}

.fine-print {
  color: rgba(43, 62, 75, 0.65);
  font-size: 0.85rem;
}

.mono {
  font-family: "JetBrains Mono", monospace;
}

.socials {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  color: var(--muted);
}

.site-footer {
  padding: 30px 0 50px;
  border-top: 1px solid rgba(63, 111, 143, 0.2);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes twinkle {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.78;
  }
  45% {
    transform: scale(1.18);
    opacity: 1;
  }
  70% {
    transform: scale(1);
    opacity: 0.9;
  }
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 90px;
  }
  .hero-art {
    order: -1;
  }
  .newsletter {
    flex-direction: column;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
