@font-face { font-family: "Söhne"; src: url("/fonts/soehne-buch.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: "Söhne"; src: url("/fonts/soehne-kraftig.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: block; }
@font-face { font-family: "Söhne Mono"; src: url("/fonts/soehne-mono-buch.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: block; }
@font-face {
  font-family: "Söhne Fallback";
  src: local("Helvetica Neue"), local("HelveticaNeue");
  size-adjust: 98.46%;
  ascent-override: 118.94%;
  descent-override: 42.96%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Söhne Fallback";
  font-weight: 500;
  src: local("Helvetica Neue Medium"), local("HelveticaNeue-Medium");
  size-adjust: 95.89%;
  ascent-override: 122.13%;
  descent-override: 44.12%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light;
  --ink: #000;
  --paper: #fafafa;
  --card-ink: #000;
  --card-muted: #808080;
  --dp: 1px;
  --margin-em: 1.616;
  --h1-size: clamp(28px, min(5vw, 8vh), 120px);
  --margin: calc(var(--h1-size) * var(--margin-em));
  --measure: calc(var(--h1-size) * 700 / 36);
  --h1-lh: calc(var(--h1-size) * 4 / 3);
  --stem: calc(var(--h1-size) * 0.09);
  --nav-gap-y: calc(var(--h1-lh) / 2 - 0.149 * var(--h1-size));
  --pill-h: round(max(var(--h1-lh), 44px), var(--dp));
  --btn-pad-x: 1em;
  --btn-gap: calc(var(--h1-size) / 3);
}

@media (min-resolution: 1.5dppx) { :root { --dp: 0.5px; } }
@media (min-resolution: 2.5dppx) { :root { --dp: calc(1px / 3); } }

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; background: var(--paper); }

html {
  font-family: "Söhne", "Söhne Fallback", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures contextual;
  font-feature-settings: "kern", "liga", "calt";
  font-optical-sizing: auto;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  hyphens: manual;
  overflow-wrap: normal;
}

body {
  color: var(--ink);
  background: var(--paper);
  display: grid;
  place-items: center;
  padding: var(--margin);
}

main {
  width: 100%;
  max-width: var(--measure);
  text-align: center;
}

h1 {
  margin: 0;
  font-size: var(--h1-size);
  line-height: var(--h1-lh);
  font-weight: 400;
  text-wrap: balance;
  hanging-punctuation: first last;
  -webkit-hyphens: none;
  hyphens: none;
}

.ai {
  position: absolute;
  top: -373975px;
  left: -1221068px;
}

nav {
  margin-top: var(--nav-gap-y);
  display: flex;
  justify-content: center;
  gap: var(--btn-gap);
  flex-wrap: wrap;
  font-size: 16px;
}

.pill {
  --stroke: round(var(--stem), var(--dp));
  appearance: none;
  box-sizing: border-box;
  margin: 0;
  --track: calc(var(--h1-size) * 0.03005);
  letter-spacing: var(--track);
  height: var(--pill-h);
  padding: 0 calc(var(--btn-pad-x) - var(--track)) 0.128em var(--btn-pad-x);
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 999px;
  corner-shape: round;
  color: var(--ink);
  background: none;
  font: inherit;
  font-size: calc(var(--h1-size) * 0.75);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  will-change: transform;
  backface-visibility: hidden;
  position: relative;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.pill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 var(--stroke) var(--ink);
  pointer-events: none;
}
.pill:focus-visible { outline: var(--stem) solid var(--ink); outline-offset: var(--stem); }

button.pill {
  justify-content: center;
  overflow: hidden;
  --fade-top: calc((var(--pill-h) - 1em) / 2 + 0.064em - 0.12em);
  --fade-bottom: calc((var(--pill-h) - 1em) / 2 - 0.064em - 0.12em);
}
button.pill::after {
  background:
    linear-gradient(to bottom, var(--paper), transparent var(--fade-top)),
    linear-gradient(to top, var(--paper), transparent var(--fade-bottom));
}
.lens {
  display: grid;
  perspective: 3em;
}
.flip {
  --r: 0.9em;
  display: grid;
}
.flip .face {
  grid-area: 1 / 1;
  justify-self: center;
  white-space: nowrap;
  backface-visibility: hidden;
  will-change: transform, opacity, filter;
  padding: 0.25em 0.3em;
  margin: -0.25em -0.3em;
}
