:root {
  --bg: #eef6fb;
  --surface: #ffffff;
  --text: #1e293b;
  --muted: #5b6b7f;
  --subtitle-size: 1.03rem;
  --primary: #2f6fa3;
  --primary-soft: #e4f0fa;
  --accent: #7bb3de;
  --border: #d5e4f1;
  --shadow: 0 8px 18px rgba(30, 41, 59, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 1.05rem;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

.container {
  width: min(1080px, 92%);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: center;
  background: var(--surface);
  margin-top: 42px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.hero-image-wrap {
  width: 188px;
  height: 188px;
  padding: 4px;
  border-radius: 14px;
  background: #d9e9f7;
}

.hero img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
}

h1 {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}

.subtitle {
  margin: 0;
  font-size: var(--subtitle-size);
  color: var(--muted);
}

.tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--primary);
  background: #eef6fc;
  border: 1px solid #cfe2f1;
  padding: 5px 10px;
  border-radius: 999px;
}

.links {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  background: var(--primary);
  border: 1px solid #2a628f;
  padding: 6px 10px;
  font-size: 0.84rem;
  border-radius: 999px;
  font-weight: 500;
  box-shadow: none;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background: #255c87;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 26px 0 48px;
}

section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 2px 8px rgba(30, 41, 59, 0.04);
}

h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  border-left: 4px solid var(--accent);
  padding-left: 10px;
}

p,
li {
  line-height: 1.7;
}

.arxiv-btn {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #c7dbeb;
  background: #edf6fd;
  color: #245f8a;
  text-decoration: none;
  font-size: 0.85em;
  font-weight: 600;
  vertical-align: middle;
}

.arxiv-btn:hover {
  background: #e2f0fb;
}

.music-link {
  color: #000;
}

.music-link:visited {
  color: #000;
}

ul {
  margin: 0;
  padding-left: 20px;
}

.full {
  grid-column: 1 / -1;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.photo-card {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d6e5f2;
  box-shadow: none;
}

.photo-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.photo-card figcaption {
  padding: 10px 12px;
  font-size: 0.9rem;
  color: #334155;
  font-weight: 600;
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 8px 0 30px;
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    padding: 22px;
  }

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

  .tags,
  .links {
    justify-content: center;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .photo-card img {
    height: 220px;
  }
}
