@font-face {
  font-family: Manrope;
  src: url('./manrope-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('./ibm-plex-mono-latin.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow Condensed';
  src: url('./barlow-condensed-latin.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow Condensed';
  src: url('./barlow-condensed-italic-latin.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

.pixla-ui {
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --panel: #0c1118;
  --raised: #111923;
  --field: #080d15;
  --muted: #a1aec1;
  --pixla-orange: #ff8a1f;
  --pixla-outline: rgba(161, 185, 216, .16);
  --pixla-quiet: rgba(255, 255, 255, .025);
  --pixla-section-background: linear-gradient(180deg, #05080e, #070c14 55%, #05080e);
  font-family: Manrope, system-ui, sans-serif;
}
.pixla-home {
  background:
    linear-gradient(#ffffff07 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, #ffffff07 1px, transparent 1px) 0 0 / 56px 56px,
    radial-gradient(ellipse at 86% 16%, #101e37, transparent 52%),
    var(--bg);
}
.pixla-ui .brand { gap: 12px; font-weight: 700; }
.pixla-ui .brand img, .pixla-example-header img { flex: none; border-radius: 6px; }
.pixla-ui .brand strong { color: inherit; }
.pixla-ui .brand small { font-size: .56rem; }
.pixla-ui .top { min-height: 72px; background: #05080eea; box-shadow: none; }
.pixla-ui .top::after { display: none; }
.pixla-ui .brand img { width: 26px; height: 26px; }
.pixla-ui :is(button, .button, input, select, textarea) { border-radius: 4px; }
.pixla-ui :is(.panel, dialog) { border-radius: 6px; }
.pixla-ui .primary { color: #03101b; background: var(--blue); border-color: var(--blue); }
.pixla-ui .primary:hover:not(:disabled) { background: #7ac8ff; }
.pixla-ui .creator-top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 20px;
  padding-inline: clamp(16px, 2.5vw, 36px);
  background: rgba(5, 8, 14, .78);
  border-bottom-color: rgba(161, 185, 216, .12);
  backdrop-filter: blur(18px) saturate(130%);
}
.creator-top .brand { grid-column: 1; justify-self: start; font-size: 24px; }
.creator-top #nav, .creator-menu { display: contents; }
.creator-top .creator-menu-toggle { display: none; }
.creator-links, .creator-auth { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 28px); }
.creator-links { grid-column: 2; list-style: none; margin: 0; padding: 0; }
.creator-links a { display: block; position: relative; color: var(--muted); text-decoration: none; white-space: nowrap; }
.creator-links a:hover, .creator-links [aria-current] { color: var(--text); }
.creator-links [aria-current]::after {
  content: '';
  position: absolute;
  inset: auto 0 -7px;
  height: 2px;
  background: var(--pixla-orange);
}
.creator-auth { grid-column: 3; justify-self: end; min-width: 0; gap: 16px; }
.pixla-ui .creator-auth :is(.button, button) {
  min-height: 40px;
  padding: 10.88px 16px;
  border-radius: 3px;
  font: 700 11.84px/1.15 Manrope, sans-serif;
  white-space: nowrap;
}
.pixla-ui .creator-auth .primary {
  box-shadow: 0 10px 26px rgba(87, 184, 255, .16);
}
.pixla-ui .creator-auth .primary:hover { background: #7bc7ff; border-color: #7bc7ff; }
.pixla-ui .creator-auth :is(.button, button):not(.primary) {
  border-color: var(--pixla-outline);
  background: var(--pixla-quiet);
  color: #c3cedc;
}
.pixla-ui .creator-auth :is(.button, button):not(.primary):hover {
  border-color: rgba(87, 184, 255, .46);
  background: rgba(87, 184, 255, .08);
  color: var(--text);
}
.creator-account {
  max-width: 16ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(148, 163, 184, .58);
  font: 500 12.48px/1.5 Manrope, sans-serif;
  letter-spacing: .01em;
}
.pixla-ui :is(.section-title, .panel-heading) h2 { font: 600 1.65rem/.97 var(--display); text-transform: uppercase; }

.pixla-home .home { max-width: 1440px; padding-top: clamp(32px, 6vw, 90px); }
.pixla-home .library {
  margin: 0;
  padding: clamp(64px, 9vw, 144px) 16px;
  background: var(--pixla-section-background);
}
.pixla-home .library-inner { max-width: 1408px; margin-inline: auto; }
.pixla-home .library .section-title { flex-wrap: wrap; gap: 20px; margin-bottom: clamp(20px, 4vw, 48px); }
.pixla-home .library .section-title h2 {
  margin-top: 16px;
  font-size: clamp(2.85rem, 6vw, 6.2rem);
  line-height: .88;
  letter-spacing: -.03em;
}
.pixla-home .hero {
  gap: clamp(24px, 5vw, 72px);
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  padding: clamp(14px, 2.5vw, 36px) 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.pixla-home .hero h1 {
  max-width: 16ch;
  margin: 14px 0 20px;
  font: 600 clamp(2.85rem, 7.8vw, 6.7rem)/.87 var(--display);
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.pixla-home .hero h1 em { color: var(--blue); font-style: italic; }
.pixla-home .hero p.muted { color: #b6c0cf; line-height: 1.7; }
.pixla-home :is(.hero .actions > *, .library .primary) {
  min-height: 52px;
  padding: 12px 20px;
  font-weight: 700;
}
.pixla-home .hero .actions > :not(.primary) { border-color: var(--pixla-outline); background: var(--pixla-quiet); }
.pixla-home :is(.hero, .library) .primary { box-shadow: 0 14px 34px rgba(87, 184, 255, .18); }

.pixla-home .pixla-example {
  min-width: 0;
  border: 1px solid var(--line);
  border-left: 2px solid var(--pixla-orange);
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 24px 60px #0006;
}
.pixla-example-header { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--panel); }
.pixla-example-header > span { margin-left: auto; font: .67rem var(--mono); color: #ffad58; }
.pixla-example-body { padding: clamp(12px, 2.1vw, 24px); }
.pixla-example-body > p { margin: 7px 0 16px; font-size: clamp(1.15rem, 2.15vw, 1.6rem); font-weight: 700; line-height: 1.2; letter-spacing: -.035em; }
.pixla-example-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 7px;
  padding: 8px;
  border: 1px solid #ffffff16;
  border-radius: 4px;
  background: linear-gradient(90deg, #57b8ff29 var(--sample-share), #ffffff07 var(--sample-share));
}
.pixla-example-row > span { padding: 3px 7px; border-radius: 4px; background: #213753; color: #c1dcff; font: 600 .68rem var(--mono); }
.pixla-example-row > b { font-size: .82rem; overflow-wrap: anywhere; }
.pixla-example-row > strong { color: #afceff; font: 600 .76rem var(--mono); }

.pixla-admin { background: var(--pixla-section-background); }
.pixla-admin .session-bar {
  align-items: center;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: inset 3px 0 var(--pixla-orange);
}
.pixla-admin .slides [aria-current] { border-color: #57b8ff90; background: #57b8ff16; }
.pixla-admin .slide-number { color: #ffad58; }
.pixla-admin .stage { background: radial-gradient(ellipse at 20% 5%, #172d4a, transparent 68%), #080e19; }
.pixla-admin .participant-preview { font-family: system-ui, -apple-system, sans-serif; }
.pixla-admin .participant-preview .panel { border-radius: 8px; }

@media (max-width: 900px) {
  .pixla-home .hero { grid-template-columns: minmax(0, 1fr); }
  .pixla-home .pixla-example { width: min(100%, 620px); }
}

@media (max-width: 1200px) {
  .pixla-ui .creator-top { grid-template-columns: 1fr auto; gap: 12px; }
  .creator-top .creator-menu-toggle {
    display: flex;
    grid-column: 2;
    flex-direction: column;
    width: 42px;
    background: transparent;
  }
  .creator-menu-toggle span { width: 20px; height: 2px; background: currentColor; }
  .creator-menu { display: none; grid-column: 1 / -1; }
  .creator-menu-toggle[aria-expanded="true"] + .creator-menu {
    display: grid;
    gap: 20px;
    padding: 12px 0 8px;
    border-top: 1px solid var(--line);
  }
  .creator-links, .creator-auth { grid-column: 1; justify-self: start; flex-wrap: wrap; }
  .creator-account { max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
}

@media (max-width: 640px) {
  .pixla-ui .top { align-items: center; min-height: 60px; }
  .pixla-ui .brand { gap: 7px; }
  .pixla-ui .brand img { width: 28px; height: 28px; }
  .pixla-ui .top { flex-wrap: wrap; }
  .pixla-ui .top nav { justify-content: start; }
}
