/* The section pages: Riffsmith and tools (tools/), Theory (theory/) and Genres (genres/), all with body.tools.
   A heading in the homepage's poster type, Riffsmith as a feature card with a strip of tab behind it (Tools only),
   and each tool or genre in its own colour with a line-drawn icon (a genre shows its letter instead).
   Works in both themes: the cards' orange (--c) is mixed into the theme's own card and line colours. */

.tlHead{margin:22px 0 18px}
.tlHead+.tlGrid{margin-top:0}
.tlKicker{margin:0 0 4px;font:700 12px/1 system-ui,sans-serif;letter-spacing:.22em;text-transform:uppercase;color:var(--acc)}
.tlTitle{margin:0;font-family:"Bebas Neue",Impact,"Arial Narrow",sans-serif;font-weight:400;font-size:56px;line-height:.95;letter-spacing:.02em}
.tlTitle span{color:var(--acc)}
.tlSub{margin:8px 0 0;color:var(--mut);font-size:15px;line-height:1.45;max-width:30em}

/* every card in one colour: a muted orange, turning the site's full orange when you point at it.
   (The colour names on the cards, green, blue and so on, are left in the pages but no longer used.) */
.tlTool{--c:color-mix(in srgb,var(--acc) 55%,var(--mut))}
.tlTool:hover,.tlTool:focus-visible{--c:var(--acc)}

/* the line icons in a tinted rounded square */
.tlIcon{flex:0 0 auto;transition:color .2s,background .2s,box-shadow .2s;display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:14px;
  color:var(--c,var(--acc));background:color-mix(in srgb,var(--c,var(--acc)) 14%,transparent)}
.tlIcon svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tlIcon.letter{font-family:"Bebas Neue",Impact,"Arial Narrow",sans-serif;font-size:30px;line-height:1;padding-top:2px}
.tlLabel{display:block;font:700 11px/1 system-ui,sans-serif;letter-spacing:.16em;text-transform:uppercase;color:var(--c,var(--acc))}

/* Riffsmith */
.tlFeature{position:relative;display:block;overflow:hidden;padding:22px 20px 20px;border-radius:20px;text-decoration:none;color:var(--fg);
  border:1px solid color-mix(in srgb,var(--acc) 55%,var(--line));background:color-mix(in srgb,var(--acc) 7%,var(--card));transition:border-color .2s}
.tlFeature:hover{border-color:var(--acc)}
.tlFeature .tlIcon.big{width:56px;height:56px;border-radius:16px;margin-bottom:14px}
.tlFeature .tlIcon.big svg{width:30px;height:30px}
.tlFeature b{display:block;margin-top:6px;font-family:"Bebas Neue",Impact,"Arial Narrow",sans-serif;font-weight:400;font-size:40px;line-height:1;letter-spacing:.02em}
.tlFeature .tlText{position:relative;display:block;margin-top:6px;max-width:26em;color:var(--mut);font-size:15px;line-height:1.5}
.tlFeature em{position:relative;display:inline-flex;align-items:center;gap:6px;margin-top:16px;padding:9px 18px;border-radius:999px;font-style:normal;font-weight:700;font-size:15px;
  background:var(--acc);color:#fff}
/* the strip of tab behind it, top right */
.tlTab{position:absolute;top:18px;right:-10px;width:220px;height:120px;opacity:.5;pointer-events:none}
.tlTabLines path{stroke:color-mix(in srgb,var(--acc) 40%,transparent);stroke-width:1.2}
.tlTabNums text{font:700 15px ui-monospace,Menlo,monospace;fill:var(--acc);text-anchor:middle}

/* the other tools: icon, words, an arrow; two across on wider screens */
.tlGrid{display:grid;gap:12px;margin-top:14px}
.tlTool{display:flex;align-items:flex-start;gap:14px;padding:16px 14px 16px 16px;border-radius:16px;text-decoration:none;color:var(--fg);
  border:1px solid var(--line);
  background:var(--card);transition:border-color .2s}
.tlTool:hover{border-color:var(--c)}
.tlBody{flex:1;min-width:0}
.tlTool b{display:block;margin-top:5px;font-size:18px;line-height:1.25}
.tlTool .tlText{display:block;margin-top:3px;color:var(--mut);font-size:14px;line-height:1.45}
.tlGo{flex:0 0 auto;align-self:center;font-size:26px;line-height:1;color:color-mix(in srgb,var(--c) 70%,var(--mut));transition:transform .2s}
.tlTool:hover .tlGo{transform:translateX(3px)}
.tlTool.soon{opacity:.6}
.tlTool.soon:hover{opacity:.85}
.tlFeature:focus-visible,.tlTool:focus-visible{outline:2px solid var(--acc);outline-offset:3px}

@media (min-width:560px){
  .tlGrid{grid-template-columns:1fr 1fr}
  .tlTool{flex-direction:column;gap:12px;padding:18px}
  .tlGo{display:none}
  .tlTitle{font-size:64px}
}
/* phones: a smaller strip, kept beside the icon and clear of the title */
@media (max-width:559px){.tlTab{top:12px;right:-6px;width:150px;height:82px;opacity:.45}}
@media (prefers-reduced-motion:reduce){.tlFeature,.tlTool,.tlGo,.tlIcon{transition:none}}
