/* Base body styles */
body {
  font-family: sans-serif;
  line-height: 1.6;
  background-color: #121212;
  color: #e0e0e0;
  margin: 0;
  padding: 0;
}

/* Links */
a {
  color: #80cbc4;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header, Navigation, and Footer */
header, nav, footer {
  background-color: #1e1e1e;
  padding: 1em;
  text-align: center;
}

/* Keeps header always on screen */
.navbar {
  position: sticky;
  top: 0;
  background-color: #1e1e1e;
  z-index: 1000;
  padding: 1em;
  text-align: center;
  border-bottom: 1px solid #333;
}

nav a {
  margin: 0 1em;
  color: #e0e0e0;
}

/* Posts and Content */
h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
}

p {
  margin-bottom: 1em;
}

ul, ol {
  margin-left: 2em;
}

/* Code blocks */
pre, code {
  background-color: #1f1f1f;
  padding: 0.5em;
  border-radius: 5px;
  font-family: monospace;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid #80cbc4;
  margin: 1em;
  padding-left: 1em;
  color: #ccc;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  max-width: 800px;
  margin: 1em auto;
  padding: 0 1em;
}

/* Post Stylings on Main page */
.post-preview {
  border: 1px solid #444;
  border-radius: 8px;
  background-color: #181818;
  padding: 1em;
  margin: 2em 0;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

.post-preview h2 {
  margin-top: 0;
  color: #fff;
}

.post-preview a {
  color: #88c0d0;
  text-decoration: none;
}

.post-preview a:hover {
  text-decoration: underline;
}

.post-date {
  font-size: 0.9em;
  color: #aaa;
  margin-bottom: 1em;
}

.post-content {
  line-height: 1.6;
  color: #ddd;
}
/* End of Post Stylings on Main page */

/* Makes the Page Titles Be large Headers */
.page-header {
  background-color: #111;
  padding: 0.25rem 0.25rem;
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 0rem;
  border-radius: 0.5rem;
}

.page-title {
  font-size: 2rem;
  color: #ffffff;
  margin: 0;
}

/* For the 2 colun Poems */
.two-column-poem {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
  background-color: #1a1a1a;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.two-column-poem div {
  white-space: pre-wrap;
}

/* Justification for each column */
.two-column-poem div:first-child {
  text-align: right;
}

.two-column-poem div:last-child {
  text-align: left;
}



/* Responsive Image Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.gallery img {
  width: 75%;
  height: auto;
  border-radius: 4px;
  transition: transform 0.3s ease;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.gallery a:hover img {
  transform: scale(1.05);
}

.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gallery-item p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: #ccc;
  line-height: 1.4;
  max-width: 100%;
}

/* For the Projects Pages */
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.project-card {
  background-color: inherit;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.project-card:hover {
  transform: scale(1.02);
}

.project-card img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.project-card h3 {
  font-size: 1.1rem;
  margin: 0.75rem 0;
  padding: 0 0.5rem;
}

/* === Header Styling with Responsive Icon and Title === */

.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  padding: 2rem 1rem;
  gap: 1.5rem;
}

.site-icon {
  width: 96px;
  height: 96px;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

.icon-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;  /* Center both title and subtitle under each other */
  text-align: center;   /* Makes sure subtitle centers too */
}

.site-title {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  font-family: 'EB Garamond', serif !important;
}

.italic-word {
  font-style: italic;
  font-weight: 400;
}

.site-subtitle {
  font-size: 1rem;
  color: #ccc;
  margin-top: 0.5rem;
  font-style: italic;
  line-height: 1.4;
  font-family: 'EB Garamond', serif !important;
}

/* === Responsive Scaling (and consistent layout) for Mobile === */
@media (max-width: 600px) {
  .site-header {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .icon-title {
    align-items: center;
    text-align: center;
  }

  .site-title {
    font-size: 1.50rem;
  }

  .site-subtitle {
    font-size: 0.9rem;
  }

  .site-icon {
    width: 96px;
    height: 96px;
  }
}

