/* Пингвинго — простой блог про пингвинов.
   Никакого фреймворка, обычный CSS, чтобы страницы грузились быстро. */

:root {
  --green-dark: #24402f;
  --green-mid: #4d7a52;
  --green-soft: #7fa07a;
  --green-pale: #eef3ea;
  --bg: #f7f6f1;
  --card-bg: #ffffff;
  --text: #2c2c26;
  --text-muted: #5c6b5a;
  --border: #dbe3d4;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", "PT Serif", serif;
  line-height: 1.6;
  font-size: 18px;
}

a {
  color: var(--green-dark);
  text-decoration: underline;
  text-decoration-color: var(--green-soft);
}

a:hover {
  color: var(--green-mid);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Шапка */

header.site-header {
  background: var(--green-dark);
  border-bottom: 3px solid var(--green-mid);
}

header.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: bold;
  color: #f2f6ee;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.logo:hover {
  color: #ffffff;
}

.tagline {
  color: #cfe0c8;
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 2px;
}

nav.site-nav {
  font-family: Verdana, Arial, sans-serif;
  font-size: 0.92rem;
}

nav.site-nav a {
  color: #e4ecdd;
  text-decoration: none;
  margin-left: 18px;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

nav.site-nav a:hover,
nav.site-nav a.active {
  border-bottom-color: #cfe0c8;
  color: #ffffff;
}

/* Главный баннер на морду */

.hero {
  position: relative;
}

.hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.hero-caption {
  font-family: Verdana, Arial, sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: right;
  padding: 4px 20px;
  background: var(--green-pale);
}

.hero-caption a {
  color: var(--text-muted);
}

/* Контент */

main {
  padding: 34px 0 50px;
}

.intro {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 22px 24px;
  margin-bottom: 38px;
}

.intro p:last-child {
  margin-bottom: 0;
}

h1 {
  font-size: 1.9rem;
  color: var(--green-dark);
  margin: 0 0 10px;
}

h2 {
  font-size: 1.4rem;
  color: var(--green-dark);
  margin: 0 0 8px;
}

h2.section-title {
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 20px;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--green-mid);
}

/* Список постов на главной */

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-card {
  display: flex;
  gap: 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 18px;
}

.post-card .thumb {
  flex: 0 0 150px;
}

.post-card .thumb img {
  border-radius: 4px;
  width: 150px;
  height: 110px;
  object-fit: cover;
}

.post-card .post-meta {
  font-family: Verdana, Arial, sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

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

.post-card h3 a {
  text-decoration: none;
  color: var(--green-dark);
}

.post-card h3 a:hover {
  color: var(--green-mid);
}

.post-card p {
  margin: 0;
  color: var(--text);
  font-size: 0.96rem;
}

.read-more {
  font-family: Verdana, Arial, sans-serif;
  font-size: 0.82rem;
}

/* Отдельный пост */

.post-header {
  margin-bottom: 20px;
}

.post-date {
  font-family: Verdana, Arial, sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.post-cover {
  margin: 0 0 22px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.post-cover img {
  width: 100%;
}

.post-body p {
  margin: 0 0 18px;
}

.post-body blockquote {
  margin: 0 0 18px;
  padding: 10px 18px;
  border-left: 3px solid var(--green-soft);
  background: var(--green-pale);
  color: var(--text-muted);
  font-style: italic;
}

.photo-credit {
  font-family: Verdana, Arial, sans-serif;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin: -12px 0 22px;
}

.photo-credit a {
  color: var(--text-muted);
}

.post-nav-back {
  margin-top: 34px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-family: Verdana, Arial, sans-serif;
  font-size: 0.88rem;
}

/* Страница про меня */

.about-photo {
  float: right;
  width: 260px;
  margin: 0 0 16px 22px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.about-photo img {
  width: 100%;
}

/* Подвал */

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
  font-family: Verdana, Arial, sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
}

footer.site-footer a {
  color: var(--text-muted);
}

@media (max-width: 560px) {
  body {
    font-size: 16.5px;
  }

  header.site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  nav.site-nav {
    margin-top: 10px;
  }

  nav.site-nav a {
    margin-left: 0;
    margin-right: 16px;
  }

  .post-card {
    flex-direction: column;
  }

  .post-card .thumb {
    flex: none;
  }

  .post-card .thumb img {
    width: 100%;
    height: auto;
    max-height: 200px;
  }

  .about-photo {
    float: none;
    width: 100%;
    margin: 0 0 18px;
  }
}
