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

:root {
  --espresso-brown: #2C1F1A;
  --charcoal-black: #1A1A1A;
  --parchment-beige: #E6D8C3;
  --dusty-olive-green: #4B5A45;
  --antique-gold: #C2A878;
  --burgundy: #5A1F2B;
}

html {
  scroll-behavior: smooth;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--parchment-beige);
  color: var(--charcoal-black);
  position: relative;
  min-height: 100vh;
  animation: pageLoadFade 1.2s ease-out forwards;
}

@keyframes pageLoadFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Subtle paper grain texture overlay */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999; /* Ensure it stays on top without blocking clicks */
  opacity: 0.15; /* Keep it subtle */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--espresso-brown);
  margin-top: 0;
}

/* --- Navigation Bar --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--espresso-brown);
  padding: 1.5rem 3rem;
  border-bottom: 1px solid var(--antique-gold);
}

.navbar .logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--antique-gold);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-item {
  color: var(--parchment-beige);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-item:hover {
  color: var(--antique-gold);
}

/* Smooth Underline Hover Effect */
.nav-item::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--antique-gold);
  transition: width 0.3s ease;
}

.nav-item:hover::after {
  width: 100%;
}

/* --- Hero Section --- */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5rem 10%;
  background-color: var(--espresso-brown);
  min-height: calc(100vh - 84px); /* Subtract approximate navbar height */
  position: relative;
  overflow: hidden;
}

.hero-content {
  flex: 1;
  max-width: 55%;
  padding-right: 4rem;
  z-index: 1;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  line-height: 1.15;
  color: var(--parchment-beige);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(230, 216, 195, 0.8); /* Dimmed parchment beige */
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--antique-gold);
  color: var(--espresso-brown);
  border: 2px solid var(--antique-gold);
}

.btn-primary:hover {
  background-color: #D4B26C; /* Lighter visually */
  box-shadow: 0 0 20px rgba(194, 168, 120, 0.5); /* Soft gold glow */
}

.btn-secondary {
  background-color: transparent;
  color: var(--antique-gold);
  border: 2px solid var(--antique-gold);
}

.btn-secondary:hover {
  background-color: rgba(194, 168, 120, 0.05); /* Slight fill */
  box-shadow: 0 0 20px rgba(194, 168, 120, 0.35); /* Soft gold glow */
}

/* --- Hero Image Placeholder --- */
.hero-image-placeholder {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.illustration-frame {
  width: 100%;
  max-width: 450px;
  aspect-ratio: 4/5;
  border: 1px dashed var(--antique-gold);
  border-radius: 8px;
  position: relative;
  background-color: rgba(26, 26, 26, 0.4); /* Translucent charcoal black */
  display: flex;
  justify-content: center;
  align-items: center;
}

.illustration-frame::after {
  content: 'Illustration Placeholder';
  font-family: 'Playfair Display', serif;
  color: rgba(194, 168, 120, 0.6); /* Gold, partially transparent */
  font-style: italic;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
}

/* --- Features Section --- */
.features {
  padding: 8rem 10%;
  background-color: var(--espresso-brown);
  position: relative;
  /* Soft separator line top */
  border-top: 1px solid rgba(194, 168, 120, 0.15); 
}

.section-heading {
  text-align: center;
  margin-bottom: 5rem;
}

.chapter-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 2.75rem;
  font-weight: 400;
  color: var(--antique-gold);
  letter-spacing: 1px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
}

/* --- Feature Cards --- */
.feature-card {
  background-color: var(--charcoal-black);
  border: 1px solid var(--antique-gold);
  border-radius: 6px;
  padding: 3rem 2rem;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(194, 168, 120, 0.12);
}

.feature-icon {
  margin-bottom: 1.75rem;
  color: var(--antique-gold);
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.feature-icon svg {
  width: 52px;
  height: 52px;
  stroke: var(--antique-gold);
  stroke-width: 1.5;
}

.feature-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--antique-gold);
  margin-bottom: 1rem;
  font-weight: 600;
}

.feature-text {
  font-family: 'Inter', sans-serif;
  color: var(--parchment-beige);
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.85;
}

