* { box-sizing: border-box; }
body {
  margin: 0;
  overscroll-behavior-x: none;
}
:root {
  --bg: #f5f2ec;
  --surface: #fbfaf7;
  --surface-2: #ebe7de;
  --ink: #141413;
  --muted: #69665e;
  --line: #d9d4c8;
  --blue: #d9421c;
  --blue-hi: #b5340f;
  --blue-soft: #f3e2da;
  --code-ink: #3d3b36;
  --serif: "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --header-h: 54px;
  --side-w: 264px;
  --content-w: 1040px;
  --pad-x: 48px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: calc(var(--header-h) + 16px);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--blue);
}
code {
  font-family: var(--mono);
  font-size: 0.875em;
  color: var(--code-ink);
  background: var(--surface-2);
  padding: 0.15em 0.42em;
  border-radius: 5px;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.top-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}
.menu-toggle:hover {
  background: var(--surface-2);
}
/* Desenha as três barras sem markup extra */
.menu-toggle::before {
  content: "";
  width: 16px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.logo-mark {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.scrim {
  display: none;
}
.logo em {
  color: var(--blue);
  font-style: normal;
}
.nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav a {
  padding: 5px 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}
.nav a:hover {
  color: var(--blue);
}
.nav .try {
  margin-left: 8px;
  padding: 5px 12px;
  color: var(--bg);
  background: var(--ink);
  border-radius: 4px;
}
.nav .try:hover {
  background: #34332f;
  color: var(--bg);
}
.sidebar {
  position: fixed;
  top: var(--header-h);
  left: 0;
  bottom: 0;
  width: var(--side-w);
  padding: 28px 18px 48px;
  overflow-y: auto;
  background: var(--bg);
  border-right: 1px solid var(--line);
}
.side {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.side-title {
  margin: 26px 10px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.side-title:first-child {
  margin-top: 0;
}
.side-link {
  display: block;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0 7px 7px 0;
  border-left: 2px solid transparent;
  transition: color 0.15s, background 0.15s;
}
.side-link:hover {
  color: var(--ink);
  background: var(--surface-2);
}
.side-link.is-active {
  color: var(--blue);
  background: var(--blue-soft);
  border-left-color: var(--blue);
}
.side-sub {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 2px 0 8px;
}
.side-sub-link {
  display: block;
  padding: 4px 10px 4px 24px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
  text-decoration: none;
  border-left: 2px solid var(--line);
  transition: color 0.15s, border-color 0.15s;
}
.side-sub-link:hover {
  color: var(--blue);
  border-left-color: var(--blue);
}
.main {
  min-width: 0;
  margin-left: var(--side-w);
}
.block,
.hero,
footer {
  max-width: var(--content-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.block {
  padding-top: 72px;
  padding-bottom: 72px;
  border-top: 1px solid var(--line);
}
.main > .block:first-child {
  padding-top: 32px;
  border-top: 0;
}
.hero {
  padding-top: 72px;
  padding-bottom: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  border-top: 1px solid var(--line);
}
.hero > div:first-child {
  min-width: 0;
}
.crumb {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--blue);
}
h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0;
}
h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 16px;
}
.hero h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.08;
  margin-bottom: 0;
}
h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 8px;
}
.lead {
  color: var(--muted);
  max-width: 48ch;
  margin: 22px 0 0;
  font-size: 1.15rem;
}
.readme {
  margin-top: 0;
  max-width: 72ch;
}
.readme > :first-child {
  margin-top: 0;
}
.readme__status {
  margin: 0;
  color: var(--muted);
}
.readme h1,
.readme h2,
.readme h3,
.readme h4 {
  font-family: var(--sans);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  margin: 40px 0 12px;
}
.readme h1 {
  font-weight: 700;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
}
.readme h2 {
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.readme h3 {
  font-weight: 600;
  font-size: 1.2rem;
}
.readme p,
.readme li {
  color: var(--muted);
}
.readme ul,
.readme ol {
  padding-left: 22px;
}
.readme li {
  margin: 6px 0;
}
.readme a {
  color: var(--blue);
  text-underline-offset: 3px;
}
.readme a:hover {
  color: var(--blue-hi);
}
.readme code {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--code-ink);
  background: var(--surface-2);
  padding: 0.15em 0.42em;
  border-radius: 5px;
}
.readme pre {
  max-height: none;
  margin: 16px 0;
  padding: 18px;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.readme pre code {
  padding: 0;
  background: none;
  font-size: 0.85rem;
}
.readme blockquote {
  margin: 16px 0;
  padding: 4px 18px;
  color: var(--muted);
  border-left: 3px solid var(--line);
}
.readme hr {
  margin: 32px 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.readme img {
  max-width: 100%;
  height: auto;
}
.readme table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.readme th,
.readme td {
  padding: 8px 12px;
  text-align: left;
  border: 1px solid var(--line);
}
.readme th {
  background: var(--surface-2);
  color: var(--ink);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.btn {
  display: inline-block;
  padding: 11px 20px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover {
  background: #34332f;
  border-color: #34332f;
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn.ghost:hover {
  background: var(--surface-2);
}
.status {
  margin: 28px 0 0;
  max-width: 52ch;
  padding-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid var(--line);
}
.panel {
  min-width: 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: 6px;
  box-shadow: 6px 6px 0 var(--surface-2);
}
.ask {
  max-width: 100%;
  margin: 0 0 16px;
  padding: 12px 14px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.97rem;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.file {
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.tab {
  min-height: 36px;
  padding: 9px 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.code {
  padding: 14px 0;
  overflow-x: auto;
  color: var(--code-ink);
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.7;
}
.l {
  width: max-content;
  min-width: 100%;
  padding: 0 16px;
  white-space: pre;
}
.l.hl {
  background: var(--blue-soft);
  box-shadow: inset 3px 0 0 var(--blue);
}
.mk {
  color: var(--blue);
  font-weight: 600;
}
.cap {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.panel .ask,
.panel .file,
.panel .cap,
.panel .code .l {
  opacity: 0;
}
.panel.is-sent .ask {
  animation: ask-in 0.45s cubic-bezier(0.22, 0.8, 0.3, 1) forwards;
}
.panel.is-received .file {
  animation: file-in 0.5s cubic-bezier(0.22, 0.8, 0.3, 1) forwards;
}
.panel .code .l.is-on {
  animation: line-in 0.28s ease forwards;
}
.panel.is-received .cap {
  animation: line-in 0.4s ease 0.5s forwards;
}
.panel.is-static .ask,
.panel.is-static .file,
.panel.is-static .cap,
.panel.is-static .code .l {
  opacity: 1;
  transform: none;
  animation: none;
}
@keyframes ask-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes file-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes line-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.block > p {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
}
.block > p + p {
  margin-top: 14px;
}
.cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 44px;
}
.cols > div {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}
.cols p {
  margin: 0;
  color: var(--muted);
}
.cols a {
  display: inline-block;
  margin-top: 12px;
  color: var(--blue);
  font-weight: 500;
  text-underline-offset: 4px;
}
.cols a:hover {
  color: var(--blue-hi);
}
.spec-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  padding: 10px 10px 10px 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}
.spec-head .btn {
  padding: 7px 16px;
  font-size: 0.88rem;
}
pre {
  max-height: 380px;
  margin: 0;
  padding: 20px 18px;
  overflow: auto;
  color: var(--code-ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0 0 6px 6px;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.65;
  tab-size: 2;
}
.snippet {
  margin-top: 16px;
  border-radius: 6px;
  display: flex;
}
.markers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 40px;
  margin-top: 40px;
  border-bottom: 1px solid var(--line);
}
.m {
  padding: 24px 0 28px;
  border-top: 1px solid var(--line);
}
.glyph {
  display: block;
  width: max-content;
  margin-bottom: 12px;
  padding: 0;
  background: none;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1;
}
.m h3 {
  margin-bottom: 4px;
}
.m p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}
.more {
  display: inline-block;
  margin-top: 20px;
  color: var(--blue);
  font-weight: 500;
  text-underline-offset: 4px;
}
.more:hover {
  color: var(--blue-hi);
}
.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.shots figure {
  margin: 0;
}
.shots img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: 6px;
  box-shadow: 6px 6px 0 var(--surface-2);
}
.shots figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}
.disclaimer {
  margin: 28px 0 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 0.9rem;
}
footer {
  padding-top: 32px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
footer a {
  color: var(--muted);
  text-decoration: none;
}
footer a:hover {
  color: var(--blue);
}
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .lead,
  .status {
    max-width: 60ch;
  }
}
@media (max-width: 1024px) {
  .main {
    margin-left: 0;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .scrim {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 25;
    display: block;
    background: rgba(20, 20, 19, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .scrim.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  .sidebar {
    z-index: 26;
    width: min(86vw, var(--side-w));
    box-shadow: 8px 0 24px rgba(20, 20, 19, 0.14);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }
  .sidebar.is-open {
    transform: none;
  }
}
@media (max-width: 900px) {
  :root {
    --pad-x: 24px;
  }
  .cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .markers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .block,
  .hero {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .main > .block:first-child {
    padding-top: 24px;
  }
  footer {
    padding-top: 28px;
    padding-bottom: 32px;
  }
}
@media (max-width: 520px) {
  .top {
    padding: 0 16px;
  }
  .nav .plain {
    display: none;
  }
  .markers {
    grid-template-columns: minmax(0, 1fr);
  }
  .actions .btn {
    flex: 1 1 100%;
  }
  .panel {
    padding: 14px;
    box-shadow: 4px 4px 0 var(--surface-2);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .nav a,
  .side-link,
  .scrim,
  .sidebar {
    transition: none;
  }
}
/* Preview interativo: editor yr -> iframe */
.yrkit-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  margin: 8px 0 28px;
}
.yrkit-preview__bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}
.yrkit-preview__bar::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 16px 0 0 var(--blue-hi), 32px 0 0 var(--line);
  margin-right: 38px;
}
.yrkit-preview__filename::before {
  content: "// ";
  color: var(--blue-hi);
}
.yrkit-preview__editor-wrap {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr;
  height: 40svh;
  max-height: 40svh;
  min-height: 220px;
  background: var(--bg);
  border-right: 1px solid var(--line);
  transition: box-shadow 0.15s ease;
}
.yrkit-preview__editor-wrap:focus-within {
  box-shadow: inset 3px 0 0 var(--blue);
}
.yrkit-preview__gutter {
  overflow: hidden;
  padding: 16px 10px 16px 14px;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
  text-align: right;
  white-space: pre;
  user-select: none;
  background: var(--surface-2);
}
.yrkit-preview__scroll {
  position: relative;
  overflow: hidden;
  min-height: 0;
}
.yrkit-preview__mirror,
.yrkit-preview__editor {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.6;
  tab-size: 2;
  white-space: pre;
}
.yrkit-preview__mirror {
  overflow: hidden;
  color: var(--ink);
  pointer-events: none;
}
.yrkit-preview__editor {
  width: 100%;
  height: 100%;
  overflow: auto;
  color: transparent;
  background: transparent;
  border: none;
  resize: none;
  caret-color: transparent;
}
.yrkit-preview__editor:focus {
  outline: none;
}
.yrkit-preview__editor::selection {
  background: var(--blue-soft);
}
.yrkit-preview__caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-right: -2px;
  vertical-align: text-bottom;
  background: var(--blue);
  animation: yrkit-caret 1s step-end infinite;
}
@keyframes yrkit-caret {
  50% {
    opacity: 0;
  }
}
.yrkit-preview__frame {
  width: 100%;
  height: 100%;
  max-height: 40svh;
  min-height: 220px;
  background: #ffffff;
  border: none;
}
@media (max-width: 620px) {
  .shots {
    grid-template-columns: 1fr;
  }
  .yrkit-preview {
    grid-template-columns: 1fr;
  }
  .yrkit-preview__editor-wrap {
    border-right: none;
    border-bottom: 1px solid var(--line);
    height: 40svh;
    min-height: 200px;
  }
  .yrkit-preview__frame {
    height: 40svh;
    min-height: 200px;
  }
}
