/* frogscooper.dev, Instrument (from _designs/28-instrument): loaded after /assets/pond.css on every
   page, which carries body classes "d-instrument page-*". A dense dashboard in a coffee palette (umber and mocha mixed half and half,
   from _designs/palettes):
   everything is a dark panel with caramel hairlines on a gridded board (/assets/instrument.js);
   the profile splits into tiles, the pages are a segmented switch, every section is a panel with a
   lit header. Zilla Slab names, IBM Plex Sans text, mono labels. The frog stays as the favicon
   and on the 404. */

/* the inner pages show the pfp in the header */
.page-head .pfp { display: block; width: 76px; height: 76px; margin-top: -30px; }
@media (max-width: 760px) { .page-head .pfp { width: 64px; height: 64px; margin-top: -24px; } }
.pfp img { display: block; width: 100%; height: 100%; object-fit: cover; }

:root {
  --paper: #1f1611; --ink: #edddcf; --muted: #a38877; --line: #392921; --moss: #e5c08f; --leaf: #e5c08f; --pad: #281d16;
  --panel: #281d16; --board: #16100c; --deep: #0e0a08; --soft: #c8b2a1; --red: #c4553a;
  --cg-ink: #110c09; --eye: #f1decb;
  --f0: #281d16; --f1: #623e2b; --f2: #9c603e; --f3: #c89773; --f4: #e5c08f; --dk: #110c09;
  --lang1: #e5c08f; --lang2: #c89773; --lang3: #9c603e; --lang4: #744933; --lang5: #513628; --lang6: #392921;
  --slab: "Zilla Slab", Rockwell, Georgia, serif;
  --sans: "IBM Plex Sans", Arial, Helvetica, sans-serif;
  --r: 6px;
}
html { background: var(--board); color-scheme: dark; }
body { font-family: var(--sans); font-size: 15px; color: var(--ink); }
::selection { background: var(--leaf); color: var(--deep); }
.bar { background: color-mix(in srgb, var(--board) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.id strong { font: 700 17px/1.1 var(--slab); }
.id strong::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--leaf); vertical-align: 2px; }
.id span { color: var(--muted); font-family: var(--mono); font-size: 11px; }
.pondview { height: 28px; }
footer { background: none; border-top: 1px solid var(--line); }
footer .wrap { color: var(--muted); font-family: var(--mono); font-size: 11px; }
footer a:hover { color: var(--leaf); }

