@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Crimson+Pro:ital,wght@0,400;0,600;1,400;1,600&family=Special+Elite&display=swap');

:root {
  --c-night:        #060f1e;
  --c-night-mid:    #0d1f3c;
  --c-parchment:    #f5ead8;
  --c-parchment-w:  #eddfc8;
  --c-parchment-d:  #d8c9ae;
  --c-ink:          #1a0e08;
  --c-ink-mid:      #2e1f14;
  --c-ink-light:    #4a3828;
  --c-forest:       #1e3a20;
  --c-forest-mid:   #2d5432;
  --c-forest-l:     #4a7a50;
  --c-gold:         #8a6b18;
  --c-gold-l:       #c4a042;
  --c-rust:         #7a2e14;
  --c-rust-l:       #a0442a;
  --c-stone:        #6a5e54;
  --c-blue:         #1a3050;
  --c-blue-l:       #3a5878;
  --c-white:        #faf8f5;

  --ff-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --ff-body:   'Crimson Pro', Georgia, 'Times New Roman', serif;
  --ff-stamp:  'Special Elite', 'Courier New', Courier, monospace;

  --r: 2px;
  --t: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 18px; }

body {
  font-family: var(--ff-body);
  background: var(--c-parchment);
  color: var(--c-ink-mid);
  line-height: 1.82;
  -webkit-font-smoothing: antialiased;
}

/* ─── SHARED NAV ─────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 2rem;
  background: rgba(6,15,30,0.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(196,160,66,0.18);
}
.nav-logo {
  font-family: var(--ff-serif); font-size: 0.95rem;
  color: var(--c-gold-l); text-decoration: none; letter-spacing: 0.06em;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-family: var(--ff-stamp); font-size: 0.72rem;
  color: rgba(245,234,216,0.65); text-decoration: none;
  letter-spacing: 0.12em; text-transform: uppercase;
  transition: color var(--t);
}
.nav-links a:hover, .nav-links a.active { color: var(--c-gold-l); }

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 15% 25%, rgba(0,200,140,0.08) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 15%, rgba(80,140,255,0.06) 0%, transparent 45%),
    radial-gradient(ellipse at 55% 70%, rgba(180,80,220,0.04) 0%, transparent 45%),
    linear-gradient(165deg, #020810 0%, #060f1e 35%, #0a1830 65%, #08131f 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 7rem 2rem 5rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2'%3E%3Crect width='1' height='1' fill='white' opacity='0.6'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  opacity: 0.04;
  pointer-events: none;
}
.hero-decoration {
  font-family: var(--ff-stamp);
  font-size: 0.75rem; letter-spacing: 0.5em;
  color: rgba(196,160,66,0.45);
  margin-bottom: 2rem;
  user-select: none;
}
.hero h1 {
  font-family: var(--ff-serif);
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  font-weight: 900; font-style: italic;
  color: var(--c-parchment);
  line-height: 1.08;
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 60px rgba(0,0,0,0.6);
  max-width: 820px;
}
.hero-author {
  font-family: var(--ff-body); font-size: 1.1rem;
  color: rgba(245,234,216,0.55); font-style: normal;
  margin-bottom: 3.5rem; letter-spacing: 0.04em;
}
.hero-stats {
  display: flex; align-items: center;
  gap: 0; margin-bottom: 3.5rem;
  border: 1px solid rgba(196,160,66,0.18);
  border-radius: var(--r);
  overflow: hidden;
}
.hero-stat {
  padding: 1rem 2rem; text-align: center;
  border-right: 1px solid rgba(196,160,66,0.15);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
  display: block;
  font-family: var(--ff-serif); font-size: 1.8rem; font-weight: 700;
  color: var(--c-gold-l); line-height: 1;
}
.hero-stat-label {
  display: block;
  font-family: var(--ff-stamp); font-size: 0.65rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(245,234,216,0.4); margin-top: 0.3rem;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: var(--ff-stamp); font-size: 0.8rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-ink); background: var(--c-gold-l);
  padding: 1rem 2.8rem; text-decoration: none; border-radius: var(--r);
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  box-shadow: 0 4px 24px rgba(196,160,66,0.25);
}
.hero-cta:hover {
  background: #d4b050; transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(196,160,66,0.35);
}
.hero-cta svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ─── ROUTE STRIP ────────────────────────────────────────── */
.route-strip {
  background: var(--c-night-mid);
  padding: 1.4rem 2rem;
  overflow: hidden;
}
.route-path {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0.4rem;
  font-family: var(--ff-stamp); font-size: 0.7rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.route-path .city { color: rgba(245,234,216,0.65); }
.route-path .sep { color: rgba(196,160,66,0.3); }
.route-path .star {
  color: var(--c-gold-l); font-size: 0.9rem;
  margin: 0 0.2rem;
}

/* ─── SECTIONS ───────────────────────────────────────────── */
.section { padding: 5.5rem 2rem; }
.section-inner { max-width: 820px; margin: 0 auto; }

.eyebrow {
  font-family: var(--ff-stamp); font-size: 0.72rem;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--c-stone); margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--ff-serif); font-size: 2.6rem; font-weight: 700;
  color: var(--c-ink); margin-bottom: 0.4rem; line-height: 1.1;
}
.ornament {
  text-align: center; color: var(--c-gold);
  font-size: 1rem; margin: 2rem 0; letter-spacing: 0.6em;
  user-select: none;
}

