/* Lookimg 2026 design — base layer (tokens, fonts, shared chrome).
   Loaded after Peafowl's own CSS via custom_hooks/head.php when lk2026_enabled().
   Page-specific layers: lk-image.css, lk-listing.css, lk-pages.css, lk-home.css. */

@font-face {
  font-family: "Handsean";
  src: url("../lulz_assets/handsean.ttf?v=5") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-400-800.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/jetbrains-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-500.woff2") format("woff2");
}

/* ---------- Tokens + Peafowl variable mapping ----------
   html[class] beats Peafowl's .palette-* rules (including its dark-mode
   media queries), so every visitor gets the light Lookimg palette. */
html[class],
html[class][data-palette] {
  color-scheme: light;

  --lk-ink: #222222;
  --lk-paper: #FAF9F6;
  --lk-white: #ffffff;
  --lk-muted: #5E5A52;
  --lk-muted-2: #3A3730;
  --lk-line: #DAD6CC;
  --lk-soft: #EFEDE6;
  --lk-lime: #b8d94a;
  --lk-sky: #7ec8d9;
  --lk-lavender: #c9b3e6;
  --lk-pink: #F4A6C6;
  --lk-peach: #F6C98A;
  --lk-hand: "Handsean", "Comic Sans MS", cursive;
  --lk-sans: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --lk-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --lk-border: 3px solid var(--lk-ink);
  --lk-shadow-sm: 4px 4px 0 var(--lk-ink);
  --lk-shadow: 6px 6px 0 var(--lk-ink);
  --lk-radius: 14px;

  --bodyBackground: var(--lk-paper);
  --bodyText: var(--lk-ink);
  --bodyTextSubtle: var(--lk-muted);
  --bodyTextDisabled: #A8A396;
  --bodySeparator: var(--lk-line);
  --bodyEmpty: var(--lk-soft);
  --linkText: var(--lk-ink);
  --colorAccent: var(--lk-ink);
  --colorAccentStrong: #000000;
  --buttonAccentBackground: var(--lk-ink);
  --buttonAccentHoverBackground: #000000;
  --buttonAccentText: var(--lk-white);
  --buttonAccentHoverText: var(--lk-white);
  --buttonDefaultBackground: var(--lk-white);
  --buttonDefaultBorder: var(--lk-ink);
  --buttonDefaultText: var(--lk-ink);
  --buttonDefaultHoverBackground: var(--lk-lime);
  --buttonDefaultHoverBorder: var(--lk-ink);
  --buttonDefaultHoverText: var(--lk-ink);
  --inputBackground: var(--lk-white);
  --inputText: var(--lk-ink);
  --inputPlaceholderText: #8A857A;
  --menuBackground: var(--lk-white);
  --menuBorder: var(--lk-ink);
  --menuSeparator: var(--lk-line);
  --menuText: var(--lk-ink);
  --menuItemText: var(--lk-ink);
  --menuItemHoverBackground: var(--lk-lime);
  --menuItemHoverText: var(--lk-ink);
  --modalBackground: var(--lk-white);
  --modalText: var(--lk-ink);
  --topBarBackground: var(--lk-white);
  --topSubBarBackground: var(--lk-white);
  --topBarText: var(--lk-ink);
  --alertBackground: #F4F9E3;
  --alertAccent: var(--lk-lime);
  --alertText: var(--lk-ink);
  --borderRadius: 12px;
}

