@import "/css/components.css";

/* ============================================================
   lanexbuilds.com — Shared Base Styles (base.css)
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
img, svg, video, canvas, audio, iframe, embed, object { max-width: 100%; height: auto; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { 
  background: var(--bg); 
  color: var(--tx); 
  font: 400 16px/1.6 var(--font-sans); 
  min-height: 100vh; 
  display: flex; 
  flex-direction: column; 
  transition: background-color var(--dur-base) var(--ease), color var(--dur-base) var(--ease); 
}
a { color: inherit; text-decoration: none; }
main li a { min-height: 24px; display: inline-flex; align-items: center; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 2px solid var(--act); outline-offset: 3px; border-radius: var(--radius-sm); }

.skip-link { 
  position: absolute; top: -100px; left: 24px; background: var(--tx); color: var(--bg); 
  padding: 8px 16px; border-radius: var(--radius-sm); z-index: 100; font-weight: 600; 
  min-height: 24px; min-width: 24px; display: inline-flex; align-items: center; 
}
.skip-link:focus { top: 16px; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; width: 100%; }

/* Navigation */
header.nav { 
  height: 64px; display: flex; align-items: center; border-bottom: 1px solid var(--ln); 
  position: sticky; top: 0; background: color-mix(in srgb, var(--bg) 80%, transparent); 
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 50; 
}
header.nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.nav-left { display: flex; align-items: center; gap: 32px; }
.brand { font-weight: 600; font-size: 15px; }
.nav-links { display: flex; gap: 24px; font-size: 14px; color: var(--t2); align-items: center; }
.nav-links a { display: inline-flex; align-items: center; min-height: 28px; min-width: 24px; }
.nav-links a:hover { color: var(--tx); transition: color var(--dur-fast) var(--ease); }
.k { 
  display: flex; gap: 10px; align-items: center; border: 1px solid var(--ln); 
  border-radius: var(--radius-md); padding: 6px 12px; font-size: 13px; color: var(--t3); 
  background: var(--s1); transition: border-color var(--dur-fast) var(--ease); 
}
.k:hover { border-color: var(--ln2); }
.k kbd { font-family: inherit; font-size: 12px; border: 1px solid var(--ln); border-radius: 4px; padding: 0 4px; color: var(--t2); }

@media (max-width: 768px) {
  .nav-left { gap: 16px; min-width: 0; flex: 1 1 auto; }
  .brand { flex-shrink: 0; }
  .nav-links { gap: 16px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .ic { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
  .theme-btn { width: 44px; height: 44px; min-width: 44px; min-height: 44px; justify-content: center; }
  .ic.k { width: auto; min-width: 44px; min-height: 44px; }
}

.nav-right { display: flex; align-items: center; gap: 8px; }
.ic { 
  width: 36px; height: 36px; border-radius: var(--radius-sm); border: 1px solid var(--ln2); 
  background: transparent; color: var(--tx); cursor: pointer; font-size: 14px; 
  display: inline-flex; align-items: center; justify-content: center; 
  transition: background var(--dur-fast), border-color var(--dur-fast); 
}
.ic:hover { background: var(--s2); }
.ic[aria-pressed="true"] { background: var(--s2); border-color: var(--act); }
.ic.k { 
  width: auto; padding: 0 12px; font-family: var(--font-mono); font-size: 13px; 
  color: var(--t2); gap: 8px; 
}
.ic.k kbd { border: 1px solid var(--ln2); border-radius: 4px; padding: 1px 5px; font: inherit; }
@media (max-width: 760px) { .ic.k kbd { display: none; } }

/* Header theme button and motion control */
#stop-motion {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  color: var(--tx);
  font-size: 14px;
  line-height: 1;
}
.theme-btn { color: var(--t2); background: transparent; border: none; cursor: pointer; padding: 8px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
.theme-btn:hover { color: var(--tx); }

/* Footer */
footer { border-top: 1px solid var(--ln); padding: 24px 0; font-size: 14px; color: var(--t3); margin-top: auto; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.footer-links a { min-height: 24px; display: inline-flex; align-items: center; }
.footer-links button, [data-theme-toggle].txt, .footer-links [data-theme-toggle], [data-motion-toggle]:not(#stop-motion) { 
  color: var(--t3); font-size: 13px; transition: color var(--dur-fast) var(--ease); 
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; cursor: pointer; 
  min-height: 44px; min-width: 44px;
}
.footer-links [data-theme-toggle]:hover, #stop-motion:hover, [data-motion-toggle]:hover { color: var(--tx); }

/* Hidden utility */
[hidden] { display: none; }

/* ------------------------------------------------------------
   SHARED PAGE INTRO + SCROLLBAR
   ------------------------------------------------------------ */
.page-intro { padding: 80px 0 48px; border-bottom: 1px solid var(--ln); }
.page-intro-in { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t3); margin-bottom: 12px; }
.page-intro h1 { font-size: clamp(42px, 6.5vw, 72px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; margin: 0 0 16px; }
.page-intro p { font-size: 18px; color: var(--t2); max-width: 52ch; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--s2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--t3); }
