/* =============================================
   HARD SHIVER — Bookshop Noir Design System
   Deep ink, warm bone, amber. Editorial publishing house.
   ============================================= */

:root {
  --ink:        #0B0B0E;       /* deep blue-black */
  --ink-2:      #131318;
  --ink-3:      #1C1C24;
  --bone:       #EDE6D6;       /* warm cream */
  --bone-2:     #DDD4BE;
  --bone-dim:   rgba(237,230,214,0.7);
  --bone-faint: rgba(237,230,214,0.45);
  --bone-line:  rgba(237,230,214,0.15);
  --amber:      #E89B4C;       /* warm amber, distinct from VR red */
  --amber-deep: #C77A2E;
  --rust:       #9F4427;
  --muted:      #7C7768;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  background: var(--ink);
  color: var(--bone);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Subtle paper texture overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.025;
  background-image:
    radial-gradient(circle at 18% 28%, rgba(237,230,214,0.9) 0.6px, transparent 1px),
    radial-gradient(circle at 62% 70%, rgba(237,230,214,0.9) 0.6px, transparent 1px),
    radial-gradient(circle at 85% 18%, rgba(237,230,214,0.9) 0.6px, transparent 1px);
  background-size: 70px 70px, 110px 110px, 90px 90px;
}
main, .nav, .footer { position: relative; z-index: 1; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; position: relative; }

/* ============== TYPE ============== */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.05;
  color: var(--bone);
}
h1 { font-size: clamp(2.8rem, 7vw, 6rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 0.5em; font-weight: 500; }
h3 { font-size: 1.5rem; font-weight: 500; line-height: 1.2; margin-bottom: 0.4em; }
h4 { font-size: 1.05rem; font-weight: 600; font-family: 'Inter', sans-serif; letter-spacing: 0.05em; }

.italic { font-style: italic; font-weight: 400; }
.amber { color: var(--amber); }
.muted-text { color: var(--bone-faint); }

p { font-size: 1.05rem; color: var(--bone-dim); margin-bottom: 1em; }

a { color: var(--amber); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--bone); }

::selection { background: var(--amber); color: var(--ink); }

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.2rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--amber);
}

/* Section number */
.chapter {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bone-faint);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chapter::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--bone-line);
}

/* ============== NAV ============== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,11,14,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bone-line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: 1340px;
  margin: 0 auto;
}
.brand {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--bone);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand .italic { font-style: italic; font-weight: 400; }
.brand:hover { color: var(--amber); }
.brand-mark { display: inline-flex; flex-shrink: 0; }

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  color: var(--bone);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
}
.nav-links a.active { color: var(--amber); }
.nav-links a:hover { color: var(--amber); }
.nav-links .cta-btn { margin-left: 10px; }

/* ============== BUTTONS ============== */
a.btn,
button.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--bone);
  color: var(--ink) !important;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  border: 1.5px solid var(--bone);
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  line-height: 1.2;
  border-radius: 0;
}
a.btn:hover,
button.btn:hover {
  background: var(--amber);
  color: var(--ink) !important;
  border-color: var(--amber);
}
a.btn-ghost,
button.btn-ghost {
  background: transparent;
  color: var(--bone) !important;
  border: 1.5px solid var(--bone);
}
a.btn-ghost:hover,
button.btn-ghost:hover {
  background: var(--bone);
  color: var(--ink) !important;
}
a.btn-amber,
button.btn-amber {
  background: var(--amber);
  color: var(--ink) !important;
  border-color: var(--amber);
}
a.btn-amber:hover,
button.btn-amber:hover {
  background: var(--bone);
  color: var(--ink) !important;
  border-color: var(--bone);
}
.cta-btn {
  padding: 10px 20px !important;
  font-size: 0.82rem !important;
}

