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

:root {
  /* --- NEW PALETTE: Soft Blue & Beige --- */
  
  /* Backgrounds */
  --bg: #fcfbf9;          /* Very light warm linen/white */
  --bg-card: #ffffff;     /* Pure white for cards */
  --header-bg: #ffffff;   /* White header */
  
  /* Text */
  --text: #4a5568;        /* Soft dark slate (easier on eyes than black) */
  --text-light: #718096;  /* Muted text for dates/meta */
  --heading: #2d3748;     /* Darker grey for titles */
  
  /* Brand Colors */
  --primary: #7aa6c2;     /* Dusty Coastal Blue */
  --primary-hover: #5d89a6; /* Slightly darker blue for hover */
  --accent: #e3dcd2;      /* Sand/Beige for borders */
  --highlight: #f7f3ed;   /* Light beige for active states */

  /* Standard Colors */
  --danger: #e57373;
  --success: #81c784;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
}

body {
  width: 100%;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.1rem;
  line-height: 1.7; /* Slightly more breathing room */
}

/* --- Header & Nav --- */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--accent);
  padding: 15px 30px;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.logo {
  color: var(--heading);
  font-size: 1.8rem;
  font-weight: 300;
  text-decoration: none;
  letter-spacing: 1.5px; /* More elegant spacing */
  text-transform: lowercase;
}
.logo span { 
  color: var(--primary); 
  font-weight: 700; 
}

.nav-menu a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  margin-left: 25px;
  transition: 0.3s ease;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.nav-menu a:hover { color: var(--primary); }

