/* src/styles/global.css */

/* --- Reset / base --- */
html {
  scroll-behavior: smooth;
  font-family: 'Georgia', serif;
  line-height: 1.7;
  background: #ffffff;
  color: #111;
}

body {
  margin: 0;
  padding: 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0.5rem;

}

/* Headings */
h1, h2, h3, h4 {
  font-family: 'Georgia', serif;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #222;
}

/* Links */
a {
  color: #222;
  text-decoration: none;
  border-bottom: 1px dotted #aaa;
  transition: all 0.2s ease-in-out;
}

a:hover {
  color: #000;
  border-bottom: 1px solid #000;
}

/* Navigation */
nav {
  margin-bottom: 3rem;
}

nav a {
  margin-right: 1rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Article / prose */
article {
  margin-bottom: 4rem;
}

/* Writings list */
ul {
  list-style-type: none;
  padding-left: 0;
}

li {
  margin-bottom: 0.75rem;
}

li a {
  font-size: 1.125rem;
}

/* Footer */
footer {
  margin-top: 4rem;
  text-align: center;
  font-size: 0.875rem;
  color: #777;
}

/* Optional: subtle blockquote style */
blockquote {
  border-left: 3px solid #ddd;
  padding-left: 1rem;
  color: #555;
  margin: 1.5rem 0;
  font-style: italic;
}

header {
    text-align: center;
}

/* Container for homepage sections */
.home-section {
  margin: 4rem 0;
  padding: 0 1rem;
}

/* Section header styling */
.home-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a; /* Darker for contrast */
  border-bottom: 3px solid #ff7f50; /* Optional underline accent */
  display: inline-block;
  padding-bottom: 0.3rem;
  margin-bottom: 2rem;
}
/* Card styling */
.post-card {
  background-color: #ffffff; /* Light card background */
  border-radius: 1rem;       /* Rounded corners */
  box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Soft shadow for depth */
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Card title and excerpt */
.post-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.post-card p {
  font-size: 1rem;
  color: #555555;
}
/* --- Blog post layout --- */
.post-content-wrapper {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  padding: 3rem 2rem;
  max-width: 900px;     /* overall card width */
  margin: 3rem auto;
  text-align: left;     /* ensure left text */
  color: #222;
  font-family: "Georgia", serif;
}

/* Inner reading column – everything inside stays left, no odd indents */
.post-body {
  max-width: 680px;     /* comfortable reading width (~65–75ch) */
  margin: 0 auto;       /* centers the column itself */
}

/* Paragraphs (no per-paragraph centering!) */
.post-body p {
  margin: 1.25rem 0;
  line-height: 1.7;
  white-space: normal;  /* kill any inherited pre-line/pre-wrap */
  text-indent: 0;       /* belt-and-suspenders reset */
}

/* Headings */
.post-content-wrapper h1 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 0.5rem 0;
  color: #111;
}
.post-meta {
  text-align: center;
  color: #777;
  font-size: 0.9rem;
  margin: 0 0 2rem 0;
}
.post-body h2,
.post-body h3 {
  margin: 2.5rem 0 1rem;
  font-weight: 600;
  color: #111;
}

/* Lists – override your global UL reset so blog lists look normal */
.post-body ul,
.post-body ol {
  margin: 1.25rem 0 1.25rem 0;
  padding-left: 1.25rem;       /* restore left padding for bullets/numbers */
}
.post-body ul { list-style: disc outside; }
.post-body ol { list-style: decimal outside; }
.post-body li { margin: 0.5rem 0; }

/* Blockquotes */
.post-body blockquote {
  border-left: 4px solid #ff7f50;
  padding-left: 1rem;
  margin: 2rem 0;
  color: #555;
  background: #fffaf8;
  font-style: italic;
}

/* Images */
.post-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 2rem auto;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Code */
.post-body pre,
.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.post-body pre {
  background: #f6f8fa;
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.post-body code {
  background: #f6f8fa;
  border-radius: 4px;
  padding: 0.15rem 0.35rem;
}



.featured_writings {
  display: inline;
}



/* Fix paragraph spacing inside poems */
.writing-content p {
  margin: 0;                   /* remove default top/bottom gaps */
  padding: 0;
}

/* Add small, consistent stanza gap */
.writing-content p + p {
  margin-top: 1rem;            /* creates clear stanza breaks */
}

/* Remove stray top space on first stanza */
.writing-content p:first-child {
  margin-top: 0;
}
.writing-content-wrapper {
  background-color: #fefefe;
  border-radius: 1rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  padding: 2.5rem 2rem;
  max-width: 680px;          /* width of the “page” */
  margin: 3rem auto;         /* centers horizontally */
  text-align: left;          /* keep the text left-aligned */
  line-height: 1.4;
}

/* Keep text left-aligned, but centered *within* its parent */
.writing-content {
  white-space: pre-line;
  font-size: 1.05rem;
  font-family: "Georgia", serif;
  color: #222;

  /* center the block itself, not the text */
  display: block;
  max-width: 520px;          /* controls poem column width */
  margin: 0 auto;            /* centers this block inside wrapper */
  text-align: left;
}

/* Optional: make title feel intentional */
.writing-content-wrapper h3 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  color: #111;
}