/* Untitled Folder — pixel-art placeholder. No frameworks, no third-party requests. */

@font-face {
  font-family: "Press Start 2P";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/press-start-2p.woff2") format("woff2");
}

:root {
  --bg: #e9e4d4;
  --dither: #ddd6c2;
  --panel: #f7f3e6;
  --ink: #26221a;
  --muted: #6f6753;
  --gold: #d99e1b;
  --gold-bright: #f3d878;
  --grass: #4d9b45;
  --shadow: #26221a;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1a20;
    --dither: #211f27;
    --panel: #26242c;
    --ink: #e9e4d4;
    --muted: #9a927e;
    --gold: #f0c545;
    --gold-bright: #f8e08a;
    --grass: #62b558;
    --shadow: #0d0c10;
  }
}

* { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: ui-monospace, "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 15px;
  line-height: 1.7;
  background-color: var(--bg);
  /* 2px checker dither, the classic desktop-pattern trick */
  background-image: conic-gradient(var(--dither) 25%, transparent 0 50%, var(--dither) 0 75%, transparent 0);
  background-size: 4px 4px;
}

::selection { background: var(--gold); color: #26221a; }

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 32px;
}

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { background: var(--gold); color: #26221a; text-decoration: none; }

.px { font-family: "Press Start 2P", ui-monospace, monospace; line-height: 1.6; }

/* ---- hero: a lone desktop icon being renamed ---- */

.hero {
  text-align: center;
  padding: 40px 0 56px;
}

.hero .icon {
  width: 128px;
  height: 112px;
  image-rendering: pixelated;
  display: block;
  margin: 0 auto;
}

.rename {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  font-size: 13px;
  color: var(--panel);
  background: var(--ink);
  border: 2px solid var(--ink);
  outline: 2px dotted var(--gold);
  outline-offset: 2px;
}

.rename .caret {
  display: inline-block;
  width: 8px;
  height: 14px;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--gold);
  animation: blink 1.06s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

h1 {
  font-size: clamp(18px, 4.6vw, 30px);
  margin: 44px 0 0;
  letter-spacing: 1px;
}

.tagline {
  margin: 18px 0 0;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 2px;
}

.blurb {
  margin: 28px auto 0;
  max-width: 480px;
  color: var(--muted);
}

/* ---- window chrome ---- */

.window {
  background: var(--panel);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 0 var(--shadow);
  margin: 0 0 56px;
}

.titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--ink);
  color: var(--panel);
  font-size: 9px;
}

.titlebar .dots { margin-left: auto; display: flex; gap: 6px; }
.titlebar .dots i { width: 8px; height: 8px; background: var(--panel); }
.titlebar .dots i:first-child { background: var(--gold); }

.window .body { padding: 20px; }
.window .body > p { margin: 14px 0 0; }
.window .body > p:first-child { margin-top: 0; }

/* ---- coming soon strip ---- */

.stripbox {
  border: 3px solid var(--ink);
  background: #26242c;
  overflow: hidden;
  line-height: 0;
}

#strip { display: block; width: 100%; image-rendering: pixelated; }

.caption {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.caption .name { font-size: 11px; }

.badge {
  margin-left: auto;
  font-size: 8px;
  padding: 6px 8px;
  color: #26221a;
  background: var(--gold);
  border: 2px solid var(--ink);
  animation: pulse 1.4s steps(1) infinite;
}

@keyframes pulse { 50% { background: var(--gold-bright); } }

.caption + p { color: var(--muted); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  .rename .caret, .badge { animation: none; }
}

/* ---- tools ---- */

.tool { display: flex; gap: 16px; align-items: flex-start; }

.tool-icon { width: 48px; height: 48px; flex: none; margin-top: 2px; }

.tool .name { font-size: 11px; text-decoration: none; border-bottom: 2px solid var(--gold); }

.tool p { margin: 10px 0 0; color: var(--muted); font-size: 13px; }

/* ---- section headings ---- */

h2 {
  font-size: 12px;
  margin: 0 0 20px;
  letter-spacing: 1px;
}

h2::before { content: "\25a0 "; color: var(--gold); }

/* ---- legal pages ---- */

.doc h2 { margin-top: 32px; font-size: 11px; }
.doc p, .doc li { color: var(--ink); }
.doc .updated { color: var(--muted); font-size: 13px; }

/* ---- footer ---- */

footer {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  border-top: 3px solid var(--ink);
  padding-top: 18px;
}

footer .spacer { margin-left: auto; }