/* ---------- Page ---------- */
html[class] body {
  background-color: var(--lk-paper);
  background-image: radial-gradient(#DEDAD0 1.2px, transparent 1.3px);
  background-size: 22px 22px;
  color: var(--lk-ink);
  font-family: var(--lk-sans);
}
html[class] body,
html[class] .text-input,
html[class] button,
html[class] input,
html[class] select,
html[class] textarea {
  font-family: var(--lk-sans);
}
html[class] a { color: var(--lk-ink); }
html[class] a:hover { color: #000; }
html[class] code,
html[class] pre,
html[class] kbd { font-family: var(--lk-mono); }

html[class] h1,
html[class] h2,
html[class] .header-title,
html[class] .modal-box-title,
html[class] .section-title {
  font-family: var(--lk-hand);
  font-weight: 400;
  letter-spacing: 0.2px;
}

html[class] ::selection { background: var(--lk-lime); color: var(--lk-ink); }
html[class] :focus-visible { outline: 3px solid var(--lk-ink); outline-offset: 2px; }

/* ---------- Top bar ---------- */
html[class] .top-bar {
  background: var(--lk-white);
  border-bottom: var(--lk-border);
  box-shadow: none;
}
html[class] .top-bar .top-btn-text,
html[class] .top-bar .top-btn-text .btn-text {
  font-family: var(--lk-hand);
  font-size: 19px;
  color: var(--lk-ink);
}
html[class] .top-bar .top-btn-text .icon { color: var(--lk-ink); }
html[class] .top-bar .top-btn-el:hover > .top-btn-text,
html[class] .top-bar .pop-btn:hover > .top-btn-text,
html[class] .top-bar .opened > .top-btn-text {
  background: var(--lk-soft);
  border-radius: 10px;
}
/* "CAN i HAZ?!" upload button */
html[class] .top-bar li[data-nav="upload"] > .top-btn-text {
  background: var(--lk-ink);
  color: var(--lk-white);
  border: var(--lk-border);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--lk-lime);
  padding: 0 16px;
  height: 40px;
  line-height: 34px;
  margin-top: 6px;
  box-sizing: border-box;
  transition: transform .12s, box-shadow .12s;
}
html[class] .top-bar li[data-nav="upload"] > .top-btn-text .icon,
html[class] .top-bar li[data-nav="upload"] > .top-btn-text .btn-text { color: var(--lk-white); }
html[class] .top-bar li[data-nav="upload"]:hover > .top-btn-text {
  background: #000;
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--lk-lime);
}
/* Sign in → pill */
html[class] .top-bar #top-bar-signin > .top-btn-text {
  border: 2px solid var(--lk-ink);
  border-radius: 10px;
  background: var(--lk-lime);
  height: 36px;
  line-height: 32px;
  margin-top: 8px;
  padding: 0 14px;
  box-sizing: border-box;
}

/* ---------- Buttons ---------- */
html[class] .btn {
  border: var(--lk-border);
  border-radius: 12px;
  font-family: var(--lk-sans);
  font-weight: 700;
  box-shadow: var(--lk-shadow-sm);
  transition: transform .12s, box-shadow .12s, background-color .12s;
}
html[class] .btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--lk-ink);
}
html[class] .btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--lk-ink);
}
html[class] .btn.default,
html[class] .btn.btn-input.default,
html[class] .btn.accent {
  background: var(--lk-ink);
  color: var(--lk-white);
  box-shadow: 4px 4px 0 var(--lk-lime);
}
html[class] .btn.default:hover,
html[class] .btn.accent:hover { background: #000; box-shadow: 5px 5px 0 var(--lk-lime); }
html[class] .btn.default .btn-icon,
html[class] .btn.accent .btn-icon { color: var(--lk-white); }
html[class] .btn.btn-capsule { border-radius: 999px; }

/* ---------- Inputs ---------- */
html[class] .text-input,
html[class] input[type="text"],
html[class] input[type="email"],
html[class] input[type="password"],
html[class] input[type="url"],
html[class] input[type="search"],
html[class] input[type="number"],
html[class] select,
html[class] textarea {
  background: var(--lk-white);
  color: var(--lk-ink);
  border: var(--lk-border);
  border-radius: 12px;
  box-shadow: none;
}
html[class] .text-input:focus,
html[class] input:focus,
html[class] select:focus,
html[class] textarea:focus {
  border-color: var(--lk-ink);
  box-shadow: 4px 4px 0 var(--lk-lime);
  outline: none;
}
html[class] .input-label label,
html[class] label { font-weight: 700; }

/* ---------- Pop-up menus & modals ---------- */
html[class] .pop-box,
html[class] .pop-box-inner {
  background: var(--lk-white);
  border-radius: var(--lk-radius);
}
html[class] .pop-box {
  border: var(--lk-border);
  box-shadow: var(--lk-shadow);
}
html[class] .pop-box .arrow-box,
html[class] .arrow-box:after,
html[class] .arrow-box:before { display: none; }
html[class] .pop-box-menu a,
html[class] .pop-box-menu [role="button"] { color: var(--lk-ink); }
html[class] .pop-box-menu a:hover { background: var(--lk-lime); color: var(--lk-ink); }

/* ---------- Footer (custom_hooks/footer.php) ---------- */
.lk-footer {
  margin-top: 48px;
  border-top: 3px solid #222222;
  background: #ffffff;
  font-family: "Handsean", "Comic Sans MS", cursive;
  font-size: 19px;
  color: #222222;
}
.lk-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}
.lk-footer nav { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.lk-footer a { color: #222222; text-decoration: underline; text-underline-offset: 3px; padding: 6px 2px; }
.lk-footer a:hover { background: #b8d94a; text-decoration: none; border-radius: 6px; }
.lk-footer .lk-sep { color: #9A968C; }
.lk-footer .lk-tag { color: #5E5A52; }
@media (max-width: 600px) {
  .lk-footer__inner { flex-direction: column; text-align: center; }
  .lk-footer nav { justify-content: center; }
}
