@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=VT323&display=swap');

:root {
  color-scheme: light;
  --black: #050505;
  --paper: #f7f7f4;
  --gray: #a6a6a3;
  --mid: #727270;
  --line: #161616;
  --pixel: "VT323", "Chicago", "Geneva", "Courier New", monospace;
  --sans: "Chicago", "Geneva", "Verdana", Arial, sans-serif;
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 45px; }
body { margin: 0; min-width: 320px; background: var(--black); color: var(--black); font-family: var(--sans); font-size: 15px; line-height: 1.45; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid #555; outline-offset: 2px; }

/* Classic startup screen: a pale CRT, Happy Mac, and the welcome panel. */
.boot-screen { position: fixed; z-index: 30; inset: 0; display: grid; place-items: center; overflow: hidden; background: #111; color: #161713; animation: boot-exit 320ms ease 1.05s forwards; }
.boot-crt { position: absolute; inset: 0; overflow: hidden; border: clamp(6px, 1.3vw, 18px) solid #262722; border-radius: 18px; background: radial-gradient(ellipse at 49% 43%, #bdcdd0 0, #99a9ac 70%, #7b888b 100%); box-shadow: inset 0 0 80px #202b2d50; }
.boot-crt::before { position: absolute; inset: 0; pointer-events: none; content: ""; opacity: .11; background: repeating-linear-gradient(0deg, transparent 0 2px, #253034 3px 3.5px); }
.boot-crt::after { position: absolute; inset: -5%; pointer-events: none; content: ""; opacity: .2; background: radial-gradient(ellipse, transparent 50%, #263033 100%); }
.boot-window { position: absolute; z-index: 1; top: 31%; left: 50%; display: grid; grid-template-columns: 78px 1fr 78px; grid-template-rows: 1fr auto auto; align-items: center; gap: 12px 8px; width: min(820px, 81vw); min-height: 196px; padding: 19px 21px 13px; border: 3px double #262822; background: #f0f0e7; box-shadow: inset 0 0 0 5px #fff, 0 5px 0 #1d252633; text-align: center; transform: translate(-50%, 0); animation: welcome-pop 360ms steps(4, end) .16s both; }
.happy-mac { position: relative; grid-column: 1; grid-row: 1; width: 42px; height: 49px; justify-self: center; }
.happy-screen { position: absolute; top: 0; left: 3px; display: grid; width: 36px; height: 31px; place-items: center; border: 2px solid #343630; border-radius: 3px; background: #e7e8df; color: #343630; font: 20px/1 var(--sans); }
.happy-chin { position: absolute; top: 32px; left: 8px; width: 26px; height: 9px; border: 2px solid #343630; border-top: 0; background: #bfc9c7; }
.happy-base { position: absolute; bottom: 0; left: 3px; width: 36px; height: 4px; border: 1px solid #343630; background: #343630; }
.boot-title { grid-column: 2; grid-row: 1; margin: 0; font: 31px/1 var(--pixel); }
.boot-progress { grid-column: 1 / -1; justify-self: center; width: 206px; height: 12px; padding: 2px; border: 1px solid #343630; background: #d6d8cf; }
.boot-progress span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: repeating-linear-gradient(90deg, #343630 0 6px, transparent 6px 9px); animation: boot-progress 820ms steps(10, end) .12s forwards; }
#skip-intro { grid-column: 3; grid-row: 3; justify-self: end; padding: 4px 7px; border: 1px solid #777; background: #f0f0e7; color: #333; font: 8px var(--mono); cursor: pointer; }
#skip-intro:hover { border-color: #111; background: #222; color: #fff; }
.boot-screen.is-hidden { display: none; }

.finder-desktop { min-height: 100svh; opacity: 0; background-color: #a4a4a4; background-image: repeating-conic-gradient(#fff 0% 25%, #858585 0% 50%); background-size: 3px 3px; animation: desktop-in 250ms ease 1.22s forwards; }
.finder-desktop.is-visible { opacity: 1; animation: none; }
.menu-bar { position: sticky; z-index: 15; top: 0; display: flex; align-items: center; gap: 0; height: 42px; padding: 0 clamp(12px, 4vw, 54px); border-bottom: 2px solid var(--black); background: var(--paper); box-shadow: 0 2px 0 #0005; font: 20px var(--pixel); }
.apple-mark { display: grid; width: 25px; height: 26px; place-items: center; margin-right: 14px; font: 16px Arial, sans-serif; }
.owner-menu { margin-right: 22px; font-weight: bold; }
.menu-bar > a:not(.owner-menu):not(.apple-mark) { margin-right: 22px; }
.menu-bar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.menu-spacer { flex: 1; }
.language-switch { display: flex; align-items: center; gap: 5px; color: #888; font: 10px var(--mono); }
.language-switch button { padding: 3px 2px; border: 0; background: transparent; color: #656565; cursor: pointer; font: inherit; }
.language-switch button.active { color: #000; font-weight: bold; text-decoration: underline; text-underline-offset: 3px; }
.desktop-area { position: relative; width: min(1480px, 100%); min-height: calc(100svh - 68px); margin: 0 auto; padding: 1px 22px 40px; }
.finder-window { border: 2px solid var(--black); border-radius: 9px; background: var(--paper); box-shadow: 4px 5px 0 #0007; }
.main-window { position: relative; z-index: 3; width: 100%; margin: 20px auto 24px; }
.window-titlebar { display: flex; align-items: center; gap: 9px; height: 35px; padding: 0 8px; border-bottom: 2px solid var(--black); background: var(--paper); }
.window-titlebar strong { flex: 0 0 auto; padding: 0 4px; font: 19px var(--pixel); }
.window-control { width: 16px; height: 16px; flex: 0 0 16px; border: 1px solid var(--black); background: var(--paper); }
.title-stripe { flex: 1; height: 13px; background: repeating-linear-gradient(0deg, var(--black) 0 1px, transparent 1px 3px); }
.window-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 35px; padding: 5px 18px; border-bottom: 1px solid var(--black); font: 16px var(--pixel); }
.toolbar-detail { color: #414141; font-size: 14px; }
.intro-panel { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 20px; padding: 23px 28px 22px; border-bottom: 1px solid var(--black); }
.avatar { width: 100px; height: 100px; object-fit: cover; border: 1px solid var(--black); background: #ddd; image-rendering: auto; }
.eyebrow { margin: 0 0 1px; color: #555; font: 12px var(--mono); }
.intro-copy h1 { margin: 0; font: 48px/.95 var(--pixel); letter-spacing: -.025em; }
.intro-copy h1 span { color: #777; }
.intro-copy > p:not(.eyebrow) { max-width: 710px; margin: 8px 0; color: #323232; font-size: 16px; line-height: 1.5; }
.role-row { display: flex; align-items: center; gap: 8px; color: #555; font: 12px var(--mono); }
.role-dot { color: #777; font-size: 8px; }
.file-area { min-width: 0; padding: 0 24px 12px; }
.file-heading, .file-row { display: grid; grid-template-columns: 48px minmax(180px, .85fr) minmax(160px, .75fr) minmax(260px, 1.4fr) 22px; align-items: center; column-gap: 14px; }
.file-heading { min-height: 38px; border-bottom: 1px solid var(--black); font: 16px var(--pixel); }
.file-heading span:nth-child(1) { grid-column: 2; }
.file-heading span:nth-child(2) { grid-column: 3; }
.file-heading span:nth-child(3) { grid-column: 4; }
.file-row { min-height: 76px; border-bottom: 1px dotted #777; font-size: 15px; }
.file-row:last-child { border-bottom: 0; }
.file-row:hover { background: #e5e5e1; }
.file-glyph { position: relative; display: grid; width: 25px; height: 31px; place-items: center; justify-self: center; border: 1px solid #222; background: #fff; color: #161616; font: 14px var(--pixel); }
.file-glyph::after { position: absolute; top: -1px; right: -1px; width: 6px; height: 6px; content: ""; border-left: 1px solid #222; border-bottom: 1px solid #222; background: #ddd; }
.file-glyph.has-app-icon { width: 40px; height: 40px; border: 0; background: transparent; }
.file-glyph.has-app-icon::after { display: none; }
.project-icon { display: block; width: 100%; height: 100%; border: 1px solid #222; border-radius: 4px; background: #fff; object-fit: cover; }
.file-name { display: flex; flex-direction: column; min-width: 0; }
.file-name strong { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.file-name small { color: #666; font: 11px var(--mono); }
.file-kind { color: #3d3d3d; font-size: 13px; }
.file-description { color: #4b4b4b; font-size: 14px; line-height: 1.45; }
.file-open { color: #777; font: 14px var(--mono); }
.window-status { display: flex; align-items: center; justify-content: space-between; min-height: 28px; padding: 4px 11px; border-top: 1px solid var(--black); color: #4d4d4d; font: 9px var(--mono); }
.window-status > span:first-child { display: flex; align-items: center; gap: 7px; }
.window-status i { width: 8px; height: 8px; border: 1px solid #555; border-radius: 50%; }

.desktop-icons { position: static; display: flex; flex-direction: row; justify-content: flex-end; align-items: center; gap: 14px; width: 100%; margin: 14px auto 10px; padding-right: 8px; }
.desktop-icon { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 96px; padding: 2px; color: #fff; text-align: center; text-shadow: 1px 1px #222; font: 12px var(--pixel); }
.desktop-icon:hover span:last-child { outline: 1px dotted #fff; background: #222; }
.icon-art { display: grid; width: 43px; height: 42px; place-items: center; border: 2px solid #111; background: #fff; color: #111; text-shadow: none; }
.disk-icon { border-radius: 2px; font: 17px Arial, sans-serif; }
.photo-icon { border-radius: 8px; font: 29px Arial, sans-serif; }
.app-icon { border-radius: 12px; font: 26px Arial, sans-serif; }

.proud-window { position: relative; z-index: 4; width: 100%; margin: 0 auto 24px; }
.proud-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.proud-item { position: relative; display: grid; grid-template-columns: 39px minmax(0, 1fr) 13px; align-items: start; gap: 11px; min-height: 113px; padding: 16px 17px; border-right: 1px dotted #888; border-bottom: 1px dotted #888; }
.proud-item:nth-child(3n) { border-right: 0; }
.proud-item:nth-last-child(-n+3) { border-bottom: 0; }
.proud-item:hover { background: #e6e6e2; }
.proud-icon { display: grid; width: 36px; height: 39px; place-items: center; border: 1px solid #333; background: #fff; font: 24px var(--pixel); }
.proud-icon.dark-background { border-color: #050505; background: #050505; }
.proud-icon img { max-width: 100%; max-height: 100%; padding: 2px; object-fit: contain; }
.proud-copy { display: flex; flex-direction: column; gap: 3px; }
.proud-copy small { color: #666; font: 10px var(--mono); letter-spacing: .045em; }
.proud-copy strong { font: 22px/1.1 var(--pixel); }
.proud-copy > span { color: #444; font-size: 13px; line-height: 1.45; }
.proud-open { color: #777; font: 11px var(--mono); }
.collaboration-window { position: relative; z-index: 3; width: 100%; margin: 0 auto 24px; }
.collaboration-body { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 17px 22px; }
.collaboration-icon { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid var(--black); background: var(--black); color: #fff; font: 26px/1 var(--pixel); }
.collaboration-copy .eyebrow { font: 10px var(--mono); letter-spacing: .06em; }
.collaboration-copy h2 { margin: 1px 0 2px; font: 25px/1.05 var(--pixel); }
.collaboration-copy > p:last-child { margin: 0; color: #4b4b4b; font-size: 14px; line-height: 1.45; }
.collaboration-cta { display: inline-flex; align-items: center; gap: 18px; padding: 10px 13px; border: 1px solid var(--black); background: var(--black); color: #fff; font: 16px var(--pixel); white-space: nowrap; }
.collaboration-cta b { font: 12px var(--mono); }
.collaboration-cta:hover { background: #fff; color: var(--black); }
.follow-window { position: relative; z-index: 3; width: 100%; margin: 0 auto 44px; }
.follow-body { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 16px 20px; }
.follow-body .eyebrow { color: #111; font: 23px var(--pixel); }
.follow-body p { margin: 3px 0 0; color: #555; font-size: 14px; }
.social-links { display: flex; flex-wrap: wrap; justify-content: end; gap: 7px; }
.social-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px 6px 6px; border: 1px solid #333; background: #f1f1ee; font: 12px var(--mono); }
.social-link.featured { background: #fff; font-weight: 500; }
.social-link:hover { background: #111; color: #fff; }
.social-mark { display: grid; width: 20px; height: 20px; place-items: center; border: 1px solid #888; background: #fff; color: #111; font: 8px var(--mono); }
.desktop-note { position: absolute; right: 24px; bottom: 17px; display: flex; flex-direction: column; align-items: end; gap: 4px; color: #fff; text-shadow: 1px 1px #222; font: 10px var(--pixel); }
.desktop-note span:first-child { padding: 2px 5px; border: 1px solid #fff; background: #222; }
.system-tray { position: fixed; z-index: 14; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-between; height: 26px; padding: 5px clamp(12px, 4vw, 54px); border-top: 2px solid #111; background: var(--paper); color: #222; font: 9px var(--mono); }

@keyframes boot-progress { to { transform: scaleX(1); } }
@keyframes boot-exit { to { opacity: 0; visibility: hidden; } }
@keyframes desktop-in { to { opacity: 1; } }

@media (max-width: 1000px) {
  .main-window { width: 100%; }
  .desktop-area { padding-right: 12px; padding-left: 12px; }
  .intro-panel { grid-template-columns: 90px minmax(0, 1fr); gap: 15px; padding: 19px; }
  .avatar { width: 82px; height: 82px; }
  .intro-copy h1 { font-size: 42px; }
  .intro-copy > p:not(.eyebrow) { font-size: 15px; }
  .file-area { padding-right: 16px; padding-left: 16px; }
  .file-heading, .file-row { grid-template-columns: 44px minmax(160px, .85fr) minmax(135px, .75fr) minmax(200px, 1.4fr) 20px; column-gap: 10px; }
  .file-kind { font-size: 12px; }
  .file-description { font-size: 13px; }
  .proud-item { padding: 13px 11px; }
}
@media (max-width: 700px) {
  .menu-bar { height: 39px; padding: 0 8px; font-size: 17px; }
  .apple-mark { width: 19px; margin-right: 8px; font-size: 13px; }
  .owner-menu { margin-right: 12px; }
  .menu-bar > a:not(.owner-menu):not(.apple-mark) { margin-right: 13px; }
  .menu-bar > a[data-copy="navCollaborate"] { display: none; }
  .desktop-area { padding: 1px 8px 50px; }
  .main-window { width: 100%; margin: 14px auto 18px; }
  .desktop-icons { justify-content: center; margin: 10px auto 5px; gap: 8px; padding: 0; }
  .desktop-icon { width: 83px; font-size: 11px; }
  .icon-art { width: 34px; height: 34px; }
  .window-titlebar { height: 31px; gap: 5px; padding: 0 5px; }
  .window-titlebar strong { font-size: 16px; }
  .window-control { width: 13px; height: 13px; flex-basis: 13px; }
  .title-stripe { height: 10px; }
  .window-toolbar { min-height: 31px; padding: 4px 11px; font-size: 14px; }
  .intro-panel { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 16px 13px; }
  .avatar { width: 60px; height: 60px; }
  .eyebrow { font-size: 10px; }
  .intro-copy h1 { font-size: clamp(30px, 8vw, 39px); }
  .intro-copy > p:not(.eyebrow) { margin: 7px 0; font-size: 14px; }
  .role-row { flex-wrap: wrap; gap: 6px; font-size: 10px; }
  .file-area { padding: 0 8px 7px; }
  .file-heading { display: none; }
  .file-row { grid-template-columns: 42px minmax(0, 1fr) 16px; grid-template-rows: auto auto auto; align-items: start; min-height: 94px; column-gap: 10px; row-gap: 3px; padding: 12px 5px; }
  .file-glyph { grid-column: 1; grid-row: 1 / 4; width: 25px; height: 31px; margin-top: 2px; }
  .file-glyph.has-app-icon { width: 38px; height: 38px; }
  .file-name { grid-column: 2; grid-row: 1; }
  .file-name strong { font-size: 16px; }
  .file-name small { font-size: 10px; }
  .file-kind { grid-column: 2; grid-row: 2; max-width: none; color: #555; font-size: 10px; }
  .file-description { grid-column: 2 / 4; grid-row: 3; font-size: 12px; line-height: 1.4; }
  .file-open { grid-column: 3; grid-row: 1; font-size: 12px; }
  .window-status { min-height: 25px; font-size: 9px; }
  .proud-window, .collaboration-window { margin-bottom: 18px; }
  .proud-grid { grid-template-columns: 1fr 1fr; }
  .proud-item { grid-template-columns: 30px minmax(0, 1fr) 10px; gap: 7px; min-height: 108px; padding: 11px 8px; border-right: 1px dotted #888; border-bottom: 1px dotted #888 !important; }
  .proud-item:nth-child(2n) { border-right: 0; }
  .proud-item:nth-last-child(-n+2) { border-bottom: 0 !important; }
  .proud-icon { width: 29px; height: 32px; font-size: 19px; }
  .proud-copy small { font-size: 8px; }
  .proud-copy strong { font-size: 18px; }
  .proud-copy > span { font-size: 12px; }
  .collaboration-body { grid-template-columns: 36px minmax(0, 1fr); gap: 9px; padding: 12px 10px; }
  .collaboration-icon { width: 34px; height: 36px; font-size: 20px; }
  .collaboration-copy h2 { font-size: 21px; }
  .collaboration-copy > p:last-child { font-size: 12px; }
  .collaboration-cta { grid-column: 2; justify-self: start; gap: 13px; padding: 7px 9px; font-size: 12px; }
  .follow-window { width: 100%; margin: 0 auto 35px; }
  .follow-body { display: block; padding: 13px; }
  .follow-body .eyebrow { font-size: 20px; }
  .follow-body p { font-size: 12px; }
  .social-links { justify-content: start; margin-top: 11px; }
  .social-link { font-size: 10px; }
  .desktop-note { display: none; }
}
@media (max-width: 390px) {
  .owner-menu { font-size: 15px; }
  .menu-bar { font-size: 15px; }
  .menu-bar > a:not(.owner-menu):not(.apple-mark) { margin-right: 8px; }
  .language-switch { font-size: 8px; }
  .file-kind { max-width: none; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-delay: 0ms !important; }
}