/* --- Hero Section --- */
.hero {
  position: relative;
  aspect-ratio: 30 / 9;
  overflow: hidden;
  background-image: url("/journal_head.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Optional: Adds a soft overlay to make text pop if you add text later */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.2));
}

@media (max-width: 800px) { .hero { aspect-ratio: 16 / 9; } }
@media (max-width: 500px) { .hero { aspect-ratio: 5 / 4; } }

.home-title {
  padding: 15px 15px 25px;
  width: 100%;
  background: var(--primary); 
    margin-bottom: 40px;
}

.home-title h1 {
  color: #fff;
  font-size: clamp(1.4rem, 2.8vw + 1rem, 3rem);
  text-align: center;
}

.home-title p {
  margin: 0 auto;
  max-width: 750px;
  font-size: clamp(1rem, 1.6vw + 1rem, 2rem);
  color: #fff;
  text-wrap: pretty;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* --- Search Bar Styling (If present) --- */
input[type="text"] {
    background: white;
    color: var(--text);
    border: 1px solid var(--accent);
}
input[type="text"]:focus {
    border-color: var(--primary);
}

/* --- Filters --- */
.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 40px 0 50px;
}

.filter-btn {
  padding: 8px 24px;
  border: 1px solid var(--accent);
  background: white;
  border-radius: 30px; /* Softer pills */
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.filter-btn:hover { 
  border-color: var(--primary); 
  color: var(--primary); 
  transform: translateY(-2px);
}

.filter-btn.active { 
  background: var(--primary); 
  color: white; 
  border-color: var(--primary); 
  box-shadow: 0 4px 10px rgba(122, 166, 194, 0.3); /* Soft blue glow */
}

/* --- Journal Cards --- */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px; /* More space between cards */
}

.card {
  background: var(--bg-card);
  border-radius: 8px; /* Slightly sharper corners for modern look */
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid transparent;
}

.card:hover { 
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.card-img {
  width: 100%;
  height: 240px; /* Taller images */
  background-size: cover;
  background-position: center;
  background-color: var(--accent);
  transition: transform 0.5s ease;
}

/* Subtle zoom effect on image hover */
.card:hover .card-img {
    filter: brightness(1.05);
}

.card-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.cat-tag {
  align-self: flex-start;
  background: var(--highlight);
  color: var(--primary);
  border: 1px solid var(--accent);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.card h3 {
  margin: 0 0 12px 0;
  font-size: 1.4rem;
  color: var(--heading);
  line-height: 1.3;
  font-weight: 600;
}

.card-meta {
  margin-top: auto;
  color: var(--text-light);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

/* --- Pagination --- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 80px;
}
.p-btn {
  padding: 10px 20px;
  background: white;
  border: 1px solid var(--accent);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: 0.3s;
}
.p-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.p-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* --- Single Post Page --- */
h1 { 
  font-family: var(--font); 
  font-size: 2.8rem; 
  text-align: center; 
  line-height: 1.2; 
  margin-bottom: 15px; 
  color: var(--heading); 
  font-weight: 300; /* Thinner, elegant title */
}

.meta { 
  text-align: center; 
  color: var(--text-light); 
  margin-bottom: 60px; 
  font-size: 0.9rem; 
  text-transform: uppercase; 
  letter-spacing: 2px; 
  border-bottom: 1px solid var(--accent);
  display: inline-block;
  padding-bottom: 20px;
  width: 100%;
}

.text-block { 
  font-size: 1.2rem; 
  margin-bottom: 35px; 
  line-height: 1.9; 
  color: var(--text); 
}
.text-block strong { color: var(--heading); }
.text-block a { 
    color: var(--primary); 
    text-decoration: none; 
    border-bottom: 1px dotted var(--primary);
    transition: 0.2s;
}
.text-block a:hover { border-bottom-style: solid; }

.img-block { margin: 50px 0; }
.img-block.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.img-block.stack { display: flex; flex-direction: column; gap: 30px; }
.img-block img { 
    width: 100%; 
    border-radius: 4px; 
    cursor: zoom-in; 
    transition: transform 0.3s; 
    box-shadow: var(--shadow-sm);
}
.img-block img:hover { transform: scale(1.01); box-shadow: var(--shadow-md); }

.vid-box { 
    position: relative; 
    padding-bottom: 56.25%; 
    height: 0; 
    margin: 50px 0; 
    border-radius: 8px; 
    overflow: hidden; 
    box-shadow: var(--shadow-md);
}
.vid-box iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* --- Social & Tags --- */
.share-section { text-align: center; margin-top: 80px; border-top: 1px solid var(--accent); padding-top: 50px; }
.share-title { 
    font-weight: 600; 
    margin-bottom: 25px; 
    display: block; 
    color: var(--heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.share-icons { display: flex; justify-content: center; gap: 15px; }
.s-btn { 
    width: 50px; height: 50px; 
    border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    color: white; 
    text-decoration: none; 
    font-size: 1.2rem; 
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy effect */
    border: none; cursor: pointer; 
    opacity: 0.9;
}
.s-btn:hover { transform: translateY(-5px); opacity: 1; }

/* Keep original brand colors for sharing */
.fb { background: #3b5998; }
.tw { background: #000000; }
.wa { background: #25d366; }
.ig { background: #e1306c; }

/* --- Footer --- */
.site-footer { 
    background: white; 
    border-top: 5px solid var(--accent); /* Matches Hero border */
    padding: 60px 20px; 
    text-align: center; 
    margin-top: 80px; 
    font-size: 0.95rem; 
    color: var(--text-light); 
}
.site-footer strong { color: var(--heading); }

/* --- Lightbox --- */
#lb { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.95); z-index: 9999; justify-content: center; align-items: center; cursor: zoom-out; }
#lb img { max-width: 90%; max-height: 90%; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,0.15); }

/* Mobile */
@media (max-width: 600px) {
  .hero h1 { font-size: 2.2rem; }
  .card-img { height: 200px; }
  .nav-menu { display: none; }
  .card-content { padding: 20px; }
  h1 { font-size: 2rem; }
}
/* --- Cookie Consent Popup --- */
.cookie-box {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 320px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 1px solid var(--accent);
    z-index: 10000;
    font-family: var(--font);
    
    /* Hidden state */
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Visible state */
.cookie-box.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.cookie-content h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--heading);
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 20px;
}

.cookie-content a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-btns {
    display: flex;
    gap: 10px;
}

.c-btn {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.2s;
    border: 1px solid transparent;
}

.c-btn.primary {
    background: var(--primary);
    color: white;
}
.c-btn.primary:hover {
    background: var(--primary-hover);
}

.c-btn.secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--accent);
}
.c-btn.secondary:hover {
    background: var(--bg);
    color: var(--heading);
}

/* Mobile Styling */
@media (max-width: 500px) {
    .cookie-box {
        bottom: 0;
        right: 0;
        width: 100%;
        border-radius: 12px 12px 0 0;
    }
}
