@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("assets/fonts/IBMPlexSans-Light.woff2") format("woff2");
}

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

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("assets/fonts/IBMPlexMono-Light.woff2") format("woff2");
}

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

:root {
  --bg: #000000;
  --text-primary: #f2f2f2;
  --text-body: #bebebe;
  --text-secondary: #888888;
  --text-muted: #767676;
  --rule: rgba(255, 255, 255, 0.12);
  --rule-soft: rgba(255, 255, 255, 0.06);
  --surface: rgba(255, 255, 255, 0.03);
  --sans: "IBM Plex Sans", sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.045), transparent 32rem),
    var(--bg);
}

::selection {
  background: var(--text-primary);
  color: var(--bg);
}

a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.28);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 120ms ease, text-decoration-color 120ms ease;
}

a:hover {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.7);
}

a:focus-visible {
  outline: 2px solid var(--bg);
  box-shadow: 0 0 0 4px var(--text-primary);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
}

.brand,
.breadcrumb,
.header-note,
.eyebrow,
.article-links,
.callout-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-primary);
  text-decoration: none;
}

.brand-mark {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex: 0 0 auto;
}

.breadcrumb {
  color: var(--text-primary);
  text-decoration-color: rgba(255, 255, 255, 0.18);
}

.header-note {
  margin: 0;
  color: var(--text-muted);
  text-align: right;
  padding-right: 4rem;
}

.nav {
  position: fixed;
  top: calc(1rem - 10px);
  right: clamp(1rem, 4vw, 3rem);
  z-index: 42;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-toggle {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 0.5rem;
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease, border-color 120ms ease;
}

.menu-toggle:hover {
  transform: translateY(-1px);
  background: rgba(0, 0, 0, 0.66);
  border-color: rgba(255, 255, 255, 0.25);
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--bg);
  box-shadow: 0 0 0 4px var(--text-primary);
}

.menu-icon {
  width: 24px;
  height: 24px;
}

.hamburger-line {
  transform-origin: center;
  transition: transform 200ms ease, opacity 200ms ease;
}

.hamburger-line.top {
  transform: translateY(-5px);
}

.hamburger-line.bottom {
  transform: translateY(5px);
}

.menu-toggle.active .hamburger-line.top {
  transform: translateY(0) rotate(45deg);
}

.menu-toggle.active .hamburger-line.middle {
  opacity: 0;
}

.menu-toggle.active .hamburger-line.bottom {
  transform: translateY(0) rotate(-45deg);
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 41;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.menu-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.menu-content {
  position: fixed;
  inset: 0;
  z-index: 42;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100svh;
  min-height: 100svh;
  background: transparent;
  border: none;
  outline: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.95);
  transition: opacity 240ms ease, visibility 240ms ease, transform 240ms ease;
}

.menu-content.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}

.menu-content ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 500px;
  gap: clamp(0.5rem, 2vh, 1.25rem);
  padding: 0;
  margin: 0;
  list-style: none;
  transform: none;
}

.menu-content li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
}

.menu-content li::before {
  content: none;
}

.menu-item {
  display: inline-block;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: clamp(0.9rem, 2.6vh, 1.05rem);
  font-variant: small-caps;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: lowercase;
  letter-spacing: 0.08em;
  word-spacing: normal;
  border-radius: 0.25rem;
  transition: color 120ms ease, transform 120ms ease;
  user-select: none;
  word-spacing: -0.25em;
}

.menu-item:hover {
  color: var(--text-primary);
}

.menu-item:active {
  color: #ffffff;
  transform: scale(0.98);
}

.page {
  padding: clamp(3rem, 8vw, 7rem) clamp(1rem, 4vw, 3rem);
}

.article {
  width: min(100%, 760px);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--text-primary);
  font-weight: 300;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 10vw, 6.5rem);
  line-height: 0.94;
}

h2 {
  margin-top: 4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.05;
}

p {
  margin: 1.15rem 0 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.lede {
  margin-top: 2rem;
  color: var(--text-primary);
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  margin-top: 1.5rem;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.72rem 1rem;
  border: 1px solid var(--text-primary);
  border-radius: 4px;
  color: var(--bg);
  background: var(--text-primary);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.store-button:hover {
  color: var(--bg);
  background: #ffffff;
  border-color: #ffffff;
  transform: translateY(-1px);
}

.steps,
.plain-list {
  margin: 1.25rem 0 0;
  padding-left: 1.3rem;
}

.steps li,
.plain-list li {
  margin: 0.55rem 0;
  padding-left: 0.25rem;
}

.workflow {
  margin: 1.75rem 0 0;
}

.workflow-track {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  padding: 1rem;
  border: 1px solid var(--rule);
  background: var(--surface);
}

.workflow-step {
  display: flex;
  min-height: 7rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.9rem;
  border: 1px solid var(--rule-soft);
  background: rgba(255, 255, 255, 0.035);
}

.workflow-step-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.workflow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.9rem;
}

.workflow-label,
.workflow-detail {
  display: block;
  font-family: var(--mono);
  line-height: 1.35;
}

.workflow-label {
  color: var(--text-primary);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.workflow-step-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
  flex-shrink: 0;
}

.workflow-detail {
  margin-top: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.callout {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-left: 2px solid var(--text-secondary);
  background: var(--surface);
}

.callout p {
  margin: 0.35rem 0 0;
}

.callout-label {
  margin: 0;
  color: var(--text-muted);
  text-transform: uppercase;
}

.screenshot {
  margin: 3rem 0 0;
}

.screenshot picture {
  display: block;
}

.screenshot img {
  width: min(100%, 920px);
  max-width: calc(100vw - 2rem);
  margin-left: 50%;
  border: 1px solid var(--rule);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55);
  transform: translateX(-50%);
}

.screenshot figcaption {
  margin-top: 0.75rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.article-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem 0;
  margin-top: 4rem;
}

.logo {
  display: inline-block;
  margin-bottom: 0.5rem;
  width: 27px;
  height: 30px;
  position: relative;
  cursor: pointer;
  color: var(--text-primary);
  text-decoration: none;
}

.logo .mb-path {
  fill: currentColor;
}

.logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.footer-text {
  margin: 0.5rem 0 0;
  font-family: var(--mono);
  font-size: 0.65rem;
  line-height: 1.5;
  color: var(--text-secondary);
  text-align: center;
}

.logo-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.65rem;
  background-color: #1a1a1a;
  border: 1px solid #444444;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--text-primary);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 120ms ease, visibility 120ms ease;
  z-index: 20;
}

.logo-tooltip::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #444444;
}

@media (hover: hover) {
  .logo:hover .logo-tooltip {
    opacity: 1;
    visibility: visible;
  }
}

.logo:focus-visible .logo-tooltip {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 680px) {
  .site-header {
    display: block;
  }

  .header-note {
    margin-top: 0.4rem;
    text-align: left;
    padding-right: 3.25rem;
  }

  .nav {
    top: 0.6rem;
    right: 1rem;
  }

  .site-footer {
    padding-bottom: calc(4rem + env(safe-area-inset-bottom));
  }

  .screenshot img {
    width: min(100%, 460px);
  }

  .workflow-track {
    grid-template-columns: 1fr;
  }

  .workflow-step {
    min-height: 5.5rem;
  }

  .workflow-arrow {
    padding: 0.25rem 0;
  }

  .workflow-arrow span {
    display: inline-block;
    transform: rotate(90deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .menu-content,
  .menu-content.active {
    transform: none;
  }
}
