:root {
  color-scheme: dark;
  --bg: #050508;
  --bg-soft: #0c0b10;
  --ink: #f4efe6;
  --muted: #b6aea4;
  --faint: #706a64;
  --gold: #d7ad61;
  --gold-strong: #f1cd80;
  --cyan: #72dce8;
  --green: #79b77a;
  --crimson: #bd3152;
  --violet: #6d5ed8;
  --line: rgba(244, 239, 230, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --shell: min(1160px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(189, 49, 82, 0.16), transparent 26rem),
    linear-gradient(180deg, #050508 0%, #0d0b12 48%, #050508 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

em {
  color: var(--gold-strong);
  font-style: normal;
}

.page-shell {
  width: var(--shell);
  margin: 0 auto;
}

.reading-line {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 120;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--crimson), var(--gold), var(--cyan));
  box-shadow: 0 0 18px rgba(215, 173, 97, 0.45);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px max(20px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(5, 5, 8, 0.82);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 38px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(215, 173, 97, 0.55);
  background: rgba(215, 173, 97, 0.1);
  color: var(--gold-strong);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  opacity: 0;
  transform: scaleX(0.3);
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.section-band {
  position: relative;
  overflow: hidden;
}

.hero {
  min-height: 92svh;
  padding: 118px 0 76px;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 5, 8, 0.98) 0%, rgba(5, 5, 8, 0.78) 48%, rgba(5, 5, 8, 0.5) 100%),
    linear-gradient(180deg, rgba(5, 5, 8, 0.2), #050508 100%),
    url("assets/the-timelike.jpg") right 8% center / auto 88% no-repeat;
  filter: saturate(0.96) contrast(1.05);
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 34%;
  background: linear-gradient(180deg, transparent, var(--bg));
  content: "";
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: clamp(34px, 6vw, 84px);
  min-height: calc(92svh - 194px);
}

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

.eyebrow,
.book-kicker,
.panel-label {
  margin: 0 0 16px;
  color: var(--gold-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.03;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
}

p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 12.5ch;
  color: #fff;
  font-size: 7.2rem;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(114, 220, 232, 0.2), 0 0 56px rgba(215, 173, 97, 0.18);
}

h2 {
  max-width: 16ch;
  font-size: 4.4rem;
  font-weight: 850;
}

h3 {
  font-size: 3.8rem;
  font-weight: 850;
}

.hero-lede {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.35rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  border-color: rgba(215, 173, 97, 0.72);
  background: linear-gradient(135deg, rgba(215, 173, 97, 0.92), rgba(189, 49, 82, 0.88));
  color: #090608;
  box-shadow: 0 18px 42px rgba(189, 49, 82, 0.22);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.045);
}

.button-ghost:hover {
  border-color: rgba(114, 220, 232, 0.65);
}

.cover-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 14px;
  min-height: 0;
}

.cover {
  position: relative;
  width: 100%;
  max-width: 190px;
  justify-self: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #050508;
  box-shadow: var(--shadow);
  object-fit: contain;
}

.cover-seal {
  aspect-ratio: 943 / 1500;
  transform: rotate(-4deg) translateY(22px);
}

.cover-lighthouse {
  aspect-ratio: 1107 / 1473;
  transform: rotate(3deg);
}

.cover-timelike {
  aspect-ratio: 1233 / 2048;
  transform: rotate(-2deg) translateY(26px);
}

.intro-strip {
  border-block: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(121, 183, 122, 0.08), transparent 35%),
    rgba(255, 255, 255, 0.025);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.intro-grid span {
  min-height: 72px;
  padding: 22px 18px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.intro-grid span:last-child {
  border-right: 1px solid var(--line);
}

.author-section,
.books-section,
.themes-section,
.articles-section,
.rights-section {
  padding: clamp(74px, 10vw, 130px) 0;
}

.author-grid,
.rights-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.76fr) minmax(0, 1.24fr);
  align-items: center;
  gap: clamp(34px, 6vw, 76px);
}

.author-image {
  position: relative;
}

.author-image::before {
  position: absolute;
  inset: 20px -18px -18px 18px;
  z-index: -1;
  border: 1px solid rgba(215, 173, 97, 0.38);
  content: "";
}

.author-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--line);
  filter: saturate(0.94) contrast(1.05);
  box-shadow: var(--shadow);
}

.section-copy p,
.book-copy p,
.theme-item p,
.contact-panel p {
  color: var(--muted);
  font-size: 1rem;
}

.section-copy p {
  max-width: 760px;
}

.section-heading {
  margin-bottom: 44px;
}

.section-heading p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1rem;
}

.books-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 18%),
    #08070b;
}

