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

/* --- Light/Dark Mode Variables --- */
:root {
  --bg: #faf8f6;
  --text: #2e2e2e;
  --accent: #d7b89b;
  --link: #b17457;
  --link-hover: #7a3e28;
  --blockquote-bg: #fdfaf8;
  --article-bg: #fff;
  --shadow: rgba(0, 0, 0, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1b1a;
    --text: #e6e0d9;
    --accent: #c5a87b;
    --link: #e1b28f;
    --link-hover: #ffcca8;
    --blockquote-bg: #262422;
    --article-bg: #222120;
    --shadow: rgba(0, 0, 0, 0.3);
  }
}

/* --- Page Layout --- */
body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  padding: 3rem 1rem;
  display: flex;
  justify-content: center;
	align-items: center;
	flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
}

article {
  max-width: 750px;
  width: 100%;
  background: var(--article-bg);
  padding: 3rem 3rem 4rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px var(--shadow);
  animation: fadeIn 0.4s ease-out;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

@media only screen and (max-width: 720px) {
	
	body {
		padding: 3rem 0;
		background: var(--article-bg);
	}

	article {
		width: 100%;
		max-width: 100%;
		border-radius: 0;
		margin: 0;
		box-shadow: none;
	}
}

/* --- Header --- */
header {
  text-align: center;
  margin-bottom: 2.5rem;
}

header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  letter-spacing: 0.5px;
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* Replace <hr> with a stylized star divider */
header hr {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  margin: 0 auto;
  width: 50%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  position: relative;
}

header hr::before {
  content: "★";
  position: absolute;
  font-size: 0.9rem;
  color: var(--accent);
  background: var(--article-bg);
  padding: 0 0.4rem;
  transform: translateY(-50%);
  top: 50%;
}

/* --- Typography --- */
p {
  margin-bottom: 1.4rem;
  text-align: justify;
}

strong {
  color: var(--text);
  font-weight: 600;
}

em {
  color: var(--text);
  font-style: italic;
  opacity: 0.85;
}

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px dotted var(--link);
  transition: color 0.2s, border-color 0.2s;
}

a:hover {
  color: var(--link-hover);
  border-color: var(--link-hover);
}

/* --- Headings --- */
h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

h2 {
  font-size: 1.6rem;
  border-left: 4px solid var(--accent);
  padding-left: 0.5rem;
}

h3 {
  font-size: 1.3rem;
}

blockquote {
  font-style: italic;
  color: var(--text);
  opacity: 0.85;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin: 1.5rem 0;
  background: var(--blockquote-bg);
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

/* --- Images --- */
img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1.5rem 0;
  box-shadow: 0 4px 10px var(--shadow);
  transition: box-shadow 0.3s ease;
}

/* --- Code blocks (if any) --- */
pre, code {
  font-family: 'Fira Code', monospace;
  background: var(--blockquote-bg);
  color: var(--text);
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
}

pre {
  overflow-x: auto;
  padding: 1rem;
}

/* --- Footer --- */
footer {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.7;
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Mobile --- */
@media (max-width: 768px) {
  article {
    padding: 2rem;
  }
  header h1 {
    font-size: 1.8rem;
  }
}
