/* Care About Something — "CAS 98": a Windows 98 desktop full of folders and drawings */

:root {
  /* palette */
  --black: #1d1d1b;
  --shell: #eae4da;
  --lav: #808bc5;
  --tea: #245e55;
  --mustard: #eac119;
  --pink: #eaa7c7;
  --tang: #ed773c;
  --sky: #9ed6df;
  --red: #c63f3e;
  --sticky: #f5e27d;
  --list: #fcecd6;

  /* Win98 chrome */
  --chrome: #d4d0c8;
  --hi: #ffffff;
  --lite: #dfdfdf;
  --shade: #808080;
  --dark: #0a0a0a;
  --out: inset -1px -1px var(--dark), inset 1px 1px var(--hi), inset -2px -2px var(--shade), inset 2px 2px var(--lite);
  --in: inset -1px -1px var(--hi), inset 1px 1px var(--shade), inset -2px -2px var(--lite), inset 2px 2px var(--dark);
  --win: inset -1px -1px var(--dark), inset 1px 1px var(--lite), inset -2px -2px var(--shade), inset 2px 2px var(--hi);

  --ui: Tahoma, Verdana, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 3vw, 40px);
  --max: 1280px;
  --taskbar: 44px;
  /* iPhone notch / Dynamic Island / home bar (0 elsewhere) */
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  text-transform: lowercase; /* house style: lowercase everything except the stamped card */
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--shell);
  color: var(--black);
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.45;
  padding-top: var(--safe-t);
  padding-bottom: calc(var(--taskbar) + var(--safe-b) + 24px);
  -webkit-font-smoothing: antialiased;
}
/* solid strip behind the iPhone status bar so content doesn't scroll under the clock/island */
html::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--safe-t);
  background: var(--shell);
  z-index: 90;
  pointer-events: none;
}
/* paper grain over the desktop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .taskbar, .start-menu, .bag, .toast, dialog { position: relative; z-index: 2; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; text-transform: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 max(var(--gutter), var(--safe-r)) 0 max(var(--gutter), var(--safe-l)); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ========== Win98 primitives ========== */

