@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --ephio-rail-width: 254px;
  --ephio-rail-collapsed-width: 76px;
  --ephio-surface: rgba(10, 14, 18, 0.88);
  --ephio-surface-strong: rgba(5, 7, 9, 0.95);
  --ephio-line: rgba(188, 194, 191, 0.18);
  --ephio-muted: #a5aaa8;
  --ephio-accent: #e56f36;
  --ephio-heading: #f0f1ed;
  --ephio-page-wash: rgba(7, 10, 12, 0.35);
  --ephio-foundation-wash: linear-gradient(120deg, rgba(7, 8, 10, 0.7), rgba(7, 8, 10, 0.28));
}

.light-mode {
  --ephio-surface: rgba(236, 239, 238, 0.9);
  --ephio-surface-strong: rgba(247, 248, 246, 0.96);
  --ephio-line: rgba(32, 38, 39, 0.2);
  --ephio-muted: #596260;
  --ephio-heading: #131918;
  --ephio-page-wash: transparent;
  --ephio-foundation-wash: transparent;
}

body.ephio-page {
  align-items: stretch;
  padding-top: 0;
  font-family: 'Space Grotesk', sans-serif;
}

.ephio-mobile-header {
  display: none;
}

.ephio-rail {
  background: var(--ephio-surface-strong);
  border-right: 1px solid var(--ephio-line);
  display: flex;
  flex-direction: column;
  height: 100vh;
  left: 0;
  padding: 22px 16px;
  position: fixed;
  top: 0;
  transition: width 180ms ease, transform 180ms ease;
  width: var(--ephio-rail-width);
  z-index: 30;
}

.ephio-rail-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 38px;
}

