@font-face { font-family: Space; src: url("/assets/space-grotesk.woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: Plex; src: url("/assets/plex-400.woff2"); font-display: swap; }
@font-face { font-family: Mono; src: url("/assets/jbmono-500.woff2"); font-display: swap; }

:root {
  color-scheme: dark;
  --ground: #111314;
  --ink: #f3f2ec;
  --muted: #b6b9b6;
  --rule: #373b39;
  --accent: #f5e642;
}
* { box-sizing: border-box; }
body { display: flow-root; margin: 0; min-height: 100vh; color: var(--ink); background: var(--ground); font: 16px/1.45 Plex, sans-serif; }
main { position: relative; width: min(calc(100% - 40px), 480px); margin: clamp(32px, 9vh, 100px) auto max(28px, env(safe-area-inset-bottom)); }
header { position: relative; padding-bottom: 26px; background: var(--ground); }
.mark { display: block; width: 40px; height: 40px; object-fit: contain; margin-bottom: 17px; }
h1, strong { font-family: Space, sans-serif; }
h1 { margin: 0; font-size: clamp(34px, 8vw, 46px); line-height: 1.06; letter-spacing: -.05em; }
header p { color: var(--muted); margin: 8px 0 0; }
header p span { white-space: nowrap; }
a { color: inherit; text-decoration: none; }
:where(a, button):focus-visible { z-index: 1; outline: 3px solid var(--accent); outline-offset: 3px; }

.links { display: grid; }
.links a { position: relative; }
.links a::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 14px; height: 14px;
  transform: translateY(-50%); background: currentColor;
  clip-path: polygon(16% 12%,88% 12%,88% 84%,75% 84%,75% 34%,16% 94%,6% 84%,66% 25%,16% 25%);
  transition: transform .16s ease;
}
.portfolio {
  display: grid; gap: 2px; isolation: isolate; overflow: hidden;
  padding: 18px 22px 22px; margin-bottom: 12px; border-radius: 10px;
  color: #202113; background: var(--accent);
}
.portfolio::before {
  content: ""; position: absolute; z-index: -1; right: 0; bottom: 0;
  width: min(37%, 170px); height: calc(100% - 38px);
  background: url("/assets/portfolio-board.png") right bottom / contain no-repeat;
}
.portfolio small { font: 12px/1.5 Mono, monospace; }
.portfolio strong { margin-top: 5px; font-size: clamp(30px, 6vw, 36px); letter-spacing: -.045em; line-height: 1.08; }
.portfolio span { font-size: 14px; }
.links .portfolio::after { top: 23px; right: 18px; }

.row {
  display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 16px;
  padding: 16px 36px 16px 6px; border-bottom: 1px solid var(--rule); background: var(--ground);
  transition: background-color .16s ease;
}
.row strong, .row small { display: block; }
.row strong { font-size: 19px; line-height: 1.25; letter-spacing: -.03em; }
.row small { margin-top: 3px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.row::after { color: var(--muted); }
.project-icon { width: 42px; height: 42px; object-fit: contain; }

footer, .social, .social a { display: flex; align-items: center; }
footer { justify-content: space-between; padding-top: 11px; }
.social a { width: 44px; height: 44px; justify-content: center; border-radius: 6px; color: var(--muted); }
.social svg { width: 19px; height: 19px; }
@media (hover: hover) {
  .row:hover { background: #1c201f; }
  .portfolio:hover { background-color: #faed60; }
  .links a:hover::after { transform: translate(2px, calc(-50% - 2px)); }
  .social a:hover { color: var(--accent); }
}
.links a:active { filter: brightness(.92); }
@media (max-width: 550px) {
  main { margin-top: max(26px, env(safe-area-inset-top)); }
  .portfolio::before { width: 29%; }
}
@media (max-width: 550px) and (min-height: 641px) {
  body { display: grid; align-items: center; min-height: 100svh; }
}
@media (max-width: 360px) {
  main { width: calc(100% - 32px); }
  .row { gap: 12px; padding-right: 28px; }
  .portfolio { padding-inline: 16px; }
  .portfolio::before { width: 24%; }
}
@media (max-height: 640px) and (max-width: 550px) {
  main { margin-top: max(16px, env(safe-area-inset-top)); }
  header { padding-bottom: 16px; }
  .mark { width: 32px; height: 32px; margin-bottom: 10px; }
  .portfolio { padding-block: 13px 15px; margin-bottom: 6px; }
  .row { padding-block: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .row, .links a::after { transition: none; }
  .links a:hover::after { transform: translateY(-50%); }
}