/* --- Fade In Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- AI Features Section (Chapter II) --- */
.ai-section {
  /* Subtle border top separator to distinguish the new chapter */
  border-top: 1px dashed rgba(194, 168, 120, 0.2); 
}

/* Center the 3 cards if the grid leaves awkward space */
.ai-grid {
  justify-content: center;
}

.ai-card {
  /* Specific styling for AI cards to make them pop */
  box-shadow: 0 0 15px rgba(194, 168, 120, 0.2);
  border: 1px solid rgba(194, 168, 120, 0.6);
}

.ai-card:hover {
  /* Intensify the gold glow on hover */
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(194, 168, 120, 0.4);
  border-color: var(--antique-gold);
}

/* --- Preview Section (Chapter III) --- */
.preview-section {
  padding: 8rem 10%;
  background-color: var(--espresso-brown);
  border-top: 1px dashed rgba(194, 168, 120, 0.2); 
  text-align: center;
}

.preview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 950px;
  margin: 0 auto;
}

/* Notebook Frame Mockup */
.notebook-frame {
  width: 100%;
  aspect-ratio: 16/9;
  background-color: var(--parchment-beige);
  border: 14px solid #4A3026; /* Vintage brown / deeper espresso leather */
  border-radius: 4px;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.35), /* Soft warm deep shadow bounding the notebook */
    inset 0 0 60px rgba(90, 31, 43, 0.08); /* Faint burgundy inner shadow for warm realism */
  position: relative;
  /* Paper grain overlay specific to the notebook's canvas */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-blend-mode: multiply;
  margin-bottom: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Vintage inner line to look like a notebook page margin or picture matte */
.notebook-frame::before {
  content: "";
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 15px;
  right: 15px;
  border: 1px solid rgba(74, 48, 38, 0.25);
  pointer-events: none;
}

.notebook-content {
  color: var(--espresso-brown);
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-style: italic;
  opacity: 0.5;
  letter-spacing: 0.5px;
}

.preview-caption {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--parchment-beige);
  margin-bottom: 2.5rem;
  font-style: italic;
  opacity: 0.95;
}

.preview-btn {
  padding: 1.25rem 3rem;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
}

/* --- Testimonials Section --- */
.testimonials {
  padding: 8rem 10%;
  background-color: var(--espresso-brown);
  border-top: 1px dashed rgba(194, 168, 120, 0.2);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: stretch;
}

.testimonial-card {
  background-color: var(--parchment-beige);
  padding: 3.5rem 2.5rem;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Add paper texture to cards */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-blend-mode: multiply;
}

.quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 6rem;
  color: var(--antique-gold);
  line-height: 0;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
  opacity: 0.8;
}

.quote-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.35rem;
  color: var(--espresso-brown); /* Dark brown text */
  line-height: 1.7;
  flex-grow: 1; /* Pushes author to bottom */
}

/* Ink style divider lines */
.ink-divider {
  width: 50%;
  height: 2px;
  background-color: var(--espresso-brown);
  margin: 2.5rem auto 1.5rem auto;
  opacity: 0.25;
  /* Make it look slightly imperfect/hand-drawn like ink smudged on paper */
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(44, 31, 26, 0.2);
}

.quote-author {
  font-family: 'Playfair Display', cursive, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--espresso-brown);
  letter-spacing: 0.5px;
}

/* --- CTA Section --- */
.cta-section {
  padding: 8rem 10%;
  background-color: var(--burgundy);
  text-align: center;
  border-top: 1px dashed rgba(194, 168, 120, 0.2);
  /* Inner shadow creates depth making it feel like an embossed section */
  box-shadow: inset 0 20px 40px rgba(0,0,0,0.15);
}

.cta-heading {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--parchment-beige);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.cta-subtext {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  color: rgba(230, 216, 195, 0.85); /* Dimmed parchment beige */
  margin-bottom: 3rem;
  font-style: italic;
}

/* Primary Button class already gives the antique gold hover glow */
.cta-btn {
  font-size: 1.25rem;
  padding: 1.5rem 3.5rem;
  border-radius: 6px;
}

/* --- Footer --- */
.footer {
  background-color: var(--charcoal-black);
  padding: 4rem 10% 2.5rem 10%;
  border-top: 1px solid var(--antique-gold); /* Thin gold top border */
  color: var(--parchment-beige);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
  border-bottom: 1px dashed rgba(194, 168, 120, 0.15);
  padding-bottom: 3rem;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--antique-gold);
  flex: 1;
}

