/* Local fonts. Original design fonts bundled with permission confirmed by the project owner. See assets/licenses/FONT-PERMISSIONS.txt. */
@font-face { font-family: Alvera; src: url("assets/fonts/AlveraDEMO-BoldSquare.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: FindersKeepers; src: url("assets/fonts/FindersKeepers.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face {
  font-family: Doto;
  src: url("assets/fonts/Doto.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: VT323;
  src: url("assets/fonts/VT323.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/IBMPlexMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
:root { color-scheme: light; font-family: "IBM Plex Mono", monospace; color: #111; }
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: #3e7cc7 url("assets/background.png") center top / cover no-repeat;
}
.menu-bar {
  min-height: 2.142rem;
  display: flex;
  align-items: center;
  gap: 1.35rem;
  padding: 0 1.5rem;
  background: white;
  border-radius: .5rem .5rem 0 0;
  font: 1.8rem/.95 VT323, monospace;
}
.menu-bar img { display: block; flex: none; }
.apple { width: 28.86px; height: 28.86px; }
.system-icons { margin-left: auto; display: flex; align-items: center; gap: 1.8rem; }
.system-icons img { width: 28.86px; height: 28.86px; }
.system-icons .finder { width: 21.645px; height: 27.056px; }
main { margin: 0 auto; padding: 5.92rem 1.5rem 8rem; }
.homepage { text-align: center; }
.mac-window { max-width: 60.5rem; margin: 0 auto; border: 3.585px solid #000; background: white; padding: 7.17px; }
.window-inner {
  border: 7.17px solid #000;
  padding: 1.58rem 5.82rem 1.6rem;
  display: grid;
  grid-template-columns: 114.726px minmax(0, 1fr);
  column-gap: 3rem;
  align-items: center;
  text-align: left;
  min-height: 23.528rem;
}
.happy-mac { width: 114.726px; height: 114.726px; display: block; }
h1 {
  margin: 0;
  font: 700 6.155rem/.93 Alvera, Doto, monospace;
  letter-spacing: 0;
  color: #222;
  overflow-wrap: anywhere;
}
.homepage h1 > span { display: block; }
.version { grid-column: 2; margin: -.1rem 0 0; text-align: right; font: 3.585rem/.75 FindersKeepers, VT323, monospace; }
.introduction {
  max-width: 73rem;
  margin: 3.9rem auto 2.95rem;
  padding: .25rem .5rem;
  color: #fff;
  /* Text stays directly on the artwork, as in the Figma design. */
  background: transparent;
  font-size: 2.269rem;
  font-weight: 500;
  line-height: 1.001;
  text-transform: uppercase;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.enter-prompt {
  display: table;
  max-width: 100%;
  margin: 0 auto 1rem;
  border: 2.341px solid #000;
  padding: .4rem 1.5rem;
  background: #fff;
  font: 2.34rem/.875 FindersKeepers, VT323, monospace;
}
.mac-button {
  display: inline-block;
  position: relative;
  min-width: 6.375rem;
  min-height: 2.75rem;
  padding: .18rem 1rem;
  border: 2px solid #000;
  border-radius: 9px;
  background: #fff;
  color: #000;
  font: 2.34rem/.875 FindersKeepers, VT323, monospace;
  text-align: center;
  text-decoration: none;
}
.mac-button:hover { background-color: #e1f6fa; }
a:focus-visible { outline: 4px solid #072044; outline-offset: 5px; box-shadow: 0 0 0 5px #fff; }
main:focus { outline: none; }
.skip-link { position: absolute; z-index: 2; left: 1rem; top: .5rem; padding: .75rem 1rem; background: white; color: #000; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.notice { max-width: 52rem; }
.notice .window-inner { display: flex; flex-direction: column; gap: 1.5rem; padding: 3rem; text-align: center; }
.notice h1 { font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.1; }
.notice p { margin: 0; line-height: 1.7; max-width: 36rem; }
.notice .eyebrow { font: 1.6rem/1.2 VT323, monospace; }
@media (max-width: 1050px) {
  main { padding-top: 4.5rem; }
  .window-inner { padding-inline: 3rem; column-gap: 2rem; }
  h1 { font-size: 5.3rem; }
  .introduction { font-size: 1.7rem; }
}
@media (max-width: 720px) {
  main { padding: 3rem 1rem 5rem; }
  .menu-bar { gap: .8rem; padding-inline: .75rem; font-size: 1.35rem; }
  .system-icons { gap: .6rem; }
  .system-icons img { width: 20px; height: 20px; }
  .system-icons .finder { width: 15px; height: 18.75px; }
  .window-inner { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 1.5rem; padding: 2rem 1rem; min-height: 0; text-align: center; }
  .happy-mac { width: 80px; height: 80px; }
  h1 { font-size: clamp(2rem, 10vw, 4.5rem); letter-spacing: -.05em; line-height: 1.05; overflow-wrap: anywhere; }
  .version { grid-column: 1; font-size: 2.8rem; }
  .introduction { margin: 2rem auto 1.5rem; font-size: 1.125rem; line-height: 1.5; }
  .enter-prompt { font-size: 2rem; padding-inline: .75rem; }
  .notice .window-inner { padding: 2rem 1rem; }
}
@media (max-width: 420px) {
  .menu-bar { gap: .7rem; }
  .system-icons { display: none; }
}
@media (forced-colors: active) {
  .mac-window, .window-inner, .mac-button, .enter-prompt { border-color: CanvasText; }
  .mac-button { border: 2px solid ButtonText; }
  a:focus-visible { outline-color: Highlight; }
}
/* The canvas motion controller also observes reduced-motion preferences. */

/* Reflow enlarged text without hiding content or horizontal scrolling. */
.menu-bar { flex-wrap: wrap; row-gap: .25rem; }
.window-inner > * { min-width: 0; }
.enter-prompt { width: max-content; overflow-wrap: anywhere; }
.notice p, .notice h1, .notice a { overflow-wrap: anywhere; max-width: 100%; }
@media (max-width: 720px) {
  .menu-bar { column-gap: clamp(.35rem, 2vw, .8rem); }
  .homepage h1 { font-size: clamp(2rem, 10vw, 4.5rem); }
  .introduction { padding: .5rem; }
  .mac-window { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.introduction > span { background: none; padding: 0; }

body { position: relative; isolation: isolate; }
#moving-background { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.accessibility-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .75rem; padding: 1rem; }
.accessibility-controls button { max-width: 100%; min-height: 44px; padding: .65rem 1rem; border: 2px solid #000; border-radius: 9px; background: #fff; color: #000; font: 500 1rem/1.2 "IBM Plex Mono", monospace; cursor: pointer; overflow-wrap: anywhere; }
.accessibility-controls button:hover { background: #e1f6fa; }
.accessibility-controls button[aria-pressed="true"] { background: #000; color: #fff; border-color: #fff; }
.accessibility-controls button:disabled { cursor: default; }
.accessibility-controls[hidden] { display: none; }
html.motion-paused *, html.motion-paused *::before, html.motion-paused *::after { animation-play-state: paused !important; transition: none !important; scroll-behavior: auto !important; }
html.high-contrast body { background: #102b43; }
html.high-contrast #moving-background { visibility: hidden; }
html.high-contrast .introduction { color: #fff; }
html.high-contrast *, html.high-contrast *::before, html.high-contrast *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.motion-toggle[hidden] { display: none; }
button:focus-visible { outline: 4px solid #072044; outline-offset: 4px; box-shadow: 0 0 0 4px #fff; }
/* Match the reference: unoutlined IBM Plex Mono Medium. */
.introduction { font-family: "IBM Plex Mono", monospace; font-weight: 500; }
@media (min-width: 1051px) {
 .enter-prompt { width: 25.6875rem; padding-inline: .4rem; }
}
/* Keep the entrance visible on shorter desktop windows. */
@media (min-width: 1051px) and (max-height: 900px) {
  .homepage { padding-top: 2.5rem; }
  .introduction { margin-top: 2rem; margin-bottom: 1.5rem; }
}

/* Updated Figma desktop: pink lava, sticky note and utility window. */
body { background-color: #ffbceb; background-attachment: fixed; }
.homepage { padding-top: 5.625rem; padding-bottom: 4rem; min-height: calc(100vh - 76px); text-align: left; }
.desktop-items { display: grid; grid-template-columns: 26.33% 44.01% 29.66%; align-items: start; max-width: 1143px; margin: 3rem auto 0; }
.folder-button { display: flex; flex-direction: column; align-items: center; justify-self: start; max-width: 100%; border: 0; padding: 0; background: transparent; color: #000; cursor: pointer; font: 2.7rem/.85 FindersKeepers, VT323, monospace; }
.folder-button img { display: block; width: 83.728px; height: 83.728px; image-rendering: pixelated; }
.folder-button span { background: white; padding: .1rem .4rem .3rem; overflow-wrap: anywhere; }
.folder-button:hover span { color: #fff; background: #111; }
.sticky-note { position: relative; width: 364px; max-width: calc(100% - 1.5rem); margin-top: 5.875rem; border: 2.889px solid #ffda00; background: #ffffb3; color: #000; min-height: 244px; }
.sticky-titlebar { height: 26px; padding: 0 11.56px; background: url("assets/sticky-pattern.png") left top / 5.778px 5.778px repeat; display: flex; align-items: center; justify-content: space-between; }
.sticky-titlebar img { width: 20.222px; height: 20.222px; }
.sticky-note p { margin: 0; padding: 0 .9rem 2.3rem; font: 2.97875rem/.75 FindersKeepers, VT323, monospace; overflow-wrap: anywhere; }
.sticky-resize { position: absolute; bottom: -2px; right: -2px; width: 23.111px; height: 23.111px; }
.exhibition-window { border: 1.901px solid #000; background: #fff; box-shadow: 1.901px 1.901px #000; min-width: 0; min-height: 198px; }
.utility-titlebar { height: 22.81px; padding: 2px 11.41px; border-bottom: 1.901px solid #000; box-shadow: inset 0 0 0 2px #b3b3da; background: url("assets/window-pattern.png") 3px 3px / 3.802px 3.802px repeat; display: flex; justify-content: space-between; align-items: center; }
.utility-titlebar img { width: 13.306px; height: 13.306px; background: #f3f3f3; }
.utility-titlebar img:last-child { width: 20.91px; height: 20.91px; }
.utility-content { padding: 1.1rem 1.25rem 1.8rem; }
.utility-content p { font: 3.1958rem/.75 FindersKeepers, VT323, monospace; margin: 0 0 .7rem; overflow-wrap: anywhere; }
.utility-content .mac-button { font-size: 3.16rem; line-height: .75; min-width: 7.4rem; padding: .1rem 1rem .3rem; max-width: 100%; overflow-wrap: anywhere; }
#confetti-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }
html.high-contrast .sticky-note { border-color: #000; background: #fff; }
[hidden] { display: none !important; }
@media (max-width: 1100px) {
 .homepage { padding-top: 3rem; }
 .desktop-items { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 2rem; }
 .folder-button { grid-column: 1 / -1; justify-self: center; }
 .sticky-note { margin-top: 0; width: 100%; max-width: none; }
}
@media (max-width: 720px) {
 .homepage { padding: 2rem 1rem 3rem; }
 .desktop-items { grid-template-columns: minmax(0,1fr); max-width: 364px; gap: 2rem; margin-top: 2rem; }
 .sticky-note p { font-size: 2.6rem; line-height: .85; }
 .utility-content p { font-size: 2.7rem; line-height: .85; }
 .accessibility-controls { justify-content: center; }
}
@media (forced-colors: active) { .sticky-note, .exhibition-window { border-color: CanvasText; } button:focus-visible { outline-color: Highlight; } }

/* Latest Figma collage. Decorative assets never intercept controls. */
.homepage { position: relative; max-width: 1440px; min-height: 1024px; }
.desktop-art { position: absolute; inset: 0; height: 1024px; overflow: hidden; pointer-events: none; }
.deco { position: absolute; display: block; height: auto; object-fit: contain; }
.fish-top { left: 84.668%; top: 5.009%; width: 7.832%; transform: translate(-50%,-50%) rotate(-155.48deg) scaleY(-1); }
.classic-mac { left: 91.713%; top: 24.267%; width: 10.069%; transform: translate(-50%,-50%) rotate(168.77deg) scaleY(-1); }
.imac { left: 90.004%; top: 79.024%; width: 18.818%; transform: translate(-50%,-50%) rotate(20.72deg); }
.ibook { left: 8.806%; top: 11.767%; width: 12.710%; transform: translate(-50%,-50%) rotate(15.91deg); }
.performa { left: 14.694%; top: 79.263%; width: 28.542%; transform: translate(-50%,-50%) rotate(-26.11deg); }
.cat { left: 66.600%; top: 89.750%; width: 8.452%; transform: translate(-50%,-50%) rotate(21.06deg); }
.fish-left { left: 6.883%; top: 48.585%; width: 7.708%; transform: translate(-50%,-50%) rotate(24.52deg); }
.duck { left: 23.125%; top: 90.625%; width: 5.556%; transform: translate(-50%,-50%); }
.utility-content .mac-button { background: #d9ffef; font-size: 4.108rem; min-width: 9.65rem; min-height: 3.22rem; border-width: 3px; border-radius: 11px; }
.utility-content .mac-button:hover { background: #b9f6dc; }
/* Keep interactive panels above decorations when text grows. */
.mac-window, .desktop-items { position: relative; z-index: 1; }
@media (min-width: 1101px) {
 .folder-button { margin-left: 2.6rem; margin-top: -.45rem; }
}
@media (max-width: 1100px) {
 .homepage { min-height: calc(100vh - 76px); }
 .desktop-art { position: relative; inset: auto; height: auto; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: center; justify-items: center; gap: 2rem; padding: 2rem 1rem; margin: 2rem auto 0; max-width: 800px; }
 .deco { position: static; width: 85%; max-height: 140px; transform: none; }
 .fish-top { transform: scaleX(-1); }
 .performa { width: 100%; }
 .cat, .duck { width: 60%; }
}
@media (max-width: 480px) {
 .desktop-art { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; }
}
html.high-contrast .desktop-art { display: none; }
.utility-content .mac-button { min-width: min(9.65rem, 100%); line-height: .65; }
.utility-content { padding-bottom: 1rem; }
