@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&family=Cinzel:wght@400;500;600;700;800;900&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Inter:wght@300;400;500;600;700&family=Pinyon+Script&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,300;1,8..60,400&display=swap');

@font-face {
  font-family: 'Dahlia';
  src: url('/asset/Dahlia.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'MilitaryScribe';
  src: url('/asset/MilitaryScribe.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

::-webkit-scrollbar {
  display: none;
}

body {
  min-height: 100vh;
  background: #d8cfb8;
  font-family: 'Cormorant Garamond', serif;
  color: #2a2318;
  overflow: hidden;
  position: relative;
  user-select: none;
}

/* Parchment noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* Subtle vignette */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(100, 85, 60, 0.18) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 28px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: linear-gradient(180deg, rgba(216, 207, 184, 0.95) 0%, transparent 100%);
}

.logo {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: #2a2318;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.logo:hover {
  color: #8a7355;
}

.back-btn {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #2a2318;
  background: rgba(42, 35, 24, 0.08);
  border: 1px solid rgba(42, 35, 24, 0.2);
  padding: 10px 22px;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.back-btn:hover {
  color: #8a7355;
  border-color: rgba(42, 35, 24, 0.4);
  background: rgba(42, 35, 24, 0.15);
}

.back-ham span {
  display: block;
  width: 13px;
  height: 1.5px;
  background: #2a2318;
  margin: 3px 0;
  transition: background 0.3s;
}

.back-btn:hover .back-ham span {
  background: #8a7355;
}

.reader-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 5px;
  background: linear-gradient(90deg, #c5a880, #5c4a32);
  z-index: 1010;
  box-shadow: 0 1px 8px rgba(138, 115, 85, 0.4);
  transition: width 0.1s ease-out;
}
