@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #080807;
  --ink-soft: #0d0c0a;
  --paper: #eeeae0;
  --muted: #8f8b80;
  --line: rgba(232, 224, 203, 0.14);
  --gold: #d4ad50;
  --gold-bright: #eccd76;
  --live: #eb4444;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 300px;
  background: var(--ink);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  font-family: "Manrope", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Keep the intentionally single-screen homepage from inheriting iOS's
   dynamic `vh` height, which can leave a few pixels of scrollable space. */
.home-body {
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  overscroll-behavior: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.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;
}

.flow-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--ink);
}

.flow-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 4, .66), rgba(5, 5, 4, .32) 28%, rgba(5, 5, 4, .38) 62%, rgba(5, 5, 4, .82)),
    radial-gradient(ellipse at center, rgba(5, 5, 4, .08), rgba(5, 5, 4, .52));
}

.gradflow-mount,
.gradflow-mount > canvas {
  width: 100%;
  height: 100%;
}

.gradflow-mount > canvas {
  display: block;
  opacity: .86;
  filter: saturate(.8) contrast(1.04) brightness(.86);
  transform: scale(1.015);
}

.commands-page .gradflow-mount > canvas {
  opacity: .58;
}

.commands-page .flow-backdrop::after {
  background:
    linear-gradient(90deg, rgba(5, 5, 4, .76), rgba(5, 5, 4, .5) 48%, rgba(5, 5, 4, .68)),
    linear-gradient(180deg, rgba(5, 5, 4, .58), rgba(5, 5, 4, .78));
}

/* Homepage */

.home-page {
  position: relative;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
}

.home-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 1440px);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(28px, 4.3vw, 66px) clamp(24px, 5.5vw, 88px) clamp(26px, 4.2vw, 58px);
}

.quiet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.pronunciation,
.live-status {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.72rem, 0.7vw, 0.84rem);
  font-weight: 500;
  letter-spacing: 0.045em;
}

.pronunciation span {
  color: #c9c3b5;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: color 180ms ease;
}

.live-status:hover {
  color: var(--paper);
}

.live-status i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #77736a;
}

.is-live .live-status {
  color: #d6d0c5;
}

.is-live .live-status i {
  background: var(--live);
  box-shadow: 0 0 0 4px rgba(235, 68, 68, 0.08);
  animation: live-pulse 2.2s ease-out infinite;
}

@keyframes live-pulse {
  0%, 46% { box-shadow: 0 0 0 0 rgba(235, 68, 68, 0.2); }
  75%, 100% { box-shadow: 0 0 0 7px rgba(235, 68, 68, 0); }
}

.wordmark-stage {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 2vh 0;
}

.wordmark {
  margin: 0;
  color: var(--paper);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(6rem, 16.8vw, 15.5rem);
  font-weight: 400;
  line-height: 0.76;
  letter-spacing: -0.052em;
  white-space: nowrap;
  text-rendering: geometricPrecision;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0, "dlig" 0;
}

.wordmark-name {
  display: inline-block;
}

.wordmark-period {
  display: inline-block;
  margin-left: 0.025em;
  color: var(--gold-bright);
  transform: translateY(-0.015em);
}

.link-rail {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(19px, 2.8vw, 44px);
  width: 100%;
}

.social-link {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 46px;
  color: #98938a;
  transition: color 220ms ease, transform 220ms cubic-bezier(.2,.75,.2,1);
}

.social-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 18px;
  height: 1px;
  background: var(--gold-bright);
  opacity: 0;
  transform: translateX(-50%) scaleX(.2);
  transition: opacity 220ms ease, transform 220ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--paper);
  transform: translateY(-4px);
}

.social-link:hover::after,
.social-link:focus-visible::after {
  opacity: .65;
  transform: translateX(-50%) scaleX(1);
}

.social-link:focus-visible,
.live-status:focus-visible,
.small-wordmark:focus-visible,
.category-tabs button:focus-visible,
.command-row button:focus-visible,
.empty-state button:focus-visible {
  outline: 1px solid var(--gold-bright);
  outline-offset: 6px;
}

.social-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
}

.social-icon svg {
  display: block;
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.social-icon svg.outline-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-label {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* UfiBot */

.commands-page {
  position: relative;
  min-height: 100svh;
}

.commands-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 74px;
  padding: 0 clamp(24px, 4vw, 72px);
  border-bottom: 1px solid var(--line);
}

.small-wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0;
}

.small-wordmark span {
  margin-left: 0.05em;
  color: var(--gold-bright);
}

.commands-canvas {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(245px, 300px) minmax(0, 860px);
  gap: clamp(50px, 7vw, 118px);
  width: min(100%, 1260px);
  margin: 0 auto;
  padding: clamp(48px, 7vh, 88px) clamp(24px, 5vw, 72px) 72px;
}

.commands-sidebar {
  align-self: start;
}

.commands-intro h1,
.command-category h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0;
}

