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

:root {
  --bg:       #f0e6cc;
  --white:    #f8f0d8;
  --ink:      #1C1C1A;
  --mid:      #1C1C1A;
  --light:    #C8C4BC;
  --accent:   #c9a96e;
  --serif:    'Fraunces', Georgia, 'Times New Roman', Times, serif;
  --sans:     'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

/* ── NAV ─────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 110px;
}

.nav-logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  height: 100%;
}
.nav-logo img {
  height: 90px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }

.nav-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.nav-social a { color: var(--mid); text-decoration: none; transition: color 0.2s; }
.nav-social a:hover { color: var(--ink); }
.nav-social svg { width: 18px; height: 18px; fill: currentColor; }

/* hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); margin: 5px 0; transition: 0.3s;
}

/* ── HERO ────────────────────────────────── */
.hero {
  padding: 6rem 2rem 5rem;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.hero-logo {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto 2.5rem;
  mix-blend-mode: multiply;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero p {
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.8;
}

/* ── SECTION WRAPPER ─────────────────────── */
section { padding: 5rem 2rem; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ink);
}

/* ── NYHEDER ─────────────────────────────── */
.news-grid {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
}

.news-card {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease;
}
.news-card:hover { transform: translateY(-3px); }
.news-card:hover .news-cover { box-shadow: 0 10px 28px rgba(0,0,0,0.15); }

@media (max-width: 700px) {
  .news-grid {
    flex-direction: column;
    align-items: center;
  }
  .news-card {
    max-width: 280px;
    text-align: center;
  }
  .news-cover {
    margin: 0 auto;
  }
}

.news-cover {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 5/8;
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
  box-shadow: 0 8px 22px rgba(0,0,0,0.2);
  flex-shrink: 0;
}
img.news-cover {
  object-fit: cover;
  padding: 0;
  display: block;
}
.news-cover .cover-title-overlay {
  font-size: 0.85rem;
}

.news-card .byline {
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
  letter-spacing: 0.05em;
}
.news-card h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}
.news-card p {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.75;
}


/* ── BØGER ───────────────────────────────── */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 2.5rem 2rem;
}

.book-card {
  display: block;
  color: inherit;
  text-decoration: none;
}
.book-card:hover .book-cover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(0,0,0,0.32);
}

.book-cover {
  width: 100%;
  aspect-ratio: 5/8;
  background: var(--accent);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
  position: relative;
  overflow: hidden;
}
img.book-cover {
  object-fit: cover;
  padding: 0;
  display: block;
}
img.book-cover[src$="crusader.jpg"] {
  object-fit: contain;
  background: #000;
}

