@font-face {
  font-family: "Fira Code";
  font-weight: 400;
  font-display: swap;
  src: url("fira/woff2/FiraCode-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Fira Code";
  font-weight: 500;
  font-display: swap;
  src: url("fira/woff2/FiraCode-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Fira Code";
  font-weight: 700;
  font-display: swap;
  src: url("fira/woff2/FiraCode-Bold.woff2") format("woff2");
}

:root {
  --bg: #1d2021;
  --bg1: #282828;
  --bg2: #32302f;
  --bg3: #3c3836;
  --fg: #ebdbb2;
  --fg-dim: #a89984;
  --fg-faint: #7c6f64;
  --red: #fb4934;
  --green: #b8bb26;
  --yellow: #fabd2f;
  --blue: #83a598;
  --purple: #d3869b;
  --aqua: #8ec07c;
  --orange: #fe8019;
  --nav-h: 2.6rem;
  --term-h: 2.4rem;
  --status-h: 1.6rem;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font:
    14px/1.65 "Fira Code",
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
}

/* ---------- top nav ---------- */
.nav {
  flex: 0 0 auto;
  height: var(--nav-h);
  display: flex;
  align-items: stretch;
  background: var(--bg1);
  border-bottom: 1px solid var(--bg3);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar {
  display: none;
}
.nav__brand {
  display: flex;
  align-items: center;
  padding: 0 0.9rem;
  color: var(--fg-faint);
  border-right: 1px solid var(--bg3);
  white-space: nowrap;
  font-size: 0.8rem;
  flex: 0 0 auto;
}
.tab {
  appearance: none;
  background: none;
  border: 0;
  border-right: 1px solid var(--bg3);
  color: var(--fg-dim);
  font: inherit;
  font-size: 0.85rem;
  padding: 0 1rem;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  flex: 0 0 auto;
}
.tab__key {
  color: var(--fg-faint);
  font-size: 0.7rem;
  margin-right: 0.45rem;
}
.tab:hover {
  color: var(--fg);
  background: var(--bg2);
}
.tab[aria-selected="true"] {
  color: var(--bg);
  background: var(--yellow);
  font-weight: 500;
}
.tab[aria-selected="true"] .tab__key {
  color: var(--bg);
}
.tab:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: -2px;
}

/* ---------- content ---------- */
.main {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  .main {
    scroll-behavior: auto;
  }
}
.panel {
  display: none;
  padding: 1.6rem 1.2rem 3rem;
  max-width: 74ch;
  margin: 0 auto;
}
.panel.is-active {
  display: block;
}
h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.25;
}
h2 {
  color: var(--yellow);
  font-size: 1rem;
  margin: 2rem 0 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
h2:first-child {
  margin-top: 0;
}
h3 {
  color: var(--fg);
  font-size: 0.95rem;
  margin: 0 0 0.15rem;
}
p {
  margin: 0 0 0.8rem;
  color: var(--fg-dim);
}
a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
a:hover,
a:focus-visible {
  border-bottom-color: var(--blue);
  outline: none;
}
.dim {
  color: var(--fg-faint);
}
ul {
  margin: 0.3rem 0 0;
  padding-left: 1.1rem;
}
li {
  color: var(--fg-dim);
  margin-bottom: 0.25rem;
}
li::marker {
  color: var(--fg-faint);
}

/* ---------- home ---------- */
.hero {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.hero__art {
  flex: 1 1 20rem;
  min-width: 0;
  overflow-x: auto;
}
.hero__art pre {
  margin: 0;
  color: var(--yellow);
  font-weight: 700;
  font-size: clamp(4.5px, 1.42vw, 11px);
  line-height: 1.1;
  white-space: pre;
}
.hero__pic {
  flex: 0 0 auto;
}
.hero__pic img {
  width: 104px;
  height: 104px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--bg3);
  border-radius: 2px;
}

/* ---------- rows / cards ---------- */
.row {
  display: block;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--bg3);
}
.row:last-child {
  border-bottom: 0;
}
.row__head {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.row__name {
  color: var(--green);
  font-weight: 500;
}
.meta {
  color: var(--fg-faint);
  font-size: 0.75rem;
}
.badge {
  font-size: 0.68rem;
  padding: 0.05rem 0.45rem;
  border: 1px solid var(--orange);
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.trigger {
  color: var(--purple);
  font-size: 0.78rem;
}
.install {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg1);
  border: 1px solid var(--bg3);
  padding: 0.6rem 0.8rem;
  margin: 0.2rem 0 1.2rem;
  flex-wrap: wrap;
}
.install code {
  color: var(--aqua);
  font-size: 0.82rem;
  word-break: break-all;
}
.copy {
  appearance: none;
  background: var(--bg3);
  border: 0;
  color: var(--fg);
  font: inherit;
  font-size: 0.72rem;
  padding: 0.25rem 0.7rem;
  cursor: pointer;
  margin-left: auto;
}
.copy:hover {
  background: var(--fg-faint);
  color: var(--bg);
}
.copy:focus-visible {
  outline: 2px solid var(--aqua);
}
figure {
  margin: 0.7rem 0 0.2rem;
}
figure img,
figure video {
  max-width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--bg3);
}

/* ---------- split panes ---------- */
.panel--wide {
  max-width: 104ch;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--bg3);
  margin-top: 0.2rem;
}
.pane {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.pane + .pane {
  border-left: 1px solid var(--bg3);
}
.pane__title {
  background: var(--bg2);
  border-bottom: 1px solid var(--bg3);
  padding: 0.3rem 0.8rem;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-faint);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
}
.pane__title b {
  color: var(--yellow);
  font-weight: 500;
  letter-spacing: 0.09em;
}
.pane__body {
  padding: 0.2rem 0.8rem 0.9rem;
}
.pane__body .row:last-child {
  border-bottom: 0;
}
@media (max-width: 760px) {
  .split {
    grid-template-columns: 1fr;
  }
  .pane + .pane {
    border-left: 0;
    border-top: 1px solid var(--bg3);
  }
}

