/* Fonts bundled with the site (SIL Open Font License): DotGothic16, Pixelify Sans, VT323. Latin characters only. */
@font-face { font-family: "DotGothic16"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/dotgothic16-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DotGothic16"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/dotgothic16-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Pixelify Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/pixelify-sans-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Pixelify Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/pixelify-sans-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "VT323"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/vt323-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "VT323"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/vt323-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Look of the Congratulations FM desktop and its sub-pages. Every setting is a variable or a data-attribute on <html>, set by themeVars() in theme.js. */
  :root {
    --desk: #008080; --desk2: #006060; --face: #c0c0c0; --ink: #000; --paper: #fff; --label: #fff;
    --accent: #000080; --accent-ink: #fff; --title-a: #000080; --title-b: #1084d0; --title-ink: #fff; --link: #0000ee;
    --bevel: 1; --r: 0px; --bw: 3px; --bh: 20px; --pad: 8px; --wa: 1; --blur: 0px; --shadow: 3px 3px 0 rgb(0 0 0 / .35);
    --fs: 12px; --tt: none; --ls: 0px; --tw: bold; --is: 32px; --ig: 6px; --th: 30px; --ws: 1; --nx: 0px; --ny: 0px; --am: 160ms;
    --ps: 16px; --bg: var(--desk); --scan: 0; --grain: 0; --vh: 44px; --drift-t: 4s;
    --lcd-bg: #0b1a0b; --lcd-ink: #7dff6a; --viz-bg: #000;
    --ui: "MS Sans Serif", "Microsoft Sans Serif", Tahoma, Geneva, Verdana, sans-serif;
    --ft: var(--ui); --fn: "Courier New", monospace; --fl: "VT323", monospace;
    /* Tones worked out from the main colours. themeVars() in theme.js calculates them, so the site does not depend
       on the browser's newer colour-mixing feature; these are only the starting values. */
    --hi: #ffffff; --lite: #dfdfdf; --lo: #808080; --dk: #0a0a0a; --edge: #000000; --muted: #3a3a3a; --edge-soft: #6c6c6c;
    --win-bg: var(--face); --bar-off: #7d7d7d; --star: #9c6800; --cell: #8a8ab0; --cell-line: #c8c8c8; --hit: #ee8a8d; --stripe: #6666b3;
    --rb: calc(var(--r) * .5);
    --raised: inset -1px -1px var(--dk), inset 1px 1px var(--hi), inset -2px -2px var(--lo), inset 2px 2px var(--lite);
    --sunken: inset -1px -1px var(--hi), inset 1px 1px var(--lo), inset -2px -2px var(--lite), inset 2px 2px var(--dk);
  }
  :root[data-chrome=flat] { --raised: inset 0 0 0 1px var(--edge); --sunken: inset 0 0 0 1px var(--edge-soft); }
  :root[data-chrome=soft] { --raised: inset 0 1px var(--hi), inset 0 -1px var(--lo), 0 0 0 1px var(--lo); --sunken: inset 0 1px 2px var(--lo), 0 0 0 1px var(--lo); }

  * { box-sizing: border-box; }
  html, body { height: 100%; margin: 0; }
  body { background: var(--bg); color: var(--ink); font: var(--fs)/1.4 var(--ui); overflow: hidden; user-select: none; }
  :root[data-drift] body { animation: drift var(--drift-t) linear infinite; }
  @keyframes drift { to { background-position: var(--ps) var(--ps); } }
  body::before, body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 99990; }
  body::before { opacity: var(--grain); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); mix-blend-mode: overlay; }
  body::after { opacity: var(--scan); background: repeating-linear-gradient(0deg, #000 0 1px, transparent 1px 3px); }
  #fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
  img.px { image-rendering: pixelated; }
  a { color: var(--link); }
  h1, h2, h3, p { margin: 0; }
  [hidden] { display: none !important; }
  .muted { color: var(--muted); }

  /* ---- desktop + icons ---- */
  #desk { position: absolute; inset: 0 0 var(--th) 0; overflow: hidden; }
  #icons { position: absolute; top: calc(var(--bn, 0px) + 8px); left: 8px; bottom: 8px; display: flex; flex-flow: column wrap; align-content: flex-start; gap: var(--ig) calc(var(--ig) + 4px); }
  :root[data-iconside=right] #icons { left: auto; right: 8px; flex-wrap: wrap-reverse; }
  :root[data-iconside=top] #icons { top: calc(var(--bn, 0px) + 8px); right: 8px; bottom: auto; flex-flow: row wrap; }
  #banner { position: absolute; top: 2px; left: 10px; margin: 0; font: bold 80px/1 var(--ft); color: var(--title-a); text-shadow: .035em .035em 0 var(--paper); white-space: nowrap; pointer-events: none; }
  .icon { width: 8.6em; padding: var(--ip, 4px) 2px; border: 1px dotted transparent; background: none; box-shadow: none; color: var(--label); font: inherit; text-align: center; cursor: pointer; border-radius: var(--rb); }
  .icon img { width: var(--is); height: var(--is); display: block; margin: 0 auto 4px; }
  .icon span { padding: 1px 3px; border-radius: var(--rb); white-space: nowrap; }
  .icon:focus-visible, .icon:hover { outline: none; border-color: var(--label); }
  .icon:active { box-shadow: none; }
  .icon:focus-visible span, .icon:hover span, :root[data-labelbg] .icon span { background: var(--accent); color: var(--accent-ink); }
  :root[data-labelshadow] .icon span { text-shadow: 1px 1px 0 rgb(0 0 0 / .7); }

  /* ---- windows ---- */
  .win { position: absolute; translate: var(--nx) var(--ny); background: var(--win-bg); -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); border-radius: var(--r); box-shadow: var(--raised), var(--shadow); padding: var(--bw); display: flex; flex-direction: column; min-width: 220px; max-width: calc(100vw - 8px); max-height: calc(100vh - var(--th) - var(--bn, 0px) - 10px); }
  :root[data-anim=pop] .win { animation: pop var(--am) ease-out; }
  :root[data-anim=fade] .win { animation: fade var(--am) ease-out; }
  :root[data-anim=slide] .win { animation: slide var(--am) ease-out; }
  :root[data-anim=retro] .win { animation: retro var(--am) steps(5); }
  @keyframes pop { from { transform: scale(.9); opacity: 0; } }
  @keyframes fade { from { opacity: 0; } }
  @keyframes slide { from { transform: translateY(14px); opacity: 0; } }
  @keyframes retro { from { transform: scale(.25); } }
  .bar { display: flex; align-items: center; gap: 4px; height: var(--bh); padding: 0 2px 0 3px; background: var(--bar-off); color: var(--face); font-family: var(--ft); font-weight: var(--tw); text-transform: var(--tt); letter-spacing: var(--ls); cursor: move; touch-action: none; flex: none; border-radius: max(0px, calc(var(--r) - var(--bw))) max(0px, calc(var(--r) - var(--bw))) 0 0; }
  .win.active .bar { background: linear-gradient(90deg, var(--title-a), var(--title-b)); color: var(--title-ink); }
  .bar img { width: 16px; height: 16px; }
  .bar .t { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  :root[data-titlealign=center] .bar .t { text-align: center; }
  .bar button { width: calc(var(--bh) - 4px); height: calc(var(--bh) - 6px); padding: 0; font: bold 9px/1 var(--ui); display: grid; place-items: center; flex: none; }
  :root[data-barbtn=dot] .bar button { width: 12px; height: 12px; margin: 0 1px; border-radius: 50%; font-size: 0; background: #f5bd4f; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .25); }
  :root[data-barbtn=dot] .bar button[data-close] { background: #ee6a5f; }
  :root[data-barbtn=glyph] .bar button { background: none; box-shadow: none; color: inherit; font-size: calc(var(--bh) * .5); }
  :root[data-barside=left] .bar button[data-close] { order: -2; }
  :root[data-barside=left] .bar button[data-min] { order: -1; }
  .body { padding: var(--pad); overflow: auto; flex: 1; min-height: 0; user-select: text; }
  .status { box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); padding: 2px 6px; margin-top: 3px; flex: none; }

  button, .btn { background: var(--face); border: 0; border-radius: var(--rb); box-shadow: var(--raised); font: var(--fs)/1.2 var(--ui); color: var(--ink); padding: 4px 10px; cursor: pointer; }
  button:active, button.on { box-shadow: var(--sunken); }
  button:focus-visible { outline: 1px dotted var(--ink); outline-offset: -4px; }
  input[type=text], input[type=email], textarea, select, .well { background: var(--paper); border: 0; border-radius: var(--rb); box-shadow: var(--sunken); padding: 4px 6px; font: var(--fs)/1.3 var(--ui); color: var(--ink); }
  textarea { resize: none; width: 100%; }
  label { display: block; margin-bottom: 6px; }
  label > span { display: block; margin-bottom: 2px; }
  .row { display: flex; gap: 6px; align-items: center; }
  .grow { flex: 1; min-width: 0; }

  .tabs { display: flex; gap: 0; margin-bottom: -2px; position: relative; z-index: 1; padding-left: 2px; }
  .tabs button { box-shadow: inset 1px 1px var(--hi), inset -1px 0 var(--dk), inset -2px 0 var(--lo); padding: 3px 9px 4px; margin-top: 2px; border-radius: var(--rb) var(--rb) 0 0; }
  :root:not([data-chrome=bevel]) .tabs { gap: 3px; margin-bottom: 4px; padding-left: 0; }
  :root:not([data-chrome=bevel]) .tabs button { box-shadow: var(--raised); border-radius: var(--rb); }
  .tabs button[aria-selected=true] { margin-top: 0; padding-bottom: 6px; font-weight: bold; background: var(--face); }
  :root:not([data-chrome=bevel]) .tabs button[aria-selected=true] { margin-top: 2px; padding-bottom: 4px; background: var(--accent); color: var(--accent-ink); }
  .pane { box-shadow: var(--raised); padding: 8px; border-radius: var(--rb); }

  .list { background: var(--paper); box-shadow: var(--sunken); padding: 2px; overflow: auto; border-radius: var(--rb); }
  .list button { display: flex; gap: 8px; width: 100%; background: none; box-shadow: none; text-align: left; padding: 2px 4px; }
  .list button[aria-current=true] { background: var(--accent); color: var(--accent-ink); }
  .list .n { width: 4em; flex: none; opacity: .75; }
  .list button > span:first-child { flex: none; white-space: nowrap; }
  .list .d { margin-left: auto; font-variant-numeric: tabular-nums; }

  /* player */
  .lcd { background: var(--lcd-bg); color: var(--lcd-ink); font: 20px/1 var(--fl); padding: 6px 8px; box-shadow: var(--sunken); border-radius: var(--rb); }
  .lcd .l1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lcd .l2 { display: flex; justify-content: space-between; opacity: .7; font-size: 16px; margin-top: 2px; }
  #viz, .deck canvas { display: block; width: 100%; height: var(--vh); background: var(--viz-bg); box-shadow: var(--sunken); margin: 6px 0; border-radius: var(--rb); }
  .seek { height: 16px; background: var(--paper); box-shadow: var(--sunken); padding: 3px; cursor: pointer; border-radius: var(--rb); }
  .seek i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 10px); }
  .transport button { min-width: 34px; font-weight: bold; }
  input[type=range] { accent-color: var(--accent); }

  /* item rows (podcast / field / talks / recs) */
  .item { display: flex; gap: 8px; padding: 6px 2px; border-bottom: 1px solid var(--lo); box-shadow: 0 1px var(--hi); }
  .item:last-child { border: 0; box-shadow: none; }
  .item img { width: 32px; height: 32px; flex: none; }
  .item h3 { font-size: var(--fs); }
  .item .meta { color: var(--muted); }

  .note { background: var(--paper); box-shadow: var(--sunken); padding: 8px 10px; font: calc(var(--fs) * 1.08)/1.5 var(--fn); overflow: auto; border-radius: var(--rb); }
  .note h3 { font: bold calc(var(--fs) * 1.17) var(--fn); margin-bottom: 6px; }
  .note p + p { margin-top: 8px; }
  h1.big { font: bold calc(var(--fs) * 2.17)/1 var(--ft); letter-spacing: -1px; margin-bottom: 6px; }
  .socials { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
  .socials a { text-decoration: none; }
  .msg { display: flex; gap: 12px; align-items: flex-start; }
  .msg img { width: 32px; height: 32px; flex: none; }

  /* ---- taskbar + start ---- */
  #task { position: absolute; left: 0; right: 0; bottom: 0; height: var(--th); background: var(--face); box-shadow: inset 0 1px var(--hi); border-top: 1px solid var(--lite); display: flex; gap: 4px; padding: 3px; align-items: stretch; z-index: 8000; }
  #start { font-weight: bold; display: flex; align-items: center; gap: 4px; padding: 0 6px; white-space: nowrap; }
  #start img { width: 16px; height: 16px; }
  #tasks { display: flex; gap: 3px; flex: 1; min-width: 0; overflow: hidden; }
  #tasks button { display: flex; align-items: center; gap: 4px; width: 150px; min-width: 40px; flex-shrink: 1; overflow: hidden; white-space: nowrap; text-align: left; padding: 0 6px; }
  #tasks button.on { font-weight: bold; background: repeating-conic-gradient(var(--hi) 0 25%, var(--face) 0 50%) 0 0 / 2px 2px; }
  #tasks img { width: 16px; height: 16px; flex: none; }
  #tray { box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); display: flex; align-items: center; gap: 6px; padding: 0 8px; border-radius: var(--rb); }
  #tray button { box-shadow: none; padding: 0; background: none; display: grid; }
  #tray img { width: 16px; height: 16px; }
  #menu { position: absolute; left: 2px; bottom: var(--th); background: var(--face); box-shadow: var(--raised); border-radius: var(--rb); padding: 3px; display: flex; z-index: 9000; }
  #menu .side { width: 24px; background: linear-gradient(0deg, var(--title-a), var(--title-b)); color: var(--title-ink); font: bold 16px var(--ft); writing-mode: vertical-rl; transform: rotate(180deg); padding: 6px 2px; }
  #menu ul { list-style: none; margin: 0; padding: 0; min-width: 170px; }
  #menu li.sep { border-top: 1px solid var(--lo); border-bottom: 1px solid var(--hi); margin: 3px 0; }
  #menu button { display: flex; align-items: center; gap: 10px; width: 100%; background: none; box-shadow: none; padding: 5px 16px 5px 8px; text-align: left; }
  #menu button:hover, #menu button:focus-visible { background: var(--accent); color: var(--accent-ink); outline: none; }
  #menu img { width: 24px; height: 24px; }
  :root[data-task=top] #desk { inset: var(--th) 0 0 0; }
  :root[data-task=top] #task { top: 0; bottom: auto; border-top: 0; border-bottom: 1px solid var(--lo); }
  :root[data-task=top] #menu { top: var(--th); bottom: auto; }
  #off { position: fixed; inset: 0; z-index: 99999; background: #000; color: #ffa800; display: grid; place-items: center; text-align: center; font: 28px/1.3 "VT323", monospace; cursor: pointer; border: 0; border-radius: 0; width: 100%; }

  /* ---- small screens: windows stack in a column ---- */
  @media (max-width: 700px) {
    body { overflow: auto; }
    #desk { position: static; padding: 8px 8px calc(var(--th) + 14px); overflow: visible; }
    :root[data-task=top] #desk { padding: calc(var(--th) + 8px) 8px 14px; }
    #icons { position: static; flex-flow: row wrap; margin-bottom: 8px; }
    #banner { position: static; font-size: 10.4vw; margin: 0 0 8px; overflow: hidden; }
    .icon { width: 7.4em; }
    .win { scroll-margin-top: 10px; position: static; translate: none; width: auto !important; height: auto !important; max-height: none; margin-bottom: 10px; }
    .bar { cursor: default; }
    #task { position: fixed; }
    #tasks { display: none; }
    #tray { margin-left: auto; }
  }
  @media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

  /* ---- item buttons inside windows ---- */
  .acts { display: flex; flex-direction: column; gap: 4px; flex: none; }
  .acts > * { text-align: center; white-space: nowrap; }
  a.btn { text-decoration: none; display: inline-block; }

  /* ---- sub-pages (page.html): one window, opened full size, that scrolls with the page ---- */
  body.page { overflow: auto; }
  body.page #desk { position: static; overflow: visible; padding: 20px 12px calc(var(--th) + 26px); }
  :root[data-task=top] body.page #desk { padding: calc(var(--th) + 20px) 12px 26px; }
  body.page .win { position: static; translate: none; width: min(780px, 100%); max-width: none; max-height: none; margin: 0 auto; }
  body.page .bar { cursor: default; }
  body.page .bar a { color: inherit; text-decoration: none; display: grid; place-items: center; width: calc(var(--bh) - 4px); height: calc(var(--bh) - 6px); font-size: calc(var(--bh) * .5); }
  body.page .body { overflow: visible; padding: calc(var(--pad) * 1.5); }
  body.page #task { position: fixed; }
  body.page #task a { display: flex; align-items: center; gap: 4px; padding: 0 8px; font-weight: bold; white-space: nowrap; }
  body.page #task a img { width: 16px; height: 16px; }
  .hero { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 14px; }
  .cover { width: 220px; max-width: 100%; flex: none; margin: 0; }
  .cover .art { aspect-ratio: 1; background: var(--paper); box-shadow: var(--sunken); border-radius: var(--rb); overflow: hidden; }
  .cover .art img, .cover .art svg { width: 100%; height: 100%; display: block; object-fit: cover; }
  .cover figcaption { margin-top: 4px; font-size: calc(var(--fs) * .85); color: var(--muted); }
  .hero .info { flex: 1; min-width: min(260px, 100%); }
  .hero h1 { font: bold calc(var(--fs) * 1.9)/1.1 var(--ft); margin-bottom: 6px; }
  .hero .meta { color: var(--muted); margin-bottom: 8px; }
  .deck { margin: 12px 0; }
  .deck .transport { flex-wrap: wrap; margin: 6px 0; }
  .deck .list { max-height: 260px; margin-top: 6px; }
  .prose { font: calc(var(--fs) * 1.08)/1.65 var(--fn); max-width: 64ch; }
  .prose p + p { margin-top: .8em; }
  .prose h2 { font: bold calc(var(--fs) * 1.2) var(--ft); margin: 18px 0 6px; }
  .pager { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--lo); }
  @media (max-width: 700px) { .cover { width: 100%; } body.page #desk { padding-left: 8px; padding-right: 8px; } }
  /* Start menu on sub-pages: entries are links to the desktop's windows */
  #menu a { display: flex; align-items: center; gap: 10px; padding: 5px 16px 5px 8px; color: inherit; text-decoration: none; }
  #menu a:hover, #menu a:focus-visible { background: var(--accent); color: var(--accent-ink); outline: none; }
  body.page #menu { position: fixed; }
  body.page #tasks { display: flex; } /* the back button stays on phones too */
  /* while a sub-page is showing, the desktop's own icons, banner and windows are put away (not closed) */
  body.page #icons, body.page #banner, body.page #desk > .win:not(#pageWin), body.page #tasks > button { display: none !important; }
  /* keyboard focus: a clear ring on anything you can tab to */
  :is(button, a, input, select, textarea, [role=slider], .icon):focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
  #menu :is(button, a):focus-visible, .list > button:focus-visible { outline-offset: -2px; }
  .win:focus { outline: none; } /* windows take focus when opened; the highlighted title bar shows which one */
  /* a document shown inside a window (the résumé) */
  .doc { flex: 1; min-height: 0; width: 100%; border: 0; background: var(--paper); box-shadow: var(--sunken); border-radius: var(--rb); }
  @media (max-width: 700px) { .doc { flex: none; height: 70vh; } }
