@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  --bg: #070707;
  --surface: #0e0e0e;
  --surface-2: #111;
  --border: #1c1c1c;
  --border-strong: #242424;
  --text: #ececec;
  --muted: #8a8a8a;
  --white: #f4f4f4;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", "Trebuchet MS", "Lucida Grande", sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

#sprinkles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.site-header,
.home,
.site-footer,
.settings,
.browser,
.not-found {
  position: relative;
  z-index: 1;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 2px;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

.site-header {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 13px 18px 10px;
  min-height: 44px;
}

.brand {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 20px;
  height: 20px;
  display: block;
  filter: invert(1);
  transform: translateY(-1px);
}

.brand-name {
  font-size: 14px;
  font-weight: 500;
  line-height: 12px;
  letter-spacing: 0.01em;
  padding-bottom: 2px;
}

.brand-label {
  font-size: 11px;
  line-height: 12px;
  color: var(--muted);
  padding-bottom: 2px;
  letter-spacing: 0.04em;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text);
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
}

.icon-btn:active {
  transform: translateY(1px);
}

.icon-btn[aria-expanded="true"] {
  border-color: var(--border-strong);
  background: var(--surface);
}

.settings {
  position: fixed;
  top: 44px;
  right: 12px;
  width: 228px;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  z-index: 30;
}

body.is-session .settings {
  top: 46px;
}

.settings-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.settings-field select {
  width: 100%;
  height: 32px;
  padding: 0 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.settings-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.home {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 16px 56px;
  text-align: center;
}

.hero-mark {
  width: 64px;
  height: 64px;
  display: block;
  filter: invert(1);
}

.home h1 {
  margin: 14px 0 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.go-form {
  display: flex;
  gap: 8px;
  width: min(540px, 100%);
  margin-top: 22px;
}

.go-form input,
.chrome-form input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  font-family: "IBM Plex Mono", "Menlo", "Consolas", monospace;
  font-size: 13px;
  caret-color: #fff;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.65);
}

.go-form input::placeholder,
.chrome-form input::placeholder {
  color: #5d5d5d;
}

.go-form button {
  height: 40px;
  padding: 0 16px;
  background: var(--white);
  color: #111;
  border: 1px solid var(--white);
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
}

.go-form button:hover:not(:disabled) {
  background: #000;
  color: var(--white);
}

.go-form button:active:not(:disabled) {
  transform: translateY(1px);
}

.go-form button:disabled,
.go-form input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.status,
.error {
  min-height: 1.2em;
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.error {
  color: #c8c8c8;
}

.about {
  max-width: 420px;
  margin: 28px 0 0;
  font-size: 12px;
  color: #6e6e6e;
  line-height: 1.5;
}

.site-footer {
  padding: 12px 18px 16px;
  font-size: 12px;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
}

.sep {
  margin: 0 6px;
}

.browser {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px 6px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.nav-cluster {
  display: flex;
  gap: 2px;
}

.chrome-form {
  flex: 1;
  min-width: 0;
}

.chrome-form input {
  width: 100%;
  height: 32px;
}

.frame-host {
  flex: 1;
  min-height: 0;
  background: #000;
}

.frame-host iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

body.is-session {
  overflow: hidden;
}

body.is-session .site-header,
body.is-session .home,
body.is-session .site-footer,
body.is-session #sprinkles {
  display: none;
}

body.is-session .browser {
  display: flex;
}

.not-found {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 64px;
  text-align: center;
}

.not-found h1 {
  margin: 12px 0 0;
  font-size: 20px;
  font-weight: 500;
}

.not-found p {
  margin: 8px 0 0;
  color: var(--muted);
}

.not-found a {
  margin-top: 18px;
  color: var(--text);
  border-bottom: 1px solid #3a3a3a;
}

.not-found a:hover {
  text-decoration: none;
  border-bottom-color: var(--text);
}
