:root {
  --bg: #080808;
  --panel: #111111;
  --panel-soft: #161616;
  --line: #2a2a2a;
  --text: #f2f0eb;
  --muted: #b9b3aa;
  --faint: #817a70;
  --accent: #d8d0c4;
  --accent-dark: #a79d90;
  --max: 1180px;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at top, #171717 0, var(--bg) 42rem);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; color: var(--muted); }
h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(3rem, 7vw, 6.75rem); letter-spacing: -.06em; }
h2 { font-size: clamp(2rem, 4vw, 3.8rem); letter-spacing: -.045em; }
h3 { font-size: clamp(1.35rem, 2vw, 2rem); letter-spacing: -.025em; }
.small-caps { text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; color: var(--accent-dark); font-weight: 700; }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(8,8,8,.82);
  backdrop-filter: blur(18px);
}
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; min-width: 190px; }
.brand img { height: 54px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; color: var(--muted); font-size: .95rem; }
.nav-links a { padding: .35rem 0; border-bottom: 1px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent-dark); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: .55rem .8rem; }
.hero { padding: clamp(3rem, 6vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); }

.brand-hero {
  min-height: calc(68vh - 78px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.hero-brand-inner {
  max-width: 920px;
  text-align: left;
}
.hero-brand-inner .lede {
  max-width: 720px;
}

.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-logo { width: min(420px, 70vw); margin-bottom: 2rem; }
.lede { font-size: clamp(1.08rem, 2vw, 1.35rem); color: var(--accent); max-width: 680px; }
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: .95rem 1.45rem; border: 1px solid var(--accent-dark); color: var(--bg); background: var(--accent); font-weight: 700; min-height: 48px; }
.btn.secondary { background: transparent; color: var(--text); border-color: var(--line); }
.btn:hover { transform: translateY(-1px); }
.hero-card { background: linear-gradient(180deg, #191919, #101010); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.hero-card img { border-radius: calc(var(--radius) - 8px); aspect-ratio: 2/3; object-fit: cover; width: 100%; }
.section { padding: clamp(3rem, 7vw, 6rem) 0; border-top: 1px solid rgba(255,255,255,.07); }
.section-head { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.section-head p { max-width: 620px; }
.grid { display: grid; gap: 1.25rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card:hover { border-color: #474747; }
.book-card { display: grid; grid-template-columns: 160px 1fr; gap: 1.25rem; align-items: start; min-height: 265px; }
.book-cover { border-radius: 14px; border: 1px solid var(--line); background: #222; aspect-ratio: 2/3; object-fit: cover; width: 100%; box-shadow: 0 18px 45px rgba(0,0,0,.35); }
.meta { display: flex; flex-wrap: wrap; gap: .55rem; margin: .85rem 0 1rem; }
.pill { border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: .25rem .65rem; font-size: .78rem; }
.link { color: var(--accent); font-weight: 700; }
.featured-books { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.book-page { display: grid; grid-template-columns: minmax(240px, 370px) 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.book-page .book-cover { position: sticky; top: 110px; }
.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 1.5rem 0; }
.detail { border-top: 1px solid var(--line); padding-top: .75rem; }
.detail strong { display: block; color: var(--text); }
.author-card { display: flex; gap: 1.2rem; align-items: flex-start; }
.avatar { width: 88px; height: 88px; border-radius: 50%; border: 1px solid var(--line); background: linear-gradient(135deg,#1f1f1f,#0e0e0e); display: grid; place-items: center; color: var(--accent); font-family: Georgia, serif; font-size: 1.4rem; flex: 0 0 auto; }
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
label { color: var(--text); font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid var(--line); background: #0e0e0e; color: var(--text); border-radius: 14px; padding: .9rem 1rem; font: inherit; }
textarea { min-height: 160px; resize: vertical; }
.help { color: var(--faint); font-size: .9rem; }
.notice { border-left: 3px solid var(--accent-dark); padding: 1rem 1.2rem; background: rgba(255,255,255,.035); color: var(--muted); border-radius: 12px; }
ul.clean { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
ul.clean li { padding-left: 1.4rem; position: relative; color: var(--muted); }
ul.clean li:before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: var(--accent-dark); position: absolute; left: 0; top: .7rem; }
.site-footer { border-top: 1px solid rgba(255,255,255,.08); padding: 3rem 0; background: #060606; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .9fr .9fr; gap: 2rem; }
.footer-logo { height: 44px; width: auto; margin-bottom: 1rem; }
.footer-links { display: grid; gap: .5rem; color: var(--muted); }
.legal-copy { color: var(--faint); font-size: .9rem; margin-top: 1rem; }
.legal-page .card { margin-top: 1rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
@media (max-width: 850px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; left: 1rem; right: 1rem; top: 78px; background: #101010; border: 1px solid var(--line); border-radius: 18px; padding: 1rem; flex-direction: column; align-items: stretch; }
  .nav-links.open { display: flex; }
  .hero-grid, .grid.two, .grid.three, .featured-books, .book-page, .footer-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 360px; }
  .book-card { grid-template-columns: 110px 1fr; }
  .section-head { display: block; }
}
@media (max-width: 520px) {
  .book-card { grid-template-columns: 1fr; }
  .book-card .book-cover { max-width: 190px; }
  .details { grid-template-columns: 1fr; }
}


.cover-wrap {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  border-radius: 14px;
  line-height: 0;
}

.cover-wrap .book-cover {
  display: block;
  width: 100%;
  height: auto;
}



/* Mobile production pass */
@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    background: radial-gradient(circle at top, #141414 0, var(--bg) 34rem);
  }

  .wrap {
    width: min(100% - 1.25rem, var(--max));
  }

  .site-header {
    position: sticky;
  }

  .nav {
    min-height: 64px;
    gap: .75rem;
  }

  .brand {
    min-width: 0;
    max-width: 150px;
  }

  .brand img {
    height: 34px;
    max-width: 150px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: .55rem .9rem;
    font-size: .95rem;
  }

  .nav-links {
    position: absolute;
    left: .75rem;
    right: .75rem;
    top: calc(100% + .5rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .55rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(12,12,12,.98);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open,
  .nav-links[data-open="true"] {
    display: flex;
  }

  .nav-links a {
    padding: .85rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .hero {
    padding: 3.25rem 0 2.75rem;
  }

  .brand-hero {
  min-height: calc(68vh - 78px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

  .hero-brand-inner {
    max-width: 100%;
  }

  h1 {
    font-size: clamp(2.35rem, 14vw, 3.65rem);
    line-height: .98;
    letter-spacing: -.055em;
  }

  h2 {
    font-size: clamp(1.95rem, 11vw, 2.75rem);
    line-height: 1.02;
  }

  h3 {
    font-size: clamp(1.3rem, 7vw, 1.75rem);
  }

  .small-caps {
    font-size: .68rem;
    letter-spacing: .16em;
  }

  .lede {
    font-size: 1.02rem;
    line-height: 1.55;
    max-width: 100%;
  }

  .hero-actions,
  .actions {
    flex-direction: column;
    align-items: stretch;
    gap: .7rem;
  }

  .btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: .95rem 1.45rem; border: 1px solid var(--accent-dark); color: var(--bg); background: var(--accent); font-weight: 700; min-height: 48px; }

  .section {
    padding: 3rem 0;
  }

  .section-head {
    display: block;
    margin-bottom: 1.25rem;
  }

  .section-head p {
    max-width: 100%;
  }

  .grid,
  .grid.two,
  .grid.three,
  .featured-books {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .card {
    padding: 1rem;
    border-radius: 18px;
    max-width: 100%;
  }

  .book-card {
    grid-template-columns: 1fr;
    gap: 1rem;
    min-height: 0;
  }

  .book-card .book-cover,
  .book-card .cover-wrap {
    width: min(230px, 72vw);
    justify-self: start;
  }

  .book-card p {
    font-size: .98rem;
  }

  .meta {
    gap: .45rem;
  }

  .pill {
    max-width: 100%;
    white-space: normal;
  }

  .cover-wrap {
    border-radius: 12px;
  }

  .book-page {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .book-page .book-cover,
  .book-page .cover-wrap {
    position: static;
    width: min(260px, 78vw);
    justify-self: start;
  }

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

  .author-card {
    flex-direction: column;
  }

  .avatar {
    width: 74px;
    height: 74px;
    font-size: 1.1rem;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  footer .grid,
  .site-footer .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .wrap {
    width: calc(100% - 1rem);
  }

  h1 {
    font-size: clamp(2.15rem, 13vw, 3.05rem);
  }

  .hero {
    padding-top: 2.6rem;
  }

  .brand img {
    height: 30px;
    max-width: 132px;
  }

  .book-card .book-cover,
  .book-card .cover-wrap {
    width: min(205px, 70vw);
  }

  .book-page .book-cover,
  .book-page .cover-wrap {
    width: min(235px, 76vw);
  }
}


.status-line {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--accent);
  margin: .25rem 0 .85rem;
}

.status-dot {
  width: .62rem;
  height: .62rem;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(255,255,255,.04);
}

.status-dot.development { background: #7851A9; }
.status-dot.available { background: #3fa66b; }


/* Final mobile corrections */
@media (max-width: 760px) {
  .brand-hero {
    min-height: auto;
  }

  .hero {
    padding: 2.4rem 0 2.25rem;
  }

  .featured-books {
    grid-template-columns: 1fr;
  }

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

  .book-card .cover-wrap,
  .book-card .book-cover {
    width: min(220px, 68vw);
  }

  .status-line {
    margin-top: 0;
  }
}

@media (max-width: 420px) {
  .book-card .cover-wrap,
  .book-card .book-cover {
    width: min(205px, 70vw);
  }
}











/* Definitive Coming Soon book-cover band */
.coming-soon-cover {
  position: relative;
  overflow: hidden;
}

.coming-soon-cover::before {
  content: "COMING SOON";
  position: absolute;
  left: 0;
  right: 0;
  top: 75%;
  width: 100%;
  transform: translateY(-50%);
  background: linear-gradient(180deg, #8b62bd, #6d459f);
  color: #fff;
  font-size: clamp(.58rem, 3vw, .82rem);
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1;
  text-align: center;
  padding: 5.2% 0;
  box-shadow: 0 10px 24px rgba(0,0,0,.32);
  z-index: 2;
  pointer-events: none;
  border-top: 1px solid rgba(255,255,255,.28);
  border-bottom: 1px solid rgba(0,0,0,.25);
  box-sizing: border-box;
}

@media (max-width: 760px) {
  .book-card .cover-wrap {
    width: min(220px, 68vw);
    max-width: 100%;
  }

  .book-page .cover-wrap {
    width: min(260px, 78vw);
    max-width: 100%;
  }

  .book-card .cover-wrap .book-cover,
  .book-page .cover-wrap .book-cover {
    width: 100% !important;
    max-width: none !important;
  }

  .coming-soon-cover::before {
    top: 75%;
    font-size: clamp(.58rem, 4.4vw, .78rem);
    padding: 5.4% 0;
  }
}

@media (max-width: 420px) {
  .book-card .cover-wrap {
    width: min(205px, 70vw);
  }

  .book-page .cover-wrap {
    width: min(235px, 76vw);
  }
}
