@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Pixelify+Sans:wght@400;500&display=swap");

:root {
  color-scheme: dark;
  --bg: #141714;
  --surface: #1c211c;
  --hover: #252e22;
  --text: #eeeee5;
  --muted: #adb5a7;
  --accent: #c5ed95;
  --line: #394332;
  --dots: #252c23;
  --sans: "DM Sans", sans-serif;
  --pixel: "Pixelify Sans", monospace;
  --small: .8125rem;
  --body: 1rem;
  --heading: 1.5rem;
  --name: clamp(2.75rem, 9vw, 3.75rem);
  --space-1: .5rem;
  --space-2: .75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --width: 560px;
  --target: 48px;
  --avatar: 80px;
  --icon: 24px;
  --pixel-step: 6px;
  --pixel-shape: polygon(var(--pixel-step) 0, calc(100% - var(--pixel-step)) 0, calc(100% - var(--pixel-step)) var(--pixel-step), 100% var(--pixel-step), 100% calc(100% - var(--pixel-step)), calc(100% - var(--pixel-step)) calc(100% - var(--pixel-step)), calc(100% - var(--pixel-step)) 100%, var(--pixel-step) 100%, var(--pixel-step) calc(100% - var(--pixel-step)), 0 calc(100% - var(--pixel-step)), 0 var(--pixel-step), var(--pixel-step) var(--pixel-step));
  --border: 1px;
  --corner: 4px;
  --focus: 2px;
  --duration: 180ms;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(var(--dots) 1px, transparent 1px);
  background-size: var(--space-4) var(--space-4);
  color: var(--text);
  font: var(--body)/1.7 var(--sans);
}
::selection { background: var(--accent); color: var(--bg); }
.container {
  max-width: calc(var(--width) + var(--space-6));
  margin-inline: auto;
  padding: var(--space-7) var(--space-4) var(--space-6);
  text-align: center;
}
.page-content > img {
  width: var(--avatar);
  height: var(--avatar);
  border: var(--focus) solid var(--accent);
  border-radius: var(--corner);
  padding: var(--space-1);
  background: var(--bg);
  box-shadow: var(--space-1) var(--space-1) 0 var(--line);
}
.profile-name {
  margin: var(--space-4) 0 var(--space-2);
  font: 500 var(--name)/1.1 var(--pixel);
  letter-spacing: -.03em;
  color: var(--accent);
}
.page-content > p { margin: 0 0 var(--space-4); color: var(--muted); }
#social-media-bar {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.social-icon a {
  width: var(--target);
  height: var(--target);
  display: grid;
  place-items: center;
  background: var(--surface);
  border: var(--border) solid var(--line);
  border-radius: var(--corner);
  color: var(--muted);
  transition: color var(--duration), background var(--duration);
}
.social-icon svg { width: var(--icon); height: var(--icon); }
.social-icon svg path { fill: currentColor; }
.social-icon a:hover { color: var(--accent); background: var(--hover); }
a { color: inherit; }
a:focus-visible {
  outline: var(--focus) solid var(--accent);
  outline-offset: var(--corner);
}
.button {
  --button-fill: var(--surface);
  --button-edge: var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  position: relative;
  min-height: calc(var(--target) + var(--space-2));
  padding: var(--space-3) var(--space-5);
  margin-bottom: var(--space-2);
  border: 0;
  border-radius: 0;
  isolation: isolate;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  line-height: 1.5;
  transition: transform var(--duration);
}
.button::before, .button::after {
  content: "";
  position: absolute;
  clip-path: var(--pixel-shape);
  pointer-events: none;
  transition: background var(--duration);
}
.button::before { inset: 0; z-index: -2; background: var(--button-edge); }
.button::after { inset: var(--border); z-index: -1; background: var(--button-fill); }
.button:hover {
  --button-fill: var(--hover);
  --button-edge: var(--accent);
  transform: translateY(-2px);
}
.pixel-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.pixel-icon { width: var(--icon); height: var(--icon); flex: none; fill: currentColor; shape-rendering: crispEdges; }
.button .pixel-icon { color: var(--accent); }
.button-primary {
  --button-fill: var(--accent);
  --button-edge: var(--accent);
  color: var(--bg);
}
.button-primary .pixel-icon { color: inherit; }
.button-primary:hover { --button-fill: var(--text); }
.page-content > br { display: none; }
.link-heading {
  margin: var(--space-6) 0 var(--space-4);
  font: 400 var(--heading)/1.3 var(--pixel);
  color: var(--accent);
}
hr { border: 0; border-top: var(--border) solid var(--line); margin: var(--space-6) 0 0; }
hr + .link-heading { margin-top: var(--space-5); }
footer { margin-top: var(--space-6); color: var(--muted); font-size: var(--small); }
footer a { display: inline-flex; align-items: center; min-height: var(--target); text-underline-offset: var(--corner); }
footer a:hover { color: var(--accent); }
@media (max-width: 380px) {
  .container { padding-inline: var(--space-3); padding-top: var(--space-6); }
  .page-content > p { font-size: var(--small); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