.footer-nav {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex: 2; /* Center area */
}

.footer-spacer {
  flex: 1; /* Counterbalances logo width */
}

.footer-nav a {
  color: var(--parchment-beige);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  transition: color 0.3s ease;
  letter-spacing: 0.5px;
}

.footer-nav a:hover {
  color: var(--antique-gold);
}

.footer-bottom {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: rgba(230, 216, 195, 0.5); /* Dimmed parchment string */
}

/* --- App Workspace Page (app.html) --- */
.app-workspace {
  padding: 4rem 10% 6rem 10%;
  background-color: var(--espresso-brown);
  min-height: calc(100vh - 84px);
}

.desk-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  color: var(--antique-gold);
  margin-bottom: 3rem;
  font-weight: 600;
  border-bottom: 1px dashed rgba(194, 168, 120, 0.3);
  padding-bottom: 1.5rem;
}

.app-grid {
  display: grid;
  grid-template-columns: 1.75fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

/* Base Panel Styling */
.card-panel {
  background-color: var(--charcoal-black);
  border: 1px solid rgba(194, 168, 120, 0.3);
  border-radius: 6px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.panel-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--parchment-beige);
  margin-bottom: 1.75rem;
  font-weight: 600;
}

/* Sidebar AI Panel Enhancements */
.panel-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(194, 168, 120, 0.15);
  padding-bottom: 1rem;
}

.panel-header .panel-title {
  margin-bottom: 0;
}

.panel-icon {
  width: 24px;
  height: 24px;
  stroke: var(--antique-gold);
}

.ai-card-highlight {
  border-color: rgba(194, 168, 120, 0.6);
  box-shadow: 0 0 15px rgba(194, 168, 120, 0.15);
}

/* Task Input Form */
.task-form-extended {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.task-input-row {
  display: flex;
  width: 100%;
}

.task-options-row {
  display: flex;
  gap: 1rem;
  align-items: stretch;
}

.task-input-small {
  flex: 1;
  background-color: var(--parchment-beige);
  border: 2px solid rgba(194, 168, 120, 0.4);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--charcoal-black);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  min-width: 0;
}

.task-input-small:focus {
  outline: none;
  border-color: var(--antique-gold);
  box-shadow: 0 0 10px rgba(194, 168, 120, 0.3);
}

.task-input {
  flex: 1;
  background-color: var(--parchment-beige);
  border: 2px solid rgba(194, 168, 120, 0.4);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--espresso-brown);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.task-input:focus {
  outline: none;
  border-style: solid;
  border-color: var(--antique-gold);
  box-shadow: 0 0 15px rgba(194, 168, 120, 0.5); /* Warm gold border on focus */
}

.task-input::placeholder {
  color: rgba(44, 31, 26, 0.5); /* Espresso brown, translucent */
}

.add-task-btn {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Task List */
.task-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px dashed rgba(194, 168, 120, 0.15);
}

.task-item:last-child {
  border-bottom: none;
}

.task-check {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--antique-gold);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  background-color: transparent;
  transition: background-color 0.2s ease;
}

.task-check:checked {
  background-color: var(--antique-gold);
}

.task-check:checked::after {
  content: '✓';
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--espresso-brown);
  font-size: 14px;
  font-weight: 900;
}

.task-text {
  font-family: 'Inter', sans-serif;
  color: var(--parchment-beige);
  font-size: 1.15rem;
  transition: opacity 0.3s ease, text-decoration 0.3s ease;
}

/* New Logic for Done and Delete Buttons */
.task-actions {
  display: flex;
  gap: 0.75rem;
  margin-left: auto; /* Pushes to the far right */
}

