/* The hub: the family's own ground, borrowed from none of them.

   Each app's hero is a picture of what that app is about -- television
   static, a sprite grid, a ruled page under halftone. The hub is about all of
   them, so it takes none of those and uses the one thing they share: the rule
   of color along the top, spread out and dimmed into a ground.

   The bars here are all six app accents at once rather than one app's
   palette, so the rule reads as the family rather than as whichever app you
   happened to arrive from. */
:root {
  --bar-silver: #c7c7cc;  /* Match Cut */
  --bar-yellow: #ffcb45;  /* Dog Ear */
  --bar-cyan:   #00c3d0;  /* Liner Notes */
  --bar-green:  #34c759;  /* Wander */
  --bar-magenta:#cb30e0;
  --bar-red:    #ff383c;  /* Save Point */
  --bar-blue:   #4a7dff;  /* Docket */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bar-silver: #48484a;
    --bar-yellow: #ffcb45;
    --bar-cyan:   #00d2e0;
    --bar-green:  #30d158;
    --bar-magenta:#db34f2;
    --bar-red:    #ff4245;
    --bar-blue:   #6d7cff;
  }
}

/* Not a texture. Every app's hero is a repeating ground -- television static,
   a sprite grid, a ruled page, a record's grooves, a day's lines -- because
   each of them is about one thing and a pattern can say what. This page is
   about the person who made all of them, so a sixth pattern would just be a
   sixth app. It gets light instead: large soft fields in the six accents,
   overlapping, no lattice and nothing that repeats. */
.hero.hub-hero {
  background:
    radial-gradient(44% 52% at 14% 20%, rgba(255, 56, 60, 0.30) 0%, transparent 72%),
    radial-gradient(40% 46% at 78% 14%, rgba(255, 203, 69, 0.24) 0%, transparent 72%),
    radial-gradient(46% 50% at 88% 62%, rgba(0, 195, 208, 0.26) 0%, transparent 72%),
    radial-gradient(42% 48% at 30% 86%, rgba(74, 125, 255, 0.28) 0%, transparent 72%),
    radial-gradient(38% 42% at 62% 96%, rgba(203, 48, 224, 0.22) 0%, transparent 72%),
    radial-gradient(34% 40% at 50% 46%, rgba(52, 199, 89, 0.16) 0%, transparent 72%),
    radial-gradient(120% 110% at 50% 40%, transparent 30%, rgba(0, 0, 0, 0.80) 100%),
    #141418;
}
/* The portrait, above the name rather than beside it. A second column would
   need a width this page does not have at phone size, and the hero is one
   centered column everywhere else in the family.

   `display: block` rather than the default inline: `.hero > *` already makes
   every child a positioned box above the drifting ::after, and an inline
   <picture> would sit on a text baseline and carry descender space with it.

   The blue circle is part of the picture, not a background here: it is the
   avatar's own, and the square it was exported in is what came off. */
.hero.hub-hero .hub-portrait {
  display: block;
  width: 160px;
  /* Room to breathe under it: at 10px the circle and the name read as one
     block, and the name is the thing the hero is for. */
  margin: 0 auto 34px;
}
.hero.hub-hero .hub-portrait img { display: block; width: 100%; height: auto; }

@media (max-width: 520px) {
  .hero.hub-hero .hub-portrait { width: 128px; }
}

/* `max-width` without auto margins leaves it against the left edge. */
.hero.hub-hero h1 { max-width: 17ch; margin-left: auto; margin-right: auto; }
.hero.hub-hero .tagline { max-width: 46ch; margin-top: 28px; }

/* The one thing that moves: a slow drift, so the light is not a flat poster.
   Off for anyone who has asked for less motion. */
@keyframes hub-drift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1.06); }
  to   { transform: translate3d(1.5%, 1%, 0) scale(1.06); }
}
.hero.hub-hero::after {
  content: "";
  position: absolute;
  inset: -6%;
  background:
    radial-gradient(30% 34% at 22% 30%, rgba(255, 255, 255, 0.06) 0%, transparent 70%),
    radial-gradient(26% 30% at 76% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  animation: hub-drift 26s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .hero.hub-hero::after { animation: none; }
}

/* ------------------------------------------------------------ the work */
/* A list of what was built rather than a shelf of products: each entry is
   the app, the part played in it, and what the work actually was. */
.work { margin: 40px 0 8px; }

.work-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.work-item:last-child { border-bottom: 1px solid var(--line); }
.work-item:hover h3 { text-decoration: underline; text-underline-offset: 3px; }

/* Not `display: contents` here. In a grid that promotes the <source> as well
   as the <img>, so the row gets three items instead of two and the text is
   pushed onto a second row inside the 56px icon column. The picture is its own
   grid cell instead. */
.work-item picture { display: block; }
.work-item img { display: block; width: 56px; height: 56px; border-radius: 13px; }

.work-item h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin: 0 0 2px;
}
.work-item .role {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.work-item p { margin: 0; color: var(--body); line-height: 1.5; }

@media (max-width: 600px) {
  .work-item { grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 0; }
  .work-item img { width: 44px; height: 44px; border-radius: 10px; }
}