/* ---- shared controls */
.btn { background: var(--pad); color: var(--ink); border: 1px solid var(--line); border-radius: 4px; box-shadow: none; font-weight: 700; transition: border-color .15s, background .15s; }
.btn:hover { transform: none; box-shadow: none; border-color: var(--leaf); }
.btn.ink { background: var(--leaf); color: var(--deep); border-color: var(--leaf); }
.btn.ink:hover { background: #f2d5ad; }
.seek { display: inline-flex; align-items: center; gap: 8px; background: rgba(229, 192, 143, .1); color: var(--leaf); border: 1px solid rgba(229, 192, 143, .38); border-radius: 4px; padding: 7px 11px 7px 10px; }
.seek::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(229, 192, 143, .55); } 60% { box-shadow: 0 0 0 6px rgba(229, 192, 143, 0); } }
@media (prefers-reduced-motion: reduce) { .seek::before { animation: none; box-shadow: 0 0 0 3px rgba(229, 192, 143, .28); } }
.filter { border-top-color: var(--line); }
.filter button { background: var(--pad); border-color: var(--line); color: var(--ink); border-radius: 4px; }
.filter button:hover { background: var(--line); }
.filter button[aria-pressed="true"] { background: var(--leaf); color: var(--deep); border-color: var(--leaf); }
.filter button[aria-pressed="true"] small { color: #623e2b; }
.repo { background: var(--pad); border: 1px solid var(--line); border-radius: 4px; box-shadow: none; color: var(--ink); }
.repo:hover { transform: none; border-color: var(--leaf); }
.repo img { border-color: var(--line); border-radius: 3px; }
.repo em { color: var(--leaf); }
.lang-bar { height: 10px; border: 0; border-radius: 3px; overflow: hidden; background: var(--pad); }
.lang-bar i + i { box-shadow: inset 2px 0 0 var(--paper); }
.lang-key { color: var(--ink); }
.lang-key i { border: 0; border-radius: 2px; }
.handle { color: var(--muted); }
.handle:hover { color: var(--leaf); }
.facts, .card p, .paper-row p, .note, .lost p, .ctx p, .page-head .who p { color: var(--soft); }
.facts a { text-decoration-color: var(--line); }

/* ---- the profile as tiles */
.d-instrument .profile { background: none; border: 0; box-shadow: none; }
.d-instrument .prof { padding: 0; }
.d-instrument .prof.gh { display: grid; grid-template-columns: 208px minmax(0, 1fr) 300px; grid-template-areas: "pfp who side" "nums who langs"; gap: 12px; align-items: stretch; }
.d-instrument .gh .lead { display: contents; }
.d-instrument .gh .pfp { grid-area: pfp; }
.d-instrument .gh .nums { grid-area: nums; }
.d-instrument .gh .langs { grid-area: langs; }
.d-instrument .gh .who { grid-area: who; }
.d-instrument .gh .side { grid-area: side; }
.d-instrument :is(.gh .pfp, .gh .nums, .gh .langs, .gh .who, .gh .side, .page-head .pfp, .page-head .avatar, .page-head .who) {
  position: relative; margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: none; outline: 0; transform: none;
}
.d-instrument :is(.gh .who, .gh .side, .gh .langs, .page-head .who)::before {   /* tile labels */
  position: absolute; top: 11px; left: 16px; font: 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
}
.d-instrument .gh .who::before { content: "profile"; }
.d-instrument .gh .side::before { content: "activity"; }
.d-instrument .gh .langs::before { content: "languages"; }
.d-instrument .page-head .who::before { content: "page"; }
.d-instrument .gh .pfp { width: auto; height: auto; aspect-ratio: 1; overflow: hidden; padding: 0; }
.d-instrument .gh .who { padding: 30px 20px 14px; min-width: 0; display: flex; flex-direction: column; }
/* name on the left, the internship chip and contact buttons on the right */
.d-instrument .who-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; }
.d-instrument .who-acts { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
/* the facts fill what the row height leaves, spread across their lines, so no gap pools under "merged into" */
.d-instrument .gh .facts { flex: 1; align-content: space-between; }
.d-instrument .who h1 { margin: 0; font: 700 46px/1 var(--slab); letter-spacing: -.01em; color: var(--ink); }
.d-instrument .who .desc { margin: 10px 0 0; font-size: 17px; color: var(--ink); max-width: 60ch; }
.d-instrument .facts { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); max-width: none; }
.d-instrument .facts dt { color: var(--muted); }
.d-instrument .gh .side { display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 10px; padding: 34px 16px 14px; }
/* activity calendar (assets/heat.js): one cell per day, weeks across, darker = fewer */
.heat-map { display: block; width: 100%; height: auto; overflow: visible; }
.heat-map text { font: 9px var(--mono); fill: var(--muted); }
.heat-map rect { stroke: none; }
.heat-map .l0 { fill: var(--f0); } .heat-map .l1 { fill: var(--f1); } .heat-map .l2 { fill: var(--f2); }
.heat-map .l3 { fill: var(--f3); } .heat-map .l4 { fill: var(--f4); }
.heat-cap { margin: 0; font: 10.5px/1.3 var(--mono); color: var(--muted); }
.d-instrument .gh .langs { display: flex; flex-direction: column; justify-content: flex-start; gap: 12px; padding: 38px 16px 16px; max-width: none; }
.d-instrument .gh .lang-key { flex-direction: column; gap: 7px; }
.d-instrument .gh .lang-key span { display: flex; align-items: center; }
.d-instrument .gh .lang-key em { margin-left: auto; }
.d-instrument .gh .langs:hover .lang-key { text-decoration: none; }
.d-instrument .merged-more { align-self: center; padding: 0 2px; font: 12.5px/1 var(--mono); color: var(--leaf); text-decoration: none; }   /* after the top 3 repos */
.d-instrument .merged-more:hover { text-decoration: underline; }
.d-instrument .gh .nums { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding: 0; overflow: hidden; background: var(--line); }
.d-instrument .gh .nums div { background: var(--paper); padding: 10px 12px; border: 0; }
.d-instrument .gh .nums .big { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; }
.d-instrument .gh .nums b { font: 700 22px/1.1 var(--mono); letter-spacing: -.03em; color: var(--ink); }
.d-instrument .gh .nums .big b { font-size: 34px; color: var(--leaf); }
.d-instrument .nums span { color: var(--muted); font-family: var(--mono); font-size: 10px; }
/* inner pages: pfp tile beside a page tile */
.d-instrument .page-head .prof { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 12px; align-items: stretch; }
.d-instrument .page-head .pfp, .d-instrument .page-head .avatar { width: auto; height: auto; aspect-ratio: 1; overflow: hidden; padding: 0; }
.d-instrument .page-head .avatar { display: grid; place-items: center; }
.d-instrument .page-head .avatar svg { width: 64px; }
.d-instrument .page-head .who { padding: 34px 22px 20px; }
.d-instrument .page-head .crumb { color: var(--muted); }
.d-instrument .page-head .who h1 { font-size: 36px; margin-top: 2px; }
.d-instrument .page-head .who p { margin-top: 8px; font-size: 15.5px; }
/* the pages: a segmented switch */
.d-instrument .tabs { margin-top: 12px; padding: 4px; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.d-instrument .tabs a { padding: 9px 16px; border: 0; border-radius: 4px; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.d-instrument .tabs a:hover { color: var(--ink); background: var(--pad); }
.d-instrument .tabs a[aria-current] { background: var(--pad); color: var(--leaf); box-shadow: inset 0 0 0 1px var(--line); }

/* ---- sections: panels with a lit header */
.d-instrument main { padding: 12px 0 80px; }
.d-instrument .shelf { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: none; padding: 0 20px 22px; }
.d-instrument .shelf + .shelf { margin-top: 12px; }
.d-instrument .sec-head { margin: 0 -20px 20px; padding: 12px 20px; background: var(--pad); border-bottom: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; }
.d-instrument .sec-head h2 { font: 700 11px/1 var(--mono); letter-spacing: .16em; }
.d-instrument .sec-head h2::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 6px rgba(229, 192, 143, .7); vertical-align: 0; }
.d-instrument .sec-head span { color: var(--muted); font-family: var(--mono); font-size: 11px; }
.d-instrument .sec-head a { color: var(--leaf); font-family: var(--mono); font-size: 11px; }
.card h3, .paper-row h3, .way strong { font-family: var(--slab); font-weight: 700; letter-spacing: 0; color: var(--ink); }
.feature h3 { font-size: 32px; }
.duo h3 { font: 700 40px/1 var(--mono); letter-spacing: -.04em; color: var(--leaf); }
.duo > div { background: var(--pad); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.d-instrument .grid > .card, .d-instrument .feature { background: var(--pad); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 10px 14px; }
.d-instrument .feature { padding: 12px; }
.cover { border-color: var(--line); border-radius: 4px; }
a.cover:hover, .card.playing .cover { transform: none; box-shadow: 0 0 0 1px var(--leaf); }
.strip { background: var(--deep); color: var(--ink); }
.badge { background: var(--deep); color: var(--ink); }
.badge.leaf { background: var(--leaf); color: var(--deep); }
.lily { background: var(--paper); }
.track { border-color: var(--line); background: var(--pad); }
.fill { background: #665246; }
.bench, .bench div, .bench div:nth-child(2n) { border-color: var(--line); }
.bench dt { color: var(--ink); }
.pr-tag { border-color: var(--line); border-radius: 3px; }
.pr-tag.merged { background: var(--leaf); color: var(--deep); border-color: var(--leaf); }
.pr-tag.open { background: var(--paper); color: var(--ink); }
.os-state { background: var(--pad); border-color: var(--line); border-radius: 4px; }
.os-state.open { color: var(--leaf); }
.os-state.merged { background: var(--leaf); color: var(--deep); border-color: var(--leaf); }
.way { background: var(--pad); border: 1px solid var(--line); border-radius: var(--r); box-shadow: none; }
.way:hover { transform: none; box-shadow: none; border-color: var(--leaf); }
.way.ink { background: var(--leaf); color: var(--deep); border-color: var(--leaf); }
.way.ink .k, .way.ink small { color: #623e2b; }
.way.ink strong { color: var(--deep); }
.miss { background: var(--deep); color: var(--leaf); border: 1px solid var(--line); border-radius: 4px; }
.thumb { border-color: var(--line); border-radius: 4px; }
.water { border-color: var(--line); border-radius: 4px; }
.water .ghost { stroke: #1f140e; }   /* the 404 water stays light, so its ink stays dark */
.water .q { fill: #1f140e; }
.grch-live, .grch-canvas { background: var(--deep); border-color: var(--line); }
.grch-bar { background: var(--paper); border-top-color: var(--line); }
.grch-bar input, .grch-bar select, .grch-bar button { background: var(--pad); color: var(--ink); border-color: var(--line); }
.grch-bar button:hover { background: var(--leaf); color: var(--deep); }
.play { background: var(--deep); color: var(--ink); border-color: var(--leaf); }
.stabs button { color: var(--soft); border-left-color: var(--line); }   /* pond.css used --paper, which is dark here */
.stabs button:hover { color: var(--ink); }
.stabs button[aria-selected="true"] { color: var(--deep); }

@media (max-width: 1080px) {
  .d-instrument .prof.gh { grid-template-columns: 180px minmax(0, 1fr); grid-template-areas: "pfp who" "nums who" "side langs"; }
  .d-instrument .who h1 { font-size: 40px; }
}
@media (max-width: 760px) {
  .pondview { height: 16px; }
  .d-instrument .prof.gh { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "pfp side" "who who" "nums nums" "langs langs"; gap: 10px; }
  .d-instrument .gh .side { padding: 30px 12px 12px; gap: 8px; }
  .d-instrument .who-acts { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
  .d-instrument .seek { white-space: normal; line-height: 1.3; }
  .d-instrument .gh .who { padding: 30px 16px 14px; }
  .d-instrument .who h1 { font-size: 34px; }
  .d-instrument .who .desc { font-size: 15.5px; }
  .d-instrument .gh .nums { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .d-instrument .gh .nums .big { grid-column: auto; display: block; }
  .d-instrument .gh .nums b, .d-instrument .gh .nums .big b { font-size: 18px; }
  .d-instrument .gh .nums div { padding: 8px 7px; }
  .d-instrument .page-head .prof { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; }
  .d-instrument .page-head .avatar svg { width: 44px; }
  .d-instrument .page-head .who { padding: 30px 14px 14px; }
  .d-instrument .page-head .who h1 { font-size: 27px; }
  .d-instrument .page-head .pfp, .d-instrument .page-head .avatar { align-self: start; }
  .d-instrument .shelf { padding: 0 12px 16px; }
  .d-instrument .sec-head { margin: 0 -12px 16px; padding: 11px 12px; }
  .d-instrument .tabs { gap: 2px; }
  .d-instrument .tabs a { padding: 8px 10px; }
}