.btn-small {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-done {
  background-color: transparent;
  color: var(--antique-gold);
  border: 1px solid var(--antique-gold);
}

.btn-done:hover {
  background-color: rgba(194, 168, 120, 0.15);
}

.btn-delete {
  background-color: transparent;
  color: #ad5a5a; /* A softer, scholarly burgundy-red */
  border: 1px solid #ad5a5a;
}

.btn-delete:hover {
  background-color: rgba(173, 90, 90, 0.15);
}

/* Completed state styling */
.task-item.completed .task-text {
  text-decoration: line-through;
  opacity: 0.4;
}

/* Oracle & Mood Sidebar Components */
.oracle-suggestion {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  line-height: 1.7;
  color: rgba(230, 216, 195, 0.9);
  font-size: 1.1rem;
}

.mood-status {
  padding: 1.25rem;
  background-color: rgba(194, 168, 120, 0.08); /* slight gold fill */
  border: 1px solid rgba(194, 168, 120, 0.25);
  border-radius: 4px;
  text-align: center;
}

.mood-text {
  font-family: 'Playfair Display', serif;
  color: var(--antique-gold);
  font-size: 1.35rem;
  letter-spacing: 0.5px;
}

/* --- The Scribe: Deadline Badge --- */
.deadline-badge {
  background-color: rgba(194, 168, 120, 0.12); /* Soft antique gold wash */
  color: var(--antique-gold);
  border: 1px solid var(--antique-gold);
  border-radius: 12px;
  padding: 0.2rem 0.6rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 1rem;
  vertical-align: middle;
  display: inline-block;
  line-height: 1;
}

/* --- The Oracle: Priority Badges --- */
.priority-badge {
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  margin-left: 0.5rem;
  vertical-align: middle;
  display: inline-block;
  line-height: 1;
}

.priority-urgent {
  background-color: rgba(90, 31, 43, 0.15); /* Burgundy wash */
  color: #B05D6D; /* Crimson/Burgundy */
  border: 1px solid #783542;
}

.priority-important {
  background-color: rgba(194, 168, 120, 0.15); 
  color: var(--antique-gold);
  border: 1px solid var(--antique-gold);
}

.priority-can-wait {
  background-color: rgba(75, 90, 69, 0.15); /* Olive green wash */
  color: #8C9C84; /* Soft olive */
  border: 1px solid var(--dusty-olive-green); 
}

/* --- The Oracle: Scroll Style Suggestion Card --- */
.oracle-scroll {
  /* Emulate a rolled physical scroll or bounded manuscript excerpt */
  background-color: #DCCFA7; /* Very yellowed, deep aged parchment */
  border-left: 5px solid var(--antique-gold); /* Represents a colored binding or scroll edge */
  border-right: 1px solid rgba(194, 168, 120, 0.3);
  border-top: 1px solid rgba(194, 168, 120, 0.3);
  border-bottom: 1px solid rgba(194, 168, 120, 0.3);
  border-radius: 2px 6px 6px 2px;
  padding: 1.5rem 1.25rem;
  box-shadow: 
    inset 0 0 25px rgba(139, 69, 19, 0.15),
    0 10px 15px rgba(0, 0, 0, 0.25);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-blend-mode: multiply;
  margin-top: 0.5rem;
}

.oracle-scroll .oracle-suggestion {
  color: var(--espresso-brown);
  font-family: 'Playfair Display', serif; /* Handwritten scholar text */
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 600;
  margin: 0;
  opacity: 0.95;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
}

/* --- Mood of the Desk Card --- */
.parchment-card {
  background-color: var(--parchment-beige);
  border: 1px solid var(--antique-gold);
  border-radius: 6px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: inset 0 0 20px rgba(139, 69, 19, 0.05); /* faint inner warmth */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-blend-mode: multiply;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.mood-decorative-icon {
  width: 38px;
  height: 38px;
  stroke: var(--antique-gold);
  stroke-width: 1.5;
}

.mood-message {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 600;
  color: var(--espresso-brown);
  margin: 0;
  line-height: 1.5;
}

/* --- Journal Page (journal.html) --- */
.journal-workspace {
  padding: 4rem 15% 6rem 15%;
  background-color: var(--espresso-brown);
  min-height: calc(100vh - 84px);
}

.journal-title {
  font-family: 'Playfair Display', serif;
  font-size: 4.5rem;
  color: var(--antique-gold);
  margin-bottom: 0.5rem;
  font-weight: 600;
  text-align: center;
}

.journal-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-style: italic;
  color: rgba(230, 216, 195, 0.7); /* Faded parchment beige */
  text-align: center;
  margin-bottom: 3rem;
}

.journal-content {
  background-color: var(--charcoal-black);
  border: 1px solid rgba(194, 168, 120, 0.3);
  border-radius: 6px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.journal-editor-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.journal-textarea {
  width: 100%;
  min-height: 350px;
  background-color: var(--parchment-beige);
  border: 2px solid rgba(194, 168, 120, 0.4);
  border-radius: 4px;
  padding: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--espresso-brown);
  resize: vertical;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-blend-mode: multiply;
}

.journal-textarea:focus {
  outline: none;
  border-color: var(--antique-gold);
  box-shadow: 0 0 15px rgba(194, 168, 120, 0.3);
}

.journal-textarea::placeholder {
  color: rgba(44, 31, 26, 0.5); /* Espresso brown, translucent */
  font-style: italic;
}

.journal-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.word-count {
  font-family: 'Inter', sans-serif;
  color: rgba(230, 216, 195, 0.8);
  font-size: 1rem;
  font-weight: 500;
}

.journal-actions {
  display: flex;
  gap: 1rem;
}

.journal-mood-card {
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 500px;
}

.journal-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(194, 168, 120, 0.5), transparent);
  margin: 3rem 0;
}

