/* AbeUS shell: shared by the homepage and product pages */

:root {
  --bg: #000;
  --fg: #f4f4f2;
  --muted: #a3a3a6;
  --faint: #8a8a8e;
  --line: rgba(255, 255, 255, 0.1);
  --hover: rgba(255, 255, 255, 0.045);
  --brand: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Inter, Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: inherit; }
img { display: block; }
h1, h2, p { text-wrap: pretty; }
a:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; border-radius: 10px; }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 28px; width: 100%; }

/* Nav: a glass bar that stays at the top while the page scrolls under it */
.nav {
  height: 72px; position: sticky; top: 0; z-index: 10;
  background: rgba(6, 8, 12, 0.5);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.07);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { background: rgba(0, 0, 0, 0.94); }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: #000; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.wordmark {
  font-family: var(--brand); font-weight: 700; font-size: 20px;
  letter-spacing: -0.02em;
  text-decoration: none; padding: 10px 0; line-height: 1;
}
.nav nav { display: flex; gap: 2px; margin-right: -10px; }
.nav nav a { position: relative; text-decoration: none; color: var(--muted); font-size: 15px; padding: 12px 10px; border-radius: 8px; transition: color .2s; }
.nav nav a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 8px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.nav nav a:hover::after, .nav nav a[aria-current]::after { transform: scaleX(1); }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--fg); }

/* Hero */
.hero { padding: 112px 0 80px; }
.hero h1 {
  font-family: var(--brand); font-weight: 700;
  font-size: clamp(44px, 7vw, 76px); line-height: 1.0;
  letter-spacing: -0.04em;
  margin: 0 0 24px; max-width: 15ch;
}
.hero .lede { color: var(--muted); font-size: clamp(19px, 2.2vw, 22px); line-height: 1.45; margin: 0; max-width: 34ch; }

main { flex: 1; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--faint); font-size: 14px; margin-top: 96px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; }
footer .wordmark { font-size: 17px; color: var(--fg); padding: 0; }
footer .meta { display: flex; align-items: center; gap: 16px; }
footer nav { display: flex; flex-wrap: wrap; margin: 0 -8px; }
footer nav a { text-decoration: none; padding: 12px 8px; transition: color .2s; }
.wordmark { transition: opacity .2s; }
.wordmark:hover { opacity: .75; }
footer nav a:hover { color: var(--fg); }

@media (max-width: 640px) {
  .wrap { padding: 0 22px; }
  .nav { height: 64px; }
  .hero { padding: 64px 0 52px; }
  footer { margin-top: 64px; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
