:root {
  --ink: #14121f;
  --paper: #fffdf6;
  --pink: #ff8fb5;
  --pink-deep: #e84a86;
  --blue: #2a6fe0;
  --red: #e5383b;
  --yellow: #ffd23f;
  --green: #3fb950;
  --night: #16224f;
  --mono: "Space Mono", ui-monospace, Consolas, monospace;
  --display: "Lilita One", "Arial Black", sans-serif;
  --body: Inter, system-ui, sans-serif;
  --bar-h: 58px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--night);
  padding-bottom: var(--bar-h);
  overflow-x: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2, p { margin: 0; }

.wallpaper {
  position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(#1b2f7a, #2b4fb8 55%, #1d5a2c 55%, #123b1c) ;
  background-image: url(../assets/wallpaper.jpg), linear-gradient(#1b2f7a, #2b4fb8 55%, #1d5a2c 55%, #123b1c);
  background-size: cover; background-position: center bottom;
}

/* ---------- desktop icons ---------- */
.icons {
  position: absolute; top: 28px; left: 22px; z-index: 2;
  display: grid; gap: 22px; width: 110px;
}
.icon {
  display: grid; justify-items: center; gap: 8px;
  background: none; border: 0; padding: 0; text-decoration: none;
}
.icon-tile {
  width: 56px; height: 56px; display: grid; place-items: center;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 10px;
  box-shadow: 3px 3px 0 var(--ink); transition: transform .12s;
}
.icon-tile svg { width: 28px; height: 28px; }
.icon-tile--folder { background: var(--yellow); }
.icon:hover .icon-tile, .icon:focus-visible .icon-tile { transform: translate(-1px, -2px); }
.icon-label {
  font: 700 12px/1.25 var(--mono); color: #fff; text-align: center;
  text-shadow: 0 1px 0 #000, 0 0 6px rgba(0,0,0,.7);
}
.icon--ghost .icon-tile { background: #d7e0f7; border-style: dashed; box-shadow: none; }
.icon--ghost .icon-label { font-weight: 400; opacity: .9; }

/* ---------- layout ---------- */
.screen {
  min-height: calc(100vh - var(--bar-h));
  display: grid; align-content: center; justify-items: center; gap: 28px;
  padding: 72px 20px;
}
.screen--hero { padding-left: 150px; padding-right: 60px; }
.screen--cta { align-content: center; }

.heading { text-align: center; max-width: 760px; color: #fff; }
.heading--left { text-align: left; align-self: center; }
.path {
  display: inline-block; font: 700 13px var(--mono); letter-spacing: .08em;
  background: var(--ink); color: var(--pink); padding: 6px 12px; border-radius: 6px; margin-bottom: 14px;
}
.heading h2 {
  font: 400 clamp(32px, 5vw, 56px)/1.02 var(--display);
  text-shadow: 3px 3px 0 var(--ink), -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink);
}
.heading p {
  margin-top: 16px; font-size: 18px; line-height: 1.5; font-weight: 500;
  text-shadow: 0 1px 0 #000, 0 0 10px rgba(0,0,0,.65);
}

.pair {
  width: min(1040px, 100%);
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 34px; align-items: start;
}
.pair--why { grid-template-columns: 1fr 1fr; align-items: center; }

/* ---------- windows ---------- */
.win {
  width: 100%; background: var(--paper);
  border: 3px solid var(--ink); border-radius: 16px;
  box-shadow: 12px 12px 0 var(--ink); overflow: hidden;
}
.win--hero { max-width: 990px; }
.win--pics { max-width: 1040px; }
.win--cta { max-width: 640px; }
.win.shake { animation: shake .35s; }
@keyframes shake {
  25% { transform: translateX(-6px) rotate(-.4deg); }
  50% { transform: translateX(6px) rotate(.4deg); }
  75% { transform: translateX(-3px); }
}
.win-bar {
  display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 12px;
  background: var(--pink); border-bottom: 3px solid var(--ink);
  font: 700 13.5px var(--mono);
}
.win-bar--blue { background: var(--blue); color: #fff; }
.win-bar--red { background: var(--red); color: #fff; }
.win-bar--pink { background: var(--pink); }
.win-bar--yellow { background: var(--yellow); }
.win-ico { width: 26px; height: 26px; border-radius: 6px; border: 2px solid var(--ink); object-fit: cover; }
.win-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-btns { display: flex; gap: 6px; }
.win-arrows, .win-count { font-size: 12.5px; letter-spacing: .1em; }
.wb {
  width: 26px; height: 26px; display: grid; place-items: center; padding: 0;
  background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 6px;
  font: 700 12px var(--mono); box-shadow: 1.5px 1.5px 0 var(--ink);
}
.wb--x { background: var(--red); color: #fff; }
.wb:active { transform: translate(1px, 1px); box-shadow: none; }
.win-body { padding: 26px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(220px, 350px) 1fr; gap: 34px; align-items: center; padding: 36px; }
.portrait {
  position: relative; display: block; width: 100%; padding: 0; aspect-ratio: 1;
  border: 3px solid var(--ink); border-radius: 14px; overflow: hidden;
  background: var(--blue); box-shadow: 7px 7px 0 var(--blue);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait:active img { transform: scale(.985); }
.poke-tag {
  position: absolute; left: 10px; bottom: 10px;
  background: var(--ink); color: #fff; font: 700 11.5px var(--mono);
  padding: 5px 9px; border-radius: 6px;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 12px var(--mono); letter-spacing: .1em; color: #a3181b;
  background: #ffe3e3; border: 2px solid var(--ink); border-radius: 99px; padding: 5px 13px;
}
.pill i, .tray i { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.logo {
  font: 400 clamp(84px, 13vw, 150px)/.9 var(--display); letter-spacing: .01em;
  color: var(--pink); margin: 14px 0 12px;
  -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill;
  text-shadow: 6px 6px 0 var(--ink);
}
.logo--sm { font-size: clamp(38px, 7vw, 60px); line-height: 1; -webkit-text-stroke-width: 2px; text-shadow: 4px 4px 0 var(--ink); margin-top: 0; }
.lede { font-size: 21px; font-weight: 700; line-height: 1.3; }
.sub { margin-top: 10px; font-size: 16px; line-height: 1.5; color: #4a4860; }
.ca {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 20px;
  background: var(--ink); color: #fff; border: 0; border-radius: 9px; padding: 13px 15px;
  font: 700 15px var(--mono); text-align: left;
}
.ca-k { font-weight: 400; font-size: 12px; letter-spacing: .12em; color: #a9a6c4; }
.ca-v { color: #ffe9a8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca--wide { justify-content: center; }
.caret { width: 10px; height: 19px; background: var(--pink); margin-left: -8px; animation: blink 1s steps(2) infinite; }
.caret--dark { display: inline-block; vertical-align: -3px; margin-left: 3px; background: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.btns--center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  font: 400 18px var(--display); letter-spacing: .02em;
  background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 11px;
  padding: 11px 22px; box-shadow: 4px 4px 0 var(--ink); transition: transform .1s, box-shadow .1s;
}
.btn--blue { background: var(--blue); color: #fff; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }

/* ---------- notepad ---------- */
.note { font: 400 16px/1.65 var(--mono); display: grid; gap: 14px; padding: 28px; }

/* ---------- chart ---------- */
.chart { padding: 20px; background: #17152a; color: #fff; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font: 400 12.5px var(--mono); color: #b4b1d0; }
.chart-head strong { font: 400 20px var(--display); color: #fff; letter-spacing: .03em; }
.chart-svg { display: block; width: 100%; height: 190px; margin: 14px 0; background: #0f0e1d; border-radius: 9px; }
.grid path { stroke: #2a2845; stroke-width: 1; vector-effect: non-scaling-stroke; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stats div { background: #232140; border-radius: 9px; padding: 10px; text-align: center; font: 400 12px var(--mono); color: #b4b1d0; }
.stats b { display: block; font-size: 20px; margin-top: 2px; }
.ok { color: var(--green); } .bad { color: var(--red); }
.day { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font: 700 13px var(--mono); }
.day span { background: var(--red); padding: 4px 10px; border-radius: 6px; }
.day em { font-style: normal; color: #b4b1d0; font-weight: 400; }

/* ---------- why ---------- */
.why { list-style: none; margin: 0; display: grid; gap: 12px; }
.why li {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 2.5px solid var(--ink); border-radius: 11px; font-weight: 600; font-size: 17px;
}
.why i {
  flex: none; width: 30px; height: 30px; display: grid; place-items: center; font-style: normal;
  border: 2.5px solid var(--ink); border-radius: 7px; font: 700 15px var(--mono);
}
.why .no { background: #f1eee4; color: #807c93; }
.why .no span { text-decoration: line-through; text-decoration-thickness: 2px; }
.why .no i { background: #fff; color: var(--red); }
.why .yes { background: #ffe0ea; box-shadow: 4px 4px 0 var(--ink); }
.why .yes i { background: var(--green); color: #fff; }

/* ---------- pictures ---------- */
.pics-h { font: 400 clamp(28px, 4vw, 40px) var(--display); margin-bottom: 20px; }
.pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pic { margin: 0; }
.pic-frame {
  display: block; width: 100%; padding: 0; aspect-ratio: 1; overflow: hidden;
  border: 3px solid var(--ink); border-radius: 12px; background: #d9dcec;
  box-shadow: 4px 4px 0 var(--ink); transition: transform .15s;
}
.pic-frame:hover { transform: translate(-2px, -3px) rotate(-1deg); }
.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pic figcaption { margin-top: 10px; font: 400 12.5px var(--mono); text-align: center; overflow-wrap: anywhere; }

/* ---------- cta + footer ---------- */
.cta { text-align: center; padding: 34px 30px; }
.cta .lede { margin-top: 12px; }
.foot { max-width: 620px; text-align: center; color: #fff; font-size: 13px; line-height: 1.55; text-shadow: 0 1px 0 #000, 0 0 8px rgba(0,0,0,.7); }
.foot p:first-child { font: 400 20px var(--display); margin-bottom: 8px; letter-spacing: .03em; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 24px 24px calc(var(--bar-h) + 24px);
  background: rgba(10, 9, 20, .82); border: 0; width: 100%;
}
.lightbox .win { max-width: min(680px, 100%); cursor: default; }
.lightbox img { display: block; width: 100%; max-height: 66vh; object-fit: contain; background: #0f0e1d; }

/* ---------- taskbar ---------- */
.taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: var(--bar-h);
  display: flex; align-items: stretch; background: var(--blue); border-top: 3px solid var(--ink); color: #fff;
}
.start {
  display: flex; align-items: center; gap: 10px; padding: 0 22px 0 16px;
  background: var(--pink-deep); color: #fff; border: 0; border-right: 3px solid var(--ink);
  font: 400 23px var(--display); letter-spacing: .03em; text-shadow: 2px 2px 0 var(--ink);
}
.start img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; }
.start:hover, .start[aria-expanded="true"] { background: #f0609a; }
.tape { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; }
.tape-run { display: flex; flex: none; white-space: nowrap; font: 700 14px var(--mono); animation: tape 28s linear infinite; }
.tape-run span { padding: 0 20px; }
.tape-run span::before { content: "▼ "; }
@keyframes tape { to { transform: translateX(-50%); } }
.tray {
  display: flex; align-items: center; gap: 8px; padding: 0 20px; max-width: 42vw;
  background: #1c4fa8; color: #fff; border: 0; border-left: 3px solid var(--ink);
  font: 400 12.5px var(--mono); white-space: nowrap;
}
.tray span { overflow: hidden; text-overflow: ellipsis; }
.tray i { flex: none; border: 2px solid var(--ink); width: 13px; height: 13px; }

.menu {
  position: fixed; left: 8px; bottom: calc(var(--bar-h) + 8px); z-index: 31; width: 210px;
  display: grid; background: var(--paper); border: 3px solid var(--ink); border-radius: 12px;
  box-shadow: 6px 6px 0 var(--ink); overflow: hidden;
}
.menu[hidden] { display: none; }
.menu a, .menu button {
  padding: 12px 16px; text-align: left; text-decoration: none; background: none; border: 0;
  border-bottom: 2px solid #e6e2d3; font: 700 13.5px var(--mono);
}
.menu button { border-bottom: 0; color: var(--red); }
.menu a:hover, .menu button:hover { background: var(--pink); color: var(--ink); }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--bar-h) + 18px); z-index: 50;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: calc(100vw - 32px); background: var(--ink); color: #fff; font: 700 13.5px var(--mono);
  padding: 11px 16px; border-radius: 9px; border: 2px solid var(--pink); transition: .2s;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* ---------- phone ---------- */
@media (max-width: 860px) {
  .icons { position: static; width: auto; grid-auto-flow: column; justify-content: center; gap: 14px; padding: 22px 12px 0; }
  .icon-tile { width: 50px; height: 50px; }
  .icon-label { font-size: 10.5px; }
  .screen { min-height: 0; padding: 44px 16px; }
  .screen--hero { padding: 26px 16px 44px; }
  .hero, .pair, .pair--why { grid-template-columns: 1fr; }
  .hero { padding: 20px; gap: 22px; }
  .portrait { max-width: 300px; margin: 0 auto; }
  .win { box-shadow: 7px 7px 0 var(--ink); }
  .win-body { padding: 20px; }
  .heading--left { text-align: center; }
  .pics { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .lede { font-size: 19px; }
  .btn { flex: 1; justify-content: center; }
  .start { padding: 0 14px 0 10px; font-size: 20px; }
  .tray { padding: 0 12px; }
}
@media (max-width: 480px) {
  .tape { display: none; }
  .tray { flex: 1; max-width: none; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tape-run, .caret, .pill i, .tray i, .win.shake { animation: none; }
}

/* ---------- tuning after first render ---------- */
/* Hero sits high so the possum on the wallpaper shows underneath it. */
@media (min-width: 861px) {
  .screen--hero { align-content: start; padding-top: 34px; }
  .hero { grid-template-columns: minmax(200px, 270px) 1fr; padding: 26px 30px; }
  .hero .logo { font-size: clamp(84px, 10vw, 118px); margin: 10px 0 8px; }
  .hero .ca { margin-top: 14px; }
  .hero .btns { margin-top: 14px; }
}
/* Headings sit on the wallpaper, so give them their own plate. */
.heading {
  background: rgba(20, 18, 31, .78); border: 3px solid var(--ink); border-radius: 16px;
  padding: 22px 26px 24px; backdrop-filter: blur(3px);
}
.heading h2 { text-shadow: 3px 3px 0 var(--ink); }
.heading p { text-shadow: none; color: #e9e7f5; }
.foot { background: rgba(20, 18, 31, .78); border-radius: 12px; padding: 14px 18px; text-shadow: none; }
.btn { white-space: nowrap; }
@media (max-width: 860px) {
  .btn { font-size: 16px; padding: 11px 14px; }
  .pic figcaption { font-size: 11px; }
}
