:root {
  color-scheme: dark;
  --paper: #0c0c17;
  --ink: #f1f0ff;
  --muted: #b6b4d1;
  --rule: #353451;
  --accent: #76edff;
  --pink: #ff9ed7;
  --display: "Arial Black", "Helvetica Neue", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-family: system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse 860px 470px at 78% 0%, #211635 0%, transparent 73%), radial-gradient(ellipse 680px 520px at 2% 14%, #102130 0%, transparent 72%), var(--paper); color: var(--ink); }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; }
.shell { width: min(1240px, calc(100% - 88px)); margin-inline: auto; }
.skip { position: absolute; top: 8px; left: 8px; transform: translateY(-150%); padding: 10px; background: var(--paper); z-index: 2; }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid #4c4166; background: #11111de8; }
.topbar { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.home { display: flex; align-items: center; gap: 9px; font: 750 .91rem var(--mono); letter-spacing: .08em; text-decoration: none; }
nav { display: flex; align-items: center; gap: clamp(14px, 2.7vw, 36px); font: .81rem var(--mono); }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { text-decoration: underline; }
nav a:last-child { color: var(--pink); font-weight: 700; }

.layout { display: grid; grid-template-columns: minmax(210px, 250px) minmax(0, 1fr); gap: clamp(32px, 5.5vw, 87px); padding-block: 49px 65px; }
.profile { min-width: 0; padding-top: 5px; }
.qsl { position: relative; overflow: hidden; aspect-ratio: 262 / 148; background: #151427; border: 1px solid #5d587a; clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 0 100%); }
.qsl svg { width: 100%; height: 100%; }
.qsl-label { position: absolute; left: 12px; bottom: 12px; display: grid; gap: 4px; color: var(--accent); }
.qsl-label span { font: .57rem var(--mono); letter-spacing: .15em; color: var(--pink); }
.qsl-label strong { font: 700 clamp(1.2rem, 2vw, 1.67rem)/1 var(--mono); letter-spacing: -.065em; }
.about { margin-top: 19px; }
.about h1 { font: 800 clamp(1.65rem, 2.6vw, 2.1rem)/1.05 var(--display); letter-spacing: -.045em; }
.about h1 span { display: block; color: var(--accent); font: 700 .85rem/1.3 var(--mono); letter-spacing: .09em; margin-top: 6px; }
.about p, .support p { margin-block: 12px; font-size: .88rem; color: var(--muted); line-height: 1.6; }
.profile-link { color: var(--accent); font-size: .85rem; font-weight: 650; }
.support { margin-top: 29px; padding: 16px; border: 1px solid #584167; border-left: 2px solid #ff9ed7; background: #21172d; }
.support h2 { font: 750 1.05rem/1.2 var(--display); }
.support p { margin-block: 7px 12px; }
.support-links { display: flex; flex-wrap: wrap; gap: 9px 13px; align-items: center; }
.support-links a { color: var(--pink); font-size: .81rem; font-weight: 700; }
.support-links a:first-child { color: #210e20; background: var(--pink); border-radius: 2px; padding: 7px 9px; text-decoration: none; }
.support-links a:first-child:hover { background: #ffc8ea; }

.projects-heading { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid #55506e; position: relative; margin-bottom: 22px; }
.projects-heading::after { content: ""; position: absolute; inset: auto auto -1px 0; width: 72px; height: 2px; background: var(--accent); box-shadow: 0 0 14px #76edff66; }
.projects-heading h2 { font: 850 clamp(3rem, 6vw, 5.5rem)/.92 var(--display); letter-spacing: -.085em; }
.projects-heading > span { font: .74rem var(--mono); color: var(--pink); letter-spacing: .12em; border: 1px solid #694965; padding: 5px 7px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 26px; }
.project { display: flex; flex-direction: column; min-width: 0; padding: 10px 10px 16px; border: 1px solid var(--rule); background: #151526; position: relative; }
.project::after { content: ""; pointer-events: none; position: absolute; right: -1px; top: -1px; width: 13px; height: 13px; border-top: 1px solid var(--pink); border-right: 1px solid var(--pink); opacity: .82; }
.project-image { width: 100%; aspect-ratio: 1.94 / 1; overflow: hidden; border: 1px solid #444364; background: #24243b; }
.project-image img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.project:nth-child(3) img, .project:nth-child(4) img, .project:nth-child(5) img { object-position: center; }
figcaption { display: flex; align-items: center; gap: 9px; margin-block: 11px 8px; color: var(--muted); font: .64rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }
figcaption span { color: var(--accent); font-weight: 750; }
.project h3 { font: 800 clamp(1.34rem, 2.5vw, 2.02rem)/1.04 var(--display); letter-spacing: -.055em; overflow-wrap: anywhere; }
.project p { margin-block: 7px 11px; line-height: 1.52; font-size: .91rem; color: var(--muted); }
.project-links { display: flex; flex-wrap: wrap; gap: 7px 19px; margin-top: auto; }
.project-links a { color: var(--accent); font: 700 .77rem/1.35 var(--mono); padding: 5px 7px; text-decoration: none; border: 1px solid #395767; }
.project-links a:hover { background: #1b3746; border-color: var(--accent); }
.footer { display: flex; justify-content: space-between; gap: 12px; padding-block: 18px 27px; border-top: 1px solid var(--rule); color: var(--muted); font: .74rem var(--mono); }

@media (max-width: 940px) {
  .shell { width: calc(100% - 56px); }
  .layout { gap: 27px; }
  .project-grid { gap: 23px 18px; }
}
@media (max-width: 810px) {
  .shell { width: calc(100% - 36px); }
  .topbar { min-height: 56px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 31px; padding-block: 25px 44px; }
  .profile { display: grid; grid-template-columns: minmax(0, 160px) minmax(0, 1fr); gap: 14px; padding: 0; align-items: center; }
  .about { margin: 0; }
  .about h1 { font-size: 1.75rem; }
  .about p { margin-block: 7px; }
  .support { grid-column: 1 / -1; margin: 0; }
  .projects-heading { margin-bottom: 15px; }
}
@media (max-width: 450px) {
  .profile { grid-template-columns: minmax(0, 115px) minmax(0, 1fr); }
  .qsl { aspect-ratio: 1 / 1; }
  .qsl svg { width: auto; max-width: none; transform: translateX(-74px); opacity: .8; }
  .qsl-label { left: 7px; bottom: 8px; }
  .qsl-label strong { font-size: 1.06rem; }
  .about h1 { font-size: 1.5rem; }
  nav { gap: 10px; font-size: .73rem; }
  .about p { font-size: .82rem; }
  .project-grid { grid-template-columns: minmax(0, 1fr); }
}