/* ---------- contact grid ---------- */
.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}
.contact {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  min-width: 0;
  padding: 1rem 1.15rem;
  background: var(--bg1);
  border: 1px solid var(--bg3);
  color: inherit;
}
.contact--primary {
  grid-column: 1/-1;
  background: var(--bg2);
  padding: 1.25rem 1.15rem;
}
.contact:hover,
.contact:focus-visible {
  border-color: var(--aqua);
  background: var(--bg2);
  outline: none;
}
.contact__icon {
  flex: 0 0 auto;
  width: 1.4rem;
  height: 1.4rem;
  color: var(--fg-faint);
}
.contact:hover .contact__icon,
.contact:focus-visible .contact__icon {
  color: var(--aqua);
}
.contact__text {
  min-width: 0;
}
.contact__name {
  display: block;
  color: var(--green);
  font-weight: 500;
}
.contact__handle {
  display: block;
  color: var(--fg-faint);
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}
.contact--primary .contact__icon {
  width: 1.8rem;
  height: 1.8rem;
  color: var(--aqua);
}
.contact--primary .contact__handle {
  font-size: 0.85rem;
  color: var(--fg-dim);
}

/* ---------- live card embed ---------- */
.cardframe {
  width: 100%;
  max-width: 380px;
  height: 640px;
  border: 1px solid var(--bg3);
  overflow: hidden;
  margin-top: 0.7rem;
}
.cardframe iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- terminal ---------- */
.term {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg1);
  border-top: 1px solid var(--bg3);
  padding: 0 0.9rem;
  height: var(--term-h);
}
.term__prompt {
  color: var(--green);
  white-space: nowrap;
  font-size: 0.85rem;
}
.term__prompt .loc {
  color: var(--blue);
}
.term input {
  flex: 1 1 auto;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: var(--fg);
  font: inherit;
  font-size: 0.85rem;
  padding: 0;
}
.term input::placeholder {
  color: var(--fg-faint);
}

