:root {
  --text: #2f2a2a;
  --muted: #766c6c;
  --line: rgba(80, 63, 63, 0.14);
  --paper: rgba(255, 255, 255, 0.78);
  --button: rgba(255, 255, 255, 0.86);
  --button-hover: rgba(255, 255, 255, 0.96);
  --accent: #b96f7d;
  --shadow: 0 16px 42px rgba(86, 54, 60, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  background:
    linear-gradient(rgba(255, 247, 247, 0.82), rgba(255, 247, 247, 0.88)),
    url("images/background.jpg") center / cover fixed,
    #f8eeee;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 54px 20px 28px;
}

.profile {
  text-align: center;
}

.avatar {
  width: 124px;
  height: 124px;
  margin: 0 auto 18px;
  border: 4px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(185, 111, 125, 0.22), rgba(125, 154, 150, 0.24)),
    url("images/profile.jpg") center / cover;
  box-shadow: var(--shadow);
}

.label {
  display: grid;
  gap: 3px;
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.08;
}

.bio {
  width: max-content;
  max-width: 100%;
  margin: 16px auto 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.bio-line {
  display: block;
  white-space: nowrap;
}

.links {
  display: grid;
  gap: 16px;
}

.link-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 10px 16px 10px 12px;
  border: 2px solid rgba(255, 255, 255, 0.84);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 30px rgba(86, 54, 60, 0.08);
  backdrop-filter: blur(5px);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.98);
  background: rgba(255, 255, 255, 0.3);
}

.link-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(80, 63, 63, 0.16);
  border-radius: 8px;
  color: rgba(47, 42, 42, 0.5);
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: 700;
  background-color: rgba(255, 255, 255, 0.82);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 4px 12px rgba(86, 54, 60, 0.12);
}

.link-icon-mercari {
  background-image: url("images/mercari.jpg");
  color: transparent;
}

.link-icon-minne {
  background-image: url("images/minne.jpg");
  color: transparent;
}

.link-text {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.link-text span {
  font-size: 16px;
  font-weight: 700;
}

.link-text small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.footer {
  padding-top: 30px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 380px) {
  .page {
    padding-inline: 14px;
  }

  h1 {
    font-size: 24px;
  }

  .bio-line {
    white-space: normal;
  }
}
