/* Ember Terrarium chrome — left brand rail + floating glass bar */

.a64-rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4.5rem;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.25rem 0 1.6rem;
  background:
    linear-gradient(180deg, rgba(224, 122, 95, 0.22), transparent 40%),
    rgba(28, 17, 13, 0.72);
  border-right: 1px solid var(--et-line);
  backdrop-filter: blur(22px);
}

.a64-rail-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--et-mist);
  text-decoration: none;
}

.a64-rail-mark em {
  writing-mode: horizontal-tb;
  transform: rotate(180deg);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--et-honey);
  border: 1px solid var(--et-line);
  border-radius: 999px;
  padding: 0.35rem 0.4rem;
}

.a64-rail-mark strong,
.a64-rail-mark span {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.22em;
}

.a64-glassbar {
  position: sticky;
  top: 0.85rem;
  z-index: 30;
  margin: 0.85rem 1.2rem 0 auto;
  width: min(calc(100% - 1.6rem), 720px);
}

.a64-glassbar-inner {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.5rem 0.45rem 0.7rem;
  border-radius: 999px;
  background: var(--et-glass);
  border: 1px solid var(--et-line);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.a64-seek {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.a64-seek input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--et-mist);
  font: inherit;
  outline: none;
}

.a64-seek input::placeholder { color: var(--et-mute); }

.a64-seek button,
.a64-chip,
.a64-menu-toggle,
.a64-nav-close {
  border: 0;
  cursor: pointer;
  background: rgba(240, 194, 122, 0.12);
  color: var(--et-mist);
  border-radius: 999px;
  font: inherit;
}

.a64-seek button {
  width: 2.2rem;
  height: 2.2rem;
}

.a64-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}

.a64-chip.is-on,
.a64-chip-cart.has-items {
  background: var(--et-clay);
  color: #1C110D;
}

.a64-chip em {
  font-style: normal;
  min-width: 1.15rem;
  text-align: center;
  background: #1C110D;
  color: var(--et-honey);
  border-radius: 999px;
  padding: 0.05rem 0.35rem;
  font-size: 0.72rem;
}

.a64-menu-toggle {
  width: 2.4rem;
  height: 2.4rem;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.a64-menu-toggle span {
  display: block;
  width: 14px;
  height: 1.5px;
  background: currentColor;
}

.a64-nav {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(22rem, 92vw);
  z-index: 50;
  transform: translateX(110%);
  transition: transform 0.28s ease;
}

.a64-nav.is-open { transform: translateX(0); }

.a64-nav-glass {
  height: 100%;
  background: rgba(28, 17, 13, 0.92);
  border-left: 1px solid var(--et-line);
  backdrop-filter: blur(24px);
  padding: 1.4rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.a64-nav-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.a64-nav-close {
  width: 2.2rem;
  height: 2.2rem;
  font-size: 1.3rem;
}

.a64-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.a64-nav-link {
  padding: 0.7rem 0.85rem;
  border-radius: 1rem;
  color: var(--et-mist) !important;
  background: transparent;
}

.a64-nav-link.is-active,
.a64-nav-link:hover {
  background: var(--et-frost);
  color: var(--et-honey) !important;
}

.a64-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(0, 0, 0, 0.4);
}

.a64-nav-backdrop.is-open { display: block; }

.a64-colophon {
  padding: 2rem 1.4rem 2.4rem;
}

.a64-colophon-glass {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 1.6rem 1.5rem 1.4rem;
  border-radius: 2rem;
  background: var(--et-glass);
  border: 1px solid var(--et-line);
  backdrop-filter: blur(18px);
}

.a64-colophon-mark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 0 0.35rem;
}

.a64-colophon-tag {
  color: var(--et-mute);
  margin: 0 0 1.3rem;
  max-width: 42rem;
}

.a64-colophon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.a64-colophon-grid span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--et-honey);
  margin-bottom: 0.5rem;
}

.a64-colophon-grid a {
  display: block;
  color: var(--et-mist);
  padding: 0.2rem 0;
}

.a64-colophon-base {
  margin: 1.3rem 0 0;
  font-size: 0.82rem;
  color: var(--et-mute);
}

@media (max-width: 900px) {
  .a64-rail { display: none; }
  .a64-glassbar {
    position: sticky;
    top: 0;
    margin: 0;
    width: 100%;
    border-radius: 0;
  }
  .a64-glassbar-inner {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .a64-menu-toggle { display: inline-flex; }
  .a64-chip { display: none; }
  .a64-chip-cart { display: inline-flex; }
  .a64-colophon-grid { grid-template-columns: 1fr; }
}

body.a64-nav-open { overflow: hidden; }
