@import url("https://fonts.googleapis.com/css2?family=Funnel+Display:wght@400;500;600;700&display=swap");

:root {
  --bg: #232526;
  --white: #fdfcf9;
  --lime: #d8e710;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--white);
  font-family: "Funnel Display", Arial, Helvetica, sans-serif;
}

body.is-viewer {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select {
  font: inherit;
  color: inherit;
}

.page-shell {
  width: min(1440px, 90vw);
  margin: 0 auto;
  padding-bottom: 80px;
}

.kicker {
  letter-spacing: 0.15em;
  font-size: 12px;
  font-weight: 600;
}

h1 {
  letter-spacing: 0.05em;
  margin: 20px 0 24px;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  line-height: 0.95;
}

h1 em {
  color: var(--lime);
  font-style: normal;
}

.lede {
  max-width: 560px;
  opacity: 0.85;
}

.launcher {
  width: min(960px, 90vw);
  margin: 80px auto;
}

.launcher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--white);
  border: 1px solid var(--white);
  margin-top: 28px;
}

.launcher-card {
  background: var(--bg);
  padding: 28px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.launcher-card:hover,
.launcher-card:focus-visible {
  background: var(--white);
  color: var(--bg);
}

.launcher-card span {
  font-size: 12px;
  letter-spacing: 0.12em;
}

.launcher-card strong {
  font-size: 24px;
}

.viewer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--white);
  flex: 0 0 auto;
}

.viewer-bar a {
  letter-spacing: 0.12em;
  font-size: 12px;
}

.viewer-bar h1 {
  font-size: 20px;
  margin: 0;
  flex: 1 1 160px;
}

.mode-switch {
  display: inline-flex;
  border: 1px solid var(--white);
}

.mode-switch a {
  padding: 8px 14px;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.mode-switch a.is-active {
  background: var(--lime);
  color: var(--bg);
}

.hive-tools {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

body.is-hive .hive-tools {
  display: flex;
}

.hive-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hive-jump {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hive-tools select,
.hive-tools button,
.a11y-dialog button,
.a11y-dialog label {
  background: var(--bg);
  border: 1px solid var(--white);
  padding: 8px 10px;
  min-height: 44px;
}

.hive-tools button:focus-visible,
.mode-switch a:focus-visible,
.a11y-dialog button:focus-visible,
.launcher-card:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}

.viewer-frame {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  min-height: 70vh;
  height: auto;
  border: 0;
  background: #ffffff;
  transform-origin: top center;
}

.a11y-dialog {
  background: var(--bg);
  color: var(--white);
  border: 1px solid var(--white);
  padding: 20px;
  width: min(360px, 92vw);
}

.a11y-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.a11y-dialog form {
  display: grid;
  gap: 14px;
}

.a11y-dialog h2 {
  margin: 0;
  font-size: 20px;
}

.a11y-dialog label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 0;
  min-height: 0;
}

.a11y-dialog input[type="range"] {
  width: 100%;
}
