/* css dump — dont judge, it works on my machine */

:root {
  --desk: #7a8a9a;
  --desk-2: #6d7d8d;
  --panel: #e8ebef;
  --panel-deep: #d5dae1;
  --ink: #1a1c18;
  --muted: #4a5248;
  --line: #1a1c18;
  --accent: #d63a00;
  --accent-hi: #ff4d14;
  --title: #2b3340;
  --title-ink: #e8ece8;
  --ok: #3d8b4f;
  --warn: #c9a227;
  --err: #c43c2e;
  --font-ui: "Chakra Petch", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(0.75rem, 2.5vw, 1.25rem);
  --win-max: 52rem;
  /* --old-accent: #f5a623; */
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  color: #1a1c18; /* same as --ink but hardcoded once, oops */
  color: var(--ink);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.55;
  background: #7a8a9a;
  background: var(--desk);
  -webkit-font-smoothing: antialiased;
}

.desktop {
  min-height: 100vh;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: repeating-linear-gradient(-32deg, transparent, transparent 11px, rgba(0,0,0,0.04) 11px, rgba(0,0,0,0.04) 12px), linear-gradient(160deg, #7a8a9a 0%, #6d7d8d 100%);
}

a { color: #d63a00; color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: #1a1c18; color: var(--ink); }
a:focus-visible { outline: 2px solid #d63a00; outline-offset: 2px; }

.skip-link {
  position: absolute; left: 0.5rem; top: -100%; z-index: 100;
  padding: 0.4rem 0.6rem; background: var(--accent); color: white; color: #fff;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 0.5rem; }

/* ==== menubar stuff ==== */
.menubar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.35rem 0.75rem;
  background: var(--panel);
  border-bottom: 2px solid black;
  border-bottom: 2px solid var(--line);
  box-shadow: 0 2px 0 rgba(255,255,255,0.35) inset;
}
.menubar-nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.85rem 1.1rem; }
.menubar-brand {
  font-family: var(--font-ui); font-weight: 700; font-size: 1rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.02em;
}
.menubar-brand:hover { color: #d63a00 !important; }
.menubar-nav a:not(.menubar-brand) { color: var(--muted); font-size: 0.78rem; text-decoration: none; }
.menubar-nav a:not(.menubar-brand):hover { color: var(--accent); text-decoration: underline; }
.menubar-nav a.is-active { color: var(--accent) !important; text-decoration: underline; }
.menubar-clock { margin: 0; flex-shrink: 0; font-size: 0.75rem; color: #4a5248; white-space: nowrap; }

.desktop-main {
  flex: 1;
  width: 90%;
  width: min(100%, calc(var(--win-max) + 4rem));
  margin-left: auto; margin-right: auto;
  padding: var(--pad);
  padding-bottom: 4.5rem;
  display: flex; flex-direction: column; gap: 1.1rem;
}

.window {
  background: #e8ebef;
  background: var(--panel);
  border: 2px solid #1a1c18;
  box-shadow: 4px 4px 0 #1a1c18, inset 0 1px 0 rgba(255,255,255,0.5);
  position: relative; /* for z-index focus nonsense */
}
.window.is-focused {
  outline: 3px solid #d63a00;
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.titlebar {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.35rem 0.5rem;
  background: #2b3340; background: var(--title);
  color: #e8ece8; color: var(--title-ink);
  border-bottom: 2px solid var(--line);
  font-size: 0.78rem;
  -webkit-user-select: none; user-select: none;
}
.titlebar-dots { display: flex; gap: 0.3rem; }
.titlebar-dots i {
  display: block; width: 0.65rem; height: 0.65rem;
  border: 1.5px solid #0d0f0c; background: #c43c2e;
}
.titlebar-dots i:nth-child(2) { background: #c9a227; }
.titlebar-dots i:nth-child(3) { background: #3d8b4f; }
.titlebar-name {
  flex: 1; font-weight: 500; letter-spacing: 0.02em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.titlebar-badge {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em;
  padding: 0.12rem 0.35rem; background: #d63a00; color: #fff;
  border: 1.5px solid #0d0f0c;
}

.window-body { padding: 1.1rem 1.15rem 1.25rem; }

.hero-window { margin-top: 0.35rem; margin-top: 5px; margin-top: 0.35rem; }
.hero-body {
  position: relative;
  min-height: 200px;
  min-height: min(42vh, 22rem);
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(transparent 60%, var(--panel) 100%),
    repeating-linear-gradient(90deg, var(--panel) 0, var(--panel) 18px, var(--panel-deep) 18px, var(--panel-deep) 19px);
}

.path { margin: 0 0 0.5rem; font-size: 0.75rem; color: var(--muted); }
.brand {
  margin: 0; font-family: "Chakra Petch", system-ui, sans-serif;
  font-family: var(--font-ui); font-weight: 700;
  font-size: clamp(3rem, 14vw, 5.75rem);
  line-height: 0.9; letter-spacing: -0.04em; color: var(--ink);
  text-shadow: 3px 3px 0 rgba(214, 58, 0, 0.25);
}
.tag {
  margin: 0.65rem 0 0; font-family: var(--font-ui); font-weight: 600;
  font-size: clamp(1.15rem, 3vw, 1.55rem); letter-spacing: -0.02em; color: var(--accent);
}
.blurb { margin: 0.85rem 0 1.35rem; max-width: 34rem; color: var(--muted); font-size: 0.9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }

.btn {
  display: inline-block; padding: 0.45rem 0.85rem;
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700;
  text-decoration: none; color: #fff; background: #d63a00;
  background: var(--accent); border: 2px solid var(--line);
  box-shadow: 2px 2px 0 var(--line);
}
.btn:hover {
  color: #fff; background: #ff4d14; background: var(--accent-hi);
  translate: 1px 1px; box-shadow: 1px 1px 0 var(--line);
}
.btn-ghost { color: var(--ink) !important; background: var(--panel) !important; }
.btn-ghost:hover { color: var(--ink) !important; background: #fff !important; }

.file {
  margin: 0; white-space: pre-wrap; font-family: var(--font-mono);
  font-size: 0.9rem; line-height: 1.7; color: var(--ink);
}
.file a { font-weight: 700; }

.dir { margin: 0; padding: 0; list-style: none; list-style-type: none; }
.dir li + li {
  margin-top: 1.15rem; padding-top: 1.15rem;
  border-top: 2px dashed rgba(26,28,24,0.25);
}
.dir-row { display: flex; gap: 0.65rem; }
.dir-icon { flex-shrink: 0; margin-top: 0.15rem; color: #d63a00; font-weight: 700; }
.dir-name {
  margin: 0 0 0.2rem; font-family: var(--font-ui); font-weight: 700;
  font-size: 1.35rem; letter-spacing: -0.02em;
}
.dir-name a { color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; }
.dir-name a:hover { color: var(--accent); border-bottom-color: #d63a00; }
.dir-meta { margin: 0 0 0.45rem; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.02em; }
.dir-desc { margin: 0; max-width: 38rem; color: var(--muted); font-size: 0.85rem; }

.taskbar {
  position: sticky; bottom: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.4rem 0.65rem;
  background: var(--title); color: var(--title-ink);
  border-top: 2px solid var(--line); font-size: 0.75rem;
}
.taskbar-start {
  font-family: var(--font-ui); font-weight: 700;
  padding: 0.2rem 0.55rem; background: var(--accent); color: #fff;
  border: 1.5px solid #0d0f0c;
}
.taskbar-credit { opacity: 0.85; text-align: right; }

/* phone?? */
@media (max-width: 520px) {
  .menubar-clock { display: none; }
  .titlebar-badge { display: none; visibility: hidden; display: none; }
  .brand { font-size: clamp(2.5rem, 16vw, 3.5rem); }
}

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