/* Archives Section */
.archive-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--antique-gold);
  margin-bottom: 2rem;
  text-align: center;
}

.archive-search-container {
  display: flex;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

.archive-search-input {
  flex: 1;
  background-color: transparent;
  border: 1px dashed rgba(194, 168, 120, 0.5);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: var(--parchment-beige);
  transition: border-color 0.3s ease;
}

.archive-search-input:focus {
  outline: none;
  border-style: solid;
  border-color: var(--antique-gold);
}

/* System Message Container */
.journal-message {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--antique-gold);
  opacity: 0;
  transition: opacity 0.5s ease;
  margin: 0 1.5rem;
  flex: 1;
  text-align: right;
  pointer-events: none;
}

.journal-message.show {
  opacity: 1;
}

.past-entries-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.journal-entry-card {
  background-color: var(--parchment-beige);
  border: 1px solid var(--antique-gold);
  border-radius: 6px;
  padding: 2.5rem;
  box-shadow: inset 0 0 20px rgba(139, 69, 19, 0.05), 0 5px 15px rgba(0,0,0,0.2);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-blend-mode: multiply;
  position: relative;
}

.entry-timestamp {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--burgundy);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.entry-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--espresso-brown);
  line-height: 1.6;
  white-space: pre-wrap; /* to handle original line breaks properly */
  margin-bottom: 1.5rem;
}

.entry-actions {
  display: flex;
  justify-content: flex-end;
}

/* --- About Page (about.html) --- */
.about-workspace {
  padding: 4rem 10% 6rem 10%;
  background-color: var(--espresso-brown);
  min-height: calc(100vh - 84px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-header {
  text-align: center;
  margin-bottom: 3rem;
}

.about-title {
  font-family: 'Playfair Display', serif;
  font-size: 4.5rem;
  color: var(--antique-gold);
  font-weight: 600;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.about-content {
  background-color: var(--parchment-beige);
  max-width: 800px;
  width: 100%;
  padding: 5rem 6rem;
  border-radius: 4px;
  border: 1px solid var(--antique-gold);
  box-shadow: inset 0 0 40px rgba(139, 69, 19, 0.05), 0 15px 40px rgba(0, 0, 0, 0.3);
  /* Apply paper texture overlay exclusively to the article body */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-blend-mode: multiply;
  position: relative;
}

.about-section {
  text-align: center;
  margin: 1rem 0;
}

.about-chapter-heading {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-style: italic;
  color: var(--burgundy);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.about-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  line-height: 1.8;
  color: var(--espresso-brown);
  margin-bottom: 0;
}

.about-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-list li {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--charcoal-black);
  position: relative;
}

.about-list li::before {
  content: "✦";
  color: var(--antique-gold);
  margin-right: 0.75rem;
  font-size: 1rem;
  vertical-align: middle;
}

.about-cta-container {
  display: flex;
  justify-content: center;
  margin-top: 4.5rem;
}

.about-content .ink-divider {
  width: 40%;
  margin: 3.5rem auto;
}

