@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --paper-cream: #FAF8F5;
  --paper-lines: #E8E0D8;
  --ink-brown: #4A3B32;
  --ink-dark: #2C2420;
  --accent-warm: #D4855E;
  --accent-coral: #E8A87C;
  --highlight-yellow: rgba(255, 229, 100, 0.4);
  --notebook-margin: #CDBBAD;
}

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

body {
  font-family: 'Crimson Text', Georgia, serif;
  background: linear-gradient(135deg, #E8DFD5 0%, #D4C5B0 100%);
  color: var(--ink-brown);
  line-height: 1.8;
  min-height: 100vh;
  padding: 20px;
}

/* Notebook container */
.notebook {
  max-width: 800px;
  margin: 0 auto;
  background: var(--paper-cream);
  border-radius: 3px;
  box-shadow: 
    0 2px 4px rgba(0,0,0,0.08),
    0 8px 16px rgba(0,0,0,0.08),
    4px 0 8px rgba(0,0,0,0.04);
  position: relative;
}

/* Left margin line */
.notebook::before {
  content: '';
  position: absolute;
  left: 60px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--notebook-margin);
  opacity: 0.6;
}

/* Lined paper effect */
.notebook::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-image: repeating-linear-gradient(
    transparent,
    transparent 31px,
    var(--paper-lines) 31px,
    var(--paper-lines) 32px
  );
  opacity: 0.4;
  pointer-events: none;
}

/* Header */
.notebook-header {
  padding: 40px 80px 30px 80px;
  border-bottom: 1px dashed var(--paper-lines);
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, transparent 100%);
}

.notebook-title {
  font-family: 'Caveat', cursive;
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--ink-dark);
  text-align: center;
  margin-bottom: 5px;
  transform: rotate(-1deg);
}

.notebook-subtitle {
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  color: var(--accent-warm);
  text-align: center;
  opacity: 0.9;
}

/* Navigation */
.nav-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
  font-family: 'Caveat', cursive;
  font-size: 1.2rem;
}

.nav-links a {
  color: var(--ink-brown);
  text-decoration: none;
  padding: 5px 15px;
  border-radius: 3px;
  transition: all 0.2s;
}

.nav-links a:hover {
  background: var(--highlight-yellow);
  color: var(--ink-dark);
}

/* Content area */
.notebook-content {
  padding: 40px 80px 60px 80px;
  position: relative;
  z-index: 1;
  min-height: 400px;
}

/* Entry styling */
.entry-date {
  font-family: 'Caveat', cursive;
  font-size: 2.2rem;
  color: var(--accent-warm);
  margin-bottom: 10px;
  transform: rotate(-0.5deg);
}

.entry-weekday {
  font-family: 'Caveat', cursive;
  font-size: 1.2rem;
  color: var(--ink-brown);
  opacity: 0.7;
  margin-bottom: 25px;
}

.entry-content {
  font-size: 1.15rem;
  line-height: 2;
  text-align: justify;
  position: relative;
}

.entry-content p {
  margin-bottom: 1.5rem;
  text-indent: 2rem;
}

.entry-content p:first-child::first-letter {
  font-size: 3rem;
  float: left;
  line-height: 1;
  padding-right: 8px;
  font-family: 'Caveat', cursive;
  color: var(--accent-warm);
}

/* Section headers in entries */
.entry-section {
  margin: 2rem 0 1rem 0;
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  color: var(--accent-warm);
  border-bottom: 1px dashed var(--paper-lines);
  padding-bottom: 5px;
}

/* Highlight box */
.highlight-box {
  background: var(--highlight-yellow);
  padding: 15px 20px;
  border-radius: 5px;
  margin: 20px 0;
  transform: rotate(-0.3deg);
  box-shadow: 2px 2px 8px rgba(0,0,0,0.05);
}

/* Archive list */
.archive-list {
  list-style: none;
}

.archive-item {
  padding: 20px 0;
  border-bottom: 1px dashed var(--paper-lines);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.archive-date {
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
  color: var(--accent-warm);
}

.archive-title {
  font-size: 1.1rem;
  color: var(--ink-brown);
  text-decoration: none;
  transition: all 0.2s;
}

.archive-title:hover {
  color: var(--accent-warm);
}

/* Entry metadata */
.entry-meta {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px dashed var(--paper-lines);
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  color: var(--ink-brown);
  opacity: 0.7;
}

/* Decorative elements */
.doodle {
  position: absolute;
  opacity: 0.15;
  pointer-events: none;
}

.doodle-star {
  right: 30px;
  top: 30px;
  font-size: 2rem;
}

/* Footer */
.notebook-footer {
  padding: 30px 80px;
  border-top: 1px dashed var(--paper-lines);
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: 1rem;
  color: var(--ink-brown);
  opacity: 0.6;
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.3) 100%);
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  
  .notebook::before {
    left: 30px;
  }
  
  .notebook-header,
  .notebook-content,
  .notebook-footer {
    padding-left: 40px;
    padding-right: 30px;
  }
  
  .notebook-title {
    font-size: 2.5rem;
  }
  
  .entry-content {
    font-size: 1rem;
  }
}

/* Coffee stain decoration */
.coffee-stain {
  position: absolute;
  width: 80px;
  height: 80px;
  background: radial-gradient(ellipse, rgba(139, 90, 43, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  transform: rotate(15deg);
  pointer-events: none;
}

/* Tape decoration */
.tape {
  position: absolute;
  width: 100px;
  height: 30px;
  background: rgba(255, 248, 220, 0.7);
  border: 1px solid rgba(0,0,0,0.05);
  transform: rotate(-3deg);
  top: -10px;
  left: 50%;
  margin-left: -50px;
}
