@font-face {
  font-family: "Haffer VF";
  src: url("https://cdn.prod.website-files.com/68a5787bba0829184628bd51/68a5df2de5b7c113032b4047_HafferStandardUprights-VF.ttf")
    format("truetype");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: "Haffer VF", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    system-ui, sans-serif;

  --bg: #b8c4d2;

  --shell: #ffffff;
  --ink: #111111;
  --ink-soft: #1c1c1c;
  --muted: #a0a0a0;
  --meta: #6a6a6a;
  --line: rgba(0, 0, 0, 0.1);
  --blue: #2f6bff;
  --blue-hover: #1f5aef;

  --pill-w: 300px;
  --pill-h: 68px;
  --r-pill: 18px;

  --card-w: 420px;
  --card-h: 540px;
  --r-card: 22px;

  --toggle: 44px;
  --r-toggle: 11px;

  --bar-h: 68px;

  --inset-x: 34px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

ul {
  list-style: none;
}

.page {
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2rem 1rem 2.75rem;
  background: var(--bg);
}

.ebn {
  position: relative;
  width: var(--pill-w);
  height: var(--pill-h);
  outline: none;
  will-change: width, height;
  transform-origin: center bottom;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.ebn__shell {
  position: absolute;
  inset: 0;
  background: var(--shell);
  border-radius: var(--r-pill);
  overflow: hidden;
  will-change: border-radius, box-shadow;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(0, 0, 0, 0.06),
    0 16px 40px rgba(0, 0, 0, 0.08);
}

.ebn__clip {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  transform: translateZ(0);
}

.ebn-open {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: var(--bar-h);
  display: flex;
  flex-direction: column;
  padding: 34px var(--inset-x) 6px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ebn[data-state="open"] .ebn-open {
  pointer-events: auto;
}

.ebn-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex-shrink: 0;
}

.ebn-menu li {
  overflow: hidden;
}

.ebn-menu__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 46px;
  font-weight: 720;
  letter-spacing: -0.05em;
  line-height: 1.1;
  color: var(--ink);
  transition: color 0.2s ease;
}

.ebn-menu__link:hover {
  color: var(--blue);
}

.ebn-menu__link--accent {
  color: var(--blue);
}

.ebn-menu__link--accent:hover {
  color: var(--blue-hover);
}

.ebn-menu__label {
  display: block;
}

.ebn-menu__arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
  top: 2px;
}

.ebn-meta {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  flex-shrink: 0;
}

.ebn-meta__heading {
  display: block;
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 13px;
  line-height: 1;
}

.ebn-meta__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ebn-meta__list a {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink-soft);
  line-height: 1.3;
  transition: color 0.18s ease;
}

.ebn-meta__list a:hover {
  color: var(--blue);
}

.ebn-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 var(--inset-x);
  z-index: 2;
}

.ebn-logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.ebn-logo__text {
  font-size: 26px;
  font-weight: 820;
  letter-spacing: -0.055em;
  color: var(--ink);
  line-height: 1;
  user-select: none;
}

.ebn-toggle {
  position: relative;
  width: var(--toggle);
  height: var(--toggle);
  border-radius: var(--r-toggle);
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 1px 2px rgba(47, 107, 255, 0.25);
  transition: background 0.18s ease, transform 0.15s ease;
}

.ebn-toggle:hover {
  background: var(--blue-hover);
}

.ebn-toggle:active {
  transform: scale(0.96);
}

.ebn-toggle__icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: opacity, transform;
}

.ebn-toggle__icon--close {
  opacity: 0;
  transform: scale(0.5) rotate(-45deg);
}

.ebn-toggle__icon--close svg {
  width: 16px;
  height: 16px;
}

.ebn-toggle__icon--menu {
  opacity: 1;
  transform: scale(1);
  flex-direction: column;
  gap: 5px;
}

.ebn-toggle__line {
  display: block;
  width: 15px;
  height: 2px;
  border-radius: 99px;
  background: #fff;
  flex-shrink: 0;
}

.ebn-toggle:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.ebn-menu__link:focus-visible,
.ebn-meta__list a:focus-visible,
.ebn-logo:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 460px) {
  :root {
    --pill-w: min(300px, calc(100vw - 32px));
    --card-w: min(420px, calc(100vw - 24px));
    --card-h: min(540px, calc(100dvh - 48px));
    --inset-x: 26px;
  }

  .ebn-menu__link {
    font-size: 40px;
  }

  .ebn-open {
    padding: 28px var(--inset-x) 4px;
  }

  .ebn-meta__list a {
    font-size: 16px;
  }
}
