*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

:root {
  --paper: #f7f8fa;
  --ink: #28313d;
  --muted: #687587;
  --line: #dce2ea;
  --accent: #365f9a;
  --selection: #d8e6fa;
  --selection-ink: #18365e;
  --feedback: 160ms;
  --entrance: 700ms;
  --landing: cubic-bezier(0.19, 1, 0.22, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #181d25;
    --ink: #dce3ec;
    --muted: #a0acbd;
    --line: #343e4e;
    --accent: #9bbcea;
    --selection: #304b70;
    --selection-ink: #eef4ff;
    color-scheme: dark;
  }
}

body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--selection); color: var(--selection-ink); }

a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color var(--feedback) var(--landing), text-decoration-color var(--feedback) var(--landing); }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

.skip-link { position: absolute; left: 16px; top: -100px; padding: 8px 12px; background: var(--paper); z-index: 10; }
.skip-link:focus { top: 12px; }

.column { width: min(100% - 48px, 590px); margin: 0 auto; padding: 80px 0 48px; }

.header { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; }
.avatar { width: 48px; height: 48px; flex-shrink: 0; object-fit: cover; border-radius: 22%; }
.header h1 { font-size: 16px; line-height: 1.6; font-weight: 600; letter-spacing: -.2px; }
.header p { margin-top: 3px; color: var(--muted); font-size: 13px; }

.bio p { margin-bottom: 18px; }
.bio p:last-child { margin-bottom: 0; }

.section { margin-top: 43px; }
.section h2 { color: var(--muted); font-size: 13px; font-weight: 400; margin-bottom: 15px; }

.project { display: grid; grid-template-columns: 48px 1fr; gap: 13px; padding: 16px 0 19px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project + .project { border-top: 0; }
.app-icon { width: 40px; height: 40px; border-radius: 10px; margin-top: 2px; }
.gba-icon { width: 40px; height: 40px; margin-top: 2px; display: grid; place-items: center; }
.gba-icon svg { image-rendering: pixelated; }
.project h3 { font-size: 15px; font-weight: 500; }
.project h3 a { text-decoration: none; }
.project p { color: var(--muted); font-size: 13px; line-height: 1.65; margin-top: 4px; }
.platforms { display: flex; gap: 18px; font-size: 12px; margin-top: 12px; }
.platforms a { text-decoration: none; }

.log { list-style: none; border-top: 1px solid var(--line); }
.log li { display: grid; grid-template-columns: 96px 1fr; gap: 13px; padding: 13px 0 14px; border-bottom: 1px solid var(--line); }
.log time { color: var(--muted); font-size: 12px; line-height: 1.65; padding-top: 1px; font-variant-numeric: tabular-nums; }
.log p { font-size: 14px; line-height: 1.6; }
.tag { display: inline-block; margin-right: 8px; padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 11px; line-height: 18px; vertical-align: 1px; }

.footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 53px; color: var(--muted); font-size: 12px; }

@media (max-width: 600px) {
  .column { padding-top: 42px; padding-bottom: 32px; }
  .project { grid-template-columns: 40px 1fr; gap: 12px; }
  .log li { grid-template-columns: 1fr; gap: 2px; }
  .footer { margin-top: 42px; }
}

/* One entrance sequence; every element slows as it reaches its resting place. */
@keyframes arrive {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .header, .bio p, .section, .footer { animation: arrive var(--entrance) var(--landing) both; }
  .bio p:nth-child(1) { animation-delay: 45ms; }
  .bio p:nth-child(2) { animation-delay: 90ms; }
  .bio p:nth-child(3) { animation-delay: 135ms; }
  .bio p:nth-child(4) { animation-delay: 180ms; }
  .section { animation-delay: 225ms; }
  .footer { animation-delay: 270ms; }
}
