/* Shared base for the standalone apps (Wall, Property): fonts, palette, menubar, reset. Greyscale only. */
/* Titles, menus, clock: Jersey 10 (OFL). One weight; size-adjust matches the old Pixelify cap height, so sizes stay put. */
@font-face { font-family: "Jersey 10"; src: url("/assets/fonts/jersey-10.woff2") format("woff2"); font-weight: 400; font-display: swap; size-adjust: 130%; 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: "Jersey 10"; src: url("/assets/fonts/jersey-10-ext.woff2") format("woff2"); font-weight: 400; font-display: swap; size-adjust: 130%; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "VT323"; src: url("/assets/fonts/vt323.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ink: #101010; --ink-2: #424242; --line: #313131; --bg: #efefef; --card: #fff; --soft: #e6e6e6;
  --menu-h: 39px;
  --font-ui: "Jersey 10", "Chicago", "Geneva", system-ui, sans-serif;
  --font-lcd: "VT323", "Monaco", ui-monospace, monospace;
  --font-body: "Geneva", "Verdana", "Tahoma", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-synthesis-weight: none; scroll-padding-top: var(--menu-h); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; }
h1, p { margin: 0; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px #fff; border-radius: 4px; }
.skip-link { position: fixed; left: 8px; top: -60px; z-index: 1000; padding: 8px 14px; background: var(--ink); color: #fff; font: 16px var(--font-ui); text-decoration: none; border-radius: 4px; }
.skip-link:focus { top: calc(var(--menu-h) + 8px); }

/* ------------------------------------------------------------ menubar */
.menubar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 15px;
  height: var(--menu-h); padding: 0 15px;
  background: #f7f7f7; border-bottom: 1px solid var(--ink);
  font: 600 22.5px/1 var(--font-ui); user-select: none;
}
.menubar__home { display: grid; place-items: center; flex: none; width: 39px; height: 100%; }
.menubar__home img { width: 24px; height: 24px; image-rendering: pixelated; }   /* the hand-drawn 24px WW, 1:1 */
.menubar__app img { width: 24px; height: 24px; image-rendering: pixelated; }
.menubar__home:hover { background: var(--ink); }
.menubar__home:hover img { filter: invert(1); }
/* Apps menu (js/menubar.js builds it next to the logo) */
.menus { display: flex; align-items: center; height: 100%; flex: none; margin-left: -15px; }
.menu { position: relative; height: 100%; }
.menu__trigger {
  height: 100%; padding: 0 15px; border: 0; background: none; color: var(--ink); cursor: default;
  font: 600 22.5px/1 var(--font-ui);
}
.menu__trigger[aria-expanded="true"], .menu__trigger:hover { background: var(--ink); color: #fff; }
.menu__list {
  position: absolute; top: 100%; left: 0; z-index: 60; min-width: 315px; margin: 0; padding: 4.5px 0; list-style: none;
  background: #dedede; border: 1px solid var(--ink); box-shadow: 2px 2px 0 rgba(0, 0, 0, .14);
}
.menu__list[hidden] { display: none; }
.menu__list a {
  display: block; padding: 7.5px 24px; color: var(--ink); text-decoration: none;
  font: 500 22.5px/1.2 var(--font-ui); cursor: default; white-space: nowrap;
}
.menu__list a:hover, .menu__list a:focus-visible { background: var(--ink); color: #fff; outline: none; box-shadow: none; border-radius: 0; }
.menu__list a[aria-current="page"] { font-weight: 700; }
/* Apps menu: each app's pixel icon before its name (WW for Home); white on the black hover row */
.menu__list a.menu__app { display: flex; justify-content: flex-start; align-items: center; gap: 12px; padding-left: 18px; }
.menu__ic { flex: none; width: 24px; height: 24px; image-rendering: pixelated; }
.menu__list a.menu__app:hover .menu__ic, .menu__list a.menu__app:focus-visible .menu__ic { filter: invert(1); }
.menu__sep { height: 1px; margin: 6px 1px; background: #8c8c8c; box-shadow: 0 1px 0 #fff; }
.menu__list .is-app-off { display: none; }
.menubar__back { padding: 0 15px 0 3px; white-space: nowrap; color: inherit; text-decoration: none; }
.menubar__back:hover { text-decoration: underline; }
.menubar__app { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 700; white-space: nowrap; line-height: 1.4; }
.menubar__app > img { display: inline-block; margin-right: 3px; vertical-align: -3px; }   /* long names end in … on small phones */
.menubar__clock { flex: none; }
.menubar__count { margin-left: auto; font: 25.5px/1 var(--font-lcd); color: var(--ink-2); white-space: nowrap; }
.menubar__clock { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.menubar__count ~ .menubar__clock { margin-left: 0; }

.app-main { max-width: 760px; margin: 0 auto; padding: 18px 12px 56px; }
.box { background: var(--card); border: 1.5px solid var(--line); border-radius: 10px; }
@media (max-width: 560px) {
  :root { --menu-h: 42px; }
  .menubar { gap: 9px; padding: 0 9px; }
  .menubar__back { padding: 0 3px; font-size: 0; }                  /* "‹ Willy Reads" etc. becomes just "‹" on phones */
  .menubar__back::before { content: "‹"; font-size: 30px; }
  .menus { margin-left: -7px; }
  .menu__trigger { padding: 0 9px; }
  .menu__list { min-width: 0; width: calc(100vw - 24px); max-width: 315px; }
}
/* count on phones: one line, always. Below 420px just the number in a pill; below 360px the title and clock shrink a
   little and the count goes (the page shows its own counts). */
.menubar__n { font-weight: 400; }
@media (max-width: 440px) { .menubar__count { font-size: 21px; } }
@media (max-width: 419px) {
  .menubar__unit { display: none; }
  .menubar__n { display: inline-block; min-width: 1.6em; padding: 2px 6px 1px; border: 1.5px solid var(--ink-2); border-radius: 999px; font-size: 19px; line-height: 1; text-align: center; }
}
@media (max-width: 359px) {
  .menubar { gap: 7px; padding: 0 7px; }
  .menubar__app { font-size: 19.5px; }
  .menubar__clock { font-size: 19.5px; }
  .menubar__count { display: none; }
  .menubar__count ~ .menubar__clock { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; }
}
