:root {
  --sky-top: #0d1220;
  --sky-bottom: #06070b;
  --text: #dcdfe6;
  --muted: #8b91a1;
  /* Minecraft ore colors */
  --diamond: #4aedd9;
  --emerald: #17dd62;
  --gold: #fcdb4b;
  --redstone: #ff4b4b;
  --lapis: #6e8cff;
  --pixel: "Pixelify Sans", "VT323", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--sky-bottom); }
body { background: linear-gradient(var(--sky-top), var(--sky-bottom) 70%) fixed; color: var(--text); font: 17px/1.7 "IBM Plex Sans", system-ui, sans-serif; font-variant-ligatures: none; min-height: 100vh; }
a { color: var(--diamond); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--emerald); color: #000; }

/* Rain canvas sits behind everything */
#rain { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; image-rendering: pixelated; }
.page { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; padding: 96px 24px 64px; }

.name { font-family: var(--pixel); font-weight: 600; font-size: clamp(40px, 8vw, 58px); line-height: 1; color: #fff; text-shadow: 4px 4px 0 #2a2f3d; }
.cursor { color: var(--emerald); text-shadow: none; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }
.lead { margin-top: 20px; font-size: 20px; }

/* each section is tagged with an ore color */
section { margin-top: 48px; --c: var(--diamond); }
section:nth-of-type(1) { --c: var(--diamond); }
section:nth-of-type(2) { --c: var(--emerald); }
section:nth-of-type(3) { --c: var(--gold); }
section:nth-of-type(4) { --c: var(--redstone); }
section:nth-of-type(5) { --c: var(--lapis); }
h2 { font-family: var(--pixel); font-weight: 500; font-size: 20px; color: var(--c); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
h2::before { content: ""; width: 12px; height: 12px; background: var(--c); box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .35), inset 3px 3px 0 rgba(255, 255, 255, .25); flex: none; }
section p + p { margin-top: 8px; }

.list { list-style: none; }
.list li { padding: 7px 0; color: var(--muted); }
.list b { display: block; font-weight: 500; color: var(--text); }
.project + .project { margin-top: 26px; }
.project h3 { font-family: var(--pixel); font-weight: 500; font-size: 19px; color: var(--text); margin-bottom: 2px; }
.project p { color: var(--muted); }
.project .meta { font-size: 14px; color: var(--c); opacity: .85; margin-top: 4px; }
.gh { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 15px; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); border-radius: 4px; padding: 5px 12px; }
.gh svg { width: 16px; height: 16px; fill: currentColor; }
.gh:hover { text-decoration: none; background: color-mix(in srgb, var(--c) 14%, transparent); }

.hl { color: var(--c); }

.links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.links a, .links button { font: inherit; color: var(--lapis); background: none; border: none; cursor: pointer; padding: 0; }
.links a:hover, .links button:hover { text-decoration: underline; }

/* résumé page */
.back { font-family: var(--pixel); font-size: 16px; margin-bottom: 28px; }
.pdf { margin-top: 16px; }
.job + .job { margin-top: 22px; }
.job h3 { font-weight: 500; font-size: 18px; color: var(--text); }
.job .meta { color: var(--muted); font-size: 15px; }
.job ul { margin-top: 6px; padding-left: 20px; }
.job li { margin: 4px 0; }
.job li::marker { color: var(--c); }
.skills { display: grid; grid-template-columns: 170px 1fr; gap: 8px 20px; }
.skills dt { color: var(--c); }
@media (max-width: 600px) { .skills { grid-template-columns: 1fr; gap: 0; } .skills dd { margin-bottom: 10px; } }

footer { margin-top: 72px; font-family: var(--pixel); font-size: 15px; color: var(--muted); }

@media (max-width: 600px) {
  .page { padding-top: 56px; }
}
