/* flxyp.com — same design language as flxyp.xyz
   canvas #e5e4e0, ink #1d1d1d, Archivo display + JetBrains Mono, hairline rules. */

@font-face {
  font-family: Archivo;
  src: url('/fonts/archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --canvas: #e5e4e0;
  --ink: #1d1d1d;
  --rule: rgb(29 29 29 / 0.12);
  --pad: 20px;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  --display: Archivo, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--canvas); }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  overflow-x: clip;
}

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

a { color: inherit; text-decoration: none; }

.mono {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dim { color: rgb(29 29 29 / 0.6); }

/* hairline underline that grows on hover, matching .xyz */
.link-line {
  position: relative;
  padding-bottom: 2px;
}
.link-line::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.link-line:hover::after,
.link-line:focus-visible::after { transform: scaleX(1); }

/* header + footer bars */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  padding: 16px var(--pad);
}
.foot { border-bottom: 0; border-top: 1px solid var(--rule); }

.wordmark {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* hero */
.hero {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px var(--pad);
}

.eyebrow { margin: 0; color: rgb(29 29 29 / 0.6); }

.display {
  margin: 20px 0 0;
  font-family: var(--display);
  font-size: clamp(3rem, 12.5vw, 11.25rem);
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.lede {
  margin: 24px 0 0;
  max-width: 62ch;
  font-size: 12px;
  line-height: 1.65;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgb(29 29 29 / 0.6);
}

.actions {
  margin: 24px 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.actions .sep { color: rgb(29 29 29 / 0.35); }

/* circular CTA, bottom right, as on flxyp.xyz */
.dial {
  position: absolute;
  right: var(--pad);
  bottom: 32px;
  height: 88px;
  width: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(29 29 29 / 0.3);
  border-radius: 999px;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.dial:hover,
.dial:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--canvas);
}

/* statement block */
.statement {
  padding: 56px var(--pad) 64px;
  border-top: 1px solid var(--rule);
}
.statement .quote {
  margin: 0;
  font-size: clamp(1.6rem, 4.4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 22ch;
}
.statement .actions { margin-top: 28px; }

.rule-top, .rule-bot { display: none; }

/* ---------- intro preloader, ported from flxyp.xyz ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--canvas);
  color: var(--ink);
  clip-path: inset(0 0 0% 0);
}
.pl-inner { display: flex; flex-direction: column; height: 100%; }

.pl-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-bottom: 1px solid var(--rule);
  padding: 16px var(--pad);
}

/* overflow stays visible: the wordmark flies out of here into the page header */
.pl-mid {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 0 24px;
}
.pl-stage { position: relative; }

.pl-word {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.75rem, 11vw, 9rem);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.pl-word .ch {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
  vertical-align: top;
}
.pl-word .chi { display: inline-block; will-change: transform; }

/* the brand X: same geometry as the loading mark, ink sat on the baseline */
.cross {
  display: block;
  height: 0.53em;
  width: 0.53em;
  margin-top: 0.305em;
}

.pl-markwrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
#pl-mark { display: block; }

.pl-bot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 var(--pad) 20px;
}
.pl-count {
  font-size: 27px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pl-track {
  margin-top: 12px;
  height: 1px;
  width: clamp(140px, 22vw, 260px);
  background: var(--rule);
}
.pl-bar {
  height: 1px;
  width: 100%;
  background: var(--ink);
  transform-origin: left center;
  transform: scaleX(0);
}

/* header wordmark with the brand X in place of the x */
.wordmark {
  display: inline-block;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.02em;
}
/* inline and baseline-aligned, exactly as on flxyp.xyz, so the line box stays 22.5px */
.wordmark .wm-cross {
  display: inline-block;
  vertical-align: baseline;
  height: 0.53em;
  width: 0.53em;
  margin-top: 0;
}

@media (min-width: 768px) {
  :root { --pad: 40px; }
  .bar { padding: 20px var(--pad); }
  .hero { padding: 48px var(--pad); }
  .display { margin-top: 28px; }
  .lede { margin-top: 32px; font-size: 13px; }
  .dial { height: 128px; width: 128px; bottom: 48px; }
  .statement { padding-top: 80px; padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .link-line::after, .dial { transition: none; }
}