/* ─── VORWORT ────────────────────────────────────────────── */
.intro { background: var(--c-parchment); }
.intro-figure {
  max-width: 680px; margin: 0 auto 2.5rem;
}
.intro-figure img {
  width: 100%; height: auto; display: block;
  filter: sepia(0.18) contrast(1.04);
  border: 14px solid #fff;
  border-bottom: 44px solid #fff;
  box-shadow: 0 8px 36px rgba(0,0,0,0.22), 0 0 0 1px rgba(0,0,0,0.07);
}
.intro-figure figcaption {
  text-align: center; margin-top: -24px;
  font-family: var(--ff-stamp); font-size: 0.72rem;
  color: var(--c-stone); letter-spacing: 0.06em;
}
.intro-text {
  font-size: 1.15rem;
  text-align: justify; text-justify: inter-word;
  hyphens: auto; -webkit-hyphens: auto;
}
.intro-text p + p { margin-top: 1.2rem; }
.intro-text p:first-child::first-letter {
  font-family: var(--ff-serif); font-size: 4rem; font-weight: 900;
  float: left; line-height: 0.78; margin: 0.12em 0.12em 0 0;
  color: var(--c-forest); text-shadow: 2px 2px 0 rgba(46,84,50,0.15);
}
.intro-cta {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-top: 2.5rem;
  font-family: var(--ff-stamp); font-size: 0.78rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-forest-mid); text-decoration: none;
  border-bottom: 1px solid var(--c-forest-mid);
  padding-bottom: 0.1rem;
  transition: color var(--t), border-color var(--t);
}
.intro-cta:hover { color: var(--c-gold); border-color: var(--c-gold); }

/* ─── CHAPTER OVERVIEW ───────────────────────────────────── */
.chapters { background: var(--c-forest); padding: 5rem 2rem; }
.chapters .eyebrow { color: rgba(196,160,66,0.6); text-align: center; }
.chapters .section-title { color: var(--c-parchment); text-align: center; }
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 0.5rem; margin-top: 2.5rem;
}
.chapter-link {
  display: block; padding: 0.7rem 0.9rem;
  background: rgba(245,234,216,0.04);
  border: 1px solid rgba(196,160,66,0.12);
  border-radius: var(--r); text-decoration: none;
  transition: background var(--t), border-color var(--t);
}
.chapter-link:hover {
  background: rgba(196,160,66,0.1);
  border-color: rgba(196,160,66,0.35);
}
.chapter-link .ch-day {
  font-family: var(--ff-stamp); font-size: 0.62rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--c-gold-l); display: block; margin-bottom: 0.2rem;
}
.chapter-link .ch-route {
  font-family: var(--ff-body); font-size: 0.82rem;
  color: rgba(245,234,216,0.7); display: block;
  white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis;
}
.chapter-link.is-milestone .ch-route { color: var(--c-gold-l); }

