/* Luke's Stuff as a transit map. Seven lines, one per section of the catalog,
   leave the portrait and never cross. Wide screens run them side by side as
   lanes; narrow screens run them down the left edge and peel one off per row.
   A line shows a few stops until you open it. An open line's stops are image
   cards, and each whole card is the link. A boxed count opens the branch of
   pages beneath a stop, to any depth. */
html[data-transit] {
  color-scheme:light;
  --paper:#f7f6f1; --ink:#151515; --muted:#55544f; --rule:#d9d7cf; --card:#fffefb; --blank:#eceae2;
  --slip-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 2px 3px rgba(0,0,0,.24);
  --sans:"Helvetica Neue",Helvetica,Arial,sans-serif;
  --mono:ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace;
  /* Line colours are supported by distinct glyphs and written names. */
  --c-design:#d9600a; --c-language:#1e63d0; --c-games:#b3261e; --c-accessibility:#9b59b6;
  --c-developers:#5c4033; --c-writing:#d8345f; --c-about:#0f8f8a;
  --i-design:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='9' r='5'/%3E%3Crect x='11' y='11' width='9' height='9'/%3E%3C/svg%3E");
  --i-language:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H11l-4 4v-4H4z'/%3E%3C/svg%3E");
  --i-games:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='2'/%3E%3Cg fill='black' stroke='none'%3E%3Ccircle cx='8.5' cy='8.5' r='1.4'/%3E%3Ccircle cx='12' cy='12' r='1.4'/%3E%3Ccircle cx='15.5' cy='15.5' r='1.4'/%3E%3C/g%3E%3C/svg%3E");
  --i-accessibility:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='5' r='2'/%3E%3Cpath d='M5 9.5h14M12 9.5V14M12 14l-4 6M12 14l4 6'/%3E%3C/svg%3E");
  --i-developers:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E");
  --i-writing:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 7h14M5 12h14M5 17h8'/%3E%3C/svg%3E");
  --i-about:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M5 20c0-4 3-6 7-6s7 2 7 6'/%3E%3C/svg%3E");
  background:var(--paper);
  overflow-x:clip;
  scroll-padding-top:16px;

  /* --c is the line a thing is drawn on; --h and --g are a stop's own section. */
  [data-line="design"] { --c:var(--c-design); } [data-home="design"] { --h:var(--c-design); --g:var(--i-design); }
  [data-line="language"] { --c:var(--c-language); } [data-home="language"] { --h:var(--c-language); --g:var(--i-language); }
  [data-line="games"] { --c:var(--c-games); } [data-home="games"] { --h:var(--c-games); --g:var(--i-games); }
  [data-line="accessibility"] { --c:var(--c-accessibility); } [data-home="accessibility"] { --h:var(--c-accessibility); --g:var(--i-accessibility); }
  [data-line="developers"] { --c:var(--c-developers); } [data-home="developers"] { --h:var(--c-developers); --g:var(--i-developers); }
  [data-line="writing"] { --c:var(--c-writing); } [data-home="writing"] { --h:var(--c-writing); --g:var(--i-writing); }
  [data-line="about"] { --c:var(--c-about); } [data-home="about"] { --h:var(--c-about); --g:var(--i-about); }

  * { box-sizing:border-box; }
  body { margin:0; background:var(--paper); color:var(--ink); font:16px/1.4 var(--sans); -webkit-font-smoothing:antialiased; overflow-x:clip; }
  .sr-only { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
  .skip { position:fixed; top:8px; left:12px; z-index:20; padding:12px; background:var(--ink); color:var(--paper); transform:translateY(-200%); }
  .skip:focus { transform:none; }
  :focus-visible { outline:2px solid var(--ink); outline-offset:2px; }
  .hall { position:relative; max-width:1320px; margin:0 auto; padding:24px 40px 56px; --w:6px; --trunk:112px; }
  .comb { position:absolute; left:0; top:0; width:100%; height:100%; overflow:visible; pointer-events:none; }
  .comb path { fill:none; stroke-width:var(--w); stroke-linejoin:round; }

  /* The station: who this is, and where else to find him. */
  .masthead { display:grid; grid-template-columns:auto minmax(0,1fr); grid-template-areas:"brand tools" "brand badges"; align-items:center; gap:4px 32px; }
  .brand { grid-area:brand; display:flex; align-items:center; gap:18px; }
  .hub { position:relative; z-index:2; flex:none; display:block; width:64px; height:64px; border-radius:50%; background:var(--paper); box-shadow:0 0 0 3px var(--paper),0 0 0 7px var(--ink); }
  .hub img { display:block; width:100%; height:100%; border-radius:50%; }
  h1 { margin:0; font:700 52px/1 var(--sans); letter-spacing:-.055em; }
  .tools { grid-area:tools; justify-self:end; display:flex; align-items:center; gap:8px 24px; }
  .quick-links { display:flex; gap:24px; }
  .quick-links a { position:relative; z-index:2; display:inline-flex; align-items:center; min-height:44px; color:var(--ink); font-size:14px; font-weight:500; text-decoration:none; }
  .quick-links a:hover { text-decoration:underline; text-underline-offset:4px; }
  .finder input { position:relative; z-index:2; width:220px; min-height:44px; padding:0 12px; border:1.5px solid var(--ink); border-radius:0; background:var(--card); color:var(--ink); font:16px var(--sans); }
  .finder input::placeholder { color:var(--muted); opacity:1; }
  .profile-links { grid-area:badges; justify-self:end; max-width:690px; }
  .profile-links ul { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:0 5px; margin:0; padding:0; list-style:none; }
  .profile-links a { position:relative; z-index:2; display:inline-flex; align-items:center; min-height:24px; }
  .profile-links img { display:block; width:auto; height:18px; }

  /* Lanes. Each shows its first few stops; one line is open at a time. */
  .lines { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:0 10px; align-items:start; margin-top:var(--trunk); }
  .lines[hidden] { display:none; }
  .line { position:relative; min-width:0; --x:24px; }
  .line-title { margin:0; font:inherit; }
  .line-head { position:relative; z-index:2; display:flex; align-items:center; gap:8px; width:100%; min-height:48px; margin:0; padding:0 4px 0 calc(var(--x) + 24px); border:0; background:none; color:var(--ink); font:700 15px/1.15 var(--sans); letter-spacing:-.015em; text-align:left; cursor:pointer; }
  .line-head:hover .line-name { text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:4px; }
  .bullet { position:absolute; left:calc(var(--x) - 17px); top:50%; width:34px; height:34px; margin-top:-17px; border-radius:50%; background:var(--paper); box-shadow:inset 0 0 0 4px var(--c); }
  .bullet::after,.stop-art.is-blank::after { content:""; position:absolute; inset:9px; background:var(--ink); -webkit-mask:var(--g) center / contain no-repeat; mask:var(--g) center / contain no-repeat; }
  .line[data-open] .bullet { background:var(--ink); }
  .line[data-open] .bullet::after { background:var(--paper); }
  .line-count { margin-left:auto; color:var(--muted); font:500 12px/1 var(--mono); letter-spacing:0; }
  .line-preview { display:none; }

  /* Stops. A stop's own bar is its piece of the track, so the line ends
     exactly at the last one. */
  .stops,.branch { margin:0; padding:0; list-style:none; }
  .stop { position:relative; --dot:26px; }
  .stop::before { content:""; position:absolute; left:calc(var(--x) - var(--w) / 2); top:0; bottom:0; width:var(--w); background:var(--c); }
  .stops > .stop:first-child::before { top:-24px; }
  .stop:last-child::before { bottom:auto; height:var(--dot); }
  .stops > .stop:first-child:last-child::before { height:calc(var(--dot) + 24px); }
  .stop-link { position:relative; z-index:2; display:flex; align-items:center; min-height:52px; padding:4px 4px 4px calc(var(--x) + 30px); color:var(--ink); text-decoration:none; }
  .stop-art { position:absolute; left:calc(var(--x) - 20px); top:calc(var(--dot) - 20px); width:40px; height:40px; overflow:hidden; border-radius:50%; background:var(--blank); box-shadow:0 0 0 3px var(--h,var(--c)); }
  .stop[data-change] > .stop-link .stop-art { box-shadow:0 0 0 3px var(--h),0 0 0 6px var(--c); }
  .stop-art img { display:block; width:100%; height:100%; object-fit:cover; }
  .stop-text { min-width:0; }
  .stop-name { display:block; font-size:13px; line-height:1.2; font-weight:600; letter-spacing:-.01em; overflow-wrap:anywhere; hyphens:auto; }
  .stop-note,.stop-change,.stop-more { display:none; }
  .stop-link:hover .stop-name { text-decoration:underline; text-underline-offset:3px; }
  .stop-link:focus-visible,.line-head:focus-visible,.terminus button:focus-visible { outline-offset:-2px; }
  /* Where a closed line stops for now. */
  .terminus button { position:relative; z-index:2; display:flex; align-items:center; width:100%; min-height:48px; margin:0; padding:0 4px 0 calc(var(--x) + 30px); border:0; background:none; color:var(--muted); font:500 13px/1.2 var(--sans); text-align:left; cursor:pointer; }
  .terminus button::before { content:""; position:absolute; left:calc(var(--x) - 9px); top:calc(var(--dot) - 9px); width:18px; height:18px; border-radius:50%; background:var(--paper); box-shadow:inset 0 0 0 4px var(--c); }
  .terminus button:hover { color:var(--ink); text-decoration:underline; text-underline-offset:3px; }

  /* An open line, and search results: each stop is an image card. On a wide
     screen the open line leaves its lane, turns under the others and runs
     down the left with room for its cards (the comb draws the turn). */
  .run { --x:24px; margin-top:52px; max-width:860px; }
  .run[hidden] { display:none; }
  .run > .stop:first-child::before { top:0; }
  .run > .stop:first-child:last-child::before { height:var(--dot); }
  .stops.is-cards > .stop { --dot:44px; padding:5px 0; }
  .stops.is-cards > .stop > .stop-link { align-items:stretch; gap:14px; min-height:78px; margin-left:calc(var(--x) + 24px); padding:0; background:var(--card); box-shadow:var(--slip-shadow); }
  /* The station mark on the track, and the tick that ties it to its card. */
  .stops.is-cards > .stop > .stop-link::before { content:""; position:absolute; left:-33px; top:30px; width:18px; height:18px; border-radius:50%; background:var(--paper); box-shadow:inset 0 0 0 4px var(--h,var(--c)); }
  .stops.is-cards > .stop[data-change] > .stop-link::before { box-shadow:inset 0 0 0 4px var(--h),0 0 0 3px var(--c); }
  .stops.is-cards > .stop > .stop-link::after { content:""; position:absolute; left:-15px; top:37.5px; width:15px; height:3px; background:var(--c); }
  .stops.is-cards > .stop > .stop-link > .stop-art { position:relative; left:auto; top:auto; flex:none; width:118px; height:auto; min-height:78px; border-radius:0; box-shadow:none; }
  .stops.is-cards > .stop > .stop-link > .stop-art.is-blank::after { inset:calc(50% - 15px); }
  .stops.is-cards > .stop > .stop-link > .stop-art img { position:absolute; inset:0; }
  .stops.is-cards > .stop > .stop-link > .stop-text { align-self:center; padding:10px 14px 10px 0; }
  .stops.is-cards > .stop > .stop-link .stop-name { font-size:17px; letter-spacing:-.02em; hyphens:manual; }
  /* A long description keeps to three lines so every card stays near one height. */
  .stops.is-cards > .stop > .stop-link .stop-note { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; margin-top:3px; color:var(--muted); font-size:13px; line-height:1.35; }
  .stops.is-cards > .stop > .stop-link .stop-change:not(:empty) { display:block; margin-top:5px; font-size:12px; line-height:1.3; font-weight:500; }
  /* A stop with pages of its own: the boxed count opens a branch line. */
  .stops.is-cards > .stop.has-branch > .stop-link > .stop-text { padding-right:62px; }
  .stops.is-cards > .stop > .stop-more { position:absolute; z-index:3; right:6px; top:22px; display:grid; place-items:center; width:48px; height:44px; margin:0; padding:0; border:0; background:none; color:var(--ink); cursor:pointer; }
  .stop-more span { min-width:2.6ch; padding:5px 6px 4px; border:1.5px solid var(--ink); background:var(--card); font:600 12px/1 var(--mono); text-align:center; }
  .stop-more:hover span,.stop-more[aria-expanded="true"] span { background:var(--ink); color:var(--paper); }
  .branch { position:relative; margin:4px 0 2px calc(var(--x) + 46px); padding-bottom:4px; --x:16px; --w:4px; }
  .branch[hidden] { display:none; }
  .branch::before { content:""; position:absolute; left:calc(-22px - 24px); top:0; width:calc(22px + 24px + 16px + 2px); height:4px; background:var(--c); }
  .branch > .stop { --dot:26px; padding:0; }
  .branch > .stop > .stop-link { min-height:52px; padding:5px 4px 5px 44px; }
  .branch > .stop > .stop-link > .stop-art { left:0; top:6px; width:32px; height:32px; margin-left:0; }
  .branch .stop-art.is-blank::after { inset:7px; }
  .branch .stop-name { font-size:14.5px; hyphens:manual; }
  .branch .stop-note { display:block; margin-top:1px; color:var(--muted); font-size:12.5px; line-height:1.35; }
  /* A branch stop with pages of its own branches again. */
  .branch > .stop.has-branch > .stop-link { padding-right:56px; }
  .branch > .stop > .stop-more { position:absolute; z-index:3; right:0; top:4px; display:grid; place-items:center; width:48px; height:44px; margin:0; padding:0; border:0; background:none; color:var(--ink); cursor:pointer; }
  .branch .stop-more span { background:var(--paper); }
  .branch .stop-more:hover span,.branch .stop-more[aria-expanded="true"] span { background:var(--ink); }

  /* Search: every match on one ink line. */
  .results { margin-top:28px; --c:var(--ink); --x:24px; max-width:720px; }
  .results h2 { margin:0 0 6px; font:500 14px/1.4 var(--sans); color:var(--muted); }
  .results > .stops > .stop:first-child::before { top:var(--dot); }
  .results p { margin:8px 0 0; color:var(--muted); font-size:15px; }
  .text-button { min-height:44px; padding:0; border:0; background:none; color:var(--ink); font:inherit; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
  .plain { margin-top:32px; }
  .plain a,footer a { color:var(--ink); }

  footer { position:relative; margin-top:56px; padding-top:12px; border-top:1px solid var(--rule); color:var(--muted); font-size:13px; }
  footer p { margin:0; max-width:70ch; }
  .board-styles { display:flex; flex-wrap:wrap; gap:0 22px; }
  .board-styles a { position:relative; z-index:2; display:inline-flex; align-items:center; min-height:44px; color:var(--ink); text-underline-offset:4px; }
  .board-styles [aria-current] { font-weight:700; text-decoration:none; }

  @media (max-width:1180px) {
    .masthead { grid-template-areas:"brand tools" "badges badges"; }
    .profile-links { justify-self:stretch; max-width:none; margin-top:6px; padding-left:calc(64px + 18px); }
    .profile-links ul { justify-content:flex-start; }
  }
  /* Narrow: the lines run down the left edge and peel off one per row. */
  @media (max-width:899px) {
    .hall { padding:16px 16px 40px; --w:4px; --rail:58px; }
    .masthead { grid-template-columns:minmax(0,1fr); grid-template-areas:"brand" "tools" "badges"; gap:6px; }
    .brand { gap:12px; }
    .hub { width:48px; height:48px; box-shadow:0 0 0 2px var(--paper),0 0 0 5px var(--ink); }
    h1 { font-size:36px; }
    .tools { justify-self:stretch; flex-wrap:wrap; padding-left:var(--rail); gap:0 18px; }
    .finder { flex:1 1 150px; }
    .finder input { width:100%; }
    /* One row of badges to swipe, clear of the rail. */
    .profile-links { margin:2px -16px 0 0; padding-left:var(--rail); overflow-x:auto; scrollbar-width:none; }
    .profile-links::-webkit-scrollbar { display:none; }
    .profile-links ul { flex-wrap:nowrap; width:max-content; gap:0 6px; padding-right:16px; }
    .profile-links a { min-height:44px; }
    .profile-links img { height:20px; }
    .lines { display:block; margin-top:6px; padding-left:var(--rail); }
    .line { --x:17px; }
    .line + .line { border-top:1px solid var(--rule); }
    .line-head { flex-wrap:wrap; align-content:center; gap:0 8px; min-height:60px; padding:8px 0 8px calc(var(--x) + 26px); font-size:17px; }
    .line-preview { display:block; flex:0 0 100%; overflow:hidden; color:var(--muted); font:400 13px/1.3 var(--sans); letter-spacing:0; text-overflow:ellipsis; white-space:nowrap; }
    .stops > .stop:first-child::before { top:-30px; }
    .stops > .stop:first-child:last-child::before { height:calc(var(--dot) + 30px); }
    .stops.is-cards > .stop > .stop-link { gap:10px; min-height:72px; margin-left:calc(var(--x) + 20px); }
    .stops.is-cards > .stop > .stop-link::before { left:-29px; }
    .stops.is-cards > .stop > .stop-link::after { left:-11px; width:11px; }
    .stops.is-cards > .stop > .stop-link > .stop-art { width:76px; min-height:72px; }
    .stops.is-cards > .stop > .stop-link > .stop-text { padding:8px 10px 8px 0; }
    .stops.is-cards > .stop > .stop-link .stop-name { font-size:16px; }
    .stops.is-cards > .stop.has-branch > .stop-link > .stop-text { padding-right:52px; }
    .stops.is-cards > .stop > .stop-more { right:2px; top:19px; }
    .line[data-open] { padding-bottom:10px; }
    .branch { margin-left:calc(var(--x) + 30px); }
    .branch::before { left:calc(-30px); width:calc(30px + 16px + 2px); }
    .results { margin-top:16px; padding-left:var(--rail); --x:17px; }
    footer { margin-top:40px; }
  }
  @media (forced-colors:active) {
    .comb { display:none; }
    .stop::before,.branch::before { background:CanvasText; }
    .bullet,.stop-art,.terminus button::before { forced-color-adjust:none; }
  }
}
