:root {
  --background: #f5f5f2;
  --card: #ffffff;
  --ink: #20211f;
  --muted: #777a72;
  --line: #e5e5df;
  --accent: #dff06a;
  --sans: "DM Sans", "Noto Sans TC", sans-serif;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--background); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }

.profile { width: min(100%, 480px); margin: 0 auto; padding: 56px 20px 30px; }
header { text-align: center; }
.avatar { display: block; width: 76px; height: 76px; margin: 0 auto 18px; border: 2px solid var(--accent); border-radius: 50%; object-fit: cover; object-position: 50% 24%; box-shadow: 0 3px 10px rgba(30, 31, 25, .12); }
h1 { margin: 0; font-size: 25px; font-weight: 600; letter-spacing: -.06em; }
h1 span { color: #afb0a9; font-weight: 400; margin: 0 3px; }
.intro { max-width: 350px; margin: 14px auto 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.intro-role, .intro-detail { display: block; }
.intro-role { margin-bottom: 8px; color: #555750; font-weight: 500; }

.link-list { display: grid; gap: 11px; margin-top: 38px; }
.link-card { min-height: 74px; display: grid; grid-template-columns: 42px 1fr 20px; gap: 12px; align-items: center; padding: 12px 15px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 2px 2px rgba(30, 31, 25, .015); transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.link-card:active { transform: scale(.985); }
.link-card:hover { border-color: #cacbc4; box-shadow: 0 5px 16px rgba(30, 31, 25, .06); }
.link-card:focus-visible { outline: 3px solid #a9c338; outline-offset: 3px; }
.link-card.blog { background: var(--ink); border-color: var(--ink); color: #fff; }
.icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 11px; background: #efefea; color: #343630; font-size: 22px; font-weight: 600; line-height: 1; }
.icon svg { width: 22px; height: 22px; }
.blog .icon { background: var(--accent); color: #313900; }
.line-icon { background: #08bf61; color: white; font-size: 8px; letter-spacing: -.03em; }
.instagram-icon { background: radial-gradient(circle at 30% 107%, #fdf497 0 5%, #fdf49700 5%), linear-gradient(145deg, #f9ce34 0%, #ee2a7b 48%, #6228d7 100%); color: white; }
.linkedin-icon { background: #0a66c2; color: white; font-size: 20px; font-family: Arial, sans-serif; font-weight: 700; }
.link-card > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.link-card strong { font-size: 15px; font-weight: 600; letter-spacing: -.025em; }
.link-card small { color: var(--muted); font-size: 12px; }
.blog small { color: #b9bdb3; }
.arrow { justify-self: end; color: #999b93; font-size: 20px; }
.blog .arrow { color: var(--accent); }
footer { padding: 0 20px 34px; color: #9a9b95; text-align: center; font-size: 11px; letter-spacing: .03em; }
footer span { margin: 0 4px; }

@media (min-width: 720px) {
  body { display: grid; align-content: center; min-height: 100vh; padding: 40px 24px; }
  .profile { display: grid; grid-template-columns: 280px minmax(380px, 480px); gap: 72px; align-items: center; width: min(100%, 900px); padding: 0; }
  header { text-align: left; }
  .avatar { width: 92px; height: 92px; margin: 0 0 20px; }
  .intro { margin: 13px 0 0; }
  .intro-role { margin-bottom: 5px; }
  .link-list { margin: 0; }
  footer { position: fixed; right: 28px; bottom: 22px; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .link-card { transition: none; }
}
