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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #333;
  background-color: #F8F5EF;
  background-image: url('/images/background.png');
  background-size: 300px 300px;
}

::selection {
  background: #d4c9b8;
}

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- Header ---- */
.site-header {
  padding: 0.5rem 2rem;
  background-color: #F8F5EF;
  background-image: url('/images/background.png');
  background-size: 300px 300px;
}

.header-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: #222;
  text-decoration: none;
}

.site-logo:hover {
  color: #000;
}

.site-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #666;
  text-decoration: none;
  margin-left: 2.5rem;
}

.site-nav a:hover {
  color: #222;
}

/* ---- Hero (home page) ---- */
.hero {
  padding: 1.25rem 0 2rem;
  text-align: center;
}

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  line-height: 0;
}

.hero-banner {
  width: 100%;
  max-width: 820px;
  height: auto;
  display: block;
}

/* ---- Section divider ---- */
.section-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #c0b5a4 10%,
    #c0b5a4 30%,
    transparent 32%,
    transparent 35%,
    #c0b5a4 37%,
    #c0b5a4 65%,
    transparent 67%,
    transparent 70%,
    #c0b5a4 72%,
    #c0b5a4 90%,
    transparent 100%
  );
  opacity: 0.6;
}

/* ---- Articles section (home page) ---- */
.articles-section {
  padding: 0.5rem 0 4rem;
}

.section-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #333;
  margin-bottom: 0.3rem;
}

.archive-year {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #555;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.post-entry {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #d4c9b8;
}

.post-entry:first-of-type {
  border-top: 1px solid #999;
}

.post-entry-text {
  flex: 1;
}

.post-entry a {
  text-decoration: none;
  color: inherit;
}

.post-title {
  font-family: 'Amatic SC', cursive;
  font-size: 1.5rem;
  font-weight: normal;
  color: #111;
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

.post-entry a:hover .post-title {
  color: #000;
}

.post-description {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.4;
  margin-bottom: 0.35rem;
}

.post-meta {
  font-size: 0.8rem;
  color: #999;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.post-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #888;
}

.post-tag::before {
  content: "\00b7\00a0";
}

.reading-time {
  color: #999;
}

.reading-time::before {
  content: "\00b7\00a0";
}

.read-more {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  text-decoration: none;
  margin-left: auto;
}

.read-more:hover {
  color: #333;
}

.post-thumbnail {
  flex: 0 0 120px;
}

.post-thumbnail img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border: 1px solid #d4c9b8;
}

/* ---- Single post ---- */
.post {
  padding: 2rem 0 4rem;
}

.post-back {
  margin-bottom: 2rem;
}

.post-back a {
  font-size: 0.85rem;
  color: #888;
  text-decoration: none;
}

.post-back a:hover {
  color: #333;
}

.post-header {
  margin-bottom: 2.5rem;
}

.post-header h1 {
  font-family: 'Amatic SC', cursive;
  font-size: 3.2rem;
  font-weight: normal;
  color: #222;
  line-height: 1.15;
  margin-bottom: 1rem;
}

/* ---- Taped photo ---- */
.post-hero-image {
  margin: 2.5rem 0 3.5rem;
}

.taped-photo {
  position: relative;
  display: inline-block;
  width: 100%;
  padding: 16px 16px 20px;
  background: #fff;
  box-shadow:
    0 3px 10px rgba(0,0,0,0.12),
    0 8px 30px rgba(0,0,0,0.08);
  transform: rotate(-0.4deg);
}

.taped-photo .photo {
  width: 100%;
  height: auto;
  display: block;
}

.tape {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.tape img {
  width: 240px;
  height: auto;
  opacity: 0.8;
}

.tape-top-left {
  top: 35%;
  left: -120px;
  transform: rotate(-85deg);
}

.tape-bottom-right {
  top: 40%;
  right: -120px;
  transform: rotate(-85deg);
}

/* ---- Post content ---- */
.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}

.post-content h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  color: #222;
}

.post-content h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2rem 0 0.8rem;
  color: #333;
}

.post-content p {
  margin-bottom: 1.4rem;
}

.post-content a {
  color: #333;
  text-decoration: none;
  border-bottom: 1px dotted #999;
}

.post-content a:hover {
  color: #000;
  border-bottom-color: #000;
}

.post-content blockquote {
  margin: 1.5rem 0;
  padding: 0 0 0 1.5rem;
  border-left: 2px solid #d4c9b8;
  color: #555;
  font-style: italic;
}

.post-content ul,
.post-content ol {
  margin: 0 0 1.4rem 1.5rem;
}

.post-content li {
  margin-bottom: 0.3rem;
}

.post-content code {
  font-size: 0.9em;
  background: rgba(0,0,0,0.04);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

.post-content pre {
  margin: 1.5rem 0;
  padding: 1.2rem;
  background: rgba(0,0,0,0.03);
  border: 1px solid #e5e0d8;
  border-radius: 3px;
  overflow-x: auto;
}

.post-content pre code {
  background: none;
  padding: 0;
}

.post-content img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
}

.post-content iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 1.5rem 0;
  border: none;
}

/* ---- Footer ---- */
.site-footer {
  background-color: #e0d9cc;
  border-top: 1px solid #c0b5a4;
  padding: 1.5rem 2rem 1.5rem;
}

.footer-content {
  max-width: 820px;
  margin: 0 auto;
  margin-bottom: 2.5rem;
}

.footer-newsletter {
  flex: 1;
}

.footer-topics {
  flex: 1;
}

.footer-heading {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #666;
  margin-bottom: 0.8rem;
}

.footer-text {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-input {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid #c0b5a4;
  background: rgba(255,255,255,0.6);
  flex: 1;
  outline: none;
}

.newsletter-input:focus {
  border-color: #999;
}

.newsletter-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  border: 1px solid #999;
  background: transparent;
  color: #555;
  cursor: pointer;
}

.newsletter-btn:hover {
  border-color: #333;
  color: #333;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #888;
  text-decoration: none;
  padding: 0.25rem 0.6rem;
  border: 1px solid #d4c9b8;
}

.footer-tag:hover {
  color: #333;
  border-color: #999;
}

.footer-bottom {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #555;
}

/* ---- Responsive ---- */
@media (max-width: 700px) {
  .hero {
    padding: 0;
  }

  .hero-inner {
    flex-direction: column;
    gap: 2rem;
  }

  .hero-image-wrap {
    flex: none;
    width: 70%;
    margin: 0 auto;
  }

  .hero-text {
    text-align: center;
  }

  .post-entry {
    flex-direction: column;
    gap: 0.5rem;
  }

  .post-thumbnail {
    flex: none;
  }

  .post-header h1 {
    font-size: 2.2rem;
  }

  .header-inner {
    flex-direction: column;
    gap: 0.8rem;
  }

  .site-nav a {
    margin-left: 0;
    margin-right: 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }

  .taped-photo {
    transform: none;
  }
}