/* ============== HERO ============== */
.hero {
  padding: 90px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero h1 {
  margin-bottom: 24px;
  max-width: 680px;
}
.hero .sub {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--bone-dim);
  max-width: 540px;
  margin-bottom: 2rem;
  line-height: 1.55;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stack {
  position: relative;
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-stack .book {
  position: absolute;
  width: 60%;
  aspect-ratio: 2/3;
  background: var(--ink-2);
  border: 1px solid var(--bone-line);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  transition: transform 0.4s ease;
}
.hero-stack .book img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-stack .book-1 { transform: translate(-30%, -8%) rotate(-8deg); z-index: 1; }
.hero-stack .book-2 { transform: translate(0%, 4%) rotate(2deg); z-index: 3; }
.hero-stack .book-3 { transform: translate(30%, -10%) rotate(7deg); z-index: 2; }
.hero-stack:hover .book-1 { transform: translate(-35%, -10%) rotate(-10deg); }
.hero-stack:hover .book-3 { transform: translate(35%, -12%) rotate(9deg); }

/* ============== SECTION BASE ============== */
.section { padding: 90px 0; position: relative; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}
.section-head h2 { flex: 1; min-width: 280px; margin-bottom: 0; }
.section-head .lead {
  max-width: 420px;
  font-size: 1.05rem;
  color: var(--bone-dim);
}
.section-head .view-all {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid var(--amber);
  padding-bottom: 4px;
}
.section-head .view-all:hover { color: var(--bone); border-color: var(--bone); }

/* ============== CATALOG ============== */
.catalog {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 28px;
}
.catalog.three { grid-template-columns: repeat(3, 1fr); }
.catalog.two { grid-template-columns: repeat(2, 1fr); }

.book-card {
  display: flex;
  flex-direction: column;
  position: relative;
}
.book-card .cover {
  aspect-ratio: 2/3;
  background: var(--ink-2);
  border: 1px solid var(--bone-line);
  margin-bottom: 18px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.book-card:hover .cover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.book-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.book-card .cover .placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--bone-faint);
  font-size: 1.5rem;
  text-align: center;
  padding: 24px;
  line-height: 1.1;
}
.book-card .tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 6px;
}
.book-card h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
  line-height: 1.15;
}
.book-card .author {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--bone-faint);
  margin-bottom: 10px;
}
.book-card .desc {
  font-size: 0.92rem;
  color: var(--bone-dim);
  margin-bottom: 14px;
  line-height: 1.5;
}
.book-card .links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.book-card .links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 11px;
  border: 1px solid var(--bone-line);
  background: transparent;
  color: var(--bone);
  transition: all 0.15s;
}
.book-card .links a:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

/* ============== AUDIO ROW ============== */
.ab-list {
  border-top: 1px solid var(--bone-line);
}
.ab-row {
  display: grid;
  grid-template-columns: 88px 60px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--bone-line);
  transition: background 0.2s;
}
.ab-row:hover { background: rgba(237,230,214,0.025); }
.ab-row .ab-cover {
  width: 88px;
  aspect-ratio: 1;
  background: var(--ink-2);
  border: 1px solid var(--bone-line);
  overflow: hidden;
  position: relative;
}
.ab-row .ab-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-row .ab-cover .placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  color: var(--bone-faint);
  font-size: 1.4rem;
  font-style: italic;
}
.ab-row .num {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-style: italic;
  font-weight: 400;
  color: var(--amber);
  line-height: 1;
}
.ab-row .title h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.ab-row .title .meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-faint);
}
.ab-row .links {
  display: flex;
  gap: 6px;
}
.ab-row .links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 11px;
  border: 1px solid var(--bone-line);
  color: var(--bone);
  transition: all 0.15s;
}
.ab-row .links a:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

/* ============== STATS ============== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--bone-line);
  border-bottom: 1px solid var(--bone-line);
  margin: 60px 0;
}
.stat-cell {
  padding: 36px 24px;
  border-right: 1px solid var(--bone-line);
  text-align: center;
}
.stat-cell:last-child { border-right: none; }
.stat-cell .num {
  font-family: 'Playfair Display', serif;
  font-size: 3.6rem;
  font-style: italic;
  line-height: 1;
  color: var(--amber);
  font-weight: 400;
}
.stat-cell .lbl {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-faint);
  margin-top: 10px;
}

/* ============== COMING SOON ============== */
.coming-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.coming-item {
  border: 1px solid var(--bone-line);
  padding: 40px 36px;
  position: relative;
  background: var(--ink-2);
}
.coming-item h3 {
  color: var(--amber);
  font-size: 2.4rem;
  margin-bottom: 12px;
}
.coming-item .meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-faint);
}
.coming-item::before {
  content: "Coming Soon";
  position: absolute;
  top: -10px;
  left: 24px;
  background: var(--ink);
  color: var(--amber);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0 12px;
}

