/* ==========================================
   T.K. BARS — tkbars.dk
   Levende antologi. Digteren i skyggen.
   ========================================== */

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

:root {
  --midnight: #0a0e1a;
  --deep-blue: #111827;
  --charcoal: #1a1f2e;
  --surface: #151a28;
  --bordeaux: #6b1d2a;
  --bordeaux-glow: rgba(107, 29, 42, 0.12);
  --gold: #c9a84c;
  --gold-dim: #8a7235;
  --gold-faint: rgba(201, 168, 76, 0.08);
  --cream: #e8e0d0;
  --smoke: #6b6b6b;
  --text: #9a9488;
  --text-light: #c4bdb0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--midnight);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-dim); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--gold); }

/* --- GHOST NAVIGATION --- */
.ghost-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  opacity: 0.3;
  transition: opacity 0.5s ease;
}

.ghost-nav:hover { opacity: 1; }

.nav-name {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--smoke) !important;
}

.nav-name:hover { color: var(--gold-dim) !important; }

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

.nav-links a {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--smoke);
}

.nav-links a:hover { color: var(--gold-dim); }
.nav-links a.active { color: var(--gold-dim); }

/* --- FOOTER --- */
footer {
  text-align: center;
  padding: 80px 24px;
}

footer p {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--smoke);
  opacity: 0.3;
}

/* ==========================================
   FORSIDE — "Et digt. Intet andet."
   ========================================== */
.page-home main { padding: 0; }

.home-poem {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 100px 24px 80px;
  position: relative;
}

/* Subtle vignette */
.home-poem::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, transparent 30%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
}

.home-poem-text {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.home-poem-text p {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(1.25rem, 2.8vw, 1.6rem);
  line-height: 2.4;
  color: var(--text-light);
  margin-bottom: 0.5em;
}

.home-poem-text p em {
  font-style: italic;
  color: var(--cream);
  font-weight: 500;
}

.home-poem-meta {
  position: relative;
  z-index: 1;
  margin-top: 48px;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-dim);
  opacity: 0.4;
}

.home-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  opacity: 0.2;
}

.home-scroll span {
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--smoke);
}

.home-scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--smoke), transparent);
}

/* Second poem block */
.home-poem-2 {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 24px;
  background: var(--deep-blue);
  border-top: 1px solid rgba(255,255,255,0.02);
}

.home-poem-2 .home-poem-text p {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 2.6;
}

/* Explore link */
.home-explore {
  text-align: center;
  padding: 60px 24px 80px;
  background: var(--deep-blue);
}

.home-explore a {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dim);
  border: 1px solid rgba(201,168,76,0.2);
  padding: 14px 32px;
  transition: all 0.3s;
}

.home-explore a:hover {
  background: var(--gold-faint);
  border-color: var(--gold-dim);
  color: var(--gold);
}

/* ==========================================
   ARKIV
   ========================================== */
.page-arkiv main {
  max-width: 700px;
  margin: 0 auto;
  padding: 140px 24px 80px;
}

.arkiv-header {
  margin-bottom: 48px;
}

.arkiv-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 2rem;
  color: var(--cream);
  margin-bottom: 12px;
}

.arkiv-header p {
  font-family: 'Inter', sans-serif;
  font-weight: 200;
  font-size: 0.85rem;
  color: var(--smoke);
}

.arkiv-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.arkiv-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 20px;
  background: var(--surface);
  border-left: 2px solid transparent;
  transition: all 0.3s ease;
  text-decoration: none;
  gap: 16px;
}

.arkiv-item:hover {
  background: var(--charcoal);
  border-left-color: var(--bordeaux);
}

.arkiv-item-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-light);
  transition: color 0.3s;
}

.arkiv-item:hover .arkiv-item-title { color: var(--cream); }

.arkiv-item-meta {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--smoke);
  text-transform: uppercase;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ==========================================
   POEM FULL VIEW
   ========================================== */
.poem-full {
  max-width: 560px;
  margin: 0 auto;
  padding: 160px 24px 80px;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.poem-full-text {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 2.2;
  color: var(--text-light);
}

.poem-full-text p { margin-bottom: 1.5em; }
.poem-full-text em { color: var(--cream); font-weight: 500; }

.poem-full-meta {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dim);
  opacity: 0.5;
}

.poem-back {
  margin-top: 48px;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--smoke) !important;
}

.poem-back:hover { color: var(--gold-dim) !important; }

/* ==========================================
   BØGER
   ========================================== */
.page-boeger main {
  max-width: 900px;
  margin: 0 auto;
  padding: 140px 24px 80px;
}

.boeger-header {
  margin-bottom: 56px;
}

.boeger-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 2rem;
  color: var(--cream);
  margin-bottom: 12px;
}

.boeger-header p {
  font-family: 'Inter', sans-serif;
  font-weight: 200;
  font-size: 0.85rem;
  color: var(--smoke);
}

.book-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.book-entry {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.book-entry:last-child { border-bottom: none; }

.book-cover-placeholder {
  width: 140px;
  aspect-ratio: 2/3;
  background: linear-gradient(160deg, var(--charcoal) 0%, var(--midnight) 100%);
  border: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--gold-dim);
  padding: 12px;
  text-align: center;
}

.book-info h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: 4px;
}

.book-info .book-year {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 16px;
}

.book-info .book-desc {
  font-family: 'Inter', sans-serif;
  font-weight: 200;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 16px;
}

.book-info .book-details {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--smoke);
  margin-bottom: 16px;
}

.book-buy {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dim);
  border: 1px solid rgba(201,168,76,0.2);
  padding: 10px 20px;
  transition: all 0.3s;
}

.book-buy:hover {
  background: var(--gold-faint);
  border-color: var(--gold-dim);
  color: var(--gold);
}

/* ==========================================
   OM
   ========================================== */
.page-om main {
  max-width: 600px;
  margin: 0 auto;
  padding: 160px 24px 80px;
}

.om-content h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 2rem;
  color: var(--cream);
  margin-bottom: 32px;
}

.om-content p {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 2;
  color: var(--text-light);
  margin-bottom: 1.5em;
}

.om-content p em {
  color: var(--cream);
  font-weight: 500;
}

/* ==========================================
   KONTAKT / PRESSE
   ========================================== */
.page-kontakt main {
  max-width: 600px;
  margin: 0 auto;
  padding: 160px 24px 80px;
}

.kontakt-content h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 2rem;
  color: var(--cream);
  margin-bottom: 32px;
}

.kontakt-content h2 {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-top: 48px;
  margin-bottom: 16px;
}

.kontakt-content p {
  font-family: 'Inter', sans-serif;
  font-weight: 200;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 1em;
}

.kontakt-content a {
  color: var(--gold-dim);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  padding-bottom: 1px;
}

.kontakt-content a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 600px) {
  .ghost-nav {
    padding: 16px 20px;
  }

  .nav-links { gap: 16px; }

  .nav-links a, .nav-name {
    font-size: 8px;
    letter-spacing: 2px;
  }

  .book-entry {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .book-cover-placeholder {
    width: 120px;
    margin: 0 auto;
  }

  .arkiv-item {
    flex-direction: column;
    gap: 4px;
  }
}
