/* ============================================================
   hanooshi. — shared styles
   Background, text color and font are set here once.
   You shouldn't need to touch this file to add posts —
   see posts.js for that.
   ============================================================ */

:root {
  --bg: #A7A7A7;
  --text: #000000;
  --thumb-bg: #D9D9D9; /* placeholder grey for images not yet added */
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

/* ---------- Header / nav ---------- */

.site-header {
  display: flex;
  align-items: baseline;
  padding: 40px 40px 0 40px;
}

.nav-link {
  font-size: 20px;
  font-weight: 400;
  margin-right: 32px;
}

.nav-link.nav-active {
  font-weight: 700;
}

/* ---------- Blog list (index.html) ---------- */

.blog-list {
  max-width: 640px;
  margin: 0 auto;
  padding: 60px 40px 140px 40px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.post {
  display: flex;
  gap: 24px;
  margin-bottom: 56px;
  cursor: default;
}

.post:last-child {
  margin-bottom: 0;
}

.post-thumb {
  flex: 0 0 150px;
  width: 150px;
  height: 150px;
  background: var(--thumb-bg);
  object-fit: cover;
  display: block;
}

.post-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.post-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  transition: font-weight 0.15s ease;
}

/* Bold up the title when you hover over its post */
.post:hover .post-title {
  font-weight: 900;
}

.post-subheading {
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 400;
}

.post-blurb {
  margin: 0 0 10px 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  max-width: 34ch;
}

.post-meta {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  display: flex;
  gap: 16px;
}

/* ---------- About page ---------- */

.about-content {
  max-width: 360px;
  margin: 60px auto 0 auto;
  text-align: center;
}

.about-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.about-subheading {
  margin: 0 0 24px 0;
  font-size: 16px;
  font-weight: 400;
}

.about-paragraph {
  margin: 0 0 20px 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
}

/* ---------- Individual post page ---------- */

.post-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 60px 40px 140px 40px;
}

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 13px;
}

.back-link:hover {
  font-weight: 700;
}

.post-page-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: var(--thumb-bg);
  margin-bottom: 24px;
  display: block;
}

.post-page-title {
  margin: 0 0 4px 0;
  font-size: 28px;
  font-weight: 700;
}

.post-page-subheading {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 400;
}

.post-page-meta {
  margin: 0 0 28px 0;
  font-size: 12px;
  font-weight: 400;
  display: flex;
  gap: 16px;
}

.post-page-blurb {
  margin: 0 0 18px 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

.post-not-found {
  font-size: 14px;
}

/* ---------- Logo ---------- */

.site-logo {
  height: auto;
  display: block;
}

/* On the blog list, the logo sits fixed in the bottom-right corner */
.logo-blog {
  position: fixed;
  right: 40px;
  bottom: 24px;
  width: 200px;
}

/* On the about page it sits centered under the text */
.logo-about {
  width: 220px;
  margin: 70px auto 60px auto;
}

@media (max-width: 600px) {
  .logo-blog {
    position: static;
    margin: 40px auto 0 auto;
    width: 160px;
  }
  .post {
    flex-direction: column;
  }
  .post-thumb {
    width: 100%;
    height: 220px;
  }
}
