/* Low Mu Labs: house style from the "Low Mu Labs Identity" canvas (B · Repose).
   Fonts are self-hosted under the SIL Open Font License; see fonts/*-OFL.txt. */

@font-face {
  font-family: Jost;
  src: url(/fonts/jost.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url(/fonts/instrument-serif-italic.woff2) format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url(/fonts/geist-mono-500.woff2) format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --ground: #F3EFE5;   /* ivory */
  --paper: #FAF8F3;
  --ink: #111110;
  --graphite: #3B3A36;
  --stone: #6B675E;
  --rule: #D9D3C5;
  --glide: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(20px, 5vw, 64px);
  --sans: Jost, Futura, "Century Gothic", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #111110;
    --paper: #1A1A19;
    --ink: #F3EFE5;
    --graphite: #D9D3C5;
    --stone: #A8A397;
    --rule: #2E2D2A;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--ink); color: var(--ground); }

a { color: inherit; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }

/* Header */

.top {
  width: 100%;
  max-width: 1328px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) var(--gutter) 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
}

/* The lockup: custom µ plus Jost Regular, both sheared 5.71° (tan⁻¹ 0.1). */
.lockup {
  display: inline-flex;
  align-items: baseline;
  padding: 10px 0 14px;
  font-size: 22px;
  text-decoration: none;
}
.lockup .mu {
  flex: none;
  width: .905em;
  height: 1.168em;
  position: relative;
  top: .39em;
  margin-right: .2em;
  overflow: visible;
  fill: currentColor;
}
.lockup .name {
  display: inline-block;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.015em;
  transform: skewX(-5.71deg);
}

.mail {
  padding: 12px 0;
  font-size: 16px;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 0 1px no-repeat;
  transition: background-size .5s var(--glide);
}
.mail:hover { background-size: 100% 1px; }

/* Hero */

.hero {
  width: 100%;
  max-width: 1328px;
  margin: 0 auto;
  padding: clamp(32px, 7vh, 104px) var(--gutter) clamp(16px, 3vh, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.eyebrow {
  margin: 0 0 28px;
  font: 500 12px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--stone);
}

h1 {
  margin: 0;
  max-width: 11.5em;
  font-weight: 300;
  font-size: clamp(2.875rem, 7.4vw, 6.75rem);
  line-height: .98;
  letter-spacing: -.04em;
  text-wrap: balance;
}
h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.06em;
  letter-spacing: -.01em;
}

/* Lede and Halves side by side when both fit, stacked otherwise. */
.row {
  width: 100%;
  margin-top: clamp(24px, 4vh, 44px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px 48px;
}

.lede {
  margin: 0;
  max-width: 30rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--graphite);
  text-wrap: pretty;
}

/* Halves */

.app {
  flex: 0 1 30rem;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px 16px 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 18px;
}
.app-icon { flex: none; width: 60px; height: 60px; }
.app-icon .tile { fill: #111110; }
.app-icon .coin { fill: #F3EFE5; }
@media (prefers-color-scheme: dark) {
  .app-icon .tile { fill: #F3EFE5; }
  .app-icon .coin { fill: #111110; }
}
.app-text h2 {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.app-text p {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--graphite);
}
.tag {
  font: 500 10.5px/1 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--stone);
  padding: 5px 8px;
  border: 1px solid var(--rule);
  border-radius: 999px;
}

/* The incline: a 1-in-10 slope, full bleed. Under 720px the drawing keeps its size and crops from the left. */

.incline {
  display: flex;
  justify-content: flex-end;
  overflow: hidden;
}
.incline svg {
  flex: none;
  display: block;
  width: max(100%, 720px);
  height: auto;
}
.incline line { stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.incline svg g { fill: var(--ink); }
.g1 { opacity: .05; }
.g2 { opacity: .1; }
.g3 { opacity: .18; }

/* Footer */

.foot {
  width: 100%;
  max-width: 1328px;
  margin: 0 auto;
  padding: 20px var(--gutter) max(24px, env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font: 500 11px/1.6 var(--mono);
  letter-spacing: .04em;
  color: var(--stone);
}

/* Motion: the text settles in, then the µ glides up the slope and comes to rest. */

@media (prefers-reduced-motion: no-preference) {
  .eyebrow, h1, .lede, .app { animation: rise 1.1s var(--glide) both; }
  h1 { animation-delay: .08s; }
  .lede { animation-delay: .16s; }
  .app { animation-delay: .26s; }

  .glider { animation: glide 2.4s var(--glide) .45s both; }
  .ghost { animation: trail .7s ease-out both; }
  .g1 { animation-delay: .45s; }
  .g2 { animation-delay: .74s; }
  .g3 { animation-delay: 1.07s; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
}
/* From the first ghost (x 500) to rest (x 880), along the 1-in-10 slope. */
@keyframes glide {
  from { transform: translate(-380px, 38px); }
}
@keyframes trail {
  from { opacity: 0; }
}
