@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap");

:root {
  --page-bg: #f9f9f7;
  --text-primary: #1d1d1f;
  --text-secondary: #4a4a4f;
  --card-bg: #2f3136;
  --card-border: #3d3f45;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  --corner-radius: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Lyon-Text", "Helvetica Neue", Arial, sans-serif;
  background: var(--page-bg);
  color: var(--text-primary);
  line-height: 1.6;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 10px 32px;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", "Lyon-Text", "Inter", Georgia, serif;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text-primary);
}

p {
  margin: 0 0 16px;
  color: var(--text-secondary);
}

.section-note {
  font-size: 14px;
  color: #5a5a60;
  margin-bottom: 12px;
}

.attack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, auto);
  gap: 15px;
}

.attack-card {
  padding: 0;
  margin: 0;
}

.attack-card img {
  width: 100%;
  height: auto;
  display: block;
  background: #f3f3f3;
}

.attack-card.case5 {
  grid-column: 3;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
}

.attack-card figcaption {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
}

.media-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.media-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 12px;
  color: var(--text-primary);
  box-shadow: none;
  border: 1px solid #cfd3d8;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.media-card img {
  width: 100%;
  height: auto;
  border-radius: 0;
  background: #3b3d42;
}

.media-card .card-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.media-card audio {
  width: 100%;
  min-width: 100%;
  height: 36px;
  margin-top: 4px;
  display: block;
}

footer {
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-secondary);
}

@media (max-width: 1100px) {
  .attack-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    grid-auto-rows: auto;
  }

  .attack-card.case5 {
    grid-column: auto;
    grid-row: auto;
  }

  .media-row {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 640px) {
  main {
    padding: 20px 16px 32px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  .media-card .card-title {
    font-size: 14px;
  }
}