.commands-intro h1 {
  font-size: clamp(4rem, 6vw, 5.7rem);
  line-height: .92;
  letter-spacing: -0.05em;
}

.command-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 56px;
  padding: 12px 2px;
  color: #77736b;
  border-bottom: 1px solid var(--line);
  transition: color 180ms ease, border-color 180ms ease;
}

.command-search:focus-within {
  color: var(--gold-bright);
  border-color: rgba(236, 205, 118, .55);
}

.command-search > svg,
.command-search button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.command-search input {
  min-width: 0;
  flex: 1;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--paper);
  font-size: .82rem;
}

.command-search input::placeholder {
  color: #77736b;
}

.command-search input::-webkit-search-cancel-button {
  appearance: none;
}

.command-search button {
  display: grid;
  place-items: center;
  padding: 4px;
  border: 0;
  background: transparent;
  color: #7f7a70;
  cursor: pointer;
}

.category-tabs {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin-top: 42px;
}

.category-tabs button {
  position: relative;
  padding: 0 0 0 18px;
  border: 0;
  background: transparent;
  color: #77736b;
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .08em;
  cursor: pointer;
  transition: color 180ms ease, transform 180ms ease;
}

.category-tabs button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 5px;
  height: 1px;
  background: currentColor;
  transform: translateY(-50%);
  transition: width 180ms ease;
}

.category-tabs button:hover,
.category-tabs button.active {
  color: var(--gold-bright);
  transform: translateX(3px);
}

.category-tabs button.active::before {
  width: 9px;
}

.command-results {
  min-width: 0;
}

.command-category + .command-category {
  margin-top: 64px;
}

.command-category h2 {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.025em;
}

.command-row {
  display: grid;
  grid-template-columns: minmax(120px, .7fr) minmax(180px, 2.4fr) 32px;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
}

.command-row code {
  color: var(--gold-bright);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: .78rem;
  font-weight: 600;
}

.command-row p {
  margin: 0;
  color: #99948a;
  font-size: .79rem;
  line-height: 1.55;
}

.command-row button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #66625b;
  cursor: pointer;
  transition: color 180ms ease;
}

.command-row button:hover {
  color: var(--paper);
}

.command-row button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty-state {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.empty-state p {
  margin: 0 0 14px;
  color: #99948a;
  font-size: .86rem;
}

.empty-state button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold-bright);
  font-size: .76rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .home-shell {
    padding-inline: clamp(22px, 5.5vw, 48px);
  }

  .wordmark {
    font-size: clamp(5rem, 17vw, 10rem);
  }

  .link-rail {
    gap: clamp(16px, 4vw, 30px);
    flex-wrap: wrap;
    max-width: 620px;
    justify-self: center;
  }

  .commands-canvas {
    grid-template-columns: 1fr;
    gap: 58px;
    max-width: 780px;
  }

  .command-search {
    margin-top: 38px;
  }

  .category-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px 26px;
    margin-top: 30px;
  }
}

@media (max-width: 620px) {
  .home-shell {
    grid-template-rows: auto minmax(230px, 1fr) auto;
    padding: 24px 20px 26px;
  }

  .quiet-header {
    align-items: flex-start;
  }

  .pronunciation {
    max-width: 145px;
    line-height: 1.5;
  }

  .live-status {
    padding-top: 2px;
    white-space: nowrap;
  }

  .wordmark {
    font-size: clamp(4.45rem, 23vw, 7.5rem);
    letter-spacing: -0.06em;
  }

  .link-rail {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px 8px;
    width: 100%;
    max-width: 430px;
  }

  .social-link {
    min-width: 0;
    gap: 7px;
  }

  .social-label {
    font-size: .63rem;
  }

  .social-icon,
  .social-icon svg {
    width: 22px;
    height: 22px;
  }

  .commands-header {
    height: 66px;
    padding-inline: 20px;
  }

  .small-wordmark {
    font-size: 1.65rem;
  }

  .commands-canvas {
    gap: 48px;
    padding: 46px 20px 56px;
  }

  .commands-intro h1 {
    font-size: 4rem;
  }

  .command-row {
    grid-template-columns: minmax(92px, .7fr) minmax(0, 2fr) 28px;
    gap: 12px;
    min-height: 70px;
  }

  .command-row p {
    font-size: .72rem;
  }

  .command-row code {
    font-size: .71rem;
  }
}

@media (max-height: 690px) and (min-width: 701px) {
  .home-shell {
    padding-top: 26px;
    padding-bottom: 28px;
  }

  .wordmark {
    font-size: clamp(6rem, 15vw, 11rem);
  }

  .social-link {
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

.site-update-notice {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: rgba(12, 12, 11, .94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  color: #fff;
  font: 600 .82rem/1.2 Manrope, sans-serif;
}

.site-update-notice button {
  border: 0;
  border-radius: 8px;
  padding: 7px 10px;
  background: #fff;
  color: #10100f;
  font: inherit;
  cursor: pointer;
}
