:root {
  color-scheme: dark;
  --background: #101f33;
  --surface: #17283e;
  --line: #2b3d53;
  --text: #f0f4f9;
  --muted: #aebfd3;
  --accent: #b5d9f3;
  font-family: "Avenir Next", "Century Gothic", "Trebuchet MS", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 280px;
  min-height: 100svh;
  background: var(--background);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle, #adc9e31c 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to right, #000, transparent 32%, transparent 68%, #000);
  pointer-events: none;
}

.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.page { width: min(100% - 48px, 520px); margin: 0 auto; padding: 56px 0 32px; }
.profile { text-align: center; margin-bottom: 34px; }

.monogram {
  width: 72px;
  height: 72px;
  margin: 0 auto 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid #718fa8;
  border-radius: 24px 24px 24px 7px;
  background: #20364d;
  color: var(--accent);
  font-size: 33px;
  font-weight: 700;
  letter-spacing: -3px;
  padding-right: 3px;
}

.monogram-dot { position: absolute; right: -4px; bottom: 9px; width: 12px; height: 12px; border: 3px solid var(--background); border-radius: 50%; background: var(--accent); }
h1 { margin: 0; font-size: clamp(34px, 8vw, 48px); line-height: 1.15; font-weight: 700; letter-spacing: -2px; }
.name-dot { color: var(--accent); }
.profile p { margin: 14px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.links { display: grid; gap: 10px; }

.link {
  display: flex;
  gap: 17px;
  align-items: center;
  min-height: 78px;
  padding: 15px 22px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.link-icon { flex: 0 0 42px; display: grid; place-items: center; width: 42px; height: 42px; color: var(--accent); }
.link-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.65; }
.link-text { display: grid; gap: 4px; min-width: 0; }
.link-title { font-size: 16px; line-height: 1.2; font-weight: 700; }
.link-detail { font-size: 12px; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.external-icon { width: 20px; height: 20px; margin-left: auto; flex-shrink: 0; fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.link-featured { min-height: 88px; margin-bottom: 6px; background: var(--accent); border-color: var(--accent); color: var(--background); }
.link-featured .link-icon, .link-featured .link-detail { color: #263f55; }
.link-featured .external-icon { stroke: #263f55; }
.link:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.link-featured:focus-visible { outline-color: var(--text); }

@media (hover: hover) {
  .link:hover { background: #213750; border-color: #6b91b3; }
  .link-featured:hover { background: #d0e8f9; border-color: #d0e8f9; }
}

.footer { padding-top: 29px; text-align: center; }
.footer-mark { font-size: 24px; color: var(--accent); }
.footer p { margin: 8px 0 7px; font-size: 12px; color: var(--muted); }
.footer small { color: var(--muted); font-size: 10px; }
::selection { background: var(--accent); color: var(--background); }

@media (max-width: 420px) {
  .page { width: calc(100% - 36px); padding-top: 36px; }
  .profile { margin-bottom: 27px; }
  .monogram { width: 62px; height: 62px; margin-bottom: 20px; font-size: 29px; border-radius: 21px 21px 21px 6px; }
  h1 { letter-spacing: -1.5px; }
  .profile p { font-size: 13px; }
  .link { padding: 13px 15px; gap: 12px; min-height: 74px; }
  .link-featured { min-height: 84px; }
  .link-icon { flex-basis: 34px; width: 34px; }
}

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