/* individual cover colours */
.cover-1 { background: linear-gradient(145deg, #2B4A6F 0%, #1a2f46 100%); }
.cover-2 { background: linear-gradient(145deg, #5C4033 0%, #3a2820 100%); }
.cover-3 { background: linear-gradient(145deg, #3D5A48 0%, #263a2f 100%); }
.cover-4 { background: linear-gradient(145deg, #614D7A 0%, #3d3050 100%); }
.cover-5 { background: linear-gradient(145deg, #7A4F3A 0%, #4f3225 100%); }
.cover-6 { background: linear-gradient(145deg, #3A5A6E 0%, #243a48 100%); }
.cover-7 { background: linear-gradient(145deg, #6E5A3A 0%, #473a24 100%); }
.cover-8 { background: linear-gradient(145deg, #4A6E5A 0%, #2f4a3a 100%); }

.cover-title-overlay {
  color: rgba(255,255,255,0.92);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.3;
}

.book-info {
  display: flex;
  flex-direction: column;
  margin-top: 0.85rem;
}
.book-info .book-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.3;
  margin-bottom: 0.2rem;
  order: 1;
}
.book-info .book-author {
  font-size: 0.95rem;
  color: var(--ink);
  order: 2;
}

/* ── OM FORLAGET ─────────────────────────── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text h2 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.5rem;
}
.about-text p {
  color: var(--mid);
  line-height: 1.85;
  margin-bottom: 1rem;
}
.about-text p:last-child { margin-bottom: 0; }

.about-aside .about-photo {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(0.15);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.about-aside .about-photo-caption {
  font-size: 0.75rem;
  color: var(--mid);
  margin-top: 0.6rem;
}

.about-aside h3 {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 1rem;
}
.about-aside p {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.7;
}

/* ── KONTAKT ─────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.contact-info h2 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.contact-info p {
  color: var(--mid);
  line-height: 1.85;
  margin-bottom: 0.5rem;
}
.contact-info {
  padding: 0 1.5rem;
}
.contact-info a { color: var(--ink); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

.contact-social {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}
.contact-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  border: 1px solid var(--light);
  padding: 0.5rem 0.85rem;
  transition: border-color 0.2s, color 0.2s;
}
.contact-social a:hover { border-color: var(--ink); color: var(--ink); }
.contact-social svg { width: 14px; height: 14px; fill: currentColor; }

/* Manuscript form */
.manus-box {
  background: var(--bg);
  padding: 0 1.5rem;
}
.manus-box h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.manus-box p {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.manus-box a { color: var(--ink); text-decoration: none; }
.manus-box a:hover { text-decoration: underline; }

/* Right-column wrapper: stacks Manuskripter + Nyhedsbrev */
.contact-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Newsletter signup — matches the manus-box card style, left-aligned */
.newsletter-box {
  background: var(--bg);
  padding: 1rem 1.5rem;
}
.newsletter-box h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.newsletter-box p {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.newsletter-form {
  display: flex;
  gap: 0.5rem;
}
.form-honey {
  display: none;
}
.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--ink);
  background: transparent;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink);
}
.newsletter-form input:focus {
  outline: none;
  border-width: 2px;
  padding: calc(0.75rem - 1px) calc(1rem - 1px);
}
.newsletter-form button {
  padding: 0.75rem 1.5rem;
  background: var(--ink);
  color: var(--white);
  border: none;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--accent); }
.newsletter-box .newsletter-consent {
  font-size: 0.75rem;
  line-height: 1.5;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

@media (max-width: 500px) {
  .newsletter-form { flex-direction: column; }
}

/* ── 404 ─────────────────────────────────── */
.not-found {
  text-align: center;
  padding: 4rem 0;
  max-width: 520px;
  margin: 0 auto;
}
.not-found-code {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  color: var(--accent);
  margin-bottom: 1rem;
}
.not-found h1 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.not-found p {
  color: var(--mid);
  line-height: 1.85;
  margin-bottom: 1rem;
}
.not-found-link {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.not-found-link:hover { color: var(--accent); }

/* ── FOOTER ──────────────────────────────── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  padding: 2.5rem 2rem;
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.8;
}
footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
footer a:hover { color: #fff; }

/* ── BOOK DETAIL PAGE ────────────────────── */
.book-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}

.book-back {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  margin-bottom: 3rem;
  transition: color 0.2s;
}
.book-back:hover { color: var(--ink); }

.book-detail {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}

.book-media {
  width: 100%;
}

.book-detail .book-cover {
  aspect-ratio: 5/8;
  box-shadow: 0 12px 36px rgba(0,0,0,0.18);
}
.book-detail .book-cover .cover-title-overlay {
  font-size: 1.1rem;
}
.book-detail img.book-cover-img {
  width: 100%;
  aspect-ratio: 5/8;
  object-fit: cover;
  box-shadow: 0 12px 36px rgba(0,0,0,0.18);
  display: block;
}
.book-detail img.book-cover-img[src$="crusader.jpg"] {
  object-fit: contain;
  background: #000;
}
.book-downloads {
  border-top: 1px solid var(--light);
  margin-top: 1rem;
  padding-top: 0.9rem;
  display: grid;
  gap: 0.45rem;
}
.book-downloads a {
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-decoration: none;
  text-transform: uppercase;
}
.book-downloads a:hover {
  color: var(--accent);
}

.book-detail h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.4rem;
}
.book-detail .book-author-line {
  font-size: 1rem;
  color: var(--mid);
  margin-bottom: 1.5rem;
}
.book-detail .book-meta {
  font-size: 0.82rem;
  color: var(--mid);
  border-top: 1px solid var(--light);
  border-bottom: 1px solid var(--light);
  padding: 0.85rem 0;
  margin-bottom: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.book-detail .book-desc {
  font-family: var(--sans);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--ink);
}
.book-detail .book-desc p { margin-bottom: 1rem; }
.book-detail .book-desc p:last-child { margin-bottom: 0; }
.book-detail .book-desc em { color: var(--mid); }

@media (max-width: 700px) {
  .book-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
    justify-items: center;
  }
  .book-detail .book-cover,
  .book-detail img.book-cover-img,
  .book-media {
    max-width: 240px;
  }
  .book-media {
    width: min(100%, 240px);
    margin: 0 auto;
    justify-self: center;
  }
  .book-detail > div:last-child {
    text-align: center;
  }
  .book-detail .book-meta {
    justify-content: center;
  }
  .book-downloads {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .book-detail .book-desc {
    text-align: left;
  }
}

/* ── REVIEWS / ANMELDELSER ──────────────── */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 720px;
  margin: 0 auto;
}

.review-quote blockquote {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.55;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--accent);
}

.review-quote .review-attribution {
  font-size: 0.82rem;
  color: var(--mid);
  letter-spacing: 0.05em;
  padding-left: 1.5rem;
}
.review-quote .review-attribution::before {
  content: "— ";
}
.review-quote .review-attribution strong {
  color: var(--ink);
  font-weight: 500;
}

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 700px) {
  .nav-links, .nav-social { display: none; }
  .nav-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--light);
    padding: 1.5rem 2rem;
    gap: 1.25rem;
  }

  .about-layout, .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

@media (max-width: 520px) {
  section { padding: 4rem 1.25rem; }

  nav {
    height: 86px;
    padding: 0 1.25rem;
  }

  .nav-logo img {
    height: 70px;
  }

  .section-label {
    letter-spacing: 0.12em;
    margin-bottom: 2rem;
  }

  .books-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .book-card {
    max-width: 260px;
    margin: 0 auto;
    text-align: center;
  }
}
