/* Islet's site: dark, quiet, metal and glass. The only gradients are metallic. */
:root {
  --bg: #09090b;
  --surface: #121215;
  --text: #f2f2f4;
  --dim: rgba(242, 242, 244, 0.6);
  --faint: rgba(242, 242, 244, 0.38);
  --hairline: rgba(255, 255, 255, 0.08);
  --metal: linear-gradient(180deg, #fafafb 0%, #d4d5da 42%, #9c9ea6 58%, #e6e7eb 100%);
  --metal-btn: linear-gradient(180deg, #f6f6f8 0%, #d9dade 48%, #c3c4ca 52%, #e2e3e7 100%);
  --font: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --display: 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, sans-serif;
  /* Titles, in the same joined pen line as the wordmark */
  --script: 'Playwrite IN', var(--display);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --soft-spring: cubic-bezier(0.3, 1.18, 0.5, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; }

/* Nav: a thick glass pill that slides away while you scroll down */
.nav {
  position: fixed; top: 16px; left: 50%; z-index: 10;
  translate: -50% 0;
  display: flex; align-items: center; gap: 4px;
  height: 52px; padding: 0 8px 0 14px; border-radius: 26px;
  background: rgba(30, 30, 34, 0.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -8px 16px rgba(0, 0, 0, 0.25),
    0 12px 32px rgba(0, 0, 0, 0.4);
  transition: translate 700ms var(--ease), opacity 700ms var(--ease);
}
.nav.away { translate: -50% calc(-100% - 24px); opacity: 0; }
.nav .brand { display: flex; align-items: center; gap: 9px; margin-right: 14px; font: 600 16px var(--display); text-decoration: none; }
.nav .brand img { width: 26px; height: 26px; border-radius: 7px; }
.nav a.link {
  padding: 7px 14px; border-radius: 18px;
  font-size: 14px; color: var(--dim); text-decoration: none;
  transition: color 300ms, background 300ms;
}
.nav a.link:hover, .nav a.link[aria-current] { color: var(--text); background: rgba(255, 255, 255, 0.07); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 24px; border-radius: 25px;
  font: 600 15px var(--font); text-decoration: none; white-space: nowrap;
  transition: transform 400ms var(--ease), box-shadow 400ms var(--ease), background 300ms;
}
.btn:active { transform: scale(0.98); transition-duration: 120ms; }
.btn svg { width: 17px; height: 17px; }
.btn.metal {
  color: #111114;
  background: var(--metal-btn);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0, 0, 0, 0.18), 0 8px 24px rgba(0, 0, 0, 0.45);
}
.btn.metal:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0, 0, 0, 0.18), 0 14px 32px rgba(0, 0, 0, 0.55); }
.btn.glass { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.btn.glass:hover { background: rgba(255, 255, 255, 0.1); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

footer { margin-top: 120px; padding: 28px 0 40px; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--faint); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: space-between; }
footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--text); }

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav { padding: 0 6px 0 12px; }
  .nav .brand { margin-right: 4px; }
  .nav a.link { padding: 7px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0ms !important; }
}
