* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f4f1ea;
  color: #2b2b3a;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
}

/* ---- Title ---- */
header {
  background: #1f2a44;
  color: #f5e6b8;
  text-align: center;
  padding: 56px 20px;
  border-bottom: 5px solid #d4af37;
}

h1 {
  margin: 0;
  font-size: 2.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* ---- Section 1: Card deck ---- */
#playing-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1350px;
  margin: 0 auto;
  padding: 56px 20px;
}

.card {
  display: flex;
  justify-content: space-between;
  width: 240px;
  height: 384px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.3);
}

.left {
  align-self: flex-start;
}

.middle {
  align-self: center;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.right {
  align-self: flex-end;
}

.middle img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- Section 2: Reflection ---- */
#reflection {
  max-width: 800px;
  margin: 0 auto;
  padding: 10px 20px 70px;
}

#reflection h2 {
  text-align: center;
  color: #1f2a44;
  font-size: 2rem;
  margin: 0 0 12px;
  padding-bottom: 16px;
  border-bottom: 3px solid #d4af37;
}

.reflection-box {
  background: #fff;
  border: 1px solid #e3dccb;
  border-left: 6px solid #1f2a44;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 22px 26px;
  margin-top: 24px;
}

.reflection-box h3 {
  margin: 0 0 8px;
  color: #1f2a44;
  font-size: 1.3rem;
}

.reflection-box p {
  margin: 0;
}

.reflection-box.closing {
  background: #fbf6e6;
  border-left-color: #d4af37;
}

.reflection-box.closing h3 {
  color: #8a6d1a;
}

/* ---- Small screens ---- */
@media (max-width: 600px) {
  h1 {
    font-size: 1.8rem;
  }

  .reflection-box {
    padding: 18px 18px;
  }
}