body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #ffffff;
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 24px;
  padding: 24px;
  box-sizing: border-box;
}

.site-title {
  color: #e8140c;
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
}

.hero {
  max-width: 320px;
  width: 100%;
  height: auto;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.links a {
  color: #000000;
  text-decoration: none;
  font-size: 1.1rem;
}

.links a:hover {
  text-decoration: underline;
}

/* --- inner pages (posts, gallery, single post) --- */

.page-header {
  text-align: center;
  padding-top: 28px;
}

.site-title.small {
  font-size: 1.5rem;
}

.site-title.small a {
  color: #e8140c;
  text-decoration: none;
}

.page-nav {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  margin-top: 4px;
}

.page-nav .side-link {
  color: #000000;
  text-decoration: none;
  font-size: 0.95rem;
  margin-top: 10px;
}

.page-nav .side-link:hover {
  text-decoration: underline;
}

.page-title {
  font-size: 3rem;
  font-weight: bold;
  line-height: 1;
  color: #000000;
  text-decoration: none;
}

a.page-title:hover {
  text-decoration: underline;
}

.post-list,
.post-page {
  max-width: 620px;
  margin: 64px auto 0;
  padding: 0 24px 64px;
}

.post-preview {
  margin-bottom: 56px;
}

.post-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin: 0 0 12px;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.post-title a {
  color: #000000;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.post-body {
  padding-left: 16px;
  margin-top: 32px;
  max-width: 34em;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* --- gallery --- */

.gallery-grid {
  columns: 3;
  column-gap: 12px;
  max-width: 1000px;
  margin: 48px auto 0;
  padding: 0 24px 64px;
}

.gallery-grid a {
  display: block;
  margin-bottom: 12px;
  break-inside: avoid;
}

.gallery-grid img {
  display: block;
  width: 100%;
}

@media (max-width: 700px) {
  .gallery-grid {
    columns: 2;
  }
}
