/* Cliowe Publications — imprint site */

:root {
  --ink: #070910;
  --ink-2: #0c111c;
  --navy: #141c2e;
  --navy-2: #1b253a;
  --gold: #d4af5a;
  --gold-bright: #f0d898;
  --gold-deep: #a07832;
  --cream: #f3ead7;
  --parchment: #d8cbb0;
  --muted: #a7b0c2;
  --text: #e9e1d2;
  --line: rgba(212, 175, 90, 0.28);
  --line-strong: rgba(212, 175, 90, 0.55);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --font-display: "Cinzel", Palatino, "Palatino Linotype", "Book Antiqua", serif;
  --font-serif: "Cormorant Garamond", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --wrap: 1100px;
  --narrow: 760px;
  --header-h: 4.25rem;
  --radius: 2px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

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

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.75;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% -8%, rgba(180, 140, 60, 0.09), transparent 58%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(20, 28, 46, 0.9), transparent 70%);
}

body > * {
  position: relative;
  z-index: 1;
}

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

a {
  color: var(--gold-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--cream);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--gold);
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.wrap.narrow,
.narrow {
  width: min(var(--narrow), calc(100% - 2.5rem));
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 9, 16, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 9, 16, 0.94);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--cream);
  text-decoration: none;
  min-width: 0;
}

.brand:hover {
  color: var(--gold-bright);
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  flex: none;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-desktop .nav-links {
  display: flex;
  gap: 1.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop a,
.nav-menu a {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--parchment);
  text-decoration: none;
}

.nav-desktop a:hover,
.nav-menu a:hover {
  color: var(--gold-bright);
}

.nav-menu {
  display: none;
  position: relative;
}

.nav-menu summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--parchment);
  padding: 0.45rem 0.2rem;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-menu ul {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  margin: 0;
  padding: 0.7rem 0;
  list-style: none;
  min-width: 14rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.nav-menu li a {
  display: block;
  padding: 0.55rem 1.1rem;
}

/* Hero */

.hero {
  padding: 3.25rem 0 4.5rem;
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  margin: 0;
  width: min(22rem, 82vw);
}

.hero-logo img {
  width: 100%;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
}

.eyebrow {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.tagline {
  margin: 1.15rem 0 0;
  max-width: 38rem;
  font-size: 1.55rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.4;
  color: var(--cream);
}

.nowrap {
  white-space: nowrap;
}

.hero-support {
  margin: 0.95rem 0 0;
  max-width: 36rem;
  font-size: 1.18rem;
  font-weight: 500;
  font-style: normal;
  line-height: 1.6;
  color: var(--parchment);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.55rem 1.35rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--gold);
  color: #160f06;
}

.btn-primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: #160f06;
}

.btn-ghost {
  background: transparent;
  color: var(--gold-bright);
}

.btn-ghost:hover {
  background: rgba(212, 175, 90, 0.1);
  color: var(--cream);
}

/* Sections */

.section {
  padding: 4.25rem 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-label {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}

.section h2 {
  margin: 0 0 1.4rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--cream);
  letter-spacing: -0.01em;
}

.about .prose {
  max-width: 46rem;
}

.lead {
  margin: -0.4rem 0 2rem;
  max-width: 40rem;
  color: var(--parchment);
  font-size: 1.28rem;
}

.prose p {
  margin: 0 0 1.15rem;
  color: var(--text);
}

.prose p:last-child {
  margin-bottom: 0;
}

.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.principles article,
.aims,
.niche,
.author-card,
.empty-catalogue,
.book-card {
  background: linear-gradient(180deg, rgba(20, 28, 46, 0.65), rgba(12, 17, 28, 0.8));
  border: 1px solid var(--line);
  padding: 1.5rem 1.45rem 1.4rem;
}

.principles h3,
.aims h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.principles p {
  margin: 0;
  color: var(--parchment);
}

.aims {
  margin-top: 1.25rem;
}

