:root {
  color-scheme: light;
  --md-sys-color-primary: #00658a;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #c1e8ff;
  --md-sys-color-on-primary-container: #001e2c;
  --md-sys-color-secondary-container: #d0e6f2;
  --md-sys-color-on-secondary-container: #081e27;
  --md-sys-color-tertiary-container: #ebddff;
  --md-sys-color-on-tertiary-container: #201634;
  --md-sys-color-surface: #f5fafe;
  --md-sys-color-surface-container-lowest: #ffffff;
  --md-sys-color-surface-container-low: #eff4f8;
  --md-sys-color-on-surface: #171c1f;
  --md-sys-color-on-surface-variant: #40484c;
  --md-sys-color-inverse-surface: #2c3134;
  --md-sys-color-inverse-on-surface: #edf1f4;
  --md-sys-color-inverse-primary: #75d1fa;
  --md-sys-shape-small: 8px;
  --md-sys-shape-medium: 12px;
  --md-sys-shape-large: 16px;
  --md-sys-shape-extra-large: 28px;
  --md-sys-shape-full: 999px;
  --md-sys-elevation-1: 0 1px 2px rgba(0,0,0,.16), 0 1px 3px 1px rgba(0,0,0,.08);
  --md-sys-elevation-3: 0 1px 3px rgba(0,0,0,.18), 0 4px 8px 3px rgba(0,0,0,.10);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--md-sys-color-surface); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--md-sys-color-on-surface);
  font-family: Roboto, "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  background: var(--md-sys-color-surface);
  transition: color 200ms ease, background-color 200ms ease;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

main { position: relative; width: min(100% - 32px, 560px); margin: 0 auto; padding: 64px 0 32px; }

.link-item::before { position: absolute; inset: 0; content: ""; background: currentColor; opacity: 0; transition: opacity 150ms ease; pointer-events: none; }
.link-item:hover::before { opacity: .08; }
.link-item:active::before { opacity: .12; }
.link-item:focus-visible, .handle:focus-visible { outline: 3px solid var(--md-sys-color-primary); outline-offset: 3px; }

.profile { display: flex; flex-direction: column; align-items: center; padding: 22px 0 36px; text-align: center; }
.avatar {
  width: 92px;
  height: 92px;
  border: 6px solid var(--md-sys-color-surface-container-lowest);
  border-radius: 50%;
  box-shadow: var(--md-sys-elevation-1);
  object-fit: cover;
  object-position: 50% 26%;
}
h1 { margin: 18px 0 0; font-size: 32px; font-weight: 500; line-height: 40px; letter-spacing: -.02em; }
.profile p { margin: 0; color: var(--md-sys-color-primary); font-size: 14px; font-weight: 600; line-height: 20px; letter-spacing: .12em; }
.handle { margin-top: 7px; color: var(--md-sys-color-on-surface-variant); font-size: 14px; font-weight: 500; line-height: 20px; text-decoration: none; }

.link-list { display: grid; gap: 10px; }
.link-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0,1fr) 48px;
  min-height: 76px;
  align-items: center;
  overflow: hidden;
  border-radius: var(--md-sys-shape-extra-large);
  color: var(--md-sys-color-on-surface);
  text-decoration: none;
  background: var(--md-sys-color-surface-container-lowest);
  transition: box-shadow 150ms ease, transform 150ms ease;
}
.link-item:hover { box-shadow: var(--md-sys-elevation-1); transform: translateY(-1px); }
.leading-icon { position: relative; z-index: 1; display: grid; width: 40px; height: 40px; margin-left: 16px; place-items: center; border-radius: var(--md-sys-shape-medium); font-size: 20px; }
.leading-icon svg { width: 22px; height: 22px; fill: currentColor; }
.primary-icon { color: var(--md-sys-color-on-primary-container); background: var(--md-sys-color-primary-container); }
.facebook-icon { color: #ffffff; background: #1877f2; }
.youtube-icon { color: #ffffff; background: #ff0033; }
.tertiary-icon { color: var(--md-sys-color-on-tertiary-container); background: var(--md-sys-color-tertiary-container); }
.link-copy { position: relative; z-index: 1; padding-left: 16px; }
.link-copy strong { font-size: 16px; font-weight: 500; line-height: 24px; }
.trailing-icon { position: relative; z-index: 1; width: 24px; height: 24px; justify-self: center; fill: var(--md-sys-color-on-surface-variant); }

footer { display: grid; padding-top: 28px; color: var(--md-sys-color-on-surface-variant); font-size: 12px; text-align: center; }
.owner { display: inline-flex; align-items: center; justify-self: center; gap: 5px; color: inherit; font-size: 11px; text-decoration: none; opacity: .66; }
.owner-icon { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.owner:hover { text-decoration: underline; text-underline-offset: 3px; }
.owner:focus-visible { outline: 2px solid var(--md-sys-color-primary); outline-offset: 3px; border-radius: 2px; }

@media (max-width: 580px) {
  main { width: min(100% - 24px,560px); padding-top: 56px; }
  .profile { padding-top: 12px; padding-bottom: 30px; }
  .avatar { width: 84px; height: 84px; }
  .link-item { grid-template-columns: 52px minmax(0,1fr) 40px; border-radius: 22px; }
  .leading-icon { margin-left: 12px; }
  .link-copy { padding-left: 12px; }
}

@media (prefers-reduced-motion: reduce) { *,*::before,*::after { transition:none!important; } }
