/* Forlaget Monolith – style.css */

:root {
  --bg:        hsl(220, 20%, 6%);
  --surface:   hsl(220, 18%, 10%);
  --surface2:  hsl(220, 16%, 13%);
  --border:    hsl(220, 14%, 18%);
  --text:      hsl(220, 15%, 88%);
  --muted:     hsl(220, 10%, 55%);
  --primary:   #c8f050;
  --primary-dk:#9dc038;
  --radius:    8px;
  --radius-lg: 14px;
  --max-w:     900px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,12,18,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 1rem;
}

.nav-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  font-size: .95rem;
  letter-spacing: .02em;
  transition: color .2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--primary); text-decoration: none; }

/* ── Sections ── */
main { flex: 1; }

.section {
  padding: 4rem 1.5rem;
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ── Hero ── */
.hero {
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  background: linear-gradient(160deg, hsl(220,25%,9%) 0%, var(--bg) 60%);
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: .5rem;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.hero-cta {
  display: inline-block;
  background: var(--primary);
  color: #111;
  font-weight: 600;
  padding: .7rem 1.8rem;
  border-radius: var(--radius);
  transition: background .2s, transform .1s;
  text-decoration: none;
}

.hero-cta:hover {
  background: var(--primary-dk);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ── About ── */
.about-text {
  max-width: 680px;
}

.about-text h2 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--text);
  margin-bottom: 1rem;
}

/* ── Book card (index) ── */
.book-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  max-width: var(--max-w);
  margin: 0 auto;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, transform .15s;
}

.book-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.book-card-cover {
  flex-shrink: 0;
  width: 130px;
}

.book-card-cover img {
  width: 100%;
  border-radius: 4px;
  display: block;
  box-shadow: 0 4px 18px rgba(0,0,0,.5);
}

.book-card-body h2 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: .4rem;
  line-height: 1.3;
}

.book-card-body .author {
  color: var(--primary);
  font-size: .9rem;
  margin-bottom: .8rem;
}

.book-card-body p {
  color: var(--muted);
  font-size: .95rem;
}

.book-card-body .read-more {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 600;
  font-size: .9rem;
}

/* ── Book page ── */
.bog-hero {
  padding: 4rem 1.5rem 3rem;
  background: linear-gradient(160deg, hsl(220,25%,9%) 0%, var(--bg) 60%);
}

.bog-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.bog-cover {
  flex-shrink: 0;
  width: 200px;
}

.bog-cover img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
}

.bog-info h1 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: #fff;
  line-height: 1.25;
  margin-bottom: .3rem;
}

.bog-info .subtitle {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: .3rem;
}

.bog-info .author-line {
  color: var(--primary);
  font-size: .95rem;
  margin-bottom: 1.2rem;
}

.bog-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.bog-meta-item {
  font-size: .85rem;
  color: var(--muted);
}

.bog-meta-item strong {
  color: var(--text);
  display: block;
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #111;
  font-weight: 700;
  padding: .8rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .2s, transform .1s;
}

.btn-primary:hover {
  background: var(--primary-dk);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ── Blockquote ── */
.quote-block {
  border-left: 3px solid var(--primary);
  margin: 0;
  padding: 1rem 1.5rem;
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.quote-block p {
  color: var(--text);
  font-style: italic;
  font-size: 1.05rem;
  margin: 0;
}

/* ── Description ── */
.section h2 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1.25rem;
}

.description p {
  color: var(--text);
  margin-bottom: 1rem;
  max-width: 700px;
}

/* ── Gallery ── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.gallery-img {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s;
}

.gallery-img:hover { border-color: var(--primary); }

.gallery-img img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.gallery-img figcaption {
  padding: .4rem .7rem;
  font-size: .8rem;
  color: var(--muted);
  text-align: center;
}

/* ── Reviews ── */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.review-card p {
  color: var(--text);
  font-style: italic;
  margin-bottom: .75rem;
}

.review-card cite {
  color: var(--primary);
  font-size: .85rem;
  font-style: normal;
}

/* ── Details grid ── */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.detail-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.detail-item .detail-label {
  font-size: .8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .25rem;
}

.detail-item .detail-value {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}

/* ── CTA section ── */
.cta-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 3.5rem 1.5rem;
}

.cta-section h2 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: .5rem;
}

.cta-section p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* ── Footer ── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-inner p {
  color: var(--muted);
  font-size: .85rem;
  margin-bottom: .25rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--muted);
  font-size: .85rem;
  transition: color .2s;
}

.footer-links a:hover { color: var(--primary); text-decoration: none; }

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .bog-hero-inner { flex-direction: column; }
  .bog-cover { width: 150px; }
  .book-card { flex-direction: column; }
  .book-card-cover { width: 120px; }
  .nav-links { gap: 1rem; }
}
