/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Lora:wght@400;700&family=Crimson+Text:wght@400;600&display=swap');

/* --- CSS Variables --- */
:root {
  --paper-light: #f8fafc;
  --paper-blue: #e3f2fd;
  --text-dark: #1a2332;
  --text-medium: #3d4a5a;
  --accent-blue: #2563eb;
  --accent-navy: #1e3a8a;
  --accent-sky: #0ea5e9;
  --shadow-soft: rgba(30, 58, 138, 0.08);
  --shadow-medium: rgba(30, 58, 138, 0.15);
}

/* --- Global Reset & Base --- */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Lora', Georgia, serif;
  line-height: 1.8;
  background: linear-gradient(to bottom, var(--paper-light), var(--paper-blue));
  background-attachment: fixed;
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text-dark);
  line-height: 1.3;
  font-weight: 700;
}

h1 {
  font-size: 2.8rem;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 2.2rem;
  margin-top: 2em;
  margin-bottom: 1em;
  border-bottom: 3px solid var(--accent-blue);
  padding-bottom: 0.3em;
}

h3 {
  font-size: 1.8rem;
  margin-top: 1.5em;
  margin-bottom: 0.8em;
}

p {
  margin-bottom: 1.2em;
  text-align: justify;
}

a {
  color: var(--accent-navy);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(30, 58, 138, 0.3);
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent-blue);
  text-decoration-color: var(--accent-blue);
}

/* --- Layout Containers --- */
.content, .site-header {
  max-width: 850px;
  margin: 0 auto;
  padding: 0 30px;
}

/* --- Header Styling --- */
.site-header {
  text-align: center;
  padding: 50px 40px 40px;
  background: linear-gradient(135deg, rgba(227, 242, 253, 0.8), rgba(248, 250, 252, 0.8));
  border-bottom: 4px double var(--accent-navy);
  margin-bottom: 40px;
  position: relative;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(30, 58, 138, 0.03) 2px,
      rgba(30, 58, 138, 0.03) 4px
    );
}

.site-header h1 {
  margin: 0 0 15px 0;
  font-size: 3.5rem;
  letter-spacing: 2px;
}

.site-header h1 a {
  color: var(--text-dark);
  text-decoration: none;
  text-shadow: 2px 2px 0 rgba(30, 58, 138, 0.1);
}

.site-header p {
  font-style: italic;
  color: var(--text-medium);
  font-size: 1.15rem;
  margin: 0;
  font-family: 'Crimson Text', Georgia, serif;
}

/* --- Footer Styling --- */
.site-footer {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-medium);
  border-top: 2px dashed var(--accent-navy);
  margin-top: 60px;
  padding: 30px 20px;
  background: linear-gradient(to bottom, transparent, rgba(227, 242, 253, 0.5));
}

/* --- Homepage Post List --- */
.post-list {
  margin: 30px 0;
}

.post-preview {
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid var(--shadow-soft);
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px var(--shadow-soft);
  transition: all 0.3s ease;
  position: relative;
}

.post-preview::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: 6px;
  background: linear-gradient(to right, var(--accent-blue), var(--accent-navy));
  border-radius: 8px 8px 0 0;
}

.post-preview:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--shadow-medium);
  border-color: var(--accent-blue);
}

.post-preview h3 {
  margin: 0 0 10px 0;
  border: none;
}

.post-preview h3 a {
  text-decoration: none;
  color: var(--text-dark);
}

.post-preview h3 a:hover {
  color: var(--accent-navy);
}

.post-date {
  font-size: 0.95rem;
  color: var(--text-medium);
  font-style: italic;
  margin-bottom: 10px;
  display: block;
}

.post-quote-preview {
  margin: 15px 0 0 0;
  padding: 15px 20px;
  background: rgba(37, 99, 235, 0.08);
  border-left: 4px solid var(--accent-blue);
  font-style: italic;
  color: var(--text-medium);
  border-radius: 3px;
}

/* --- Quote Block Styling --- */
.quote-of-the-week {
  background: linear-gradient(to bottom, rgba(227, 242, 253, 0.9), rgba(248, 250, 252, 0.9));
  border: 3px double var(--accent-navy);
  border-radius: 12px;
  margin: 3em 0;
  padding: 2.5em;
  position: relative;
  box-shadow: 0 5px 20px var(--shadow-soft);
}

.quote-of-the-week::before {
  content: '"';
  font-family: 'Playfair Display', serif;
  font-size: 8rem;
  position: absolute;
  top: -20px;
  left: 20px;
  color: rgba(30, 58, 138, 0.15);
  line-height: 1;
}

.quote-of-the-week blockquote {
  font-size: 1.5rem;
  margin: 0;
  padding: 0;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.6;
}

.quote-of-the-week figcaption {
  text-align: right;
  font-style: normal;
  font-weight: 600;
  margin-top: 1.5em;
  color: var(--accent-navy);
  font-size: 1.1rem;
  position: relative;
}

.quote-of-the-week figcaption::before {
  content: '— ';
  color: var(--accent-blue);
}

/* --- Photo Gallery Styling --- */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin: 2.5em 0;
}

.photo-gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--shadow-medium);
  transition: all 0.3s ease;
  border: 3px solid white;
}

.photo-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px var(--shadow-medium);
  z-index: 1;
  position: relative;
}

/* --- Images --- */
img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* --- Map Container --- */
#travel-map {
  box-shadow: 0 5px 20px var(--shadow-medium);
  border: 2px solid white;
  overflow: hidden;
  margin: 2em 0;
}

/* Required Leaflet CSS */
#travel-map.leaflet-container {
  background: #e8ecf1;
  font-family: inherit;
}

#travel-map .leaflet-popup-content-wrapper {
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .site-header h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .post-preview {
    padding: 20px;
  }
  
  .photo-gallery {
    grid-template-columns: 1fr;
  }
}