.ephio-wordmark {
  align-items: center;
  color: var(--ephio-heading);
  display: flex;
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
  gap: 10px;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.ephio-wordmark-mark {
  align-items: center;
  background: var(--ephio-accent);
  color: #17120f;
  display: inline-flex;
  font-size: 12px;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.ephio-icon-button {
  background: transparent;
  border: 1px solid var(--ephio-line);
  color: var(--ephio-heading);
  cursor: pointer;
  font-size: 22px;
  height: 34px;
  line-height: 1;
  width: 34px;
}

.ephio-icon-button:hover,
.ephio-icon-button:focus-visible {
  border-color: var(--ephio-accent);
  color: var(--ephio-accent);
}

.ephio-navigation {
  display: grid;
  gap: 4px;
  margin-top: 50px;
}

.ephio-rail-eyebrow {
  color: var(--ephio-muted);
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 10px 12px;
  text-transform: uppercase;
}

.ephio-nav-link,
.ephio-settings-link,
.ephio-store-link,
.ephio-parent-link {
  color: var(--ephio-muted);
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
}

.ephio-nav-link {
  align-items: center;
  border-left: 2px solid transparent;
  display: flex;
  height: 42px;
  padding: 0 12px;
}

.ephio-nav-link:hover,
.ephio-nav-link:focus-visible,
.ephio-nav-link.is-active {
  background: rgba(229, 111, 54, 0.1);
  border-left-color: var(--ephio-accent);
  color: var(--ephio-heading);
}

.ephio-rail-footer {
  border-top: 1px solid var(--ephio-line);
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding-top: 16px;
}

.ephio-store-link,
.ephio-settings-link,
.ephio-parent-link {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px 12px;
  text-align: left;
}

.ephio-store-link {
  color: var(--ephio-accent);
}

.ephio-settings-link:hover,
.ephio-settings-link:focus-visible,
.ephio-parent-link:hover,
.ephio-parent-link:focus-visible {
  color: var(--ephio-heading);
}

.ephio-parent-link {
  font-size: 14px;
  margin-top: 8px;
}

.ephio-main {
  margin-left: var(--ephio-rail-width);
  min-height: 100vh;
  transition: margin-left 180ms ease;
}

.ephio-drawer-backdrop {
  display: none;
}

.ephio-foundation {
  background: var(--ephio-foundation-wash);
  border-bottom: 1px solid var(--ephio-line);
  display: grid;
  min-height: 100vh;
  padding: clamp(40px, 10vw, 140px);
  place-content: center start;
}

.ephio-foundation p,
.ephio-foundation span {
  color: var(--ephio-muted);
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
}

.ephio-foundation h1 {
  color: var(--ephio-heading);
  font-family: 'Rajdhani', sans-serif;
  font-size: 96px;
  line-height: 0.88;
  margin: 12px 0 20px;
  text-transform: uppercase;
}

@media (min-width: 769px) {
  html.ephio-rail-hover-enabled .ephio-rail-toggle {
    display: none;
  }

  body.ephio-rail-collapsed .ephio-rail,
  html.ephio-rail-precollapsed .ephio-rail {
    padding-left: 12px;
    padding-right: 12px;
    width: var(--ephio-rail-collapsed-width);
  }

  body.ephio-rail-collapsed .ephio-main,
  html.ephio-rail-precollapsed .ephio-main {
    margin-left: var(--ephio-rail-collapsed-width);
  }

  body.ephio-rail-collapsed .ephio-wordmark-label,
  html.ephio-rail-precollapsed .ephio-wordmark-label,
  body.ephio-rail-collapsed .ephio-rail-eyebrow,
  html.ephio-rail-precollapsed .ephio-rail-eyebrow,
  body.ephio-rail-collapsed .ephio-nav-label,
  html.ephio-rail-precollapsed .ephio-nav-label,
  body.ephio-rail-collapsed .ephio-rail-footer a,
  html.ephio-rail-precollapsed .ephio-rail-footer a,
  body.ephio-rail-collapsed .ephio-settings-link {
    display: none;
  }

  body.ephio-rail-collapsed .ephio-rail-header,
  html.ephio-rail-precollapsed .ephio-rail-header {
    justify-content: center;
  }

  body.ephio-rail-collapsed .ephio-rail-toggle,
  html.ephio-rail-precollapsed .ephio-rail-toggle {
    left: 20px;
    position: absolute;
    top: 62px;
  }

  body.ephio-rail-collapsed .ephio-nav-link,
  html.ephio-rail-precollapsed .ephio-nav-link {
    justify-content: center;
    padding: 0;
  }

  body.ephio-rail-collapsed .ephio-nav-link::after,
  html.ephio-rail-precollapsed .ephio-nav-link::after {
    content: attr(data-short);
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 700;
  }

  body.ephio-rail-collapsed .ephio-rail-footer,
  html.ephio-rail-precollapsed .ephio-rail-footer {
    display: none;
  }

  body.ephio-rail-collapsed.ephio-rail-hover-expanded .ephio-rail {
    box-shadow: 12px 0 32px rgba(0, 0, 0, 0.28);
    padding-left: 16px;
    padding-right: 16px;
    width: var(--ephio-rail-width);
  }

  body.ephio-rail-collapsed.ephio-rail-hover-expanded .ephio-wordmark-label,
  body.ephio-rail-collapsed.ephio-rail-hover-expanded .ephio-rail-eyebrow,
  body.ephio-rail-collapsed.ephio-rail-hover-expanded .ephio-nav-label,
  body.ephio-rail-collapsed.ephio-rail-hover-expanded .ephio-rail-footer a,
  body.ephio-rail-collapsed.ephio-rail-hover-expanded .ephio-settings-link {
    display: initial;
  }

  body.ephio-rail-collapsed.ephio-rail-hover-expanded .ephio-rail-header {
    justify-content: space-between;
  }

  body.ephio-rail-collapsed.ephio-rail-hover-expanded .ephio-rail-toggle {
    left: auto;
    position: static;
    top: auto;
  }

  body.ephio-rail-collapsed.ephio-rail-hover-expanded .ephio-nav-link {
    justify-content: flex-start;
    padding: 0 12px;
  }

  body.ephio-rail-collapsed.ephio-rail-hover-expanded .ephio-nav-link::after {
    display: none;
  }

  body.ephio-rail-collapsed.ephio-rail-hover-expanded .ephio-rail-footer {
    display: grid;
  }
}

@media (max-width: 768px) {
  body.ephio-page {
    padding-top: 58px;
  }

  .ephio-mobile-header {
    align-items: center;
    background: var(--ephio-surface-strong);
    border-bottom: 1px solid var(--ephio-line);
    display: flex;
    height: 58px;
    justify-content: space-between;
    left: 0;
    padding: 0 16px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 30;
  }

  .ephio-mobile-header .ephio-wordmark {
    font-size: 19px;
  }

  .ephio-mobile-header .ephio-wordmark-mark {
    height: 28px;
    width: 28px;
  }

  .ephio-rail {
    box-shadow: 12px 0 32px rgba(0, 0, 0, 0.35);
    transform: translateX(-100%);
    width: min(280px, 85vw);
  }

  body.ephio-drawer-open .ephio-rail {
    transform: translateX(0);
  }

  .ephio-rail-toggle {
    display: none;
  }

  .ephio-main,
  body.ephio-rail-collapsed .ephio-main {
    margin-left: 0;
  }

  .ephio-drawer-backdrop {
    background: rgba(0, 0, 0, 0.58);
    inset: 0;
    position: fixed;
    z-index: 20;
  }

  body.ephio-drawer-open .ephio-drawer-backdrop {
    display: block;
  }

  .ephio-foundation h1 {
    font-size: 54px;
  }
}