/* hughphan.com. same system as the hughcandoit hub (clients/hughcandoit/site/public/style.css):
   white ground, helvetica, one heavy lowercase headline with the ink bleed, red for the one thing that matters. */
:root {
  --grey: #2a2a2a;
  --red: #E10600;
  --ink: #000;
  --paper: #fff;
  --rule: #d9dcdf;
  --muted: #6b6f73;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--grey);
  font: 400 17px/1.45 var(--sans);
}
a { color: inherit; }
img, video { display: block; max-width: 100%; height: auto; }

.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px 64px; }

/* photo beside the headline, bottoms aligned */
.top { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: end; margin: 28px 0 16px; }
.me { width: clamp(96px, 26vw, 148px); height: auto; aspect-ratio: 1; object-fit: cover; background: #eef0f2; }

/* laser eyes overlay (index.html): full viewport, never takes clicks */
.lasers { position: fixed; inset: 0; pointer-events: none; z-index: 10; }

/* trophy photos: the check full width, then a 2x2 grid; pictures in their own ground, no frames */
.trophies { margin: 0 0 20px; }
.trophies figure { margin: 0; }
.trophies img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #eef0f2; }
.trophies figcaption { font-size: 13px; color: var(--muted); margin: 6px 0 0; line-height: 1.3; }
.trophies .hero { margin: 0 -16px 14px; }
.trophies .hero figcaption { margin: 8px 16px 0; font-size: 14px; color: var(--ink); }
.trophies .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; }
@media (min-width: 600px) { .trophies .hero { margin: 0 0 14px; } .trophies .hero figcaption { margin: 8px 0 0; } }

/* wins: the hub's list rhythm, year on the right */
.wins { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.wins li { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.wins b { display: block; font-size: 17px; letter-spacing: -.01em; color: var(--ink); line-height: 1.25; }
.wins span { display: block; font-size: 14px; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.wins i { font-style: normal; font-size: 13px; color: var(--muted); white-space: nowrap; }
.wins li:first-child b { color: var(--red); }

h1 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(54px, 15vw, 96px);
  line-height: .84;
  letter-spacing: -0.062em;
  word-spacing: .02em;
  text-align: right;
  text-transform: lowercase;
  text-wrap: balance;
  filter: url(#ink);
}
h1 k { color: var(--red); }

h2 {
  margin: 40px 0 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--muted);
}

p { margin: 0 0 14px; }
.lede { font-size: 19px; line-height: 1.35; color: var(--grey); }
.lede b { color: var(--ink); }
.r { color: var(--red); }
.cap { font-size: 14px; color: var(--muted); margin-top: 10px; }
.fine { font-size: 13px; color: var(--muted); margin: 20px 0 0; }

/* socials: one row of plain links */
.socials { display: flex; gap: 20px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; font-size: 17px; }
.socials a { text-decoration: none; border-bottom: 2px solid var(--rule); }
.socials a:hover { border-color: var(--ink); }

/* free skills: the hub's list, linking into its gated pages */
.skills { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.skills a {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.skills img { width: 88px; height: 66px; object-fit: cover; background: #eef0f2; }
.skills b { display: block; font-size: 19px; letter-spacing: -.01em; color: var(--ink); }
.skills span { display: block; font-size: 14px; color: var(--muted); line-height: 1.3; }
.skills a:hover b { color: var(--red); }

/* projects: same rules, no thumbnails; a picture only where there is a real one */
.projects { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.projects li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.projects b { display: block; font-size: 19px; letter-spacing: -.01em; color: var(--ink); }
.projects span { display: block; font-size: 15px; color: var(--grey); line-height: 1.35; margin-top: 2px; }
.projects .meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.projects .links { display: flex; gap: 14px; margin: 0; font-size: 14px; }
.projects .links a { text-decoration: none; border-bottom: 2px solid var(--rule); color: var(--ink); }
.projects .links a:hover { border-color: var(--ink); }
.projects .links a.r { color: var(--red); }
.projects b k { color: var(--red); }
.pic { margin: 0 -16px 14px; background: #f4f5f6; }

/* contribution graph: github's grid, the hub's colours, square cells */
.graph-scroll { overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--rule); padding-top: 14px; }
.graph-scroll::-webkit-scrollbar { display: none; }
.graph {
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  grid-template-columns: repeat(var(--weeks), 1fr);
  grid-auto-flow: column;
  gap: 2px;
  min-width: 528px;
}
.graph i { aspect-ratio: 1; background: #eef0f2; }
.graph i.e { visibility: hidden; }
.graph i.l1 { background: #f9c6c4; }
.graph i.l2 { background: #f07a76; }
.graph i.l3 { background: var(--red); }
.graph i.l4 { background: var(--ink); }