.aims ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.aims li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.35rem;
  border-top: 1px solid rgba(212, 175, 90, 0.14);
  color: var(--text);
}

.aims li:first-child {
  border-top: 0;
  padding-top: 0.15rem;
}

.aims li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15em;
  width: 0.55rem;
  border-top: 1px solid var(--gold);
}

/* Catalogue */

.empty-catalogue {
  text-align: center;
  padding: 3rem 1.5rem 2.6rem;
}

.empty-catalogue img {
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 1.1rem;
  opacity: 0.95;
}

.empty-catalogue h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--cream);
}

.empty-catalogue p {
  margin: 0 auto;
  max-width: 32rem;
  color: var(--parchment);
}

.catalogue-count {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 20rem));
  gap: 1.5rem;
}

.book-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  height: 100%;
}

.book-cover-wrap {
  background: #05070d;
  border-bottom: 1px solid var(--line);
}

.book-cover {
  width: 100%;
  aspect-ratio: 5 / 8;
  object-fit: cover;
  object-position: top center;
}

.book-cover-empty {
  aspect-ratio: 5 / 8;
  background:
    linear-gradient(180deg, rgba(212, 175, 90, 0.08), transparent 55%),
    var(--navy);
}

.book-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.15rem 1.15rem 1.25rem;
  flex: 1;
}

.book-author {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.book-card h3 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--cream);
}

.book-subtitle {
  margin: 0;
  font-style: italic;
  color: var(--parchment);
  font-size: 1.05rem;
}

.book-blurb {
  margin: 0.35rem 0 0;
  color: var(--text);
  font-size: 1.08rem;
  flex: 1;
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 0;
}

.book-actions-pending {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.shop-btn {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--line-strong);
  color: var(--gold-bright);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shop-btn:hover {
  background: rgba(212, 175, 90, 0.12);
  color: var(--cream);
  border-color: var(--gold);
}

/* Niches */

.niche-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.niche {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.4rem 1.25rem 1.3rem;
}

.niche-num {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.niche h3 {
  margin: 0 0 0.55rem;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--cream);
}

.niche p {
  margin: 0;
  color: var(--parchment);
  font-size: 1.12rem;
}

/* Authors */

.author-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.author-role {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.author-card h3 {
  margin: 0 0 0.75rem;
  font-size: 2rem;
  font-weight: 600;
  color: var(--cream);
}

.author-card p:last-child {
  margin: 0;
  color: var(--text);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.footer-inner img {
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.55rem;
}

.footer-copy,
.footer-sister {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-sister a {
  color: var(--gold-bright);
  text-decoration: none;
}

.footer-sister a:hover {
  color: var(--cream);
  text-decoration: underline;
}

/* 404 */

.page-404 {
  min-height: calc(100vh - var(--header-h) - 8rem);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 0;
}

.page-404 h1 {
  margin: 0.8rem 0 0.6rem;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  color: var(--cream);
}

.page-404 p {
  margin: 0 0 1.5rem;
  color: var(--parchment);
}

/* Responsive */

@media (max-width: 900px) {
  .niche-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .nav-menu {
    display: block;
  }

  .brand-name {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }

  .principles,
  .author-grid,
  .niche-grid {
    grid-template-columns: 1fr;
  }

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

  .tagline {
    font-size: 1.32rem;
  }

  .hero-support {
    font-size: 1.1rem;
  }

  .section {
    padding: 3.25rem 0;
  }

  .wrap,
  .wrap.narrow,
  .narrow {
    width: min(var(--wrap), calc(100% - 1.6rem));
  }
}

@media (max-width: 430px) {
  body {
    font-size: 1.14rem;
  }

  .brand-name {
    letter-spacing: 0.08em;
  }

  .hero-logo {
    width: min(18.5rem, 86vw);
  }

  .hero-actions {
    width: 100%;
  }

  .btn {
    flex: 1 1 9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
