@import url("https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@300;400;500;700&family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap");

@font-face {
  font-family: "Libre Caslon Condensed";
  src: url("/fonts/LibreCaslonCondensed.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libre Caslon Condensed";
  src: url("/fonts/LibreCaslonCondensed-Italic.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --radius: 5px;
  --surface: #000000;
  --surface-mid: #131313;
  --ink: #f2f1ea;
  --ink-muted: #a8a8a8;
  --ink-faint: #6b6b66;
  --outline-soft: rgba(255, 255, 255, 0.16);
  --black: #000000;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  background: var(--surface);
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* Back to the original: three corner-anchored gradients in one box, moving
   together as a single rigid transform. Two experiments that didn't work,
   for the record — separately-animated blobs (goo filter, mix-blend-mode)
   read as a gaudy colored smear rather than a subtle mesh; rotating this
   same box by a large/full angle revealed a hard-edged wedge, since these
   ellipses are several times the viewport's size and a big rotation shows
   what's really just a slice of a huge curve. A *small* rotation angle
   combined with the translate stays well clear of that — the curve barely
   moves at this angle, so no edge, but it reads as more animated than
   translation alone (a slight swirl, not just a slide). */
body::before {
  content: "";
  position: fixed;
  inset: -35%;
  z-index: 0;
  pointer-events: none;
  /* Anchor percentages recomputed for the -35% inset above — a symmetric
     inset keeps 50% centered, but 0%/100% edges shift inward relative to
     the viewport as the box grows, which was quietly pushing the purple
     out of frame (visually the same anchoring as the original inset:0
     version, just expressed against the bigger box). */
  background:
    radial-gradient(ellipse 1100px 850px at 50% 20.6%, rgba(139, 123, 216, 0.47) 0%, transparent 65%),
    radial-gradient(ellipse 900px 1000px at 79.4% 47.1%, rgba(139, 123, 216, 0.32) 0%, transparent 65%),
    radial-gradient(ellipse 900px 1000px at 20.6% 79.4%, rgba(139, 123, 216, 0.32) 0%, transparent 65%);
  animation: mesh-drift 12s ease-in-out infinite;
}
@keyframes mesh-drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(13%, -13%, 0) rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}
.nav-wrap,
main {
  position: relative;
  z-index: 1;
}
h1,
h2,
h3 {
  font-family: "Libre Caslon Condensed", serif;
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
}
.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
}

.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--ink-faint);
}
/* ── floating pill nav ── */
.nav-wrap {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 9px 10px 9px 20px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.nav-word {
  font-family: "Libre Caslon Condensed", serif;
  font-style: italic;
  font-size: 17px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.apps-menu-wrap {
  position: relative;
}
.apps-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.15s ease;
}
.apps-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}
.apps-menu {
  position: absolute;
  top: 100%;
  right: 0;
  padding-top: 12px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.apps-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.apps-menu-inner {
  min-width: 200px;
  background: rgba(20, 20, 20, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  padding: 6px;
  display: flex;
  flex-direction: column;
}
.apps-menu-group-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.35);
  padding: 8px 10px 4px;
}
.apps-menu-link {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 10px;
  border-radius: 7px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.apps-menu-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.apps-menu-link.is-current {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.apps-menu-link .menu-name {
  flex: 1;
}
.apps-menu-link .menu-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}
.apps-menu-link .tag {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.3);
}
.apps-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 5px 8px;
}

/* ── page ── */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 3rem;
}
@media (max-width: 640px) {
  .wrap {
    padding: 0 1.4rem;
  }
}

section {
  padding: 9rem 0 6rem;
}
.hero-sec {
  padding-top: 11rem;
  padding-bottom: 5rem;
}
.hero-sec h1 {
  font-style: normal;
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  max-width: 14ch;
  margin-bottom: 2rem;
}
.hero-sec p {
  font-size: 17px;
  color: var(--ink-muted);
  line-height: 1.75;
  max-width: 46ch;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
@media (max-width: 640px) {
  .index-grid {
    grid-template-columns: 1fr;
  }
}
.index-grid-dormant {
  grid-template-columns: 1fr;
  max-width: calc(50% - 0.55rem);
}
@media (max-width: 640px) {
  .index-grid-dormant {
    max-width: none;
  }
}
/* Liquid glass, take two. A flat diagonal tint over a flat border read as
   exactly that — flat. This layers three things instead: a specular
   highlight top-left (like light hitting curved glass), a pool of the
   tool's own accent color glowing up from the bottom-right (glass held
   over a colored light), and a genuine gradient-colored border ring (via
   the mask-composite trick below) rather than a single flat rgba line.
   The two color layers drift slowly against each other so the glass reads
   as alive even before you touch it. */
.index-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 1.9rem 1.9rem 1.7rem;
  background:
    radial-gradient(120% 60% at 12% -12%, rgba(255, 255, 255, 0.1), transparent 55%),
    radial-gradient(140% 85% at 92% 122%, color-mix(in srgb, var(--tool-accent) 16%, transparent), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  background-repeat: no-repeat;
  background-position: 0% 0%, 100% 100%, 0 0;
  backdrop-filter: blur(9px) saturate(130%);
  -webkit-backdrop-filter: blur(9px) saturate(130%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -14px 26px -14px color-mix(in srgb, var(--tool-accent) 15%, transparent);
  animation: glass-breathe 13s ease-in-out infinite;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
/* Gradient-colored 1px ring: paint a gradient across the whole box, then
   mask away everything but a 1px edge (content-box XOR full box) — a real
   border-image alternative that also works with border-radius. */
.index-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.03) 45%, color-mix(in srgb, var(--tool-accent) 45%, white) 140%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
@keyframes glass-breathe {
  0%, 100% { background-position: 0% 0%, 100% 100%, 0 0; }
  50% { background-position: 8% 5%, 94% 110%, 0 0; }
}
a.index-card:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -16px 30px -14px color-mix(in srgb, var(--tool-accent) 32%, transparent),
    0 0 0 1px color-mix(in srgb, var(--tool-accent) 30%, transparent),
    0 16px 40px color-mix(in srgb, var(--tool-accent) 18%, transparent);
}
.index-card-top {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 0.9rem;
}
.index-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tool-accent);
  flex: none;
}
.index-card-name {
  font-family: "Libre Caslon Condensed", serif;
  font-style: italic;
  font-size: 1.55rem;
  flex: 1;
}
.index-card-arrow {
  font-size: 16px !important;
  color: var(--ink-faint);
}
.index-card-desc {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.65;
  max-width: 42ch;
}
.index-card-meta {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tool-accent);
  margin-top: 1rem;
}
.index-card.is-dormant {
  background:
    radial-gradient(120% 60% at 12% -12%, rgba(255, 255, 255, 0.09), transparent 55%),
    radial-gradient(140% 85% at 92% 122%, color-mix(in srgb, var(--tool-accent) 14%, transparent), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: none;
}
.index-card.is-dormant::after {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.02) 45%, transparent 140%);
}
.index-card.is-dormant .index-card-name {
  color: var(--ink-faint);
}
.index-card.is-dormant .index-card-desc {
  color: var(--outline-soft);
  margin: 0;
}
.index-card.is-dormant .index-dot {
  opacity: 0.4;
}

.see-also {
  margin-top: 2.4rem;
  font-size: 13.5px;
  color: var(--ink-muted);
}
.see-also a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.see-also a .material-symbols-outlined {
  font-size: 14px !important;
}

footer {
  padding: 3.5rem 0 5rem;
}
footer p {
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}
