* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: #222;
  line-height: 1.6;
  min-height: 100vh;
  background-color: #1a2a2e;
  background-image: url("/assets/images/background.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

main {
  max-width: 720px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 80px 40px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.18);
}

.intro {
  text-align: center;
  margin-bottom: 90px;
}

.intro h1 {
  font-size: 42px;
  margin-bottom: 14px;
  font-weight: 500;
}

.intro-text {
  max-width: 600px;
  margin: 0 auto 35px;
  font-size: 20px;
  color: #333;
}

.intro-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}

.intro-images img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 45px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  margin-bottom: 45px;
}

.tab {
  background: none;
  border: none;
  padding: 12px 4px;
  font-family: inherit;
  font-size: 19px;
  cursor: pointer;
  color: #555;
  border-bottom: 2px solid transparent;
}

.tab:hover {
  color: #222;
}

.tab.active {
  color: #222;
  border-bottom: 2px solid #222;
}

.essay-section {
  display: none;
}

.active-section {
  display: block;
}

.essay-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 25px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.essay-card img {
  width: 180px;
  height: 120px;
  object-fit: cover;
}

.essay-info h2 {
  margin: 0 0 8px;
  font-size: 25px;
  font-weight: 500;
}

.essay-info p {
  margin: 0;
  color: #444;
}

@media (max-width: 650px) {
  body {
    background-attachment: scroll;
  }

  main {
    max-width: 100%;
    margin: 0;
    padding: 45px 20px;
  }

  .intro-images {
    max-width: 100%;
    gap: 12px;
  }

  .essay-card {
    grid-template-columns: 1fr;
  }

  .essay-card img {
    width: 100%;
    height: 200px;
  }
}