.book-feature {
  display: grid;
  grid-template-columns: minmax(210px, 340px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: center;
  padding: clamp(28px, 5vw, 56px) 0;
  border-top: 1px solid var(--line);
}

.book-feature:last-child {
  border-bottom: 1px solid var(--line);
}

.book-cover-wrap {
  position: relative;
}

.book-cover-wrap::after {
  position: absolute;
  inset: 9%;
  z-index: -1;
  background: currentColor;
  content: "";
  filter: blur(44px);
  opacity: 0.35;
}

.seal-theme {
  color: var(--gold);
}

.lighthouse-theme {
  color: var(--cyan);
}

.timelike-theme {
  color: #ffb067;
}

.book-cover-wrap img {
  width: min(100%, 340px);
  height: auto;
  background: #050508;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow);
}

.lighthouse-theme .book-cover-wrap img {
  aspect-ratio: auto;
}

.book-copy {
  color: var(--ink);
}

.book-hook {
  max-width: 780px;
  color: var(--ink) !important;
  font-size: 1.25rem !important;
  font-weight: 750;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 28px 0 20px;
  list-style: none;
}

.tag-list li {
  padding: 8px 12px;
  border: 1px solid rgba(244, 239, 230, 0.16);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.text-link {
  color: var(--gold-strong);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link:hover {
  color: #fff;
}

.themes-section {
  background:
    linear-gradient(90deg, rgba(109, 94, 216, 0.08), transparent 44%),
    linear-gradient(180deg, #08070b, #050508);
}

.themes-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: start;
}

.theme-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.theme-item {
  padding: clamp(24px, 4vw, 34px);
  background: rgba(5, 5, 8, 0.92);
}

.theme-number {
  display: block;
  margin-bottom: 18px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.theme-item h3 {
  max-width: 22ch;
  font-size: 2rem;
}

.rights-section {
  background:
    linear-gradient(180deg, rgba(215, 173, 97, 0.08), transparent 30%),
    #0a0808;
}

.articles-section,
.article-library {
  background:
    linear-gradient(90deg, rgba(114, 220, 232, 0.08), transparent 46%),
    linear-gradient(180deg, #050508, #09070c);
}

.article-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.article-card {
  min-height: 240px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(5, 5, 8, 0.94);
}

.article-card a {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  color: inherit;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.article-card a:hover {
  background: rgba(215, 173, 97, 0.06);
}

.article-card span {
  color: var(--gold-strong);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.article-card h2,
.article-card h3 {
  max-width: 18ch;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.08;
}

.article-card p {
  margin: 0;
  color: var(--muted);
}

.section-actions {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.article-index-hero,
.article-hero {
  padding: 132px 0 74px;
  background:
    linear-gradient(90deg, rgba(5, 5, 8, 0.98), rgba(5, 5, 8, 0.72)),
    url("assets/the-timelike.jpg") right 8% center / auto 88% no-repeat;
}

.article-index-hero h1,
.article-hero h1 {
  max-width: 13ch;
  font-size: clamp(3.1rem, 8vw, 6.4rem);
}

.article-subtitle {
  max-width: 840px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.24rem;
}

.article-meta {
  margin-top: 22px;
  color: var(--faint);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breadcrumb-link {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.article-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: clamp(28px, 5vw, 62px);
  align-items: center;
}

.article-hero-image img {
  width: min(100%, 320px);
  height: auto;
  background: #050508;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.56fr) minmax(0, 1fr) minmax(200px, 0.46fr);
  gap: clamp(24px, 4vw, 42px);
  align-items: start;
  padding: clamp(58px, 8vw, 100px) 0;
}

.entity-box,
.related-box {
  position: sticky;
  top: 92px;
  border: 1px solid var(--line);
  padding: 24px;
  background: rgba(255, 255, 255, 0.035);
}

.entity-box h2,
.related-box h2 {
  font-size: 1.4rem;
}

.entity-box ul,
.related-box ul {
  padding-left: 18px;
  margin: 18px 0 22px;
  color: var(--muted);
}

.entity-box li,
.related-box li {
  margin: 0 0 12px;
}

.related-box a {
  color: var(--ink);
  text-decoration-color: rgba(215, 173, 97, 0.5);
  text-underline-offset: 4px;
}

.article-content {
  max-width: 760px;
}

.article-content section {
  padding-bottom: 38px;
  margin-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.article-content h2 {
  max-width: 18ch;
  margin-bottom: 18px;
  font-size: clamp(1.75rem, 3.5vw, 2.8rem);
}

.article-content h3 {
  max-width: 24ch;
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.article-content p {
  color: var(--muted);
  font-size: 1.05rem;
}

.faq-item {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.faq-item:first-of-type {
  border-top: 0;
}

.article-cta {
  border: 1px solid rgba(215, 173, 97, 0.32) !important;
  padding: clamp(24px, 4vw, 36px);
  background: rgba(215, 173, 97, 0.06);
}

.rights-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.contact-panel {
  border: 1px solid rgba(215, 173, 97, 0.35);
  padding: clamp(28px, 4vw, 44px);
  background:
    linear-gradient(135deg, rgba(215, 173, 97, 0.12), rgba(189, 49, 82, 0.08)),
    rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.contact-panel h3 {
  font-size: 3.1rem;
}

.email-link {
  display: inline-block;
  margin: 10px 0 26px;
  color: var(--gold-strong);
  font-size: 1.45rem;
  font-weight: 850;
  text-decoration: none;
}

.email-link:hover {
  color: #fff;
}

.social-links,
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links {
  margin-top: 18px;
}

.social-links a,
.footer-social a {
  border: 1px solid var(--line);
  padding: 8px 12px;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.social-links a:hover,
.footer-social a:hover {
  border-color: rgba(215, 173, 97, 0.65);
  background: rgba(215, 173, 97, 0.08);
  color: var(--gold-strong);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #030305;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
  color: var(--faint);
  font-size: 0.86rem;
}

.footer-grid p {
  margin: 0;
}

.footer-grid a {
  color: var(--muted);
  text-decoration: none;
}

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

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 940px) {
  .site-header {
    padding-right: 20px;
    padding-left: 20px;
  }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 111;
  }

  .nav-open .nav-toggle-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-open .nav-toggle-line:nth-child(2) {
    opacity: 0;
  }

  .nav-open .nav-toggle-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: grid;
    place-content: center;
    gap: 28px;
    background: rgba(5, 5, 8, 0.96);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    font-size: 1.05rem;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-top: 108px;
  }

  .hero-grid,
  .author-grid,
  .themes-grid,
  .rights-grid,
  .article-hero-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
  }

  h1 {
    font-size: 6.2rem;
  }

  h2 {
    font-size: 3.4rem;
  }

  h3 {
    font-size: 3rem;
  }

  .hero-lede {
    font-size: 1.22rem;
  }

  .book-hook {
    font-size: 1.16rem !important;
  }

  .theme-item h3 {
    font-size: 1.75rem;
  }

  .contact-panel h3 {
    font-size: 2.6rem;
  }

  .email-link {
    font-size: 1.3rem;
  }

  .cover-stack {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }

  .cover {
    max-width: 170px;
  }

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

  .intro-grid span:nth-child(2) {
    border-right: 1px solid var(--line);
  }

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

  .book-cover-wrap img {
    width: min(72vw, 330px);
  }

  .article-card-grid {
    grid-template-columns: 1fr;
  }

  .article-hero-image {
    display: none;
  }

  .entity-box,
  .related-box {
    position: static;
  }
}

@media (max-width: 620px) {
  :root {
    --shell: min(100% - 28px, 1160px);
  }

  .brand {
    font-size: 0.72rem;
    gap: 10px;
  }

  .brand-mark {
    width: 34px;
  }

  .hero {
    padding-bottom: 52px;
  }

  .hero-bg {
    background:
      linear-gradient(90deg, rgba(5, 5, 8, 0.98) 0%, rgba(5, 5, 8, 0.82) 100%),
      linear-gradient(180deg, rgba(5, 5, 8, 0.2), #050508 100%);
  }

  .article-index-hero,
  .article-hero {
    background:
      linear-gradient(90deg, rgba(5, 5, 8, 0.98), rgba(5, 5, 8, 0.82)),
      #050508;
  }

  h2 {
    max-width: 12ch;
    font-size: 2.5rem;
  }

  h1 {
    font-size: 4.4rem;
  }

  h3 {
    font-size: 2.15rem;
  }

  .hero-lede,
  .book-hook {
    font-size: 1.08rem !important;
  }

  .theme-item h3 {
    font-size: 1.38rem;
  }

  .contact-panel h3 {
    font-size: 2.1rem;
  }

  .email-link {
    font-size: 1.1rem;
  }

  .hero-actions,
  .footer-grid {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .cover-stack {
    gap: 8px;
  }

  .cover {
    max-width: 112px;
  }

  .cover-seal,
  .cover-lighthouse,
  .cover-timelike {
    transform: none;
  }

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

  .intro-grid span,
  .intro-grid span:last-child,
  .intro-grid span:nth-child(2) {
    border-right: 1px solid var(--line);
  }

  .author-section,
  .books-section,
  .themes-section,
  .articles-section,
  .rights-section {
    padding: 64px 0;
  }

  .book-feature {
    padding: 42px 0;
  }

  .article-index-hero,
  .article-hero {
    padding: 112px 0 56px;
  }

  .article-index-hero h1,
  .article-hero h1 {
    font-size: 3.15rem;
  }

  .article-subtitle {
    font-size: 1.08rem;
  }

  .article-card {
    min-height: 210px;
  }

  .article-content h2 {
    font-size: 2rem;
  }

  .tag-list li {
    flex: 1 1 auto;
    text-align: center;
  }
}
