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

:root {
  --color-bg: #fdfdfc;
  --color-text: #1a1a1a;
  --color-muted: #6b6b6b;
  --color-accent: #c0392b;
  --color-border: #ececec;
  --color-card: #ffffff;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 760px;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 17px;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.7;
}

/* Header */
header.site-header {
  border-bottom: 1px solid var(--color-border);
  padding: 2rem 1.5rem;
  background: #fff;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: var(--color-text);
}

.brand:hover {
  opacity: 1;
}

.brand img {
  width: 64px;
  height: auto;
  display: block;
}

.logo span {
  color: var(--color-accent);
}

.logo {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--color-text);
}

.logo span {
  color: var(--color-accent);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

nav a {
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

nav a.active,
nav a:hover {
  border-bottom-color: var(--color-accent);
  opacity: 1;
}

/* Main */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--color-text);
}

h1 {
  font-size: 2.4rem;
  margin-bottom: 1.2rem;
}

h2 {
  font-size: 1.7rem;
  margin-top: 2.5rem;
}

h3 {
  font-size: 1.3rem;
  margin-top: 2rem;
}

p {
  margin-bottom: 1.2rem;
}

blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: 1.2rem;
  margin: 1.5rem 0;
  color: var(--color-muted);
  font-style: italic;
}

/* Hero */
.hero {
  text-align: center;
  padding: 2rem 0 3rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2.5rem;
}

.hero h1 {
  font-size: 2.8rem;
}

.hero .subtitle {
  color: var(--color-muted);
  font-size: 1.15rem;
  max-width: 520px;
  margin: 0 auto;
}

/* Articles list */
.article-list {
  list-style: none;
}

.article-list article {
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
}

.article-list article:last-child {
  border-bottom: none;
}

.article-list h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.article-list h2 a {
  color: var(--color-text);
}

.article-list h2 a:hover {
  color: var(--color-accent);
  opacity: 1;
}

.article-meta {
  font-size: 0.88rem;
  color: var(--color-muted);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.read-more {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Single article */
article.post header {
  margin-bottom: 2rem;
}

article.post .article-meta {
  margin-bottom: 1rem;
}

article.post img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1.5rem 0;
}

/* Form */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
}

label {
  font-weight: 500;
  font-size: 0.95rem;
}

input, textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: #fff;
  transition: border-color 0.2s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

button {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.8rem 1.8rem;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s;
}

button:hover {
  background: #a32f24;
}

/* Footer */
footer.site-footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-top: 3rem;
}

footer.site-footer a {
  color: var(--color-muted);
  margin: 0 0.5rem;
}

/* Responsive */
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.2rem; }
  nav ul { gap: 1.2rem; }
  main { padding: 2rem 1.2rem; }
}