.win {
  background: var(--chrome);
  box-shadow: var(--win), 6px 6px 0 rgba(29, 29, 27, 0.18);
  padding: 3px;
  font-family: var(--ui);
  font-size: 13px;
}
.titlebar {
  --tb: var(--tea);
  --tb2: #4c9a8b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 3px 3px 6px;
  background: linear-gradient(90deg, var(--tb), var(--tb2));
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  user-select: none;
  min-height: 22px;
}
.titlebar .title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.titlebar .title svg { flex: none; }
.tb-red { --tb: var(--red); --tb2: #e2766f; }
.tb-lav { --tb: #4b56a0; --tb2: var(--lav); }
.tb-tang { --tb: #c4561e; --tb2: var(--tang); }
.tb-black { --tb: var(--black); --tb2: #57574f; }
.tb-pink { --tb: #b85d8a; --tb2: var(--pink); }
.tb-sky { --tb: #2f7f8c; --tb2: var(--sky); }
.tb-btns { display: flex; gap: 2px; }
.tb-btns button, .tb-btns span {
  width: 18px;
  height: 16px;
  display: grid;
  place-items: center;
  background: var(--chrome);
  box-shadow: var(--out);
  border: 0;
  padding: 0;
  color: var(--black);
  font: 700 11px/1 var(--ui);
  cursor: pointer;
}
.tb-btns button:active { box-shadow: var(--in); }
.tb-btns .gap { margin-left: 2px; }

.menubar { display: flex; gap: 2px; padding: 2px 2px 3px; text-transform: none; } /* real Win98 menus keep their capitals */
.menubar span { padding: 1px 7px; }
.menubar span::first-letter { text-decoration: underline; }

.btn98 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 84px;
  padding: 7px 16px;
  background: var(--chrome);
  border: 0;
  box-shadow: var(--out);
  font: 13px var(--ui);
  color: var(--black);
  text-decoration: none;
  cursor: pointer;
}
.btn98:active, .btn98[aria-pressed="true"] { box-shadow: var(--in); padding: 8px 15px 6px 17px; }
.btn98:focus-visible { outline: 1px dotted var(--black); outline-offset: -5px; }
.btn98[disabled] { color: var(--shade); text-shadow: 1px 1px var(--hi); cursor: not-allowed; }
.btn98.big { font: 700 14px var(--ui); padding: 12px 22px; }
.btn98.big:active { padding: 13px 21px 11px 23px; }
.btn98.default { box-shadow: 0 0 0 1px var(--dark), var(--out); }

.sunken { background: #fff; box-shadow: var(--in); padding: 2px; }
.field {
  background: #fff;
  box-shadow: var(--in);
  padding: 4px 6px;
  font: 13px var(--ui);
  border: 0;
  width: 100%;
}
.statusbar { display: flex; gap: 2px; margin-top: 2px; }
.statusbar span { box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--shade); padding: 2px 6px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.statusbar span:first-child { flex: 2; }

.progress {
  height: 22px;
  background: #fff;
  box-shadow: var(--in);
  padding: 3px;
  display: flex;
  gap: 2px;
  overflow: hidden;
}
.progress i { flex: none; width: 10px; background: var(--tea); }
.progress[data-anim] i { animation: blink 2.4s steps(1) infinite; }
@keyframes blink { 0% { opacity: 0; } 8% { opacity: 1; } 100% { opacity: 1; } }

/* ========== Desktop / hero ========== */

.desktop-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-top: clamp(20px, 4vw, 40px);
}
@media (min-width: 900px) {
  .desktop-top { grid-template-columns: 96px 1fr; gap: 32px; }
}

.icons {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
@media (min-width: 900px) {
  .icons { flex-direction: column; gap: 18px; overflow: visible; }
}
.icon {
  flex: none;
  width: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font: 12px var(--ui);
  text-align: center;
  padding: 4px 2px;
  cursor: pointer;
  background: none;
  border: 0;
}
.icon svg { width: 52px; height: 44px; transition: transform 0.15s; }
.icon:hover svg { transform: translateY(-2px); }
.icon span { padding: 1px 4px; }
.icon:focus-visible span, .icon:hover span { background: #1d3f8a; color: #fff; outline: 1px dotted var(--mustard); }

.hero-stage { position: relative; }
.main-win .body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: clamp(14px, 2.5vw, 28px);
  background: var(--shell);
  box-shadow: var(--in);
  margin-top: 3px;
}
@media (min-width: 900px) {
  .main-win .body { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; }
}
.poster-frame { background: #fff; box-shadow: var(--in); padding: 6px; }
.poster-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.mega {
  font-family: var(--ui);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 16px;
  font-size: clamp(32px, 9cqi, 56px);
}
.hero-copy { container-type: inline-size; min-width: 0; }
.lede { font-size: 17px; max-width: 470px; margin: 0 0 22px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* floating dialogs over the hero */
.float { position: relative; margin-top: 16px; }
@media (min-width: 1100px) {
  .float { position: absolute; margin: 0; z-index: 5; }
  .float.question { left: -40px; bottom: -70px; width: 330px; }
}
.float .titlebar { cursor: grab; }
.dialog-body { display: flex; gap: 14px; padding: 16px 12px 12px; align-items: flex-start; }
.dialog-body p { margin: 0; }
.dialog-actions { display: flex; justify-content: center; gap: 8px; padding: 4px 12px 12px; flex-wrap: wrap; }

/* ========== Sections ========== */

.section { padding-top: clamp(64px, 9vw, 120px); scroll-margin-top: 16px; }
.desk-label {
  font: 700 clamp(24px, 3vw, 32px)/1.1 var(--ui);
  margin: 0 0 16px;
}
.desk-label small { display: block; font: 400 13px var(--ui); color: #555; margin-bottom: 4px; }

/* explorer window */
.explorer .toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 6px;
  border-top: 1px solid var(--shade);
  box-shadow: inset 0 1px var(--hi);
}
.explorer .toolbar label { flex: none; }
.explorer .pane {
  background: #fff;
  box-shadow: var(--in);
  padding: clamp(14px, 2.5vw, 28px);
}

/* file-drawer index tabs (filters) */
.drawer-tabs { display: flex; flex-wrap: wrap; gap: 4px 0; margin-bottom: 26px; border-bottom: 2px solid var(--black); padding-left: 6px; }
.dtab {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 7px 26px 6px 18px;
  margin-right: -8px;
  border: 2px solid var(--black);
  border-bottom: 0;
  background: #fff;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
  font: 700 13px var(--ui);
  text-transform: lowercase;
  cursor: pointer;
  position: relative;
  border-radius: 6px 6px 0 0;
}
.dtab b { font-family: var(--ui); }
.dtab[aria-pressed="true"] { background: var(--black); color: #fff; z-index: 2; }
.dtab:hover:not([aria-pressed="true"]) { background: var(--sky); }

/* product folders */
.folders {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: clamp(28px, 3vw, 40px) clamp(18px, 2.5vw, 28px);
}
.folder {
  --c: var(--pink);
  position: relative;
  display: block;
  text-decoration: none;
  aspect-ratio: 5 / 6;
  margin-top: 22px;
  filter: drop-shadow(4px 5px 0 rgba(29, 29, 27, 0.18));
}
.folder-back {
  position: absolute;
  inset: 0;
  background: var(--c);
  border-radius: 0 8px 8px 8px;
}
.folder-back::before {
  content: "";
  position: absolute;
  left: 0;
  top: -22px;
  width: 46%;
  height: 24px;
  background: var(--c);
  border-radius: 8px 8px 0 0;
  clip-path: polygon(0 0, 82% 0, 100% 100%, 0 100%);
}
.folder-tabtext {
  position: absolute;
  top: -18px;
  left: 12px;
  font: 700 11px var(--ui);
  text-transform: lowercase;
  letter-spacing: 0.04em;
  z-index: 1;
}
.folder-paper {
  position: absolute;
  left: 9%;
  right: 9%;
  top: 7%;
  height: 70%;
  background: #fff;
  padding: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease;
  overflow: hidden;
}
.folder-paper img { width: 100%; height: 100%; object-fit: cover; }
.folder:hover .folder-paper, .folder:focus-visible .folder-paper { transform: translateY(-12%); }
.folder-front {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  background: var(--c);
  border-radius: 6px 6px 8px 8px;
  box-shadow: 0 -2px 0 rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 14px 10px;
}
.folder-title { font: 700 18px/1.15 var(--ui); margin-top: 4px; }
.folder-meta { display: flex; justify-content: space-between; gap: 8px; font: 12px var(--ui); }
.folder.is-dark .folder-front, .folder.is-dark .folder-tabtext { color: #fff; }
.folder.is-sample { cursor: default; }
.empty-note { font: 15px var(--ui); color: #333; margin: 0 0 22px; }

.info-win { max-width: 560px; }
.info-win .dialog-body { padding: 20px 16px 8px; font-size: 15px; }
.info-win .dialog-body p + p { margin-top: 10px; }

.site-foot { padding: 64px 0 8px; font: 12px var(--ui); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ========== Taskbar + start menu ========== */

.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--taskbar) + var(--safe-b));
  background: var(--chrome);
  box-shadow: inset 0 1px var(--lite), inset 0 2px var(--hi);
  display: flex;
  align-items: flex-start;
  gap: 4px;
  padding: 5px max(4px, var(--safe-r)) calc(2px + var(--safe-b)) max(4px, var(--safe-l));
  z-index: 60;
}
.start-btn {
  text-transform: none;
  font-weight: 700;
  min-width: 0;
  padding: 5px 10px;
  height: 34px;
}
.start-btn:active, .start-btn[aria-expanded="true"] { box-shadow: var(--in); }
.task-sep { width: 2px; height: 30px; box-shadow: inset 1px 0 var(--shade), inset -1px 0 var(--hi); margin: 0 2px; }
.task {
  height: 34px;
  min-width: 0;
  max-width: 190px;
  flex: 1 1 0;
  justify-content: flex-start;
  padding: 5px 10px;
  overflow: hidden;
  white-space: nowrap;
}
.task span { overflow: hidden; text-overflow: ellipsis; }
.task.hide-sm { display: none; }
@media (min-width: 700px) { .task.hide-sm { display: inline-flex; } }
.tray {
  margin-left: auto;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--shade);
  font: 13px var(--ui);
  white-space: nowrap;
}
.bag-count {
  background: var(--red);
  color: #fff;
  font: 700 11px var(--ui);
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
}
.bag-count[hidden] { display: none; }

.start-menu {
  position: fixed;
  left: max(4px, var(--safe-l));
  bottom: calc(var(--taskbar) + var(--safe-b) - 2px);
  width: 240px;
  display: none;
  z-index: 70;
}
.start-menu.open { display: flex; }
.start-band {
  width: 30px;
  background: linear-gradient(0deg, var(--tea), var(--black));
  color: #fff;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font: 900 20px var(--ui);
  padding: 10px 0;
  letter-spacing: 0.04em;
}
.start-band span { color: var(--mustard); }
.start-items { flex: 1; padding: 2px 0; }
.start-items a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  text-decoration: none;
  font-size: 14px;
}
.start-items a:hover, .start-items a:focus-visible { background: #1d3f8a; color: #fff; outline: none; }
.start-items hr { border: 0; height: 2px; box-shadow: inset 0 1px var(--shade), inset 0 -1px var(--hi); margin: 3px 4px; }

/* ========== Bag (shopping list window) ========== */

.bag {
  position: fixed;
  right: max(8px, var(--safe-r));
  bottom: calc(var(--taskbar) + var(--safe-b) + 6px);
  width: min(420px, calc(100% - 16px - var(--safe-l) - var(--safe-r)));
  max-height: calc(100vh - var(--taskbar) - 24px);
  max-height: calc(100dvh - var(--taskbar) - var(--safe-b) - var(--safe-t) - 16px);
  display: flex;
  flex-direction: column;
  z-index: 65;
  transform: translateY(30px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.18s, opacity 0.18s;
}
.bag-open .bag { transform: none; opacity: 1; pointer-events: auto; }
.list-paper {
  flex: 1;
  overflow-y: auto;
  margin-top: 3px;
  background: var(--list);
  box-shadow: var(--in);
  color: var(--red);
  padding: 14px 0 0;
}
.list-paper h2 {
  font: 700 24px/1 var(--ui);
  margin: 0 16px 12px;
}
.list-head, .line {
  display: grid;
  grid-template-columns: 34px 1fr 76px 70px;
  border-top: 1.5px solid var(--red);
  align-items: center;
}
.list-head { font: 700 12px var(--ui); letter-spacing: 0.04em; }
.list-head > *, .line > * { padding: 6px 8px; }
.list-head > *:first-child, .line > *:first-child { border-right: 1.5px solid var(--red); height: 100%; display: grid; place-items: center; }
.line { min-height: 54px; color: var(--black); font-size: 13px; }
.line .check { color: var(--red); font: 700 22px var(--ui); }
.line-item { display: flex; gap: 8px; align-items: center; min-width: 0; }
.line-item img { width: 34px; height: 42px; object-fit: cover; flex: none; }
.line-item a { text-decoration: none; font-weight: 700; display: block; }
.line-variant { color: #6b5d55; font-size: 12px; }
.qty { display: inline-flex; align-items: center; gap: 6px; }
.qty button { width: 20px; height: 20px; padding: 0; background: var(--chrome); border: 0; box-shadow: var(--out); cursor: pointer; font: 700 12px var(--ui); }
.qty button:active { box-shadow: var(--in); }
.line-price { text-align: right; font-weight: 700; }
.ruled { height: 34px; border-top: 1.5px solid var(--red); display: grid; grid-template-columns: 34px 1fr; }
.ruled::before { content: ""; border-right: 1.5px solid var(--red); }
.cart-empty { font: 14px/1.4 var(--ui); color: var(--black); padding: 14px 16px; border-top: 1.5px solid var(--red); margin: 0; }
.bag-foot { padding: 10px 6px 6px; display: grid; gap: 8px; }
.subtotal { display: flex; justify-content: space-between; font-weight: 700; font-size: 15px; }
.bag-foot small { color: #333; }
.bag-foot .btn98 { width: 100%; padding: 10px; font-weight: 700; }

/* copying toast */
.toast {
  position: fixed;
  left: 50%;
  top: 30%;
  width: min(340px, calc(100% - 32px));
  transform: translateX(-50%);
  z-index: 80;
  display: none;
}
.toast.show { display: block; }
.toast .body { padding: 14px 12px; display: grid; gap: 8px; }

/* ========== Product page ========== */

.pdp {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  padding-top: clamp(20px, 4vw, 40px);
  align-items: start;
}
@media (min-width: 900px) { .pdp { grid-template-columns: 1.1fr 1fr; } }
.pdp > * { min-width: 0; } /* long window titles must not widen the page on phones */
.gallery .sunken { margin-top: 3px; aspect-ratio: 4 / 5; display: grid; place-items: center; overflow: hidden; }
.gallery .sunken img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 6px; padding: 6px 2px 2px; flex-wrap: wrap; }
.thumbs button { width: 60px; aspect-ratio: 4/5; padding: 3px; background: #fff; border: 0; box-shadow: var(--out); cursor: pointer; }
.thumbs button[aria-current="true"] { box-shadow: var(--in); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.props-tabs { display: flex; padding: 6px 4px 0; gap: 0; }
.props-tabs button {
  background: var(--chrome);
  border: 0;
  padding: 4px 14px 5px;
  box-shadow: inset 1px 1px var(--hi), inset -1px 0 var(--dark), inset -2px 0 var(--shade);
  border-radius: 3px 3px 0 0;
  cursor: pointer;
  font: 13px var(--ui);
  position: relative;
  top: 2px;
}
.props-tabs button[aria-selected="true"] { top: 0; padding-bottom: 7px; z-index: 1; }
.props-panel { box-shadow: var(--win); padding: 18px 16px; margin: 0 2px 2px; }
.props-panel[hidden] { display: none; }
.pdp-type { font: 700 12px var(--ui); color: var(--red); }
.pdp h1 { font: 700 clamp(26px, 3.4vw, 38px)/1.1 var(--ui); margin: 6px 0 10px; }
.pdp-price { font-size: 22px; font-weight: 700; margin-bottom: 18px; }
.option { margin-bottom: 16px; }
.option fieldset { border: 0; box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--shade), inset -2px -2px var(--shade), inset 2px 2px var(--hi); padding: 14px 10px 10px; margin: 0; }
.option legend { padding: 0 4px; font-size: 13px; }
.option-values { display: flex; flex-wrap: wrap; gap: 6px; }
.option-values .btn98 { min-width: 48px; padding: 6px 10px; }
.option-values .unavailable { text-decoration: line-through; color: var(--shade); }
.pdp-desc { font-size: 15px; }
.pdp-desc p:first-child { margin-top: 0; }

/* library due-date card */
.due-card {
  background: #f8f4ea;
  margin-top: 24px;
  padding: 16px 0 0;
  box-shadow: 4px 5px 0 rgba(29, 29, 27, 0.15);
  font-family: "Times New Roman", Georgia, serif;
}
.due-card h3 { text-align: center; font-size: 22px; letter-spacing: 0.04em; margin: 0; text-transform: uppercase; }
.due-card p { text-align: center; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; margin: 2px 0 12px; }
.care-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  border-top: 1.5px solid #222;
  padding: 8px 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.care-row span { font-size: 13px; }
.care-row b { font: 700 18px var(--ui); color: var(--red); border: 2px solid var(--red); padding: 1px 10px; opacity: 0.85; }
.due-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid #222; }
.due-grid div { height: 42px; border-bottom: 1px solid #333; border-right: 1px solid #333; display: grid; place-items: center; overflow: visible; }
.due-grid div:nth-child(3n) { border-right: 0; }
.stamp {
  font: 700 15px var(--ui);
  text-transform: uppercase;
  color: var(--red);
  opacity: 0.82;
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.stamp.ink { color: #222; }
.stamp.new { animation: thunk 0.35s ease-out; }
@keyframes thunk { from { transform: scale(1.6); opacity: 0; } }

.back-link { display: inline-block; margin-top: 18px; font-size: 13px; }
.loading { padding: 80px 0; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ========== Hero photo + about ========== */

.main-win .hero-body { grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) {
  .main-win .hero-body { grid-template-columns: 1fr; }
}
.hero-photo { background: #fff; box-shadow: var(--in); padding: 4px; }
.hero-photo img { width: 100%; aspect-ratio: 2000 / 1227; object-fit: cover; }

.about-grid { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.3fr 1fr; } }
.about-side { display: grid; gap: 24px; }
.notepad .page, .about-side .page {
  background: #fff;
  box-shadow: var(--in);
  margin-top: 3px;
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.6;
}
.page p { margin: 0 0 12px; }
.page p:last-child { margin-bottom: 0; }
.page.small { font-size: 14px; }
.history { list-style: none; margin: 3px 0 0; padding: 8px 12px; background: #fff; box-shadow: var(--in); font-size: 14px; }
.history li { padding: 6px 0; border-bottom: 1px dotted var(--shade); }
.history li:last-child { border-bottom: 0; }
.history b { display: inline-block; width: 48px; }

/* ========== Phones ========== */
@media (max-width: 600px) {
  /* filter tabs: one swipeable row instead of a ragged wrap */
  .drawer-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-top: 4px; }
  .drawer-tabs::-webkit-scrollbar { display: none; }
  .dtab { flex: none; padding: 7px 20px 6px 14px; }

  /* two folders per row */
  .folders { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 12px; }
  .folder { margin-top: 18px; }
  .folder-back::before { top: -18px; height: 20px; width: 56%; }
  .folder-tabtext { top: -15px; left: 8px; font-size: 10px; }
  .folder-paper { left: 7%; right: 7%; top: 6%; height: 64%; padding: 4px; }
  .folder-front { height: 44%; padding: 8px 9px; }
  .folder-title { font-size: 14px; }
  .folder-meta { font-size: 11px; }
  .explorer .pane { padding: 14px 12px 18px; }
}
.cart-note { margin: 0; padding: 8px 12px; border-top: 1.5px solid var(--red); background: #fff6c9; color: var(--black); font-size: 13px; }
.caps { text-transform: uppercase; }

/* =====================================================================
   Home screen: blurred photo, a glass lens that shows it sharp, floating
   goods you can drag, and a spring that opens it into the desktop (and back)
   ===================================================================== */
:root { --ease-glass: cubic-bezier(.22, .9, .2, 1); }
html.no-boot .boot, .boot[hidden] { display: none; }
html.booting, html.booting body { overflow: hidden; }

.skip-link {
  position: fixed; z-index: 400;
  top: calc(var(--safe-t) + 10px); left: 50%;
  transform: translate(-50%, -160%);
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--black); color: #fff;
  font: 13px var(--ui);
  text-decoration: none;
  transition: transform .25s var(--ease-glass);
}
.skip-link:focus-visible { transform: translate(-50%, 0); outline: 2px solid var(--mustard); outline-offset: 2px; }

.boot {
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow: hidden;
  color: #f4f1ea;
  text-transform: lowercase;
  background: #1d1d1b;
}
.boot :focus-visible { outline: 2px solid var(--mustard); outline-offset: 2px; }

/* stacking, back to front: photo → goods → frosted glass (with a clear lens) → menu + buttons */
.boot-stage { position: absolute; inset: 0; touch-action: none; }
.boot-photo {
  position: absolute; inset: -3%; z-index: 0;
  background: #1d1d1b url(/assets/photos/bike-hero.jpg) 62% center / cover no-repeat;
  transform: scale(1.06);
  transition: transform 1.6s var(--ease-glass);
}
.boot.is-in .boot-photo { transform: scale(1); }
.boot-frost {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  -webkit-backdrop-filter: blur(11px) saturate(1.3) brightness(.66);
  backdrop-filter: blur(11px) saturate(1.3) brightness(.66);
  /* the lens: a soft-edged hole in the glass that follows the pointer */
  -webkit-mask-image: radial-gradient(circle var(--lr, 0px) at var(--lx, 62%) var(--ly, 50%), transparent 55%, rgba(0,0,0,.5) 78%, #000 100%);
  mask-image: radial-gradient(circle var(--lr, 0px) at var(--lx, 62%) var(--ly, 50%), transparent 55%, rgba(0,0,0,.5) 78%, #000 100%);
}

/* brand-color light drifting over the frosted photo */
.boot-glow { position: absolute; inset: 0; mix-blend-mode: soft-light; pointer-events: none; overflow: hidden; }
.boot-glow i {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  filter: blur(40px); opacity: .45;
  animation: glowDrift 22s ease-in-out infinite alternate;
}
.boot-glow i:nth-child(1) { background: var(--pink); left: -20vmax; top: -24vmax; }
.boot-glow i:nth-child(2) { background: var(--sky); right: -24vmax; top: 10vh; animation-delay: -6s; }
.boot-glow i:nth-child(3) { background: var(--mustard); left: 10vw; bottom: -34vmax; animation-delay: -11s; }
.boot-glow i:nth-child(4) { background: var(--lav); right: -10vmax; bottom: -30vmax; animation-delay: -16s; }
@keyframes glowDrift { to { transform: translate(8vmax, 6vmax) scale(1.15); } }

.boot-panel {
  position: absolute;
  top: calc(var(--safe-t) + 18px);
  z-index: 4;
  left: calc(var(--safe-l) + 18px);
  width: var(--w, 0px);
  height: var(--h, 0px);
  overflow: hidden;
  border-radius: 8px;
  background: rgba(24, 24, 22, .5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px rgba(255, 255, 255, .2), inset 0 0 0 1px rgba(0, 0, 0, .25), 0 20px 60px rgba(0, 0, 0, .35);
  opacity: 0;
  transform: translateY(-6px) scale(.97);
  transform-origin: top left;
  transition:
    width .56s var(--ease-glass), height .56s var(--ease-glass),
    opacity .4s ease, transform .5s var(--ease-glass),
    top .7s var(--ease-glass), left .7s var(--ease-glass),
    border-radius .7s var(--ease-glass), background-color .7s ease;
}
.boot.is-in .boot-panel { opacity: 1; transform: none; }

.boot-inner {
  display: grid;
  grid-template-columns: 204px 150px 300px;
  grid-template-rows: 36px 300px;
  width: 654px;
  transition: opacity .25s ease;
}
.boot-brand {
  grid-column: 1; grid-row: 1;
  display: flex; align-items: center; gap: 8px;
  padding: 0 10px 0 11px;
  color: inherit; text-decoration: none;
  font: 700 13px var(--ui);
  white-space: nowrap;
}
.boot-brand svg { flex: none; }
.boot-toggle {
  grid-column: 2; grid-row: 1;
  align-self: center; justify-self: start;
  display: flex; align-items: center; justify-content: center;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: width .45s var(--ease-glass), padding .45s var(--ease-glass), background-color .2s;
  border: 0;
  border-radius: 4px;
  color: inherit;
  font: 13px var(--ui);
  background: rgba(255, 255, 255, .09);
  /* a Win98 bevel, in glass */
  box-shadow: inset 1px 1px rgba(255, 255, 255, .28), inset -1px -1px rgba(0, 0, 0, .45);
  cursor: pointer;
}
.boot-toggle:active { box-shadow: inset -1px -1px rgba(255, 255, 255, .28), inset 1px 1px rgba(0, 0, 0, .45); }
.boot-toggle-label { max-width: 0; opacity: 0; overflow: hidden; transition: max-width .45s var(--ease-glass), opacity .25s ease; }
.boot-toggle-icon { display: inline-block; font-size: 15px; line-height: 1; transition: transform .4s var(--ease-glass); }
/* step one of opening: the little + stretches into "menu ×" */
.boot:not([data-state="pill"]) .boot-toggle { width: 100%; justify-content: space-between; padding: 0 9px; }
.boot:not([data-state="pill"]) .boot-toggle-label { max-width: 80px; opacity: 1; transition-delay: 0s, .12s; }
.boot-toggle:hover { background-color: rgba(255, 255, 255, .16); }
.boot:not([data-state="pill"]) .boot-toggle-icon { transform: rotate(45deg); }

.boot-menu {
  grid-column: 2; grid-row: 2;
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 10px 14px;
}
.boot-menu a {
  color: rgba(244, 241, 234, .22);
  text-decoration: none;
  font: 15px/1.55 var(--ui);
  opacity: 0;
  transform: translateY(-4px);
  transition: color .5s ease, opacity .35s ease, transform .45s var(--ease-glass);
  transition-delay: 0s;
}
.boot-menu a:hover, .boot-menu a:focus-visible { color: #fff; }
.boot[data-state="menu"] .boot-menu a, .boot[data-state="full"] .boot-menu a {
  opacity: 1; transform: none;
  color: rgba(244, 241, 234, .92);
  transition-delay: calc(var(--i) * 45ms + 60ms);
}
.boot[data-state="full"] .boot-menu:has(a:hover, a:focus-visible) a { color: rgba(244, 241, 234, .38); transition-delay: 0s; transition-duration: .2s; }
.boot[data-state="full"] .boot-menu a:hover, .boot[data-state="full"] .boot-menu a:focus-visible { color: #fff; }
.boot-menu-foot a { color: rgba(244, 241, 234, .22); }
.boot[data-state="menu"] .boot-menu-foot a, .boot[data-state="full"] .boot-menu-foot a { color: rgba(244, 241, 234, .55); }
.boot-menu-foot { margin-top: auto; display: flex; flex-direction: column; }
.boot-menu-foot a { font-size: 12px; line-height: 1.6; }

.boot-preview {
  grid-column: 3; grid-row: 1 / 3;
  position: relative;
  margin: 6px 6px 6px 0;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(0, 0, 0, .25);
  box-shadow: inset 1px 1px rgba(0, 0, 0, .5), inset -1px -1px rgba(255, 255, 255, .12);
  opacity: 0;
  transition: opacity .4s ease .1s;
}
.boot[data-state="full"] .boot-preview { opacity: 1; }
.pv {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 14px;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity .35s ease, transform .6s var(--ease-glass);
}
.pv.on { opacity: 1; transform: none; }
.pv img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: inset(100% 0 0 0);
  transition: clip-path .7s var(--ease-glass);
}
.pv.on img { clip-path: inset(0 0 0 0); }
.pv .w { display: inline-block; opacity: 0; transform: translateY(4px); transition: opacity .3s ease, transform .4s var(--ease-glass); }
.pv.on .w { opacity: 1; transform: none; transition-delay: calc(var(--wi) * 45ms + 200ms); }
.pv:has(img)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6), transparent 55%); }
.pv small { position: relative; z-index: 1; margin-top: auto; font: 12px/1.4 var(--ui); color: rgba(244,241,234,.8); }
.pv small b { display: block; color: #fff; font-size: 13px; }
.pv-word { position: relative; z-index: 1; font: 700 34px/1.02 var(--ui); letter-spacing: -.01em; }
.pv-word sup { font-size: .45em; font-weight: 400; vertical-align: top; }
.pv-word.big { font-size: 84px; }
.pv-word.small { font-size: 26px; }


/* the open button + hint */
.boot-cta {
  position: absolute; z-index: 4;
  left: 0; right: 0;
  bottom: calc(var(--safe-b) + 26px);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  pointer-events: none;
  opacity: 0; transform: translateY(10px);
  transition: opacity .6s ease .9s, transform .8s var(--ease-glass) .9s;
}
.boot.is-in .boot-cta { opacity: 1; transform: none; }
.boot-open {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  color: #fff;
  font: 700 14px var(--ui);
  text-transform: lowercase;
  background: rgba(24, 24, 22, .42);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: inset 0 1px rgba(255, 255, 255, .28), inset 0 -1px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .3);
  cursor: pointer;
  transition: transform .35s var(--ease-glass), background-color .2s;
}
.boot-open:hover { background-color: rgba(24, 24, 22, .6); transform: scale(1.04); }
.boot-open:active { transform: scale(.97); }
.boot-hint {
  margin: 0;
  padding: 0 16px;
  text-align: center;
  font: 12px var(--ui);
  color: rgba(244, 241, 234, .82);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}

/* floating goods: die-cut stickers you can pick up and throw */
.floaters { position: absolute; inset: 0; z-index: 1; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.floater {
  position: absolute; left: 0; top: 0;
  width: var(--fw); height: var(--fh);
  pointer-events: none;
  will-change: transform;
}
.floater-grab {
  position: absolute; inset: 0;
  margin: 0; padding: 0; border: 0;
  background: none;
  cursor: grab;
  touch-action: none;
  pointer-events: auto;
  border-radius: 14px;
  opacity: 0;
  transform: translateY(40px) scale(.8);
  transition: opacity .6s ease, transform .9s var(--ease-glass);
  transition-delay: calc(var(--i) * 70ms + 500ms);
}
.boot.is-in .floater-grab { opacity: 1; transform: none; }
.floater-grab::before {
  /* a soft pool of brand color under each piece */
  content: ""; position: absolute; inset: 12%;
  border-radius: 50%;
  background: var(--c);
  filter: blur(26px);
  opacity: .55;
  transition: opacity .3s, transform .4s var(--ease-glass);
}
.floater-grab img {
  position: relative;
  display: block; width: 100%; height: 100%;
  object-fit: contain;
  -webkit-user-drag: none; user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .35));
  transform: scale(var(--s, 1)) rotate(var(--rot, 0deg));
  transition: transform .45s cubic-bezier(.3, 1.5, .5, 1);
}
.floater.held .floater-grab { cursor: grabbing; }
.floater.held .floater-grab img { --s: 1.08; transition-duration: .25s; }
.floater.held .floater-grab::before { opacity: .85; transform: scale(1.15); }
.floater-tag {
  position: absolute; left: 0; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  white-space: nowrap;
  border-radius: 7px;
  color: #fff; text-decoration: none;
  font: 12px var(--ui);
  background: rgba(24, 24, 22, .55);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: inset 0 1px rgba(255, 255, 255, .22), 0 8px 20px rgba(0, 0, 0, .25);
  opacity: 0;
  translate: 0 -4px;
  transition: opacity .2s, translate .3s var(--ease-glass);
  pointer-events: none;
}
.floater-tag b { font-weight: 700; }
.floater-tag em { font-style: normal; color: var(--c, var(--mustard)); }
.floater-tag.on { opacity: 1; translate: 0 0; pointer-events: auto; }

/* the sheet that grows out of the button into the desktop (and folds back) */
.boot-sheet {
  position: absolute; inset: 0; z-index: 6;
  visibility: hidden;
  background:
    radial-gradient(55vmax 45vmax at 8% 6%, rgba(128, 139, 197, .30), transparent 62%),
    radial-gradient(45vmax 40vmax at 96% 22%, rgba(234, 167, 199, .30), transparent 60%),
    radial-gradient(50vmax 45vmax at 22% 92%, rgba(158, 214, 223, .32), transparent 62%),
    radial-gradient(40vmax 36vmax at 88% 88%, rgba(234, 193, 25, .18), transparent 60%),
    var(--shell);
  will-change: clip-path;
}
.boot.is-moving .boot-sheet { visibility: visible; }

/* desktop windows float in after opening, and tuck away before condensing */
@keyframes winIn { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@keyframes winOut { to { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes taskIn { from { transform: translateY(100%); } }
html.boot-reveal main .icon,
html.boot-reveal main .win,
html.boot-reveal main .desk-label { animation: winIn .7s var(--ease-glass) both; animation-delay: calc(var(--d, 0) * 70ms + 60ms); }
html.boot-reveal .taskbar { animation: taskIn .55s var(--ease-glass) both .25s; }
html.boot-hide main .icon,
html.boot-hide main .win,
html.boot-hide main .desk-label { animation: winOut .32s ease-in both; animation-delay: calc(var(--d, 0) * 25ms); }
html.boot-hide .taskbar { animation: taskIn .3s ease-in reverse both; }

/* home screen buttons in the desktop */
.task-home { flex: 0 1 auto; }
.task-home span { display: none; }
@media (min-width: 900px) { .task-home span { display: inline; } }
.start-items .start-home {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 8px 12px; border: 0; background: none;
  font: 14px var(--ui); color: inherit; text-align: left; text-decoration: none; cursor: pointer;
}
.start-items .start-home svg { width: 28px; }
.start-items .start-home:hover, .start-items .start-home:focus-visible { background: #1d3f8a; color: #fff; outline: none; }

@media (max-width: 600px) {
  .boot-inner { grid-template-columns: 196px 124px; grid-template-rows: 36px 250px 220px; width: 320px; }
  .boot-brand { font-size: 12px; }
  .boot-preview { grid-column: 1 / 3; grid-row: 3; margin: 0 6px 6px; }
  .pv-word { font-size: 28px; }
  .pv-word.big { font-size: 68px; }
  .boot-hint { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .boot, .boot * { transition-duration: .01s !important; transition-delay: 0s !important; }
  .boot-glow i { animation: none; }
  html.boot-reveal *, html.boot-hide * { animation-duration: .01s !important; animation-delay: 0s !important; }
}

/* =====================================================================
   Glass layer: Win98 chrome rendered as frosted glass over soft color light
   ===================================================================== */
body {
  background:
    radial-gradient(55vmax 45vmax at 8% 6%, rgba(128, 139, 197, .30), transparent 62%),
    radial-gradient(45vmax 40vmax at 96% 22%, rgba(234, 167, 199, .30), transparent 60%),
    radial-gradient(50vmax 45vmax at 22% 92%, rgba(158, 214, 223, .32), transparent 62%),
    radial-gradient(40vmax 36vmax at 88% 88%, rgba(234, 193, 25, .18), transparent 60%),
    var(--shell);
  background-attachment: fixed;
}
.win {
  background: rgba(214, 210, 202, .6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: var(--win), 0 0 0 1px rgba(255, 255, 255, .28), 0 14px 40px rgba(29, 29, 27, .14);
}
.titlebar {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .06) 52%, rgba(255, 255, 255, 0) 53%),
    linear-gradient(90deg, var(--tb), var(--tb2));
  box-shadow: inset 0 1px rgba(255, 255, 255, .4);
}
.tb-btns button, .tb-btns span, .btn98 {
  background-color: rgba(222, 218, 210, .78);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 60%);
}
.main-win .body { background: rgba(234, 228, 218, .5); }
.explorer .pane { background: rgba(255, 255, 255, .7); }
.notepad .page, .about-side .page, .history { background: rgba(255, 255, 255, .78); }
.poster-frame, .hero-photo { background: rgba(255, 255, 255, .6); }
.taskbar {
  background: rgba(212, 208, 200, .7);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: inset 0 1px rgba(255, 255, 255, .7), 0 -6px 24px rgba(29, 29, 27, .08);
}
html::after { background: rgba(234, 228, 218, .85); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
/* the shopping list stays solid paper so it reads clearly */
.list-paper { background: var(--list); }

/* =====================================================================
   Desktop: the whole homepage is one computer screen. Everything opens as
   a window on it; the taskbar sits on the bottom edge.
   ===================================================================== */
body[data-page="home"] { height: 100vh; height: 100dvh; overflow: hidden; }
.desk { position: fixed; inset: 0; z-index: 2; overflow: hidden; }

/* the monitor: care_about_something.exe, nearly the whole window */
.monitor {
  position: absolute;
  inset: calc(var(--safe-t) + 14px) calc(var(--safe-r) + 14px) calc(var(--safe-b) + 14px) calc(var(--safe-l) + 14px);
  display: flex; flex-direction: column;
  margin: 0;
  transition: inset .32s var(--ease-glass);
}
.monitor.is-full { inset: 0; }
.monitor > .titlebar { flex: none; }
.monitor > .menubar { flex: none; }
.screen {
  position: relative;
  flex: 1 1 auto; min-height: 0;
  overflow: hidden;
  margin: 0 2px;
  box-shadow: var(--in);
  background: #1d1d1b url(/assets/photos/bike-hero.jpg) 62% center / cover no-repeat;
}
/* taskbar, Start menu and bag sit inside the monitor */
.monitor .taskbar {
  position: relative; left: auto; right: auto; bottom: auto;
  flex: none;
  height: var(--taskbar);
  padding: 5px 4px 2px;
  z-index: 60;
}
.monitor .start-menu { position: absolute; left: 4px; bottom: calc(var(--taskbar) - 2px); }
.monitor .bag {
  position: absolute; right: 8px; bottom: calc(var(--taskbar) + 6px);
  width: min(420px, calc(100% - 16px));
  max-height: calc(100% - var(--taskbar) - 70px);
}
.desk .icons {
  position: absolute; top: 12px; left: 8px; bottom: 8px;
  display: grid; grid-auto-flow: column;
  grid-template-rows: repeat(auto-fill, 88px); grid-auto-columns: 96px;
  gap: 2px 4px; align-content: start;
  overflow: visible;
  padding: 0;
}
.desk .icon { width: 96px; gap: 4px; padding: 6px 2px; }
/* icons on the wallpaper: white labels like a real desktop */
.desk .icon span { color: #fff; line-height: 1.25; overflow-wrap: break-word; text-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 0 6px rgba(0, 0, 0, .55); }
.desk .icon svg { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)); }

/* windows */
.app {
  position: absolute; left: 0; top: 0;
  display: flex; flex-direction: column;
  margin: 0;
  min-width: min(280px, 100%);
  max-width: 100%; max-height: 100%;
}
.app[hidden] { display: none; }
.app .titlebar { flex: none; user-select: none; touch-action: none; }
.app .titlebar .title:focus { outline: none; }
.app .titlebar .title:focus-visible { outline: 1px dotted #fff; outline-offset: 1px; }
@media (min-width: 700px) {
  .app .titlebar { cursor: grab; }
  .app.is-dragging .titlebar { cursor: grabbing; }
  .app.is-dragging { opacity: .96; }
}
.app-body { flex: 1 1 auto; min-height: 0; overflow: auto; }
.app.is-max { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; }
/* windows that aren't in front get Win98's faded title bar */
.app:not(.is-active) .titlebar { filter: saturate(.2) brightness(1.25); }
.app.float { position: absolute; margin: 0; }
.app.question { width: 300px; bottom: auto; }
.tb-btns button { font: 700 12px var(--ui); color: var(--black); cursor: pointer; }

/* menu bars that do something */
.menubar button {
  appearance: none; border: 0; background: none;
  padding: 2px 8px; font: 13px var(--ui); color: var(--black);
  cursor: pointer;
}
.menubar button:hover, .menubar button:focus-visible { background: #1d3f8a; color: #fff; outline: none; }

/* main window: photo and words side by side when there's room */
.main-win .app-body { margin-top: 3px; }
@media (min-width: 900px) {
  .main-win .hero-body { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; }
}
.main-win .mega { font-size: clamp(30px, 11cqi, 52px); }

/* shop */
.app.explorer .pane { flex: 1 1 auto; min-height: 0; overflow: auto; }
.app.explorer .statusbar { flex: none; }

/* about.txt */
.about-body { display: grid; gap: 14px; padding: 3px; grid-template-columns: 1fr; align-content: stretch; min-height: 100%; }
@media (min-width: 760px) { .about-win .about-body { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.about-body > .page { background: #fff; box-shadow: var(--in); padding: 16px 18px; font-size: 15px; line-height: 1.6; }
.about-side { gap: 6px; align-content: start; }
.side-label { margin: 6px 0 0; font: 700 12px var(--ui); color: #444; }
.about-side .page, .about-side .history { margin-top: 0; }

/* giving back + help dialogs */
.info-win { max-width: none; }
.info-win .dialog-body { padding: 18px 16px 6px; }
.help-win a { color: #1d3f8a; }
.fineprint { font-size: 12px; color: #555; }

/* my files */
.file-grid { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; }
.file-grid .icon span { color: var(--black); overflow-wrap: anywhere; }
.file-thumb { width: 52px; height: 44px; display: grid; place-items: center; background: #fff; box-shadow: var(--in); padding: 2px; }
.file-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.files-win .toolbar .btn98 { min-width: 0; padding: 3px 10px; }

/* an opened file */
.doc-body { margin-top: 3px; }
.doc-text { min-height: 100%; background: #fff; box-shadow: var(--in); padding: 16px 18px; font: 15px/1.6 var(--ui); white-space: pre-wrap; }
.doc-win.is-picture .doc-body { position: relative; overflow: hidden; background: #1d1d1b; box-shadow: var(--in); }
.doc-win.is-picture .doc-body img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: contain; }

/* gallery */
.gallery-body { display: flex; flex-direction: column; gap: 6px; padding-top: 3px; overflow: hidden; }
.gallery-stage { flex: 1 1 auto; min-height: 0; margin: 0; position: relative; display: grid; place-items: center; background: #1d1d1b; box-shadow: var(--in); cursor: pointer; }
.gallery-stage { overflow: hidden; }
.gallery-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.gallery-stage figcaption { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; background: rgba(29, 29, 27, .7); color: #fff; font-size: 12px; }
.gallery-stage figcaption:empty { display: none; }
.gallery-bar { flex: none; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 13px; }
.gallery-bar .btn98 { min-width: 44px; padding: 4px 12px; }
.gallery-thumbs { flex: none; display: flex; gap: 4px; overflow-x: auto; padding: 3px; background: #fff; box-shadow: var(--in); scrollbar-width: thin; }
.gallery-thumbs button { flex: none; width: 64px; height: 52px; padding: 2px; border: 0; background: none; cursor: pointer; }
.gallery-thumbs button[aria-current="true"] { outline: 2px solid #1d3f8a; outline-offset: -2px; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* taskbar: one button per open window */
.tasks { flex: 1 1 auto; min-width: 0; display: flex; gap: 4px; overflow: hidden; }
.tasks .task { flex: 0 1 170px; }
.tasks .task.is-on { box-shadow: var(--in); background-color: rgba(255, 255, 255, .55); font-weight: 700; }
.task-bag { flex: 0 0 auto; }

/* phones: windows fill the screen and stack; icons sit in a grid */
@media (max-width: 699px) {
  .monitor { inset: var(--safe-t) var(--safe-r) 0 var(--safe-l); }
  .monitor .taskbar { height: calc(var(--taskbar) + var(--safe-b)); padding-bottom: calc(2px + var(--safe-b)); }
  .monitor .start-menu { bottom: calc(var(--taskbar) + var(--safe-b) - 2px); }
  .monitor .bag { bottom: calc(var(--taskbar) + var(--safe-b) + 6px); max-height: calc(100% - var(--taskbar) - var(--safe-b) - 50px); }
  .desk .icons { right: 8px; bottom: auto; grid-auto-flow: row; grid-template-rows: none; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
  .desk .icon { width: auto; }
  .app, .app.question { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; }
  .app.question, .app.info-win { height: auto !important; top: auto !important; bottom: 0; }
  .tasks .task span { display: none; }
  .tasks .task { flex: 0 0 auto; padding: 5px 8px; }
}
/* windows over the wallpaper: frosted, but solid enough to read */
.screen .win { background: rgba(214, 210, 202, .9); }
.screen .app:not(.is-active) .titlebar { filter: saturate(.25) brightness(1.1); }

/* =====================================================================
   Type + motion, after Satisfy: a heavy, tight grotesk for names and
   headings, a spaced-out mono for prices and small details, quick
   ease-out motion, fade-ups and typed titles.
   ===================================================================== */
:root {
  --ui: "Inter Tight", Tahoma, Verdana, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease-out: cubic-bezier(.215, .61, .355, 1);
}
body { letter-spacing: .005em; -webkit-font-smoothing: antialiased; }

/* names + headings: heavy and tight */
.mega, .folder-title, .pv-word, .boot-brand, .list-paper h2, .pdp h1, .desk-label,
.info-win .dialog-body b, .help-win b, .props-panel h1, .props-panel h2 {
  font-weight: 900; letter-spacing: -.015em;
}
.titlebar .title { font-weight: 800; letter-spacing: .01em; }
.boot-menu a { font-weight: 500; letter-spacing: -.005em; }
.btn98, .menubar button, .start-btn { font-family: var(--ui); }
.btn98.default, .btn98.big { font-weight: 800; }

/* the small stuff in mono, a little spaced out */
.folder-meta, .folder-tabtext, .statusbar, .field, .tray, .boot-hint, .pv small, .floater-tag,
.history b, .line-price, .line-variant, .subtotal, .pdp-price, .pdp-type, .side-label, .fineprint,
.gallery-bar, .gallery-stage figcaption, .boot-menu-foot a, .dtab, .boot-toggle-label, .due-card,
.cart-note, .bag-foot small, .list-head, .bag-count, .task-home span {
  font-family: var(--mono);
  letter-spacing: .04em;
}
.statusbar, .dtab, .field { font-size: 12px; }
.folder-meta { font-size: 11.5px; }
.pv small b { font-family: var(--ui); font-weight: 900; letter-spacing: -.01em; }
.floater-tag b { font-family: var(--ui); font-weight: 800; letter-spacing: 0; }

/* links: an underline that thickens on hover */
.help-win a, .pdp-desc a, .line-item a, .boot-menu a {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-thickness .2s var(--ease-out), text-decoration-color .2s var(--ease-out), color .2s var(--ease-out);
}
.boot-menu a { text-decoration-color: transparent; }
.help-win a:hover, .pdp-desc a:hover, .line-item a:hover, .boot-menu a:hover, .boot-menu a:focus-visible {
  text-decoration-thickness: 2.5px; text-decoration-color: currentColor;
}

/* things inside a window fade up into place as it opens */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
.app.is-revealing .folders > *, .app.is-revealing .file-grid > *, .app.is-revealing .gallery-thumbs > *,
.app.is-revealing .about-body > *, .app.is-revealing .dialog-body > *, .app.is-revealing .drawer-tabs {
  animation: fadeUp .5s var(--ease-out) both;
  animation-delay: calc(var(--n, 0) * 45ms + 90ms);
}
/* a typed title: a block cursor while it types */
.titlebar .title.is-typing::after { content: ""; display: inline-block; width: .55em; height: 1em; margin-left: 1px; background: currentColor; vertical-align: -2px; animation: caret .7s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .app.is-revealing * { animation: none !important; }
}
/* the CAS logo, small: in title bars, Start, the home screen pill */
.cas-logo { flex: none; display: inline-block; object-fit: contain; vertical-align: middle; }
.start-btn .cas-logo { height: 20px; width: auto; }

/* the moving wallpaper behind the desktop: pieces → light frost with a lens → icons → windows */
.scene-floaters { position: absolute; inset: 0; z-index: 1; margin: 0; padding: 0; list-style: none; pointer-events: none; overflow: hidden; }
.screen.scene-in .floater-grab { opacity: 1; transform: none; }
.scene-frost {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  -webkit-backdrop-filter: blur(6px) saturate(1.2) brightness(.84);
  backdrop-filter: blur(6px) saturate(1.2) brightness(.84);
  -webkit-mask-image: radial-gradient(circle var(--lr, 0px) at var(--lx, 62%) var(--ly, 50%), transparent 55%, rgba(0,0,0,.5) 78%, #000 100%);
  mask-image: radial-gradient(circle var(--lr, 0px) at var(--lx, 62%) var(--ly, 50%), transparent 55%, rgba(0,0,0,.5) 78%, #000 100%);
}
.screen > .icons { z-index: 3; }
.screen .scene-tag { z-index: 5; }
