:root {
  color-scheme: dark;
  --background: #0b0b0c;
  --surface: #121214;
  --text: #f1f1f1;
  --muted: #929296;
  --border: #29292d;
  --accent: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button {
  font: inherit;
}

.site-header {
  border-bottom: 1px solid var(--border);
}

.navigation {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: min(100% - 2rem, 860px);
  min-height: 64px;
  margin: 0 auto;
}

.project-links {
  display: flex !important;
  align-items: center;
  gap: 1.5rem;
  visibility: visible !important;
  opacity: 1 !important;
}

.project-links .project-button {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#google_translate_element {
  margin-left: auto;
}

.goog-te-gadget {
  color: var(--muted) !important;
  font-family: inherit !important;
  font-size: 0 !important;
}

.goog-te-gadget .goog-te-combo {
  margin: 0;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
}

.goog-logo-link,
.goog-te-gadget span {
  display: none !important;
}

.goog-te-banner-frame {
  display: none !important;
}

body {
  top: 0 !important;
}

.project-button {
  position: relative;
  padding: 0.4rem 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 160ms ease;
}

.project-button:hover,
.project-button:focus-visible,
.project-button.is-active {
  color: var(--accent);
  outline: none;
}

.project-button.is-active::after {
  position: absolute;
  right: 0;
  bottom: -21px;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
}

.app-shell {
  width: min(100% - 2rem, 860px);
  margin: 0 auto;
  padding: 4rem 0 2rem;
}

.document-panel {
  min-height: 300px;
}

.document-placeholder {
  display: grid;
  min-height: 220px;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.document {
  max-width: 720px;
  margin: 0 auto;
}

.document h1,
.document h2,
.document h3 {
  margin: 2rem 0 0.7rem;
  color: var(--text);
  letter-spacing: -0.03em;
}

.document h1 {
  margin-top: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.document h2 {
  font-size: 1.35rem;
}

.document h3 {
  font-size: 1.05rem;
}

.document p,
.document li {
  color: var(--muted);
  line-height: 1.8;
}

.document ul,
.document ol {
  padding-left: 1.25rem;
}

.document a {
  color: var(--text);
}

.document hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.document code {
  padding: 0.15rem 0.3rem;
  background: var(--surface);
  color: var(--text);
}

.error {
  color: #ff9d9d;
}

footer {
  margin-top: 4rem;
  color: #66666c;
  font-size: 0.75rem;
  text-align: center;
}

@media (max-width: 600px) {
  .navigation {
    min-height: 58px;
    gap: 1rem;
    overflow-x: auto;
    width: calc(100% - 2rem);
  }

  .project-links {
    gap: 1rem;
  }

  #google_translate_element {
    flex: 0 0 auto;
  }

  .project-button.is-active::after {
    bottom: -18px;
  }

  .app-shell {
    padding-top: 2.5rem;
  }
}