/* ---------- status ---------- */
.status {
  flex: 0 0 auto;
  height: var(--status-h);
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--bg2);
  border-top: 1px solid var(--bg3);
  padding: 0 0.9rem;
  font-size: 0.7rem;
  color: var(--fg-faint);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.status::-webkit-scrollbar {
  display: none;
}
.status kbd {
  color: var(--yellow);
  font: inherit;
}
.status__msg {
  margin-left: auto;
  color: var(--aqua);
}

@media (max-width: 640px) {
  body {
    font-size: 13px;
  }
  .panel {
    padding: 1.1rem 0.9rem 2.5rem;
  }
  .hero {
    gap: 1rem;
  }
  .hero__art pre {
    font-size: clamp(4px, 1.55vw, 9px);
  }
  .hero__pic img {
    width: 76px;
    height: 76px;
  }
  .status {
    display: none;
  }

  /* Six tabs won't fit one row on a phone, so wrap to a 3x2 grid rather than
     scroll them sideways. Everything stays on screen and reachable in one tap. */
  .nav {
    height: auto;
    flex-wrap: wrap;
    overflow: visible;
    border-bottom: 0;
  }
  .nav__brand {
    display: none;
  } /* the prompt and the ASCII art already say the name */
  .tab {
    flex: 1 1 33.333%;
    min-width: 0;
    text-align: center;
    padding: 0.85rem 0.3rem;
    font-size: 0.8rem; /* ~44px tall, thumb-sized */
    border-bottom: 1px solid var(--bg3);
  }
  .tab__key {
    display: none;
  } /* no keyboard, no number keys */
  .tab:nth-child(3n + 1) {
    border-right: 0;
  } /* row-end tabs: brand, products, contact */
}
/* BLOG:INDEX:START */
/* ---------- blog index ---------- */
.blog__hint {
  color: var(--fg-faint);
  font-size: 0.75rem;
  margin: 0 0 1.5rem;
}
.blog__hint code {
  color: var(--aqua);
  background: var(--bg1);
  padding: 0.05em 0.35em;
}
.blog__empty {
  color: var(--fg-faint);
}
.postlist__year {
  color: var(--fg-faint);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  margin: 1.9rem 0 0.5rem;
  text-transform: none;
}
.postlist__year:first-child {
  margin-top: 0;
}
.postrow {
  display: grid;
  grid-template-columns: 2rem 4.2rem 1fr auto;
  gap: 0.9rem;
  align-items: baseline;
  padding: 0.62rem 0.5rem 0.62rem 0.6rem;
  border-bottom: 1px solid var(--bg3);
  border-left: 2px solid transparent;
  text-decoration: none;
}
.postrow:hover,
.postrow:focus-visible {
  background: var(--bg1);
  border-left-color: var(--yellow);
  outline: none;
}
.postrow__n {
  color: var(--fg-faint);
  font-size: 0.7rem;
}
.postrow__date {
  color: var(--fg-faint);
  font-size: 0.75rem;
}
.postrow__title {
  color: var(--green);
  min-width: 0;
}
.postrow:hover .postrow__title,
.postrow:focus-visible .postrow__title {
  color: var(--aqua);
}
.postrow__time {
  color: var(--fg-faint);
  font-size: 0.72rem;
}
.post__draft {
  color: var(--orange);
  font-size: 0.62rem;
  margin-left: 0.55rem;
  border: 1px solid var(--orange);
  padding: 0 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 640px) {
  /* The index number carries no meaning without a keyboard, so it goes and the
     read time drops under the title rather than squeezing a fourth column. */
  .postrow {
    grid-template-columns: 3.6rem 1fr;
    gap: 0.2rem 0.8rem;
  }
  .postrow__n {
    display: none;
  }
  .postrow__time {
    grid-column: 2;
    font-size: 0.68rem;
  }
}
/* BLOG:INDEX:END */