/* ============== CTA STRIP ============== */
.cta-strip {
  background: linear-gradient(135deg, var(--ink-2), var(--ink));
  padding: 90px 0;
  border-top: 1px solid var(--bone-line);
  border-bottom: 1px solid var(--bone-line);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-strip::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -10%;
  width: 50%;
  height: 140%;
  background: radial-gradient(circle, rgba(232,155,76,0.15), transparent 65%);
  filter: blur(50px);
}
.cta-strip .wrap { position: relative; z-index: 1; max-width: 720px; }
.cta-strip h2 { margin-bottom: 20px; }
.cta-strip p { font-size: 1.1rem; max-width: 540px; margin: 0 auto 32px; }
.cta-strip .hero-cta { justify-content: center; }

/* ============== PAGE HEADER ============== */
.page-header {
  padding: 90px 0 40px;
  border-bottom: 1px solid var(--bone-line);
}
.page-header h1 { font-size: clamp(2.6rem, 7vw, 5rem); margin-bottom: 18px; max-width: 900px; line-height: 1; }
.page-header p { font-size: 1.15rem; color: var(--bone-dim); max-width: 720px; }
.page-header .breadcrumb {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bone-faint);
  margin-bottom: 24px;
}

/* ============== FORM ============== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.form-aside h3 { margin-bottom: 14px; font-size: 1.8rem; }
.form-aside p { font-size: 1rem; }
.form-aside ul { list-style: none; margin: 28px 0; }
.form-aside li {
  padding: 18px 0;
  border-top: 1px solid var(--bone-line);
}
.form-aside li:last-child { border-bottom: 1px solid var(--bone-line); }
.form-aside li strong {
  display: block;
  color: var(--bone);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.form-aside li span { color: var(--bone-dim); font-size: 0.95rem; line-height: 1.5; }

.contact-form {
  background: var(--ink-2);
  border: 1px solid var(--bone-line);
  padding: 44px 40px;
  position: relative;
}
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 10px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--bone-line);
  padding: 10px 0;
  color: var(--bone);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--amber);
}
.field select option { background: var(--ink-2); color: var(--bone); }
.field textarea { min-height: 130px; resize: vertical; font-family: inherit; }
.field .hint { font-size: 0.85rem; color: var(--bone-faint); margin-top: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.hp { position: absolute; left: -10000px; }
.contact-form button.btn { display: block; width: 100%; margin-top: 12px; }

/* ============== FOOTER ============== */
.footer {
  background: var(--ink);
  border-top: 1px solid var(--bone-line);
  padding: 70px 0 28px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer .brand { margin-bottom: 18px; display: inline-flex; }
.footer-brand p { font-size: 0.95rem; max-width: 360px; color: var(--bone-faint); }
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  color: var(--bone);
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  margin-bottom: 10px;
  text-decoration: none;
}
.footer-col a:hover { color: var(--amber); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 60px;
  padding-top: 26px;
  border-top: 1px solid var(--bone-line);
  flex-wrap: wrap;
  gap: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--bone-faint);
}
.socials { display: flex; gap: 10px; }
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--bone-line);
  color: var(--bone);
  text-decoration: none;
  transition: all 0.15s;
}
.socials a:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

/* ============== RESPONSIVE ============== */
@media (max-width: 1024px) {
  .catalog { grid-template-columns: repeat(3, 1fr); }
  .catalog.three { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(-n+2) { border-bottom: 1px solid var(--bone-line); }
}
@media (max-width: 768px) {
  .nav-inner { padding: 16px 20px; }
  .nav-links { gap: 18px; }
  .nav-links a:not(.cta-btn) { display: none; }
  .wrap { padding: 0 20px; }
  .hero { padding: 60px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .section { padding: 60px 0; }
  .section-head { flex-direction: column; align-items: flex-start; margin-bottom: 40px; }
  .catalog, .catalog.three, .catalog.two { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .coming-grid { grid-template-columns: 1fr; }
  .stats { margin: 40px 0; }
  .ab-row { grid-template-columns: 64px 40px 1fr; gap: 16px; grid-template-areas: "cover num title" "cover links links"; }
  .ab-row .ab-cover { width: 64px; grid-area: cover; }
  .ab-row .num { grid-area: num; font-size: 1.8rem; }
  .ab-row .title { grid-area: title; }
  .ab-row .links { grid-area: links; flex-wrap: wrap; }
  .form-grid { grid-template-columns: 1fr; gap: 40px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .catalog, .catalog.three, .catalog.two { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
