/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #F9F7F4;
  --bg-card: #FFFFFF;
  --text: #1C1C1A;
  --text-muted: #7A7670;
  --text-light: #B0ACA6;
  --accent: #2C2C2A;
  --border: #E8E4DE;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
  --max-width: 680px;
  --nav-height: 60px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  min-height: 100%;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior-y: none;
}

/* ============================================
   UTILITY
   ============================================ */
.hidden {
  display: none !important;
}

/* ============================================
   NAV
   ============================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(249, 247, 244, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link--order {
  color: var(--text);
  font-weight: 600;
  border: 1px solid var(--text);
  padding: 6px 14px;
  border-radius: 2px;
  transition: all 0.2s;
}

.nav-link--order:hover {
  background: var(--text);
  color: var(--bg);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  padding: 12px 28px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  background: none;
}

.btn--primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn--primary:hover {
  background: #3C3C3A;
  border-color: #3C3C3A;
}

.btn--ghost {
  color: var(--text-muted);
  border-color: var(--border);
}

.btn--ghost:hover {
  color: var(--text);
  border-color: var(--text);
}

.btn--large {
  font-size: 1rem;
  padding: 16px 40px;
  width: 100%;
  text-align: center;
}

/* ============================================
   PAGE (SHARED)
   ============================================ */
.page {
  min-height: 100vh;
  min-height: 100svh;
}

.page--text,
.page--poem,
.page--index,
.page--order {
  padding-top: var(--nav-height);
}

/* ============================================
   FORSIDE / COVER
   ============================================ */
.page--cover {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--nav-height) 24px 48px;
}

.cover-content {
  text-align: center;
  max-width: 520px;
  width: 100%;
}

.cover-subtitle {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.cover-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 8vw, 4rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
}

.cover-byline {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 48px;
  line-height: 2.2;
  text-align: center;
}

.cover-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.cover-actions .btn {
  min-width: 200px;
}

/* ============================================
   TEXT PAGES (FORFATTERORD, VEJLEDNING)
   ============================================ */
.page--text {
  padding: calc(var(--nav-height) + 48px) 24px 80px;
}

.text-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.prose {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text);
}

.prose p {
  margin-bottom: 1.5em;
  text-align: justify;
}

.page-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.guide-intro {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 48px;
}

/* ============================================
   READING GUIDE
   ============================================ */
.reading-guide {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 40px;
}

.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.guide-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.guide-step h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.guide-step p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  text-align: justify;
}

/* ============================================
   POEM VIEW
   ============================================ */
.page--poem {
  padding: calc(var(--nav-height) + 48px) 24px 80px;
}

.poem-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.poem-progress {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 48px;
}

.poem-article {
  /* nothing special — sections handle spacing */
}

.poem-title {
  /* hidden — title is the word itself */
  display: none;
}

.poem-section {
  margin-bottom: 56px;
}

.poem-section-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 20px;
}

.poem-word {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 7vw, 3.2rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.01em;
}

.poem-text {
  font-size: 1.05rem;
  line-height: 1.95;
  font-style: italic;
  color: var(--text);
  white-space: pre-line;
}

.poem-prose {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text);
  text-align: justify;
}

.poem-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.poem-nav .btn {
  flex: 1;
  text-align: center;
}

/* ============================================
   OVERSIGT / INDEX
   ============================================ */
.page--index {
  padding: calc(var(--nav-height) + 48px) 24px 80px;
}

.index-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.index-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 40px;
  color: var(--text);
}

.poem-list {
  list-style: none;
}

.poem-list li {
  border-bottom: 1px solid var(--border);
}

.poem-list li:first-child {
  border-top: 1px solid var(--border);
}

.poem-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  text-decoration: none;
  color: var(--text);
  transition: color 0.15s;
  gap: 16px;
}

.poem-list a:hover {
  color: var(--text-muted);
}

.poem-list-title {
  font-size: 1rem;
  font-family: var(--font-serif);
}

.poem-list-number {
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

/* ============================================
   BESTIL / ORDER
   ============================================ */
.page--order {
  padding: calc(var(--nav-height) + 48px) 24px 80px;
}

.order-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.order-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 12px;
}

.order-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 48px;
  line-height: 1.7;
  text-align: justify;
}

.order-options {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.order-option {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 36px 32px;
}

.order-option-book {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.order-option-format {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.book-cover-placeholder {
  position: relative;
  width: 120px;
  height: 168px;
  background: var(--text);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.6;
  padding: 16px;
  box-shadow: 5px 5px 16px rgba(0,0,0,0.15);
}

.book-cover-placeholder--pdf {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: 5px 5px 16px rgba(0,0,0,0.06);
}

.pdf-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 2px;
  font-family: var(--font-body);
}

.order-price {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 400;
  margin-bottom: 20px;
}

.order-includes {
  list-style: none;
  margin-bottom: 32px;
}

.order-includes li {
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-includes li::before {
  content: '·';
  color: var(--text-light);
}

.order-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: justify;
  font-style: italic;
}

/* ============================================
   INFO PAGE
   ============================================ */
.page--info {
  padding: calc(var(--nav-height) + 48px) 24px 80px;
}

.info-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.info-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 36px 32px;
}

.info-box-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 20px;
}

.info-box-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 14px;
  text-align: justify;
}

.info-box-text:last-child {
  margin-bottom: 0;
}

.info-box-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}

.info-box-link:hover {
  color: var(--text-muted);
  border-color: var(--text-muted);
}

.info-box--rights {
  background: transparent;
  border-color: var(--border);
}

.info-box--rights .info-box-title {
  font-size: 1rem;
  color: var(--text-muted);
}

.info-box--rights .info-box-text {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 600px) {
  .cover-actions {
    flex-direction: row;
    justify-content: center;
  }

  .order-options {
    flex-direction: row;
    align-items: stretch;
  }

  .order-option {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 12px;
  }

  .nav-link:not(.nav-link--order):not([data-page="info"]) {
    display: none;
  }

  .poem-nav {
    flex-wrap: wrap;
  }

  .poem-nav .btn {
    min-width: 100px;
  }
}
