/* Root CSS Variables */
:root {
  --bg: #fff;
  --text: #111;
  --accent: #ddd;
}

a:focus {
  outline: 2px dashed var(--accent, #999);
  outline-offset: 4px;
}

.image-container {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.image-container img {
  width: 100%;
  transition: all 0.4s ease;
  filter: grayscale(100%);
}

.image-container:hover img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  opacity: 0;
  transition: opacity 0.4s ease;
  font-size: 0.9rem;
  text-align: center;
}

.image-container:hover .image-caption {
  opacity: 1;
}

.subtitle {
  font-family: 'Lora', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.2em;
  color: #777; /* or something more atmospheric */
}

.details-area hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, var(--accent), transparent);
  margin: 2rem 0;
  opacity: 0.5;
}

.text-column hr {
  border: 0;
  border-top: 1px dashed var(--accent);
  margin: 2rem 0;
  opacity: 0.6;
}

.visually-hidden {
  position: absolute !important;
  height: 1px; 
  width: 1px; 
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); 
  white-space: nowrap; 
  border: 0;
}
nav a,
.social-links a {
  position: relative;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

nav a:hover,
.social-links a:hover {
  color: var(--accent, #666);
}

nav a::after,
.social-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.1em;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--accent, #666) 50%, transparent 50%);
  background-size: 4px 1px;
  background-repeat: repeat-x;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

nav a:hover::after,
.social-links a:hover::after {
  transform: scaleX(1);
}


nav a[aria-current="page"] {
  font-weight: bold;
  text-decoration: underline;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

.image-column {
  position: -webkit-sticky; /* Safari */
  position: sticky;
  top: 2rem;
  align-self: start;
}

@media (max-width: 768px) {
  .image-column {
    position: static;
  }
}

.image-column img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

blockquote {
  font-style: italic;
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
  margin: 2rem 0;
  color: var(--text);
  background-color: rgba(100, 100, 100, 0.05); /* Slight background for contrast */
  font-size: 1.2rem;
  line-height: 1.6;
  font-family: 'Merriweather', serif, sans-serif; /* Elegant serif for emphasis, falls back to sans-serif */
  transition: background-color 0.3s ease; /* Ensure the transition applies to background-color */
}

blockquote p {
  margin: 0;
  font-weight: 300;
}

/* Hover effect */
blockquote:hover {
  background-color: rgba(255, 255, 255, 0.1); /* Slight increase in background color on hover */
  cursor: pointer; /* Adds a pointer cursor to indicate interactiveness */
}

body {
  font-weight: 400; /* Regular weight for Crimson Text */
}

h1, h2, h3 {
  font-weight: 700; /* Bold weight for Raleway */
}

.writing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.writing-list li {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #222;
}

.writing-list li a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.writing-list li a:hover {
  color: #555;
}

.label {
  font-weight: 500;
  color: #666;
}


.writing-container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  margin: 2rem 0;
}

.writing-column {
  flex: 1 1 45%;
  min-width: 300px;
  max-width: 600px;
}

.writing-divider {
  width: 1px;
  background-color: #ccc; /* or a subtle tone like #999 or rgba */
  height: auto;
  margin: 0 1rem;
}

@media (max-width: 768px) {
  .writing-container {
    flex-direction: column;
  }

  .writing-divider {
    display: none; /* Hide on smaller screens */
  }
}


/* General Body Styles */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Lora', serif;
  line-height: 1.6;
  padding: 20px;
  transition: background 0.3s ease, color 0.3s ease;
}

.site-header {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--accent);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
}

a {
  font-family: 'Raleway', sans-serif;
}

.site-footer {
  border-top: 1px solid var(--accent);
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
}

.social-links a {
  color: var(--text);
  text-decoration: none;
  margin: 0 0.5rem;
}

/* Header Styling */
header {
  max-width: 1200px;
  margin: 0 auto 2rem auto;
  padding: 1rem 2rem;
  border-bottom: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

header h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

header nav a {
  margin: 0 1rem;
  text-decoration: none;
  color: #444;
  font-size: 0.95rem;
}

header nav a:hover {
  text-decoration: underline;
}

/* Footer Styling */
footer {
  max-width: 1200px;
  margin: 2rem auto 0 auto;
  padding: 1rem 2rem;
  border-top: 1px solid #ddd;
  text-align: center;
  font-size: 0.85rem;
  color: #666;
}

/* Grid Layout for Images and Text */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  align-items: start;
  border-left: 1px solid #eee;
  border-right: 1px solid #eee;
}

.image-column {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.image-column img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1rem;
}

.text-column {
  padding: 1rem;
  border-left: 1px solid #ddd;
  background-color: #fdfdfd;
}

.text-column h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.text-column p {
  margin-bottom: 1rem;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .main-grid {
    grid-template-columns: 1fr;
    border: none;
  }

  .text-column {
    border-left: none;
    border-top: 1px solid #ddd;
    background-color: #fafafa;
  }

  .image-left {
    order: 1;
  }

  .image-right {
    order: 2;
  }

  .text-column {
    order: 3;
  }

  .image-left, .image-right, .text-column {
    padding-left: 0;
    padding-right: 0;
  }
}