:root {
  --bg: #0d1117;
  --bg-secondary: #161b22;
  --accent: #7f5af0;
  --accent-soft: rgba(127, 90, 240, 0.12);
  --text: #f3f4f6;
  --muted: #9ca3af;
  --border: rgba(148, 163, 184, 0.2);
  --max-width: 1080px;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top right, rgba(127, 90, 240, 0.15), transparent 45%),
    radial-gradient(circle at bottom left, rgba(45, 212, 191, 0.12), transparent 40%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.25em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--accent);
  text-decoration-color: rgba(127, 90, 240, 0.65);
}

.container {
  width: min(100% - 3rem, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background-color: rgba(13, 17, 23, 0.8);
  border-bottom: 1px solid var(--border);
  z-index: 10;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled {
  background-color: rgba(13, 17, 23, 0.95);
  border-color: rgba(127, 90, 240, 0.35);
  box-shadow: 0 10px 30px rgba(8, 15, 29, 0.45);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  gap: 1rem;
  position: relative;
}

.site-header a {
  text-decoration: none;
}

.branding {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.logo-circle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), rgba(127, 90, 240, 0.3));
  box-shadow: 0 10px 30px rgba(127, 90, 240, 0.3);
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.2rem 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(13, 17, 23, 0.8);
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-toggle:hover,
.menu-toggle:focus {
  color: #fff;
  border-color: rgba(127, 90, 240, 0.5);
  background: rgba(127, 90, 240, 0.15);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
  align-items: center;
}

.site-nav a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus {
  color: #fff;
}

.hero {
  padding: 6rem 0 4rem;
}

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

.hero-copy h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.hero-copy p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background-color: var(--accent-soft);
}

.quote-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2.5rem;
  background: rgba(22, 27, 34, 0.75);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
}

.quote {
  font-size: 1.15rem;
  margin: 0 0 1.5rem 0;
}

.quote-source {
  margin: 0;
  color: var(--muted);
}

.books {
  padding: 4rem 0 6rem;
}

.article-hero {
  padding-bottom: 2rem;
}

.article-hero .hero-copy .meta {
  color: var(--muted);
  margin: 0 0 1rem 0;
}

.blog-article {
  padding: 0 0 6rem;
}

.blog-article .container {
  max-width: 760px;
}

.blog-article article h3 {
  margin-top: 2.5rem;
  color: #f8fafc;
}

.blog-article article ul,
.blog-article article ol {
  padding-left: 1.2rem;
}

.blog-article article li {
  margin: 0.75rem 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-top: 1rem;
}

.section-intro {
  color: var(--muted);
}

.book-card {
  display: grid;
  gap: 3rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 3rem;
  background: rgba(13, 17, 23, 0.85);
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.3);
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
}

.book-card.blog-card {
  grid-template-columns: 1fr;
  padding: 2.5rem;
  gap: 1.5rem;
}

.book-cover {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(127, 90, 240, 0.25), rgba(56, 189, 248, 0.2)),
    url("../../public/interim.png");
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.4);
  aspect-ratio: 2 / 3;
}

.book-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(244, 114, 182, 0.35), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.3), transparent 45%);
  mix-blend-mode: screen;
  opacity: 0.75;
}

.book-details .series {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.book-details h3 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.book-details .meta,
.book-details .author {
  margin: 0.25rem 0;
  color: var(--muted);
}

.book-details .blurb {
  margin-top: 1.5rem;
  color: #d1d5db;
}

.actions {
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.button:hover,
.button:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(127, 90, 240, 0.4);
  color: #fff;
}

.button:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(127, 90, 240, 0.35);
  color: #fff;
}

.button.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.button.ghost:hover,
.button.ghost:focus {
  color: var(--text);
  background-color: rgba(127, 90, 240, 0.12);
  border-color: rgba(127, 90, 240, 0.5);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  background-color: rgba(13, 17, 23, 0.9);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-header .container {
    justify-content: space-between;
    align-items: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 1.5rem;
    flex-direction: column;
    padding: 1rem 1.25rem;
    background: rgba(13, 17, 23, 0.95);
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(8, 15, 29, 0.45);
    display: none;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.35rem 0;
    width: 100%;
    color: var(--muted);
  }

  .book-card {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
}
