:root {
  --bg: #f6f7fb;
  --card: #fff;
  --accent: #2b3a67;
  --muted: #6b6f7a;
  --btn: #2b3a67;
  --btn-text: #fff;
}

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

body {
  font-family: "adobe-caslon-pro", Georgia, serif;
  background: var(--bg);
  color: #111;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden; /* Prevents horizontal scroll on small screens */
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Hero Header */
.hero-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 24px 40px 24px;
}

.logo-img {
  width: 180px;
  height: auto;
  margin-bottom: 16px;
}

.site-title {
  font-family: 'NY Irvin', serif;
  font-size: 48px;
  color: var(--accent);
  margin-bottom: 24px;
  text-align: center;
}

/* Navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.main-nav a {
  font-size: 18px;
  font-weight: 500;
  color: var(--accent);
  transition: color 0.2s;
}

.main-nav a:hover {
  color: #000;
}

/* Sections */
.section {
  padding: 32px 0;
}

.section h2 {
  color: var(--accent);
  margin-bottom: 12px;
  font-size: 28px;
}

.section p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

/* Blog posts */
#posts {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.post-card {
  background: var(--card);
  border: 1px solid #e9ebf2;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(14, 18, 35, 0.03);
}

.post-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.post-card p {
  margin: 0;
  color: var(--muted);
}

.post-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--btn);
  color: var(--btn-text);
  border-radius: 8px;
  font-weight: 600;
  margin-top: 12px;
  transition: background 0.3s;
}

.btn:hover {
  background: #1f2950;
}

/* Footer */
.site-footer {
  padding: 28px 0;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid #e6e8ef;
  margin-top: 40px;
}

/* ---------- RESPONSIVE ---------- */

/* Tablets and small laptops */
@media (max-width: 992px) {
  .site-title {
    font-size: 40px;
  }
  .main-nav a {
    font-size: 17px;
  }
}

/* Phones and small tablets */
@media (max-width: 768px) {
  .container {
    padding: 16px;
  }
  .logo-img {
    width: 120px;
  }
  .site-title {
    font-size: 32px;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 12px;
  }
  .main-nav a {
    font-size: 16px;
  }
  #posts {
    grid-template-columns: 1fr; /* one column layout */
  }
}

/* Very small screens (phones under 480px) */
@media (max-width: 480px) {
  .site-title {
    font-size: 28px;
  }
  .btn {
    width: 100%;
    text-align: center;
  }
}

/* Font import */
@font-face {
  font-family: 'NY Irvin';
  src: url('/life-without-athena/fonts/NYIrvin.ttf') format('truetype'); /* Adjusted path for simpler structure */
  font-weight: normal;
  font-style: normal;
}
