/* styles.css */

/* Reset and base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  font-size: 16px;
  color: #222;
  background-color: #fafafa;
  padding: 2rem 1rem;
  text-align:justify;
  text-justify:inter-word;
}


img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.container {
  max-width: 720px;
  margin: 0 auto;
}

/* Header */
.blog-header {
  text-align: center;
  margin-bottom: 2rem;
}

.title {
  font-family: 'EB Garamond', serif;
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.date {
  font-size: 0.9rem;
  color: #666;
}

.home-link {
  font-size: 0.9rem;
  color: #333;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1rem;
}

.home-link:hover {
  text-decoration: underline;
}

/* Main content */
.blog-content p {
  margin-bottom: 1.2rem;
}

.blog-content h2,
.blog-content h3 {
  font-family: 'EB Garamond', serif;
  font-weight: 400;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

figcaption {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.5rem;
  text-align: center;
}

/* Footer */
.blog-footer {
  text-align: center;
  margin-top: 4rem;
  font-size: 0.85rem;
  color: #888;
}

/* === Default (Light mode) === */
:root {
  --bg: #fafafa;
  --text: #222;
  --muted: #666;
  --link: #333;
}

/* === Dark mode preference === */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --text: #e0e0e0;
    --muted: #aaa;
    --link: #fff;
  }
}

/* === Apply variables === */
body {
  background-color: var(--bg);
  color: var(--text);
}

a,
.home-link {
  color: var(--link);
}

.date,
figcaption,
.blog-footer {
  color: var(--muted);
}

blockquote {
  margin: 1.5em 0;
  padding: 1em 1.5em;
  border-left: 4px solid var(--muted);
  background-color: rgba(127, 127, 127, 0.1); /* subtle background */
  font-style: italic;
  color: var(--text);
}

blockquote p {
  margin: 0;
}

blockquote::before {
  content: "“";
  font-size: 2em;
  line-height: 0;
  vertical-align: -0.4em;
  color: var(--muted);
}

blockquote cite {
  display: block;
  margin-top: 0.5em;
  font-size: 0.9em;
  color: var(--muted);
  text-align: right;
}


.poem {
  white-space: pre-line; /* preserve line breaks */
  font-family: 'Georgia', serif;
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--text);
  padding: 1em 1.5em;
  margin: 2em 0;
  background-color: rgba(127, 127, 127, 0.05); /* subtle background */
  border-left: 3px solid var(--muted);
  font-style: normal;
}

.poem-title {
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 0.5em;
  color: var(--muted);
}