/* ─── DIARY HEADER ───────────────────────────────────────── */
.diary-header {
  background: var(--c-night);
  padding: 9rem 2rem 4.5rem;
  text-align: center;
}
.diary-header h1 {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; font-style: italic;
  color: var(--c-parchment);
}
.diary-header .dh-sub {
  font-family: var(--ff-stamp); font-size: 0.75rem;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(196,160,66,0.65); margin-top: 1rem;
}

/* ─── STICKY DIARY NAV ───────────────────────────────────── */
.diary-nav {
  position: sticky; top: 0; z-index: 150;
  background: rgba(6,15,30,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(196,160,66,0.14);
  padding: 0.65rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.dn-logo {
  font-family: var(--ff-serif); font-size: 0.85rem;
  color: var(--c-gold-l); text-decoration: none; flex-shrink: 0;
}
.progress-bar {
  flex: 1; height: 2px;
  background: rgba(196,160,66,0.12);
  border-radius: 1px; overflow: hidden;
}
.progress-fill {
  height: 100%; background: var(--c-gold-l);
  width: 0%; transition: width 0.08s linear;
}
.day-jump {
  font-family: var(--ff-stamp); font-size: 0.68rem;
  letter-spacing: 0.06em; color: rgba(245,234,216,0.65);
  background: rgba(245,234,216,0.05);
  border: 1px solid rgba(196,160,66,0.18);
  padding: 0.4rem 0.7rem; border-radius: var(--r);
  cursor: pointer; max-width: 200px;
}
.day-jump option { background: #0d1f3c; color: #f5ead8; }

/* ─── COUNTRY DIVIDERS ───────────────────────────────────── */
.country-divider {
  padding: 2rem 1.5rem; text-align: center;
  background: var(--c-parchment-w);
  position: relative;
}
.cd-inner {
  display: inline-flex; align-items: center; gap: 1rem;
}
.cd-inner::before, .cd-inner::after {
  content: ''; display: block; width: 50px; height: 1px;
}
.cd-flag { font-size: 1.4rem; }
.cd-name {
  font-family: var(--ff-stamp); font-size: 0.7rem;
  letter-spacing: 0.3em; text-transform: uppercase;
}
/* Country colors */
.cd--de .cd-inner::before, .cd--de .cd-inner::after { background: #2e2e2e; }
.cd--de .cd-name { color: #2e2e2e; }
.cd--dk .cd-inner::before, .cd--dk .cd-inner::after { background: #c60c30; }
.cd--dk .cd-name { color: #c60c30; }
.cd--se .cd-inner::before, .cd--se .cd-inner::after { background: #006aa7; }
.cd--se .cd-name { color: #006aa7; }
.cd--lp .cd-inner::before, .cd--lp .cd-inner::after { background: var(--c-forest-mid); }
.cd--lp .cd-name { color: var(--c-forest-mid); }
.cd--no .cd-inner::before, .cd--no .cd-inner::after { background: #ef2b2d; }
.cd--no .cd-name { color: #ef2b2d; }
.cd--fi .cd-inner::before, .cd--fi .cd-inner::after { background: #003580; }
.cd--fi .cd-name { color: #003580; }
.cd--home .cd-inner::before, .cd--home .cd-inner::after { background: var(--c-gold); }
.cd--home .cd-name { color: var(--c-gold); }

/* ─── NORDKAP MILESTONE ──────────────────────────────────── */
.milestone-nordkap {
  background:
    radial-gradient(ellipse at 50% 60%, rgba(0,200,140,0.12) 0%, transparent 65%),
    radial-gradient(ellipse at 20% 30%, rgba(80,130,255,0.08) 0%, transparent 50%),
    linear-gradient(135deg, #050d1c 0%, #081528 50%, #0a1a30 100%);
  padding: 5rem 2rem; text-align: center; position: relative; overflow: hidden;
}
.mn-star {
  font-size: 2.5rem; display: block; margin-bottom: 1rem;
  filter: drop-shadow(0 0 20px rgba(196,160,66,0.6));
}
.mn-title {
  font-family: var(--ff-serif); font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 4.5rem); font-style: italic;
  color: var(--c-parchment);
  text-shadow: 0 0 80px rgba(196,160,66,0.5);
}
.mn-sub {
  font-family: var(--ff-stamp); font-size: 0.75rem;
  letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--c-gold-l); margin-top: 0.75rem;
}
.mn-meta {
  font-family: var(--ff-stamp); font-size: 0.68rem;
  letter-spacing: 0.12em; color: rgba(245,234,216,0.38);
  margin-top: 1.5rem;
}

/* ─── DIARY BODY ─────────────────────────────────────────── */
.diary-body {
  background: var(--c-parchment-w);
}
.day-entry {
  max-width: 820px; margin: 0 auto;
  padding: 3.5rem 2rem;
  border-bottom: 1px solid rgba(160,130,90,0.18);
  position: relative;
}
.day-entry::before {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 4px; border-radius: 0 2px 2px 0;
}
.day-entry[data-c="de"]::before { background: #2e2e2e; }
.day-entry[data-c="dk"]::before { background: #c60c30; }
.day-entry[data-c="se"]::before { background: #006aa7; }
.day-entry[data-c="lp"]::before { background: var(--c-forest-mid); }
.day-entry[data-c="no"]::before { background: #ef2b2d; }
.day-entry[data-c="fi"]::before { background: #003580; }
.day-entry[data-c="home"]::before { background: var(--c-gold); }

.day-header {
  display: flex; align-items: flex-start; gap: 1.5rem;
  margin-bottom: 1.8rem;
}
.day-badge {
  flex-shrink: 0; width: 66px; height: 66px; border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #3a2010, #16090a);
  color: var(--c-parchment);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border: 2px solid rgba(196,160,66,0.5);
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,0.06),
    0 4px 14px rgba(0,0,0,0.35),
    0 0 0 4px var(--c-parchment-w),
    0 0 0 5px rgba(160,130,90,0.15);
}
.badge-label {
  font-family: var(--ff-stamp); font-size: 0.52rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-gold-l); line-height: 1;
}
.badge-num {
  font-family: var(--ff-serif); font-size: 1.35rem;
  font-weight: 700; line-height: 1; margin-top: 0.1rem;
}
.day-meta { flex: 1; padding-top: 0.1rem; }
.day-date {
  font-family: var(--ff-stamp); font-size: 0.72rem;
  letter-spacing: 0.1em; color: var(--c-stone);
  display: block; margin-bottom: 0.2rem;
}
.day-route {
  font-family: var(--ff-serif); font-size: 1.35rem; font-weight: 700;
  color: var(--c-ink); line-height: 1.2; display: block;
  margin-bottom: 0.5rem;
}
.day-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.tag {
  font-family: var(--ff-stamp); font-size: 0.62rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.22rem 0.7rem; border-radius: 20px;
}
.tag-km { background: var(--c-forest-mid); color: #fff; }
.tag-rest { background: var(--c-stone); color: #fff; }
.tag-ferry { background: var(--c-blue); color: #fff; }
.tag-milestone { background: var(--c-gold); color: var(--c-ink); }

.day-text {
  font-size: 1.08rem;
  text-align: justify; text-justify: inter-word;
  hyphens: auto; -webkit-hyphens: auto;
  color: var(--c-ink-mid);
}
.day-text p + p { margin-top: 0.9rem; }

/* ─── IMAGES ─────────────────────────────────────────────── */
.diary-images {
  margin: 2rem 0; display: grid; gap: 1.5rem;
}
.imgs-1 { grid-template-columns: 1fr; }
.imgs-2 { grid-template-columns: repeat(2, 1fr); }
.imgs-3 { grid-template-columns: repeat(3, 1fr); }

.diary-photo { display: block; }
.diary-photo img {
  width: 100%; height: auto; display: block;
  filter: sepia(0.15) contrast(1.04) brightness(0.97);
  border: 10px solid #fff;
  border-bottom: 38px solid #fff;
  box-shadow: 0 6px 26px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.06);
  transition: transform var(--t), box-shadow var(--t);
}
.diary-photo img:hover {
  transform: scale(1.02) rotate(-0.3deg);
  box-shadow: 0 12px 40px rgba(0,0,0,0.28), 0 0 0 1px rgba(0,0,0,0.08);
}

/* ─── EPILOGUE ───────────────────────────────────────────── */
.epilogue { background: var(--c-ink); padding: 6rem 2rem; }
.epilogue .section-inner { max-width: 780px; margin: 0 auto; }
.epilogue .eyebrow { color: rgba(196,160,66,0.55); text-align: center; }
.epilogue .section-title { color: var(--c-parchment); text-align: center; font-size: 3rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem; margin: 3rem 0;
}
.stat-card {
  background: rgba(196,160,66,0.06);
  border: 1px solid rgba(196,160,66,0.18);
  border-radius: var(--r); padding: 1.6rem 1rem; text-align: center;
}
.stat-card-num {
  font-family: var(--ff-serif); font-size: 2.2rem; font-weight: 700;
  color: var(--c-gold-l); display: block; line-height: 1;
}
.stat-card-label {
  font-family: var(--ff-stamp); font-size: 0.65rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(245,234,216,0.4); display: block; margin-top: 0.45rem;
}
.epilogue-text {
  font-size: 1.1rem; color: rgba(245,234,216,0.8);
  text-align: justify; text-justify: inter-word;
  hyphens: auto; -webkit-hyphens: auto;
}
.epilogue-text p + p { margin-top: 1.4rem; }
.epilogue-text p:first-child::first-letter {
  font-family: var(--ff-serif); font-size: 3.5rem; font-weight: 900;
  float: left; line-height: 0.78; margin: 0.1em 0.12em 0 0;
  color: var(--c-gold-l);
}
.epilogue-nav {
  display: flex; gap: 1.5rem; margin-top: 3rem; flex-wrap: wrap;
  justify-content: center;
}
.epilogue-nav a {
  font-family: var(--ff-stamp); font-size: 0.72rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--c-gold-l); text-decoration: none;
  border: 1px solid rgba(196,160,66,0.3);
  padding: 0.7rem 1.8rem; border-radius: var(--r);
  transition: background var(--t), color var(--t);
}
.epilogue-nav a:hover { background: var(--c-gold-l); color: var(--c-ink); }

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: #020810; padding: 2rem; text-align: center;
}
.footer-text {
  font-family: var(--ff-stamp); font-size: 0.68rem;
  letter-spacing: 0.1em; color: rgba(245,234,216,0.22);
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  html { font-size: 16px; }
  .hero-stats { flex-direction: column; border: none; gap: 1rem; }
  .hero-stat { border: 1px solid rgba(196,160,66,0.18); border-radius: var(--r); }
  .chapter-grid { grid-template-columns: repeat(2, 1fr); }
  .imgs-2, .imgs-3 { grid-template-columns: 1fr; }
  .day-entry { padding: 2.5rem 1.2rem; }
  .day-badge { width: 54px; height: 54px; }
  .badge-num { font-size: 1.1rem; }
  .day-header { gap: 1rem; }
  .site-nav { padding: 0.75rem 1rem; }
  .nav-links { gap: 1rem; }
}
@media (max-width: 480px) {
  .hero { padding: 6rem 1rem 4rem; }
  .section { padding: 3.5rem 1rem; }
  .diary-header { padding: 7rem 1rem 3rem; }
  .day-entry { padding: 2rem 1rem; }
  .diary-nav { padding: 0.55rem 1rem; }
  .dn-logo { display: none; }
  .nav-links li:not(:last-child) { display: none; }
}
