/* Shared styles for the work: status tags, the "from hanzee" window, and (later) the
   archive and history rows. Loaded after chrome98.css by index.html (and projects.html).
   Square, beveled Win98 frames only: no left-edge bars, no rounded cards. */

/* ---- status tags (spec 2, "Status labels") ----
   Listed by name so the old archive's plain `.file .tag` text is not restyled. */
.tag.out,.tag.workshop,.tag.planned,.tag.prototype,.tag.postponed,.tag.shelved,
.tag.sealed,.tag.convention,.tag.video,.tag.main{
  display:inline-block;padding:2px 6px;border:1px solid currentColor;white-space:nowrap;
  font:bold 9.5px Verdana,Geneva,sans-serif;letter-spacing:.9px;text-transform:uppercase;line-height:1.2}
/* out now: filled green */
.tag.out{background:var(--green);border-color:var(--green);color:#fff}
/* in the workshop: amber outline (mixed toward the ink so it reads in light and dark) */
.tag.workshop{color:color-mix(in srgb,var(--amber) 72%,var(--ink))}
/* prototype: teal outline */
.tag.prototype{color:color-mix(in srgb,var(--teal) 80%,var(--ink))}
/* planned, postponed: dim outline; shelved: dim italic outline; "main release" uses the dim outline too */
.tag.planned,.tag.postponed,.tag.shelved,.tag.main{color:var(--dim)}
.tag.shelved{font-style:italic}
/* sealed: solid dark */
.tag.sealed{background:var(--ink);border-color:var(--ink);color:var(--paper)}
/* convention, and the video rows on the history page: filled brown */
.tag.convention,.tag.video{background:var(--inact2);border-color:var(--inact2);color:#fff}

/* ---- the focused window: rust title bar ---- */
.win.focus .bar{background:linear-gradient(90deg,var(--title),var(--title2));color:#fff}

/* ---- "from hanzee" (spec 1, look from the mockup) ---- */
#from .body{padding:12px}
#from h2{font:italic 21px Georgia,serif;color:var(--accent);margin:0 0 4px}
#from .lead{font-size:14px;line-height:1.45;margin:0 0 10px}
#from .feat{display:flex;gap:12px;border-top:1px dotted var(--dk);padding-top:11px}
#from .feat>img{flex:0 0 auto;display:block;width:216px;height:113px;object-fit:cover;
  padding:2px;background:#000;box-shadow:var(--sunken)}
#from .feat>div{min-width:0}
#from .feat h3{font:bold 17px Verdana,Geneva,sans-serif;color:var(--ink);margin:5px 0 3px}
#from .feat p{margin:0 0 8px;font-size:12.5px;line-height:1.4}
#from .btn{display:inline-block;white-space:nowrap;padding:5px 12px;font-size:12px}
#from .btn.go{background:var(--green);color:#fff}
#from .btn.go:hover{background:#5f8a3a;color:#fff}
#from .lk{margin-left:8px;color:var(--accent);font-size:12px;text-decoration:underline}
#from .road{margin:11px 0 0;padding-top:9px;border-top:1px dotted var(--dk);font-size:12.5px;line-height:1.45}
#from .road b{color:var(--accent)}
#from .road .lk{margin-left:2px}
#from .contact{margin:11px 0 0;padding-top:9px;border-top:1px dotted var(--dk);
  font:12px "Courier New",monospace;color:var(--dim)}
#from .contact img{width:20px;height:20px;vertical-align:-5px;image-rendering:auto}
#from .contact a{color:var(--accent);white-space:nowrap}
/* phones: the card picture sits above the text (as in the mockup's phone view) */
@media(max-width:680px){
  #from .feat{display:block}
  #from .feat>img{width:100%;height:auto;aspect-ratio:1200/630;margin-bottom:8px}
}

/* ---- desktop icons: the second small line, and the smooth-scaled Glitch Arcade logo ---- */
.deskicons small{display:block;margin-top:1px;color:#e7dcc2;font-size:10px;text-shadow:1px 1px 0 #000}
.deskicons .ico.ga{image-rendering:auto;outline:1px solid #000}

/* ---- the lately ticker ---- */
.newsbar b{color:#fff}

/* ---- the archive window: project history (spec 2, look from the mockup's archive list) ----
   Rows are built by the archive script from data.js. Groups are split by a rule under the
   heading, never by a bar down the left edge. */
/* the sunken frame is a border, not an inset shadow: an inset shadow shows through only the
   unstriped rows and reads as a broken bar down the left edge */
.flist{background:#fbf8f0;border:2px solid;border-color:var(--dk) var(--lt) var(--lt) var(--dk);
  font:12px "Courier New",monospace}
.flist .fdiv{font:bold 10px Verdana,Geneva,sans-serif;letter-spacing:1.4px;color:var(--dim);
  padding:7px 8px 3px;border-bottom:1px solid var(--accent);text-transform:uppercase}
.flist .fdiv::before{content:"// "}
.frow{display:grid;grid-template-columns:minmax(0,1fr) 80px;gap:6px;padding:3.5px 8px;
  border-bottom:1px dotted #d8ccb2;align-items:baseline}
.frow:nth-child(odd){background:#f3eddd}
.frow>span:first-child{min-width:0;overflow-wrap:anywhere}
.frow b{font-weight:bold}
.frow em{font-style:normal;color:var(--dim);font-size:11px}
.frow a{color:var(--accent);text-align:right;font-weight:bold;white-space:nowrap}
.frow .no{color:color-mix(in srgb,var(--dim) 65%,var(--ink));text-align:right;white-space:nowrap}
.frow .no.denied{color:var(--accent);font-weight:bold}
.frow.sealed{cursor:not-allowed}
.frow .blocks{letter-spacing:-1px;color:var(--ink)}
.flist .fnos{margin:0;padding:6px 8px}
.flist .fnos a{color:var(--accent)}
.more{display:flex;flex-wrap:wrap;gap:6px;justify-content:space-between;align-items:center;
  padding:8px 2px 0;font:11px "Courier New",monospace;color:var(--dim)}
.more .btn{white-space:nowrap;font-weight:bold}
[data-mode="dark"] .flist{background:color-mix(in srgb,var(--paper) 90%,#000)}
[data-mode="dark"] .frow{border-bottom-color:var(--lt)}
[data-mode="dark"] .frow:nth-child(odd){background:color-mix(in srgb,var(--paper) 94%,#fff)}

/* ---- the project history page, projects.html (spec 2, look from the mockup's history page) ----
   Scoped to .history: index.html loads this file too.
   Frames are 2px bevel borders, never inset shadows (those read as a bar down the left edge). */
.history .body{padding:14px 16px 16px}
.history h1{font:italic 21px Georgia,serif;color:var(--accent);margin:0 0 12px;line-height:1.3}
.history .chips{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.history .chip{cursor:pointer;color:var(--ink);background:var(--chrome);border:0;box-shadow:var(--raised);
  padding:4px 9px;font:bold 11px Verdana,Geneva,sans-serif}
.history .chip.on{box-shadow:var(--sunken);background:var(--lt)}
.history .lately{background:#fbf8f0;border:2px solid;border-color:var(--dk) var(--lt) var(--lt) var(--dk);
  padding:9px 11px;margin:0 0 14px}
.history .lately h2,.history .yr{font:bold 10px Verdana,Geneva,sans-serif;letter-spacing:1.4px;
  text-transform:uppercase;color:var(--dim);margin:0 0 5px}
.history .lately>div{display:grid;grid-template-columns:58px 118px minmax(0,1fr);gap:8px;
  font:12px "Courier New",monospace;padding:2px 0}
.history .lately>div b{color:var(--accent);overflow-wrap:anywhere}
.history .yr{border-bottom:1px solid var(--accent);padding:12px 0 3px;margin:0;font-size:11px;color:var(--ink)}
.history .mo{display:grid;grid-template-columns:46px minmax(0,1fr);gap:8px;border-bottom:1px dotted #d8ccb2;padding:6px 0}
.history .mo>span{font:bold 11px "Courier New",monospace;color:var(--dim);padding-top:3px}
.history .prow{display:grid;grid-template-columns:150px 124px minmax(0,1fr) 84px;gap:10px;align-items:baseline;padding:3px 0}
.history .prow b,.history .prow a.pname{font:bold 13px Verdana,Geneva,sans-serif;min-width:0;overflow-wrap:anywhere}
/* a convention's name links to its site, styled as the events window's name links */
.history .prow a.pname{color:var(--accent);text-decoration:none;text-align:left;white-space:normal}
.history .prow a.pname:hover{color:#fff;background:var(--rust)}
.history .prow b img{width:18px;height:18px;vertical-align:-4px;image-rendering:auto;margin-right:4px}
.history .prow p{margin:0;font-size:12px;line-height:1.35;color:color-mix(in srgb,var(--ink) 85%,var(--paper));min-width:0;overflow-wrap:anywhere}
.history .prow a,.history .prow .no{font:bold 12px "Courier New",monospace;text-align:right;white-space:nowrap}
.history .prow a{color:var(--accent)}
.history .prow .no{color:var(--dim);font-weight:normal}
.history .prow.dimrow b,.history .prow.dimrow p{color:var(--dim)}
.history .prow .blocks{letter-spacing:-1px;color:var(--ink)}
/* !important: the phone rules below (e.g. `.mo{display:block}`) must not redraw a filtered-out block */
.history [hidden]{display:none !important}
.history .fail{margin:0}
/* the free stuff page, free.html (spec 7): the history page's window and rows, plus its one line,
   the month each item was added, and the empty line */
.history .lead{margin:-4px 0 12px;font-size:13px;line-height:1.4}
.history .prow .added{font:bold 11px "Courier New",monospace;color:var(--dim)}
.history .empty{margin:0;padding:6px 0;font:13px "Courier New",monospace;color:var(--dim)}
[data-mode="dark"] .history .lately{background:color-mix(in srgb,var(--paper) 90%,#000)}
[data-mode="dark"] .history .mo{border-bottom-color:var(--lt)}
/* dark mode: the filled brown tag would sink into the dark paper; lift it toward the dim text */
[data-mode="dark"] .history .tag.convention,[data-mode="dark"] .history .tag.video{
  background:color-mix(in srgb,var(--dim) 62%,var(--paper));border-color:color-mix(in srgb,var(--dim) 62%,var(--paper))}
/* phones: a month label sits on its own line, and a row stacks: name and tag on one line,
   the sentence under them, the link at the right of the first line (spec 2) */
@media(max-width:680px){
  .history .body{padding:12px 10px 14px}
  .history .mo{display:block}
  .history .mo>span{display:block;padding:0 0 2px}
  .history .mo>span:empty{display:none}
  .history .prow{grid-template-columns:minmax(0,max-content) auto minmax(0,1fr) auto;gap:4px 8px;padding:5px 0}
  .history .prow>b,.history .prow>a.pname{grid-column:1;grid-row:1}
  .history .prow>.tagc{grid-column:2;grid-row:1}
  .history .prow>a:not(.pname),.history .prow>.no{grid-column:4;grid-row:1}
  .history .prow>p{grid-column:1/-1;grid-row:2}
  .history .lately>div{grid-template-columns:52px minmax(0,1fr);gap:0 8px}
  .history .lately>div>span:last-child{grid-column:1/-1}
}
